/* =============================================================================
   NEXILIA NETWORK — components.css
   Reusable UI pieces shared across every page: nav bar, footer, buttons,
   badges, cards, glass panels, the HUD-style server status strip.
   ============================================================================= */

/* -----------------------------------------------------------------------
   1. GLASS PANEL (base surface reused by nav, cards, HUD, footer, forms)
   ----------------------------------------------------------------------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-hi);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: var(--shadow-soft);
}

/* -----------------------------------------------------------------------
   2. BUTTONS
   ----------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 48px;
  padding: 0 26px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-standard),
              translate var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              filter var(--dur-fast) var(--ease-standard);
}

/* Coming-soon / no-file-yet state (see applyDownloadState in js/utils.js).
   Kept visually close to a normal primary button — greyed out, no lift on
   hover — rather than hidden, so the download card layout never jumps. */
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(40%);
  pointer-events: auto;
}
.btn.is-disabled:hover,
.btn.is-disabled:active {
  transform: none;
  translate: none;
  box-shadow: none;
}

/* Mechanical press instead of a uniform bounce-shrink — the button reads
   as physically depressing (dims, settles down 1px) rather than just
   scaling, which is the generic SaaS "active" state. */
.btn:active {
  transform: scale(0.97) translateY(1px) !important;
  filter: brightness(0.92);
}

/* Chamfered silhouette — cut corners instead of a rounded pill. This is
   the single biggest break from "SaaS button": a control panel shape,
   not a friendly capsule. Reserved for primary/gold, the two buttons
   that are actually supposed to look powerful; ghost stays quieter. */
.btn-primary,
.btn-gold {
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18), var(--shadow-glow-brand);
}
.btn-primary:hover {
  filter: brightness(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 0 28px rgba(138, 43, 226, 0.5);
  transform: translateY(-2px);
}

/* Corner brackets — snap into place on hover, like a HUD target lock
   rather than a shimmer sweep. Present on both primary and gold. */
.btn-primary::before, .btn-primary::after,
.btn-gold::before, .btn-gold::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
  pointer-events: none;
}
.btn-primary::before, .btn-gold::before { top: -5px; right: -5px; border-top: 2px solid; border-right: 2px solid; transform: translate(-4px, 4px); }
.btn-primary::after,  .btn-gold::after  { bottom: -5px; left: -5px; border-bottom: 2px solid; border-left: 2px solid; transform: translate(4px, -4px); }
.btn-primary::before, .btn-primary::after { border-color: var(--white); }
.btn-gold::before, .btn-gold::after { border-color: var(--gold); }
.btn-primary:hover::before, .btn-primary:hover::after,
.btn-gold:hover::before, .btn-gold:hover::after {
  opacity: 0.9;
  transform: translate(0, 0);
}

.btn-ghost {
  background: rgba(248, 248, 248, 0.03);
  border: 1px solid var(--glass-border-hi);
  border-radius: 4px;
  border-left: 2px solid var(--glass-border-hi);
  color: var(--white);
}
.btn-ghost:hover {
  background: rgba(248, 248, 248, 0.07);
  border-color: rgba(248, 248, 248, 0.34);
  border-left-color: var(--purple);
  transform: translateY(-2px);
}

/* Flat, not a second gradient — gold is the "money/rank" signal, and a
   glowing gradient twin of the primary button would just make two things
   compete for the same "look at me" attention. */
.btn-gold {
  background: var(--gold);
  color: #241203;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
.btn-gold:hover {
  background: #ffd699;
  transform: translateY(-2px);
}

.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; }
.btn-sm.btn-primary, .btn-sm.btn-gold { clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.btn-block { width: 100%; }

/* -----------------------------------------------------------------------
   3. TOP NAVIGATION
   ----------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(7, 8, 13, 0.4) 0%, rgba(7, 8, 13, 0) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: height var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              backdrop-filter var(--dur-base) var(--ease-standard);
  border-bottom: 1px solid transparent;
}

/* Shrinks 76px -> 60px once the page scrolls past the hero, so the bar
   reclaims screen space instead of sitting at full height forever — the
   detail that reads as "someone tuned this" rather than a static bar. */
.nav.is-scrolled {
  height: 60px;
  background: rgba(7, 8, 13, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--glass-border);
}

.nav-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  transition: opacity var(--dur-fast) var(--ease-standard);
}
.nav-brand:hover { opacity: 0.82; }

.nav-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav.is-scrolled .nav-brand img { transform: scale(0.88); }

