/* =====================================================================
   MSOFTBD LOGIN — the layered node mesh (brand #3EB75E)
   ---------------------------------------------------------------------
   A standalone stylesheet for msoftbd/login.php. No bootstrap, no app
   stylesheet.

   DESIGN
   ---------------------------------------------------------------------
   Three motions combine into one scene:
     1. The background is a layered SVG node mesh — three depth planes
        (far grid, mid edges+nodes, near accent nodes) drawn in the brand
        green. Each plane moves at its own speed under the pointer, the
        same way login-style-16 does.
     2. The ruled contours below the mesh drift on their own, and the
        three aurora ellipses breathe on independent 16s/22s/28s loops.
     3. On top, a three-panel glass stack with a floating brand medallion;
        the two back panels fan out on hover/focus, and the card tilts
        slightly with the pointer.

   Theme colour is exactly #3EB75E, and every derived tint is generated
   from it in the :root block. Change --gs-brand and the whole page
   re-tints: the mesh, the aurora, the leaves, the button, the focus
   rings, the tick inside each field, the links.

   Loaded with ?v=20261011m from login.php so a redeploy refetches it.
   Section list:
      1. tokens
      2. page + background scene (aurora, mesh, contours, dots, leaves)
      3. the stack, medallion, fan
      4. brand row + heading
      5. fields
      6. remember row + forgot link
      7. button + below
      8. support + footer
      9. alerts & license panel
      9b. toasts
      10. responsive
      11. reduced motion
   ===================================================================== */

/* =====================================================================
   1. TOKENS
   ===================================================================== */
:root {
  /* brand — your theme colour, and its derived family */
  --gs-brand:       #3EB75E;
  --gs-brand-2:     #2F9A4B;
  --gs-brand-3:     #1F7A38;
  --gs-brand-soft:  #E9F7EE;
  --gs-brand-line:  #C7E7D1;
  --gs-brand-glow:  #6EE08A;
  --gs-brand-ring:  rgba(62, 183, 94, .22);

  /* surface */
  --gs-page:        #eef4ee;
  --gs-page-2:      #e7efe8;
  --gs-panel:       rgba(255,255,255,.72);
  --gs-panel-2:     rgba(255,255,255,.86);
  --gs-border:      rgba(20,50,30,.08);
  --gs-border-2:    rgba(20,50,30,.12);

  /* ink */
  --gs-ink-900:     #131b16;
  --gs-ink-700:     #3a453e;
  --gs-ink-500:     #7d8a83;
  --gs-ink-400:     #98a3a0;
  --gs-ink-300:     #cbd3ce;
  --gs-ink-200:     #e5ebe6;
  --gs-ink-100:     #f2f6f3;

  /* alerts */
  --gs-bad-bg:      #fef2f2;
  --gs-bad-line:    #fecaca;
  --gs-bad-tx:      #991b1b;

  /* geometry */
  --gs-r:           12px;
  --gs-r-lg:        22px;
  --gs-r-sm:        8px;

  /* motion */
  --gs-ease:        cubic-bezier(.2,.7,.2,1);

  /* type */
  --gs-font:        "Inter", "Segoe UI", system-ui, -apple-system,
                    "Noto Sans Bengali", "Noto Sans", sans-serif;
}

/* =====================================================================
   2. PAGE + BACKGROUND SCENE
   ---------------------------------------------------------------------
   The background SVG is one <svg> holding three depth planes plus the
   aurora, contours, and grid. The planes are translated by JavaScript
   (transform attribute), so they can move independently without
   re-rendering the SVG. Every plane is drawn in the brand green.
   ===================================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--gs-page); }

body {
  font-family: var(--gs-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gs-ink-700);
  background: var(--gs-page);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.gs-scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  overflow: hidden;
  isolation: isolate;
}

.gs-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.gs-bg-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- motion 1: the aurora ellipses drift --- */
.gs-drift-1 { animation: gs-drift-a 16s ease-in-out infinite alternate; transform-origin: 380px 260px; }
.gs-drift-2 { animation: gs-drift-b 22s ease-in-out infinite alternate; transform-origin: 1280px 320px; }
.gs-drift-3 { animation: gs-drift-c 28s ease-in-out infinite alternate; transform-origin: 900px 820px; }