.nav-brand .accent { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}

.nav-link:hover { color: var(--white); background: rgba(248, 248, 248, 0.05); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link.is-active { color: var(--white); }
.nav-link.is-active::after {
  transform: scaleX(1);
  animation: navActiveDraw 550ms var(--ease-out) 200ms both;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--white);
}

.burger-bar {
  width: 20px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-standard), opacity var(--dur-fast) var(--ease-standard);
}

/* Morphs the 3 bars into an X once js/layout.js toggles this class on click. */
.nav-burger.is-open .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open .burger-bar:nth-child(2) { opacity: 0; }
.nav-burger.is-open .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -----------------------------------------------------------------------
   4. MOBILE NAV DRAWER
   ----------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(7, 8, 13, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--gray);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
  transition-delay: 0ms;
}
.mobile-nav a.is-active,
.mobile-nav a:hover { color: var(--white); }

/* Cascade each link in with a small delay once the drawer opens. */
.mobile-nav.is-open a { opacity: 1; transform: translateY(0); }
.mobile-nav.is-open a:nth-child(1) { transition-delay: 60ms; }
.mobile-nav.is-open a:nth-child(2) { transition-delay: 100ms; }
.mobile-nav.is-open a:nth-child(3) { transition-delay: 140ms; }
.mobile-nav.is-open a:nth-child(4) { transition-delay: 180ms; }
.mobile-nav.is-open a:nth-child(5) { transition-delay: 220ms; }
.mobile-nav.is-open a:nth-child(6) { transition-delay: 260ms; }
.mobile-nav.is-open a:nth-child(7) { transition-delay: 300ms; }
.mobile-nav.is-open .btn { transition-delay: 340ms; }

/* -----------------------------------------------------------------------
   5. HUD SERVER-STATUS STRIP  (signature element)
   A "mission control" readout rather than a generic icon+stat grid —
   monospace values, a pulsing status light, and a one-click IP copy.
   ----------------------------------------------------------------------- */
.hud {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hud-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-5) var(--space-5);
  border-right: 1px solid var(--glass-border);
}
.hud-cell:last-child { border-right: none; }

.hud-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-dim);
}

.hud-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  animation: pulseDot 2s ease-in-out infinite;
}
.hud-dot.is-offline {
  background: var(--danger);
  animation: none;
}

.hud-cell-ip {
  cursor: pointer;
}
.hud-cell-ip .hud-value {
  color: var(--blue);
  transition: color var(--dur-fast) var(--ease-standard);
}
.hud-cell-ip:hover .hud-value { color: var(--white); }

.hud-copy-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* -----------------------------------------------------------------------
   6. BADGES / CHIPS / TAGS
   ----------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-update      { background: rgba(24, 176, 255, 0.14); color: var(--blue); }