@keyframes gs-drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.1); }
}
@keyframes gs-drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, 40px) scale(1.08); }
}
@keyframes gs-drift-c {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 50px) scale(1.12); }
}

/* --- motion 2: the four ruled contours shift up and down --- */
.gs-ruled { stroke-dasharray: 2000; stroke-dashoffset: 0; }
.gs-ruled-1 { animation: gs-ruled 10s ease-in-out infinite alternate; }
.gs-ruled-2 { animation: gs-ruled 10s ease-in-out infinite alternate; animation-delay: -2s; }
.gs-ruled-3 { animation: gs-ruled 10s ease-in-out infinite alternate; animation-delay: -4s; }

@keyframes gs-ruled {
  0%   { transform: translateY(0); }
  100% { transform: translateY(14px); }
}

/* --- motion 3: the node mesh (SVG-only, since JS drives parallax) --- */
.gs-mesh { will-change: transform; }
.gs-edge {
  stroke: rgba(62, 183, 94, .26);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: gs-edge-drift 26s linear infinite;
}
.gs-edge-2 { animation-duration: 34s; animation-direction: reverse; }
@keyframes gs-edge-drift { to { stroke-dashoffset: -200; } }

.gs-node {
  transform-origin: center;
  transform-box: fill-box;
  animation: gs-node-pulse 3.6s var(--gs-ease) infinite;
  filter: drop-shadow(0 0 6px rgba(62,183,94,.45));
}
.gs-node.gs-n2 { animation-delay: .6s; }
.gs-node.gs-n3 { animation-delay: 1.2s; }
.gs-node.gs-n4 { animation-delay: 1.8s; }

@keyframes gs-node-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.6); opacity: .55; }
}

/* --- dot grid --- */
.gs-dots {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='1.3' cy='1.3' r='1.2' fill='%231F7A38' fill-opacity='.12'/%3E%3C/svg%3E");
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 82%);
          mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 82%);
  pointer-events: none;
}

/* --- motion 4: the leaves float on their own, then lean with the
       pointer (parallax added by JS) --- */
.gs-leaf {
  position: absolute;
  width: 46px;
  height: 46px;
  transition: transform .5s var(--gs-ease);
  filter: blur(.2px);
  pointer-events: none;
  will-change: transform;
}
.gs-leaf-a { top: 12%; left: 7%;  animation: gs-float 9s ease-in-out infinite; }
.gs-leaf-b { top: 68%; right: 9%; width: 60px; height: 60px;
             animation: gs-float 12s ease-in-out infinite reverse; }
.gs-leaf-c { bottom: 12%; left: 16%; width: 38px; height: 38px;
             animation: gs-float 14s ease-in-out infinite; }

@keyframes gs-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-14px) rotate(6deg); }
}

/* =====================================================================
   3. THE STACK, MEDALLION, FAN
   ===================================================================== */
.gs-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  padding-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gs-stack {
  position: relative;
  width: 100%;
  transition: transform .5s var(--gs-ease);
}

.gs-aura {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gs-brand-glow), transparent 65%);
  opacity: .22;
  pointer-events: none;
  animation: gs-aura 6s ease-in-out infinite;
}
@keyframes gs-aura {
  0%, 100% { transform: translateX(-50%) scale(1);   opacity: .18; }
  50%      { transform: translateX(-50%) scale(1.15); opacity: .30; }
}

.gs-medal {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(160deg, #ffffff 0%, #f1faf4 100%);
  border: 1px solid var(--gs-brand-line);
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow:
    0 20px 40px -20px rgba(31,122,56,.55),
    0 8px 20px -10px rgba(15,45,25,.22),
    inset 0 1px 0 rgba(255,255,255,.9);
  animation: gs-medal-in .75s cubic-bezier(.34, 1.56, .64, 1) .1s both;
}
.gs-medal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}
.gs-medal-pulse,
.gs-medal-ring {
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  border: 2px solid var(--gs-brand);
  opacity: .35;
  pointer-events: none;
}
.gs-medal-pulse { animation: gs-pulse 2.6s ease-out infinite; }
.gs-medal-ring  { inset: -14px; border-color: var(--gs-brand-line); opacity: .5; animation: gs-pulse 2.6s ease-out .8s infinite; }

@keyframes gs-pulse {
  0%   { transform: scale(.96); opacity: .5; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes gs-medal-in {
  from { opacity: 0; transform: translateX(-50%) translateY(6px) scale(.7); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0)   scale(1); }
}

.gs-layer {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 40px;
  border-radius: var(--gs-r-lg);
  background: var(--gs-panel);
  border: 1px solid var(--gs-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  transform-origin: 50% 100%;
  transition: transform .55s var(--gs-ease), opacity .4s var(--gs-ease),
              background .3s var(--gs-ease);
  overflow: hidden;
}
.gs-layer-mark {
  position: absolute;
  left: 22px;
  bottom: 10px;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--gs-ink-200);
  opacity: .8;
}
.gs-layer-2 .gs-layer-mark { width: 30px; background: var(--gs-ink-300); }

.gs-layer-2 { transform: translate(0, 14px) scale(1); opacity: .9; }
.gs-layer-3 { transform: translate(0, 26px) scale(1); opacity: .65; }

.gs-stack.is-fan .gs-layer-2,
.gs-stack:focus-within .gs-layer-2 {
  transform: translate(16px, 14px) rotate(2.4deg);
  opacity: 1;
}
.gs-stack.is-fan .gs-layer-3,
.gs-stack:focus-within .gs-layer-3 {
  transform: translate(-16px, 26px) rotate(-2.4deg);
  opacity: .9;
}

.gs-card {
  position: relative;
  background: var(--gs-panel-2);
  border: 1px solid var(--gs-border-2);
  border-radius: var(--gs-r-lg);
  padding: clamp(1.7rem, 3.4vw, 2.2rem) clamp(1.4rem, 3.2vw, 2rem) clamp(1.3rem, 3vw, 1.8rem);
  backdrop-filter: blur(22px) saturate(1.05);
  -webkit-backdrop-filter: blur(22px) saturate(1.05);
  box-shadow:
    0 1px 2px rgba(20,50,30,.05),
    0 24px 60px -20px rgba(20,50,30,.20),
    0 48px 96px -40px rgba(31,122,56,.30);
  transition: transform .5s var(--gs-ease), box-shadow .5s var(--gs-ease);
  animation: gs-card-in .6s cubic-bezier(.22, 1, .36, 1) both;
  transform-style: preserve-3d;
  will-change: transform;
}
@keyframes gs-card-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gs-stack.is-fan .gs-card,
.gs-stack:focus-within .gs-card {
  transform: translateY(-3px);
  box-shadow:
    0 1px 2px rgba(20,50,30,.06),
    0 32px 72px -20px rgba(20,50,30,.24),
    0 60px 120px -40px rgba(31,122,56,.38);
}

/* =====================================================================
   4. BRAND ROW + HEADING
   ===================================================================== */
.gs-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-bottom: 1.05rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--gs-ink-200);
  margin-top: 1.4rem;
}
.gs-brand-tx {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
  flex: 1 1 auto;
}
.gs-brand-tx strong {
  font-size: .98rem;
  font-weight: 700;
  color: var(--gs-ink-900);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gs-brand-tx em {
  font-style: normal;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gs-ink-400);
}
.gs-brand-chip {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gs-brand-soft);
  border: 1px solid var(--gs-brand-line);
  color: var(--gs-brand-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gs-brand-chip svg { width: 17px; height: 17px; }

.gs-head { margin: 0 0 1.3rem; }
.gs-head-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gs-brand-3);
  background: var(--gs-brand-soft);
  border: 1px solid var(--gs-brand-line);
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: .8rem;
}
.gs-head-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gs-brand);
  box-shadow: 0 0 0 3px rgba(62,183,94,.18);
  animation: gs-pulse 2.6s ease-in-out infinite;
}
.gs-head-title {
  margin: 0 0 .35rem;
  font-size: clamp(1.4rem, 3.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gs-ink-900);
  line-height: 1.2;
}
.gs-head-sub {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--gs-ink-500);
}