.badge-event       { background: rgba(255, 200, 118, 0.16); color: var(--gold); }
.badge-maintenance { background: rgba(255, 77, 109, 0.14); color: var(--danger); }
.badge-discord     { background: rgba(138, 43, 226, 0.16); color: #b98aff; }

/* -----------------------------------------------------------------------
   7. CARDS
   Item 5 of the redesign: cards used to be one component wearing nine
   different labels — same tilt, same spotlight, same shadow everywhere,
   regardless of whether the content was a showcase object (a feature, a
   store item) or a quiet data row (a vote entry, a changelog line). That
   read as templated. Cards now sort into honest depth tiers instead, each
   with its own light and shadow language:

     TIER 1 — FLOATING  (.feature-card, .product-card)
       Objects you'd want to pick up and turn in your hand. Mouse-follow
       tilt, a spotlight, the deepest rest-state shadow. Reserved for the
       two grids that are actually meant to sell something — a feature of
       the network, or a product in the store.

     TIER 2 — PANEL  (.staff-card, .news-card)
       Content you scan, not objects you admire. A quiet -3px hover lift,
       no tilt, no spotlight — brightness comes from the border, not a
       glow. Each gets one thin accent line tied to its own data (role
       tier for staff, post category for news) instead of a shared
       default color.

     TIER 3 — RECESSED  (.vote-card, .version-card)
       Rows embedded in a list, not cards floating over the page — an
       inset shadow presses them into the surface instead of lifting them
       off it, so a 20-row vote grid or changelog timeline doesn't turn
       into twenty competing floating panels.

     TIER 4 — FLAT  (.contact-card, .accordion-item)
       Pure utility surfaces (a contact method, an FAQ answer). No shadow
       transition at all — the least ornamented material on the site, on
       purpose, so the tiers above still read as a hierarchy.

   Base .card only supplies the shared shape (radius, padding, a resting
   shadow); every tier above adds its own hover behavior on top.
   ----------------------------------------------------------------------- */
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

/* -----------------------------------------------------------------------
   Skeleton loaders — every JSON-driven grid (news, store, vote, staff,
   changelog) rendered nothing at all until its fetch resolved: a blank gap
   in the page, then content popping in with no warning. These placeholder
   cards fill that gap. Each grid's own JS render function already does
   `grid.innerHTML = ...` the moment real data arrives (see news.js,
   store.js, vote.js, staff.js, changelog.js), so dropping this markup in
   as the *initial* HTML is enough on its own — nothing needs to remove it.
   ----------------------------------------------------------------------- */
.skeleton-card {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(248, 248, 248, 0.06) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: skeletonSweep 1.7s ease-in-out infinite;
}

.skeleton-block {
  flex: 1;
  min-height: 64px;
  border-radius: var(--radius-md);
  background: rgba(248, 248, 248, 0.04);
}

.skeleton-line {
  height: 11px;
  border-radius: 3px;
  background: rgba(248, 248, 248, 0.07);
}
.skeleton-line--title { height: 15px; width: 72%; }
.skeleton-line--short { width: 42%; }


/* ---- Tier 1: floating showcase objects — tilt + spotlight + deepest
   shadow. Kept to exactly two grids sitewide; see the note above.
   product-card's spotlight is gold instead of purple because a store
   item's "shine" is a money moment, not a brand moment — same discipline
   as item 1's palette rule, just applied to light instead of color. */
.feature-card,
.product-card {
  --spotlight-color: rgba(138, 43, 226, 0.16);
  box-shadow: var(--shadow-elevated);
  transform: perspective(900px) rotateX(var(--tiltx, 0deg)) rotateY(var(--tilty, 0deg)) translateY(var(--card-lift, 0px));
}

.feature-card::before,
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), var(--spotlight-color), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-standard);
  pointer-events: none;
}

.product-card { --spotlight-color: rgba(255, 200, 118, 0.18); }

.feature-card:hover,
.product-card:hover {
  --card-lift: -6px;
  border-color: var(--glass-border-hi);
  box-shadow: 0 26px 58px rgba(3, 4, 8, 0.55), inset 0 1px 0 rgba(248, 248, 248, 0.09);
}

.feature-card:hover::before,
.product-card:hover::before { opacity: 1; }

/* ---- Tier 2: panel cards — quiet lift, no tilt, no spotlight. Each gets
   a single accent line drawn from its own data via :has(), instead of a
   borrowed brand color. */
.staff-card:hover,
.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-hi);
  box-shadow: var(--shadow-elevated);
}

.news-card:has(.badge-update)      { border-left: 2px solid rgba(24, 176, 255, 0.4); }
.news-card:has(.badge-event)       { border-left: 2px solid rgba(255, 200, 118, 0.4); }
.news-card:has(.badge-maintenance) { border-left: 2px solid rgba(255, 77, 109, 0.4); }
.news-card:has(.badge-discord)     { border-left: 2px solid rgba(138, 43, 226, 0.4); }

.staff-card:has(.staff-avatar.is-gold)   { border-top-color: rgba(255, 200, 118, 0.4); }
.staff-card:has(.staff-avatar.is-purple) { border-top-color: rgba(138, 43, 226, 0.4); }
.staff-card:has(.staff-avatar.is-blue)   { border-top-color: rgba(24, 176, 255, 0.4); }

/* ---- Tier 3: recessed rows — pressed into the surface rather than
   lifted off it, so a long list reads as one continuous strip instead of
   a stack of separately floating cards. */
.vote-card,
.version-card {
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(248, 248, 248, 0.04);
}

.vote-card:hover,
.version-card:hover {
  border-color: var(--glass-border-hi);
}

/* ---- Tier 4: flat utility surfaces — no shadow transition at all. */
.contact-card,
.accordion-item {
  box-shadow: none;
}

.accordion-item { padding: 0; }

.news-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.news-card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-dim);
}

.news-card-title {
  font-size: 18px;
  font-weight: 700;
}

.news-card-summary {
  color: var(--gray);
  font-size: 13.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.news-card-link svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-standard); }
.news-card:hover .news-card-link svg { transform: translateX(3px); }