/* =====================================================================
   5. FIELDS
   ===================================================================== */
.gs-form { display: block; }
.gs-field { margin-bottom: 1rem; }

.gs-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gs-ink-500);
  margin-bottom: .45rem;
}

.gs-control {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--gs-ink-300);
  border-radius: var(--gs-r);
  transition: border-color .15s var(--gs-ease),
              box-shadow .15s var(--gs-ease),
              background .15s var(--gs-ease);
}
.gs-control:hover { border-color: var(--gs-ink-400); }
.gs-control.is-focus,
.gs-control:focus-within {
  border-color: var(--gs-brand);
  box-shadow: 0 0 0 3px var(--gs-brand-ring);
}

.gs-ic {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-left: .9rem;
  color: var(--gs-ink-400);
  transition: color .18s var(--gs-ease);
}
.gs-ic svg { width: 100%; height: 100%; display: block; }
.gs-control.is-focus .gs-ic,
.gs-control:focus-within .gs-ic { color: var(--gs-brand-2); }

.gs-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 .85rem 0 .75rem;
  font-family: inherit;
  font-size: .94rem;
  font-weight: 500;
  color: var(--gs-ink-900);
  background: transparent;
  border: 0;
  outline: none;
  caret-color: var(--gs-brand);
  letter-spacing: .005em;
}
.gs-input::placeholder { color: var(--gs-ink-400); opacity: 1; }

.gs-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-right: .9rem;
  border-radius: 50%;
  background: var(--gs-brand);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform .18s var(--gs-ease), opacity .18s var(--gs-ease);
}
.gs-check svg { width: 11px; height: 11px; }
.gs-control.is-valid .gs-check {
  display: inline-flex;
  animation: gs-tick-in .28s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes gs-tick-in {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.gs-control.is-valid .gs-eye { margin-right: 1.9rem; }

.gs-eye {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-right: .35rem;
  border: 0;
  background: transparent;
  color: var(--gs-ink-400);
  border-radius: var(--gs-r-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s var(--gs-ease), background .15s var(--gs-ease);
}
.gs-eye:hover { color: var(--gs-ink-700); background: var(--gs-ink-100); }
.gs-eye:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gs-brand-ring); }

/* =====================================================================
   6. REMEMBER ROW
   ===================================================================== */
.gs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: .35rem 0 1.2rem;
  flex-wrap: wrap;
}
.gs-remember {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  color: var(--gs-ink-700);
  cursor: pointer;
  user-select: none;
}
.gs-remember input { position: absolute; opacity: 0; pointer-events: none; }
.gs-remember-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #fff;
  border: 1.5px solid var(--gs-ink-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background .15s var(--gs-ease), border-color .15s var(--gs-ease),
              color .15s var(--gs-ease), transform .12s var(--gs-ease);
}
.gs-remember-box svg { width: 11px; height: 11px; }
.gs-remember input:checked + .gs-remember-box {
  background: var(--gs-brand);
  border-color: var(--gs-brand);
  color: #fff;
  transform: scale(1.02);
}
.gs-remember input:focus-visible + .gs-remember-box {
  box-shadow: 0 0 0 3px var(--gs-brand-ring);
}