.feature-card {
  text-align: left;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border-hi);
  margin-bottom: var(--space-4);
}
.feature-icon svg { width: 20px; height: 20px; color: var(--purple); }

.feature-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.feature-desc {
  color: var(--gray);
  font-size: 13.5px;
  line-height: 1.6;
}

/* -----------------------------------------------------------------------
   8. FLOATING VOXEL CUBES (background motif)
   Item 7 of the redesign: the old version was a flat, rounded-corner,
   translucent square — recognizable as "a decorative shape," not as a
   block. Real Minecraft blocks read instantly because you see three
   faces at once, each a different shade of the same material. These are
   built the same way — one real 3D cube per voxel (front face + a
   ::before top face + a ::after side face, each rotated in actual 3D
   space, not faked with a 2D skew) — but in muted purple/blue/graphite,
   never the game's own green/brown textures, so it reads as "built from
   blocks" rather than "a kids' Minecraft site."
   ----------------------------------------------------------------------- */
.voxel-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  perspective: 800px;
}

.voxel {
  position: absolute;
  width: var(--size, 34px);
  height: var(--size, 34px);
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.22), rgba(24, 176, 255, 0.14));
  border: 1px solid rgba(248, 248, 248, 0.14);
  transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(34deg);
  animation: voxelFloat var(--dur, 9s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}

/* Top face — lighter than the front, like light hitting the block from
   above; this is the single detail that makes a square read as a cube. */
.voxel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 248, 248, 0.16);
  border: 1px solid rgba(248, 248, 248, 0.14);
  transform: rotateX(90deg) translateZ(calc(var(--size, 34px) / 2)) translateY(calc(var(--size, 34px) / -2));
}

/* Side face — darker than the front, the shadowed face of the block. */
.voxel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 20, 0.32);
  border: 1px solid rgba(248, 248, 248, 0.1);
  transform: rotateY(90deg) translateZ(calc(var(--size, 34px) / 2)) translateX(calc(var(--size, 34px) / 2));
}

/* -----------------------------------------------------------------------
   9. FOOTER
   ----------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--glass-border);
  padding: var(--space-8) 0 var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-7);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: var(--space-3);
}
.footer-brand img { width: 28px; height: 28px; border-radius: 8px; }

.footer-desc {
  color: var(--gray);
  font-size: 13.5px;
  max-width: 280px;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.footer-social svg { width: 15px; height: 15px; }
.footer-social:hover { color: var(--white); border-color: var(--glass-border-hi); }

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--gray);
  transition: color var(--dur-fast) var(--ease-standard);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--gray-dim);
}

.footer-bottom a { color: var(--gray-dim); }
.footer-bottom a:hover { color: var(--gray); }

/* -----------------------------------------------------------------------
   10. TOASTS (used by the IP-copy interaction)
   ----------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 220px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  border-left: 3px solid var(--blue);
  animation: fadeInUp var(--dur-base) var(--ease-out) both;
}

.toast-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--blue);
}

.toast-msg { flex: 1 1 auto; }

/* Every toast rendered identical regardless of type before this — same
   blue border and no icon whether it was a success confirmation or an
   error. Reusing the --success/--danger tokens already defined (and used
   for the server status dot + badges) instead of inventing new colors. */
.toast-success { border-left-color: var(--success); }
.toast-success .toast-icon { color: var(--success); }
.toast-error   { border-left-color: var(--danger); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning { border-left-color: var(--gold); }
.toast-warning .toast-icon { color: var(--gold); }

.toast.is-leaving {
  animation: toastOut var(--dur-base) var(--ease-standard) both;
}

/* -----------------------------------------------------------------------
   11. ACCORDION (shared by rules.html and faq.html)
   ----------------------------------------------------------------------- */
.accordion-item {
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: left;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
}

.accordion-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-base) var(--ease-out);
}

.accordion-icon svg { width: 14px; height: 14px; color: var(--gray); }

.accordion-item.is-open .accordion-icon { transform: rotate(45deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}

.accordion-panel-inner {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--gray);
  font-size: 14px;
  line-height: 1.65;
}

/* -----------------------------------------------------------------------
   12. FORM FIELDS (shared by contact.html and any future form)
   ----------------------------------------------------------------------- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
}

.form-input,
.form-textarea {
  background: rgba(248, 248, 248, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--dur-fast) var(--ease-standard);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--purple-soft);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--gray-dim); }

.form-textarea { resize: vertical; min-height: 140px; font-family: var(--font-body); }