.gs-forgot {
  font-size: .84rem;
  font-weight: 600;
  color: var(--gs-brand-3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .15s var(--gs-ease), border-color .15s var(--gs-ease);
}
.gs-forgot:hover {
  color: var(--gs-brand-2);
  border-bottom-color: currentColor;
}
.gs-forgot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--gs-brand-ring);
  border-radius: 4px;
}

/* =====================================================================
   7. BUTTON + BELOW
   ===================================================================== */
.gs-btn {
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: inherit;
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
  background: linear-gradient(180deg, var(--gs-brand) 0%, var(--gs-brand-2) 100%);
  border: 1px solid var(--gs-brand-2);
  border-radius: var(--gs-r);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 12px 22px -14px rgba(62,183,94,.7);
  transition: transform .1s var(--gs-ease),
              box-shadow .2s var(--gs-ease),
              filter .15s var(--gs-ease);
}
.gs-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
              rgba(255,255,255,0) 0%,
              rgba(255,255,255,.30) 50%,
              rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  transition: transform .6s var(--gs-ease);
}
.gs-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 18px 30px -16px rgba(62,183,94,.85);
}
.gs-btn:hover::after { transform: translateX(100%); }
.gs-btn:active { transform: translateY(0); }
.gs-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--gs-brand-ring),
              0 12px 22px -14px rgba(62,183,94,.7);
}
.gs-btn:disabled {
  opacity: .85;
  cursor: wait;
  transform: none;
}
.gs-btn-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  position: relative;
  z-index: 1;
}
.gs-btn-ic svg { width: 100%; height: 100%; display: block; }
#lgBtnText { position: relative; z-index: 1; }

.gs-spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  animation: gs-turn .7s linear infinite;
  position: relative;
  z-index: 1;
}
@keyframes gs-turn { to { transform: rotate(360deg); } }

.gs-below {
  margin: 1rem 0 0;
  text-align: center;
  font-size: .84rem;
  color: var(--gs-ink-500);
}
.gs-below a {
  color: var(--gs-brand-3);
  font-weight: 700;
  text-decoration: none;
  margin-left: .35rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .15s var(--gs-ease), border-color .15s var(--gs-ease);
}
.gs-below a:hover {
  color: var(--gs-brand-2);
  border-bottom-color: currentColor;
}
.gs-below a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--gs-brand-ring);
  border-radius: 3px;
}

/* =====================================================================
   8. SUPPORT + FOOTER
   ===================================================================== */
.gs-support {
  margin: 1.4rem 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--gs-ink-500);
}
.gs-support-k {
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .68rem;
  color: var(--gs-ink-400);
}
.gs-support a {
  color: var(--gs-brand-3);
  font-weight: 600;
  text-decoration: none;
}
.gs-support a:hover { text-decoration: underline; }
.gs-support-sep { color: var(--gs-ink-300); }

.gs-footer {
  margin: 1rem 0 0;
  text-align: center;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gs-ink-400);
}

/* =====================================================================
   9. ALERTS & LICENSE PANEL
   ===================================================================== */
.gs-alert {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  background: var(--gs-bad-bg);
  border: 1px solid var(--gs-bad-line);
  border-radius: var(--gs-r-sm);
  padding: .75rem .9rem;
  margin: 0 0 1.1rem;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--gs-bad-tx);
  animation: gs-alert-in .3s var(--gs-ease) both;
}
@keyframes gs-alert-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gs-alert-ic {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #dc2626;
}
.gs-alert-ic svg { width: 100%; height: 100%; display: block; }
.gs-alert-tx { min-width: 0; }
.gs-alert .gs-alert-line { margin-bottom: .2rem; }
.gs-alert .gs-alert-line:last-child { margin-bottom: 0; }

.gs-card .lic-block-panel {
  border-radius: var(--gs-r-sm);
  box-sizing: border-box;
  margin-bottom: 1.2rem;
  font-family: var(--gs-font);
}

/* =====================================================================
   9b. TOASTS
   ===================================================================== */
.gs-toast-wrap {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  width: min(340px, calc(100vw - 2.4rem));
  pointer-events: none;
}
.gs-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--gs-bad-line);
  border-left: 4px solid #dc2626;
  border-radius: var(--gs-r);
  padding: .7rem .8rem;
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  box-shadow: 0 18px 40px -18px rgba(20,50,30,.28);
  font-size: .86rem;
  line-height: 1.5;
  color: var(--gs-bad-tx);
  animation: gs-toast-in .3s var(--gs-ease) both;
}
.gs-toast.is-leave { animation: gs-toast-out .24s ease-in both; }
@keyframes gs-toast-in {
  from { opacity: 0; transform: translateX(26px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes gs-toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(26px); }
}
.gs-toast-ic {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
}
.gs-toast-ic svg { width: 12px; height: 12px; display: block; }
.gs-toast-tx { flex: 1 1 auto; min-width: 0; padding-top: 1px; }
.gs-toast-x {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: -2px -4px 0 0;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: var(--gs-ink-400);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s var(--gs-ease), background .15s var(--gs-ease);
}
.gs-toast-x:hover { color: var(--gs-ink-900); background: var(--gs-ink-100); }
.gs-toast-x:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gs-brand-ring); }

/* =====================================================================
   10. RESPONSIVE
   ===================================================================== */
@media (max-width: 520px) {
  .gs-scene { padding: 22px 12px; }
  .gs-wrap { padding-top: 48px; }
  .gs-medal { width: 64px; height: 64px; border-radius: 18px; padding: 10px; top: -30px; }
  .gs-aura { width: 130px; height: 130px; top: -30px; }
  .gs-layer { height: 32px; }
  .gs-layer-2 { transform: translate(0, 12px) scale(1); }
  .gs-layer-3 { transform: translate(0, 22px) scale(1); }
  .gs-stack.is-fan .gs-layer-2 { transform: translate(12px, 12px) rotate(2.2deg); }
  .gs-stack.is-fan .gs-layer-3 { transform: translate(-12px, 22px) rotate(-2.2deg); }
  .gs-card { padding: 1.35rem 1.15rem 1.15rem; }
  .gs-head-title { font-size: 1.3rem; }
  .gs-row { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .gs-leaf-a, .gs-leaf-b, .gs-leaf-c { display: none; }
  .gs-toast-wrap { top: 1rem; right: .8rem; width: calc(100vw - 1.6rem); }
}

/* =====================================================================
   11. REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .gs-drift-1, .gs-drift-2, .gs-drift-3,
  .gs-ruled-1, .gs-ruled-2, .gs-ruled-3,
  .gs-leaf-a, .gs-leaf-b, .gs-leaf-c,
  .gs-aura, .gs-medal, .gs-medal-pulse, .gs-medal-ring,
  .gs-head-dot, .gs-card, .gs-alert, .gs-toast,
  .gs-node, .gs-edge,
  .gs-control.is-valid .gs-check { animation: none !important; }

  .gs-stack, .gs-layer, .gs-card,
  .gs-control, .gs-btn, .gs-btn-ic, .gs-eye,
  .gs-remember-box, .gs-forgot, .gs-below a,
  .gs-leaf, .gs-toast-x { transition: none !important; }

  .gs-btn::after { display: none; }

  .gs-stack.is-fan .gs-layer-2,
  .gs-stack.is-fan .gs-layer-3,
  .gs-stack.is-fan .gs-card,
  .gs-stack:focus-within .gs-layer-2,
  .gs-stack:focus-within .gs-layer-3,
  .gs-stack:focus-within .gs-card { transform: none !important; }

  .gs-mesh { transform: none !important; }
}