/* ===== Shared topbar + nav ===== */
.topbar { position: relative; z-index: 10; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 2.5rem; border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px); }
.topbar .logo { display: inline-flex; align-items: center; min-height: 2.5rem; text-decoration: none; }
.topnav { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.topnav a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.125rem;
  color: var(--text-dim); text-decoration: none; font-size: 0.85rem;
  letter-spacing: 0.15em; text-transform: uppercase; font-family: var(--font-display);
  padding: 0.5rem 0.8rem; transition: all 0.2s; }
.topnav a:hover,
.topnav a.active,
.topnav a[aria-current='page'] {
  color: var(--neon-cyan);
  text-shadow: 0 0 6px var(--neon-cyan);
}
.topnav a:focus-visible {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  text-shadow: 0 0 6px var(--neon-cyan);
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
}
/* Live "online now" count beside the คนออนไลน์ nav link. Hidden until the
 * presence.js poller fills it, so an empty pill never flashes on load. */
.nav-online-count { display: none; }
.topnav a .nav-online-count.is-live {
  display: inline-block; margin-inline-start: 0.4em; padding: 0 0.45em;
  border-radius: 999px; font-size: 0.72em; line-height: 1.5; letter-spacing: 0;
  text-transform: none; vertical-align: middle; color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.12); border: 1px solid rgba(0, 240, 255, 0.4);
  text-shadow: none;
}
.topnav .nav-btn { border: 1px solid var(--neon-cyan); color: var(--neon-cyan);
  text-shadow: 0 0 4px var(--neon-cyan); }
.topnav .nav-btn:hover { background: var(--neon-cyan); color: var(--bg); }
.topnav .nav-btn:focus-visible {
  background: var(--neon-cyan);
  color: var(--bg);
  text-shadow: none;
  box-shadow: 0 0 15px var(--neon-cyan);
}
/* Sign Up — pink neon outline that fills on hover, mirroring the cyan
 * Login button so the nav pair reads as one themed set (not a flat pink
 * block). */
.topnav .nav-btn.primary { background: transparent; color: var(--neon-pink);
  border-color: var(--neon-pink); text-shadow: 0 0 4px var(--neon-pink); }
.topnav .nav-btn.primary:hover { background: var(--neon-pink); color: var(--bg);
  text-shadow: none; box-shadow: 0 0 15px var(--neon-pink); }
.topnav .nav-btn.primary:focus-visible {
  background: var(--neon-pink);
  color: var(--bg);
  text-shadow: none;
  box-shadow: 0 0 15px var(--neon-pink);
}

/* ===== Mobile nav — left slide-out drawer (CSS-only checkbox toggle) ===== */
/* Burger hidden on desktop; checkbox stays focusable but invisible so the
 * label toggles the nav with no JS. On <=720px the nav becomes a panel
 * that slides in from the LEFT edge; the ☰ button sits top-left and stays
 * above the drawer (higher z-index) so it doubles as the close control. A
 * dimmed backdrop covers the rest of the screen while open. */
.nav-burger { display: none; }
.nav-scrim { display: none; }
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
  /* backdrop-filter on the bar would establish a containing block for the
   * fixed drawer (trapping it inside the ~96px-tall header). Drop it on
   * mobile so the drawer's position:fixed resolves against the viewport.
   * Logo is centered; the ☰ floats at the left edge (absolute, out of flow). */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; justify-content: center; }
  .topbar .logo { align-items: center; text-align: center; }
  .nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; left: clamp(1rem, 4vw, 2.5rem); top: 50%; transform: translateY(-50%);
    z-index: 220; width: 42px; height: 38px;
    border: 1px solid var(--neon-cyan); border-radius: 6px;
    background: rgba(0, 0, 0, 0.45); color: var(--neon-cyan);
    font-size: 1.3rem; line-height: 1; cursor: pointer;
    text-shadow: 0 0 6px var(--neon-cyan); transition: all 0.2s;
  }
  .nav-burger:hover { background: var(--neon-cyan); color: var(--bg); text-shadow: none; }
  .topbar .nav-toggle:focus-visible ~ .nav-burger {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 3px;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  }
  /* burger glows pink while the drawer is open (acts as the close button) */
  .topbar .nav-toggle:checked ~ .nav-burger {
    border-color: var(--neon-pink); color: var(--neon-pink);
    text-shadow: 0 0 6px var(--neon-pink);
  }
  .topbar .nav-toggle:checked:focus-visible ~ .nav-burger {
    outline-color: var(--neon-pink);
    box-shadow: 0 0 12px rgba(255, 43, 214, 0.38);
  }

  /* the drawer — off-canvas left, slides in via transform */
  .topbar .topnav {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 210;
    width: min(82vw, 290px);
    flex-direction: column; align-items: stretch; gap: 0.4rem;
    margin: 0; padding: 4.5rem 1rem 1.5rem;
    background: linear-gradient(160deg, rgba(13, 13, 26, 0.98), rgba(7, 7, 13, 0.98));
    border-right: 1px solid var(--neon-cyan);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.65);
    overflow-y: auto;
    transform: translateX(-100%); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 0.28s ease, opacity 0.18s ease, visibility 0s linear 0.28s;
  }
  .topbar .nav-toggle:checked ~ .topnav {
    transform: translateX(0); opacity: 1; visibility: visible; pointer-events: auto;
    transition-delay: 0s;
  }

  /* dimmed backdrop while open — a real <label> for the toggle, so tapping
   * the empty area (right of the drawer) slides the menu back closed. */
  .topbar .nav-toggle:checked ~ .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 205;
    background: rgba(7, 7, 13, 0.62); cursor: pointer;
  }

  .topbar .topnav a {
    display: block; padding: 0.7rem 0.9rem; font-size: 0.9rem; letter-spacing: 0.08em;
    border: 1px solid var(--line); border-radius: 6px; background: rgba(0, 0, 0, 0.25);
  }
  .topbar .topnav a:hover,
  .topbar .topnav a.active,
  .topbar .topnav a[aria-current='page'] {
    border-color: var(--neon-cyan); color: var(--neon-cyan); background: rgba(0, 240, 255, 0.08);
  }
  .topbar .topnav .nav-btn { text-align: center; }
  /* landing-specific shrink rules no longer apply — drawer owns mobile nav */
  .landing .topnav a { font-size: 0.9rem; padding: 0.7rem 0.9rem; }
}

/* ===== Tier teaser on landing ===== */
.tier-teaser { padding: clamp(3rem, 7vw, 4rem) 2rem; max-width: 1100px; margin: 0 auto; position: relative; z-index: 5; }
.section-title {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.2rem);
  line-height: 1.12; text-align: center; letter-spacing: 0; margin-bottom: 2rem; color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-cyan); text-wrap: balance; overflow-wrap: anywhere;
}
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 700px) { .tier-grid { grid-template-columns: 1fr; } }
/* Notched-corner card — continuous neon edge via a layered fill (bg = edge colour
   + 1px-inset ::before interior) and a drop-shadow glow, because clip-path also
   clips border + box-shadow. isolation:isolate gives the ::before its stacking
   context for the no-glow base state. Same technique as .auth-card. */
.tier-card { background: var(--line); padding: 2rem; isolation: isolate;
  border-radius: 6px; position: relative; transition: all 0.25s;
  clip-path: polygon(0 0, 96% 0, 100% 6%, 100% 100%, 4% 100%, 0 94%); }
.tier-card::before { content: ''; position: absolute; inset: 1px; background: #0e0e1b; z-index: -1;
  clip-path: polygon(0 0, 96% 0, 100% 6%, 100% 100%, 4% 100%, 0 94%); }
.tier-card:hover { transform: translateY(-4px); filter: drop-shadow(0 0 12px rgba(0,240,255,0.3)); }
.tier-card.pro { background: var(--neon-pink); filter: drop-shadow(0 0 12px rgba(255,43,214,0.3)); }
.tier-card.pro:hover { filter: drop-shadow(0 0 12px rgba(255,43,214,0.3)) drop-shadow(0 0 12px rgba(0,240,255,0.3)); }
.tier-badge { position: absolute; top: -10px; right: 20px; background: var(--neon-pink);
  color: var(--bg); padding: 0.3rem 0.8rem; font-family: var(--font-display);
  font-weight: 700; font-size: 0.7rem; letter-spacing: 0.15em; }
.tier-name { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem;
  letter-spacing: 0.2em; color: var(--neon-cyan); text-shadow: 0 0 8px var(--neon-cyan); }
.tier-card.pro .tier-name { color: var(--neon-pink); text-shadow: 0 0 8px var(--neon-pink); }
.tier-price { font-family: var(--font-display); font-weight: 900; font-size: 2.5rem;
  color: var(--text); margin: 0.5rem 0 1rem; }
.tier-price small { font-size: 0.85rem; color: var(--text-dim); margin-left: 0.3rem; }
.tier-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.tier-card ul li { padding: 0.4rem 0; color: var(--text); font-size: 0.9rem; }
.tier-card .btn-neon { width: 100%; }

/* ===== Page main ===== */
.page-main {
  width: min(100%, 1100px); margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1rem, 4vw, 2rem);
  position: relative; z-index: 5;
}
.page-title {
  max-width: 920px; margin: 0 auto 0.8rem;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 5.8vw, 2.85rem);
  line-height: 1.16; letter-spacing: 0; text-align: center; color: var(--text);
  text-shadow: 0 0 18px rgba(0,240,255,0.28); text-wrap: balance; overflow-wrap: anywhere;
}
.page-sub {
  max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 2.8rem);
  text-align: center; color: var(--text-dim2); font-size: 0.98rem; line-height: 1.7;
}

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 920px; margin: 0 auto; align-items: stretch; }
@media (max-width: 800px) { .pricing-grid { grid-template-columns: 1fr; } }
/* Notched-corner card — continuous neon edge via layered fill + drop-shadow glow. See .auth-card. */
.pricing-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  background: var(--line); padding: clamp(1.5rem, 4vw, 2.5rem); isolation: isolate;
  border-radius: 6px; position: relative;
  clip-path: polygon(0 0, 96% 0, 100% 6%, 100% 100%, 4% 100%, 0 94%); }
.pricing-card::before { content: ''; position: absolute; inset: 1px; background: #0e0e1b; z-index: -1;
  clip-path: polygon(0 0, 96% 0, 100% 6%, 100% 100%, 4% 100%, 0 94%); }
.pricing-card.highlighted { background: var(--neon-pink); filter: drop-shadow(0 0 16px rgba(255,43,214,0.28)); }
.pc-badge { position: absolute; top: -12px; right: 25px; background: var(--neon-pink);
  color: var(--bg); padding: 0.3rem 1rem; font-family: var(--font-display);
  font-weight: 700; font-size: 0.7rem; letter-spacing: 0.15em; }
.pc-name { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem;
  letter-spacing: 0.08em; color: var(--neon-cyan); text-shadow: 0 0 8px var(--neon-cyan); }
.pricing-card.pro .pc-name { color: var(--neon-pink); text-shadow: 0 0 8px var(--neon-pink); }
.pc-price { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.35rem, 6vw, 3rem); line-height: 1; margin: 0.65rem 0; color: var(--text); }
.pc-price small { font-size: 0.9rem; color: var(--text-dim); margin-left: 0.3rem; }
.pc-desc { color: var(--text-dim); margin-bottom: 1.5rem; font-size: 0.9rem; }
.pc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  align-content: start;
  gap: 0.45rem;
}
.pc-features li {
  min-height: 2.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.52rem 0.65rem;
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.025);
  color: var(--text);
  line-height: 1.45;
}
.pc-features li.off {
  color: var(--text-dim);
  opacity: 0.62;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.015);
}
.pc-features[data-perks]:empty {
  min-height: 12rem;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 43, 214, 0.26);
  border-radius: 8px;
  background: rgba(255, 43, 214, 0.035);
}
.pc-features[data-perks]:empty::before {
  content: 'กำลังโหลดสิทธิ์ Pro...';
  color: var(--text-dim2);
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}
.pricing-card .btn-neon.full {
  align-self: end;
  margin-top: auto;
}
.btn-neon.full { width: 100%; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: clamp(2.4rem, 6vw, 4rem) auto 0; }
.faq h2 { font-family: var(--font-display); color: var(--neon-cyan);
  text-shadow: 0 0 6px var(--neon-cyan); margin-bottom: 1.2rem; letter-spacing: 0.02em; line-height: 1.25; }
.faq details {
  background: var(--surface-card-quiet); border: 1px solid var(--line-soft); padding: 0.85rem 1rem;
  margin-bottom: 0.75rem; border-radius: 8px; cursor: default;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 2.125rem;
  font-weight: 700;
  color: var(--neon-cyan);
  outline: none;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  text-wrap: balance;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-left: auto;
  border: 1px solid rgba(0, 240, 255, 0.32);
  border-radius: 999px;
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.16);
}
.faq summary:hover,
.faq summary:focus-visible { color: var(--neon-green); }
.faq summary:focus-visible::after,
.faq summary:hover::after {
  border-color: var(--neon-green);
  color: var(--neon-green);
}
.faq details[open] {
  border-color: rgba(255, 43, 214, 0.48);
  background: linear-gradient(180deg, rgba(255, 43, 214, 0.055), rgba(0, 240, 255, 0.025));
  box-shadow: 0 12px 30px rgba(0,0,0,0.2), inset 0 0 18px rgba(255, 43, 214, 0.035);
}
.faq details[open] summary::after {
  content: '–';
  border-color: rgba(255, 43, 214, 0.46);
  color: var(--neon-pink);
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.2);
}
.faq details p {
  margin: 0.7rem 0 0;
  padding: 0.75rem 0 0 0.1rem;
  border-top: 1px dashed rgba(0, 240, 255, 0.14);
  color: var(--text);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ===== Auth pages ===== */
html:has(body.auth-page) {
  height: auto;
  min-height: 100%;
}
body.auth-page {
  height: auto;
  min-height: 100vh;
}
.auth-main {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: clamp(0.85rem, 2vw, 1.2rem);
  position: relative;
  z-index: 5;
}
.auth-shell {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(min(100%, 360px), 460px);
  gap: clamp(0.85rem, 2vw, 1.25rem);
  align-items: stretch;
}
.auth-rail {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 0.9rem;
  min-height: 100%;
  padding: clamp(1.2rem, 2.4vw, 1.55rem);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(255, 43, 214, 0.06)),
    var(--surface-card);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28), inset 0 0 22px rgba(0, 240, 255, 0.035);
}
.auth-rail::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-yellow));
  opacity: 0.8;
}
.auth-rail::after {
  content: '';
  position: absolute;
  right: -4.8rem;
  bottom: -5.5rem;
  width: 13rem;
  height: 13rem;
  border: 1px solid rgba(0, 240, 255, 0.14);
  transform: rotate(45deg);
  opacity: 0.55;
  pointer-events: none;
}
.auth-rail-kicker {
  color: var(--neon-green);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}
.auth-rail h2 {
  margin: 0;
  max-width: 12ch;
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.12;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.auth-rail p {
  margin: 0;
  max-width: 36rem;
  color: var(--text);
  line-height: 1.7;
}
.auth-rail-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: 0.25rem 0 0;
  padding: 0;
}
.auth-rail-list li {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, auto);
  grid-template-areas: 'mark title' 'mark copy';
  column-gap: 0.75rem;
  align-items: center;
  min-height: 3.65rem;
  padding: 0.64rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}
.auth-rail-list li span {
  grid-area: mark;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(0, 240, 255, 0.36);
  border-radius: 7px;
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-size: 0.72rem;
}
.auth-rail-list strong {
  grid-area: title;
  color: var(--neon-pink);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.auth-rail-list em {
  grid-area: copy;
  color: var(--text-dim);
  font-style: normal;
  line-height: 1.45;
  font-size: 0.86rem;
}
.auth-rail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
}
.auth-rail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.72rem;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 7px;
  color: var(--neon-cyan);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  background: rgba(0, 240, 255, 0.035);
}
.auth-rail-actions a:hover,
.auth-rail-actions a:focus-visible {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.16);
}
/* Notched-corner card. clip-path also clips `border` + `box-shadow`, so a plain border
   leaves the two diagonal cuts bare (no edge, no glow). Draw the neon edge as a layered fill:
   the element bg is the border colour, a 1px-inset ::before holds an opaque interior
   (#0e0e1b ~= --panel composited over --bg), and the glow moves to drop-shadow so it
   traces the notch silhouette instead of being clipped to the bounding box. */
.auth-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink) 58%, var(--neon-yellow));
  padding: clamp(1.25rem, 3vw, 1.9rem);
  max-width: 460px;
  width: 100%;
  filter: drop-shadow(0 0 14px rgba(0,240,255,0.4));
  clip-path: polygon(0 0, 95% 0, 100% 8%, 100% 100%, 5% 100%, 0 92%);
  align-self: center;
}
.auth-card::before { content: ''; position: absolute; inset: 1px; background: #0e0e1b;
  clip-path: polygon(0 0, 95% 0, 100% 8%, 100% 100%, 5% 100%, 0 92%); z-index: -1; }
.auth-card::after {
  content: '';
  position: absolute;
  inset: 0 10% auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-yellow));
  opacity: 0.85;
  pointer-events: none;
}
/* Login | Sign Up tab row at the top of every auth card — same markup on
   both /login and /signup; the active class flips per page. Click navigates
   to the other page (full load; both pages share the same auth-card chrome). */
.auth-tabs {
  display: flex;
  gap: 0.25rem;
  margin: -0.45rem 0 1.35rem;
  padding: 0.25rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}
.auth-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.55rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s, background 0.2s, box-shadow 0.2s;
}
.auth-tab:hover { color: var(--neon-cyan); background: rgba(0, 240, 255, 0.06); }
.auth-tab.is-active {
  color: var(--neon-cyan);
  border-color: rgba(0, 240, 255, 0.4);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.16), rgba(0, 0, 0, 0.18));
  box-shadow: inset 0 0 14px rgba(0, 240, 255, 0.08);
  text-shadow: 0 0 8px var(--neon-cyan);
}
.auth-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.1rem, 8vw, 2.5rem);
  letter-spacing: 0.12em; color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan);
  text-align: center; margin-bottom: 0.3rem; }
.auth-sub { text-align: center; color: var(--text-dim2); margin: 0 auto 1.55rem; max-width: 30rem; font-size: 0.9rem; line-height: 1.55; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form label { display: flex; flex-direction: column; gap: 0.3rem;
  min-width: 0; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--text-dim); }
.auth-form label:focus-within { color: var(--neon-cyan); }
.auth-form label small { display: block; margin-top: 0.12rem; color: var(--text-dim); opacity: 0.68; line-height: 1.35; text-transform: none; }
.auth-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 2.75rem;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.035), rgba(0, 0, 0, 0.52));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.72rem 0.9rem;
  color: var(--text);
  caret-color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  outline: none;
  color-scheme: dark;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-form input:not([type="checkbox"]):focus,
.auth-form input:not([type="checkbox"]):focus-visible {
  border-color: var(--neon-cyan);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.07), rgba(0, 0, 0, 0.56));
  box-shadow: 0 0 9px rgba(0, 240, 255, 0.42);
}
.auth-form input:not([type="checkbox"]):-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--neon-cyan);
  transition: background-color 9999s ease-out;
  box-shadow: 0 0 0 1000px #0c0c18 inset, 0 0 9px rgba(0, 240, 255, 0.28);
}
.auth-form input:not([type="checkbox"]):user-invalid {
  border-color: rgba(255, 56, 96, 0.7);
  box-shadow: 0 0 8px rgba(255, 56, 96, 0.26);
}
.auth-form .btn-neon.full {
  min-height: 3rem;
  margin-top: 0.15rem;
}
.auth-err {
  min-height: 1.2rem;
  color: var(--neon-red);
  font-size: 0.85rem;
  line-height: 1.55;
}
.auth-err:not(:empty) {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.68rem 0.82rem;
  border: 1px solid rgba(255, 56, 96, 0.32);
  border-radius: 8px;
  background: rgba(255, 56, 96, 0.055);
  box-shadow: inset 0 0 14px rgba(255, 56, 96, 0.035);
}
.auth-err:not(:empty)::before {
  content: '!';
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.08rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.72rem;
  line-height: 1;
}
.auth-err.success { color: var(--neon-green); }
.auth-err.success:not(:empty) {
  border-color: rgba(0, 255, 149, 0.34);
  background: rgba(0, 255, 149, 0.06);
  box-shadow: inset 0 0 14px rgba(0, 255, 149, 0.035);
}
.auth-err.success:not(:empty)::before { content: '✓'; }
.auth-note {
  position: relative;
  color: var(--text-dim);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-left: 3px solid var(--neon-cyan);
  border-radius: 8px;
  padding: 0.75rem 0.85rem 0.75rem 2.25rem;
  background: rgba(0, 240, 255, 0.035);
  font-size: 0.82rem;
  line-height: 1.5;
}
.auth-note::before {
  content: 'i';
  position: absolute;
  left: 0.78rem;
  top: 0.78rem;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: 50%;
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-size: 0.68rem;
  line-height: 1;
}
.auth-form .age-gate-check {
  display: flex;
  flex-direction: row;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-dim2);
  font-size: 0.82rem;
  letter-spacing: normal;
  line-height: 1.5;
  text-transform: none;
}
.auth-form .age-gate-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.32);
}
.auth-form .age-gate-check input[type="checkbox"]:checked {
  border-color: var(--neon-cyan);
  background: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.38);
}
.auth-form .age-gate-check input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  width: 8px;
  height: 15px;
  margin: 6px 0 0 12px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.auth-form .age-gate-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}
.auth-form .age-gate-check a {
  display: inline-flex;
  align-items: center;
  min-height: 2.125rem;
  padding: 0 0.2rem;
  border-radius: 5px;
  color: var(--neon-cyan);
}
.auth-form .age-gate-check a:hover,
.auth-form .age-gate-check a:focus-visible { background: rgba(0, 240, 255, 0.08); }
.auth-footer {
  margin-top: 1.45rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.75;
}
.auth-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.125rem;
  padding: 0 0.25rem;
  border-radius: 5px;
  color: var(--neon-pink);
  text-decoration: none;
}
.auth-footer a:hover,
.auth-footer a:focus-visible { background: rgba(255,43,214,0.08); }

/* ===== Error page ===== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: var(--bg);
  text-align: center;
}
.error-main {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: min(100%, 680px);
  padding: clamp(1.6rem, 5vw, 2.4rem);
  background: linear-gradient(140deg, rgba(0, 240, 255, 0.42), rgba(255, 43, 214, 0.34));
  clip-path: polygon(0 0, 96% 0, 100% 7%, 100% 100%, 4% 100%, 0 93%);
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.24));
  isolation: isolate;
}
.error-main::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0, rgba(0, 240, 255, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(255, 43, 214, 0.055), transparent 70%),
    linear-gradient(180deg, rgba(0, 240, 255, 0.045), rgba(255, 255, 255, 0.018)),
    #0e0e1b;
  clip-path: inherit;
}
.error-main::after {
  content: '';
  display: block;
  width: min(100%, 260px);
  height: 2px;
  margin: 1.4rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-pink), transparent);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.38);
}
.error-kicker {
  margin: 0 0 0.8rem;
  color: var(--neon-green);
  font-family: var(--font-display);
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-shadow: 0 0 8px rgba(0, 255, 149, 0.55);
}
.error-code {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 14vw, 7rem);
  line-height: 1.12;
  padding-bottom: 0.04em;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  text-shadow: 0 0 22px var(--neon-cyan);
}
.error-title {
  margin: 0.7rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--text);
}
.error-sub {
  max-width: 460px;
  margin: 0 auto 1.25rem;
  color: var(--text-dim2);
  line-height: 1.6;
}
.error-help {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 520px;
  margin: 0 auto 1.45rem;
}
.error-help a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  min-width: min(100%, 7.5rem);
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.055);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s;
}
.error-help a:hover,
.error-help a:focus-visible {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.22);
  outline: none;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.error-actions .btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 10.5rem;
}
.error-actions .btn-neon span {
  position: relative;
  z-index: 1;
}

/* ===== Account dashboard ===== */
.account-main { max-width: 1180px; }
.account-main.is-loading {
  min-height: 60vh;
}
.account-main.is-loading > * {
  visibility: hidden;
}
.account-main.is-loading::before {
  content: 'กำลังโหลดบัญชี...';
  display: grid;
  place-items: center;
  width: min(100%, 460px);
  min-height: 6rem;
  margin: clamp(3rem, 12vh, 6rem) auto 0;
  padding: 1rem;
  border: 1px dashed rgba(0, 240, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.055), rgba(255, 255, 255, 0.018));
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-size: 0.86rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.45);
  box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.04);
  pointer-events: none;
}

.account-head {
  display: flex; justify-content: space-between; align-items: end; gap: 1.2rem;
  margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.account-title {
  margin: 0 0 0.5rem; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: 0; line-height: 1.1;
  color: var(--text); text-shadow: 0 0 16px rgba(0,240,255,0.45);
}
.account-lead {
  max-width: 720px; color: var(--text-dim); line-height: 1.7; font-size: 0.95rem;
}
.account-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.55rem; }

/* Account action buttons (header CTAs + profile-card actions: เริ่มแชท,
 * ดูโปรไฟล์, ดูหน้า Profile, แก้ไข). Clean neon pills that fit the cyberpunk
 * theme — scoped to these containers so the dense friend/room list buttons
 * (.tiny-btn elsewhere) keep their compact look. */
.account-head-actions .tiny-btn,
.account-profile-actions .tiny-btn,
.account-card-head .tiny-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.05rem;
  min-height: 36px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.2s;
}
.account-head-actions .tiny-btn:hover,
.account-profile-actions .tiny-btn:hover,
.account-card-head .tiny-btn:hover {
  border-color: var(--neon-cyan); color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.22);
}
/* primary = cyan-outline + glow that fills on hover (replaces the flat pink) */
.account-head-actions .tiny-btn.primary,
.account-profile-actions .tiny-btn.primary,
.account-card-head .tiny-btn.primary {
  background: transparent;
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  text-shadow: 0 0 6px var(--neon-cyan);
}
.account-head-actions .tiny-btn.primary:hover,
.account-profile-actions .tiny-btn.primary:hover,
.account-card-head .tiny-btn.primary:hover {
  background: var(--neon-cyan); color: var(--bg); text-shadow: none;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
}
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; }
.acc-grid > .full-width { grid-column: 1 / -1; }
.account-overview-grid { margin-bottom: 1.2rem; align-items: stretch; }
/* Top zone: the account-info cards (profile / membership) sit in an equal
   2-column row, each sized to its own content (align:start, no forced
   min-height). The privacy + on-device-lock settings moved to the /chat settings
   modal. The profile editor carries .full-width, so .acc-grid > .full-width
   (above) drops it onto its own full-width row 2 — it no longer has to match the
   height of the side cards, which is what used to leave a large empty gap. */
.account-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
/* TOOLS zone is a SEPARATE grid below the dashboard. It reuses the symmetric
   base .acc-grid (equal 1fr columns) so peer cards line up — Friends|Blocked
   and Saved|Muted render at equal width — instead of inheriting the dashboard's
   asymmetric 0.78/1.55 split (which left those cards lopsided). Reveal + stretch
   come from .account-overview-grid; full-width items (TOOLS title, notifications,
   payment history) span both columns via the .acc-grid > .full-width rule above. */
.account-tools-grid { margin-top: 0.5rem; }
/* ----- Account section tabs (HUD bar; only the active label glows) ----- */
.acc-tabs {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.acc-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim2);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.7rem 0.95rem;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}
.acc-tab:hover { color: var(--neon-cyan); }
.acc-tab.is-active {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
  text-shadow: 0 0 6px var(--neon-cyan);
}
.acc-tabpanel[hidden] { display: none; }
/* Account eyebrows are small static labels — keep them crisp (no glow) to match
   the chat HUD's glow-discipline; the green glow stays on other pages. */
.account-main .panel-kicker { color: var(--text-dim2); text-shadow: none; }

.acc-card {
  background:
    linear-gradient(145deg, rgba(0,240,255,0.055), transparent 34%),
    linear-gradient(315deg, rgba(255,43,214,0.045), transparent 38%),
    var(--panel);
  border: 1px solid var(--line); padding: 1.25rem; border-radius: var(--r-md);
  box-shadow: 0 0 20px rgba(0,240,255,0.08);
}
.acc-card { transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s; }
.acc-card:hover {
  border-color: rgba(0,240,255,0.45);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}
.acc-card h2 {
  font-family: var(--font-display); color: var(--neon-cyan);
  letter-spacing: 0.06em; margin: 0 0 1rem; font-size: 1.05rem;
  text-shadow: 0 0 6px var(--neon-cyan);
}
/* Info cards size to their content — no min-height floor, no bottom-anchored CTA
 * — so a sparse free-tier card doesn't show a dead gap. The upgrade button sits
 * right after the perks; the full-width editor below means a card no longer needs
 * to stretch to match a tall neighbour. */
.account-sub-card #sub-actions { padding-top: 1rem; }
.sub-perks { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.5rem 1.4rem; }
.sub-perks li {
  position: relative; padding-left: 1.4rem; color: var(--text-dim);
  font-size: 0.86rem; line-height: 1.5;
}
.sub-perks li::before {
  content: "✦"; position: absolute; left: 0; color: var(--neon-pink);
  text-shadow: 0 0 6px var(--neon-pink);
}
/* "พร้อมรับ" callout (account-page.js loadProClaimNudge). Each ready perk gets
   its own deep-link button to /coins#pro-monthly / #pro-spotlight so the user
   lands on the section, not at the top of /coins. */
.pro-claim-nudge {
  margin-top: 0.8rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--neon-cyan);
  border-radius: 6px;
  color: var(--neon-cyan);
  font-size: 0.88em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
}
.pro-claim-nudge .pcn-lead { font-family: var(--font-display); letter-spacing: 0.05em; }
.pro-claim-nudge .pcn-btn { margin-left: auto; }
.pro-claim-nudge .pcn-btn + .pcn-btn { margin-left: 0; }
/* Brief glow when the URL hash targets a deep-linked section — gives the user
   a quick visual confirmation that the link landed in the right place. Used by
   the /account "พร้อมรับ" nudges (→ /coins#...) and the /coins spend-menu
   gallery card (→ /account#profile-editor-card). */
#daily-bonus:target, #pro-monthly:target, #pro-spotlight:target,
#profile-editor-card:target, #account-privacy-card:target,
#appearance-card:target,
#coin-payments:target, #coin-ledger:target {
  animation: nudge-target-glow 1.6s ease-out;
}
.payment-history-more { margin-top: 0.6rem; }
.payment-history-more .tiny-btn { font-size: 0.78rem; }
/* "ทำไม AepChat" overview hub — short summary cards that link out to the 7
   deep-dive SEO sub-pages. Layout is a responsive 2/3-column auto-fit grid; the
   neon palette is reused (no new colors/fonts/effects). */
.why-aepchat-page .why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
  margin: 1.8rem 0 1.4rem;
}
.why-aepchat-page .why-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 190px;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(0, 240, 255, 0.07), transparent 72%),
    linear-gradient(20deg, rgba(255, 43, 214, 0.055), transparent 64%),
    rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.why-aepchat-page .why-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  opacity: 0.8;
}
.why-aepchat-page .why-card:nth-child(3n + 2)::before {
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-yellow));
}
.why-aepchat-page .why-card:nth-child(3n)::before {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
}
.why-aepchat-page .why-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.22);
}
.why-aepchat-page .why-card h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
}
.why-aepchat-page .why-icon {
  font-size: 1.15rem;
  line-height: 1;
}
.why-aepchat-page .why-card p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.55;
  font-size: 0.86rem;
}
.why-aepchat-page .why-card .tiny-btn {
  align-self: flex-start;
  margin-top: auto;
  min-height: 2.125rem;
}
.why-aepchat-page .why-start {
  margin: 2rem 0 1.4rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(255, 43, 214, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 43, 214, 0.08), transparent 70%),
    rgba(0, 0, 0, 0.35);
}
.why-aepchat-page .why-start h2 {
  font-family: var(--font-display);
  color: var(--neon-pink);
  letter-spacing: 0.06em;
  font-size: 1.1rem;
  margin: 0 0 0.7rem;
}
.why-aepchat-page .why-start-steps {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  color: var(--text);
  line-height: 1.7;
}
.why-aepchat-page .why-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
/* Welcome banner shown once on /account?upgraded=1 after a Pro purchase.
   Renders inline (not a modal) with the claim CTA + next-step deep-links. */
.welcome-pro-banner {
  position: relative;
  margin: 0 0 1.4rem;
  padding: 1.3rem 1.5rem 1.4rem;
  border: 1px solid var(--neon-pink);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 43, 214, 0.15), rgba(0, 240, 255, 0.1) 65%, transparent 95%),
    rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 22px rgba(255, 43, 214, 0.25);
  overflow: hidden;
}
.welcome-pro-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 43, 214, 0.06) 0 1px, transparent 1px 4px);
  opacity: 0.6;
}
.welcome-pro-banner > * { position: relative; }
.welcome-pro-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--text-dim);
  color: var(--text-dim);
  font-family: var(--font-mono);
  line-height: 1;
  cursor: pointer;
}
.welcome-pro-close:hover { color: var(--neon-pink); border-color: var(--neon-pink); }
.welcome-pro-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--neon-pink);
  text-shadow: 0 0 12px rgba(255, 43, 214, 0.55);
}
.welcome-pro-sub {
  margin: 0.45rem 0 1rem;
  color: var(--text);
  line-height: 1.55;
  font-size: 0.92rem;
}
.welcome-pro-sub strong { color: var(--neon-cyan); font-family: var(--font-mono); }
.welcome-pro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
@keyframes nudge-target-glow {
  0% { box-shadow: 0 0 0 2px var(--neon-cyan), 0 0 18px rgba(0, 240, 255, 0.5); }
  100% { box-shadow: none; }
}
.account-card-head {
  display: flex; justify-content: space-between; align-items: start; gap: 1rem;
  margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(0,240,255,0.16);
}
.account-card-head h2 { margin: 0.25rem 0 0.35rem; font-size: 1.25rem; letter-spacing: 0.04em; }
.account-card-head p { max-width: 620px; color: var(--text-dim); line-height: 1.6; font-size: 0.9rem; }
.account-profile-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.account-editor-card { padding: 1.2rem; display: flex; flex-direction: column; }
.account-editor-layout {
  display: grid; grid-template-columns: minmax(230px, 0.78fr) minmax(0, 1.32fr);
  gap: 1rem; align-items: start;
}
.account-editor-side {
  display: grid; grid-template-rows: auto auto; gap: 1rem;
  align-content: start; min-width: 0;
}
/* Live "identity badge" — kept content-height so it does not create a tall
 * empty column; the upload controls sit directly below it to use the space. */
.account-profile-preview {
  position: relative; display: flex; flex-direction: column; overflow: hidden; align-self: start;
  border: 1px solid rgba(0,240,255,0.25); border-radius: 8px;
  background:
    repeating-linear-gradient(180deg, rgba(0,240,255,0.04) 0 1px, transparent 1px 5px),
    linear-gradient(160deg, rgba(15,15,30,0.92), rgba(7,7,13,0.82));
}
.account-profile-preview::after {
  content: "// LIVE PREVIEW"; padding: 0.6rem 1rem;
  font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 0.22em;
  color: var(--text-dim); border-top: 1px dashed rgba(0,240,255,0.18);
}
.account-preview-banner {
  position: relative; overflow: hidden; height: 128px; background:
    linear-gradient(120deg, rgba(0,240,255,0.22), rgba(255,43,214,0.22)),
    rgba(0,0,0,0.35);
  background-size: cover; background-position: center; border-bottom: 1px solid var(--line);
}
.account-preview-banner-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.account-preview-body { padding: 0 1rem 1rem; }
/* Avatar placeholders never collapse to a black void — when no image is
 * set (inline background-image:none), the neon-tinted base shows through. */
.account-preview-avatar {
  display: block; width: 78px; height: 78px; margin-top: -39px; border-radius: 10px;
  border: 1px solid var(--neon-cyan); overflow: hidden;
  box-shadow: 0 0 18px rgba(0,240,255,0.34);
  background-color: rgba(0,240,255,0.12);
}
.account-preview-name {
  margin-top: 0.75rem; color: var(--neon-cyan); font-family: var(--font-display);
  font-size: 1.25rem; line-height: 1.25; overflow-wrap: anywhere;
}
.account-preview-user { color: var(--text-dim); font-size: 0.82rem; margin-top: 0.15rem; }
.account-preview-status {
  margin-top: 0.8rem; color: var(--text); line-height: 1.55; overflow-wrap: anywhere;
}
.account-preview-bio {
  margin-top: 0.75rem; color: var(--text-dim); font-size: 0.88rem; line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.account-preview-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.account-preview-chips span {
  border: 1px solid rgba(0,240,255,0.18); border-radius: 999px; padding: 0.28rem 0.6rem;
  color: var(--text-dim); background: rgba(0,0,0,0.22); font-size: 0.76rem;
}
.account-profile-form { display: grid; gap: 1rem; min-width: 0; }
.account-form-section {
  display: grid; gap: 0.8rem; padding: 1rem; border: 1px solid rgba(0,240,255,0.14);
  border-radius: 8px; background: rgba(0,0,0,0.18);
}
.account-form-section h3 {
  margin: 0; color: var(--neon-green); font-family: var(--font-display);
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.account-profile-grid, .account-upload-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem;
}
.account-upload-section .account-upload-grid { grid-template-columns: 1fr; }
.account-profile-grid label, .upload-field {
  display: grid; gap: 0.38rem; min-width: 0; color: var(--text-dim); font-size: 0.8rem;
}
.field-label {
  color: var(--text-dim2); font-family: var(--font-display); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.upload-field small { color: var(--text-dim); line-height: 1.45; opacity: 0.82; }
.account-profile-span { grid-column: 1 / -1; }
.profile-editor-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.1rem; }
/* Centered save/submit CTA row — the primary action of a settings form reads
   as a deliberate button, not a left-shoved control. */
.form-actions { display: flex; justify-content: center; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.8rem; }
.profile-save-result { color: var(--neon-green); font-size: 0.86rem; min-height: 1.1rem; }

.profile-row { display: flex; align-items: center; gap: 1rem; padding: 0.35rem 0; }
.profile-avatar {
  display: block; width: 64px; height: 64px; flex: 0 0 auto; border-radius: 10px; border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0,240,255,0.32); overflow: hidden;
  background-color: rgba(0,240,255,0.12);
}
.profile-meta { line-height: 1.5; min-width: 0; }
.profile-meta strong { color: var(--neon-cyan); font-size: 1.15rem; overflow-wrap: anywhere; }
.profile-meta small { color: var(--text-dim); }
.theme-block { margin-top: 1rem; }
.theme-label {
  color: var(--text-dim2); font-family: var(--font-display); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.account-section-title {
  padding: 0.4rem 0 0.2rem; border-bottom: 1px solid rgba(0,240,255,0.18);
}
.account-section-title h2 {
  margin: 0.25rem 0 0.6rem; color: var(--text); font-family: var(--font-display);
  font-size: 1.25rem; letter-spacing: 0.03em;
}

/* One orchestrated page-load reveal — the dashboard cards fade-rise in
 * sequence so the page assembles itself instead of snapping in flat.
 * Disabled under prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  /* Scoped to the VISIBLE panel: cards in a hidden tab must not pre-run the
     rise (they'd stay at opacity:0); switching tabs re-plays it for that panel. */
  .account-head,
  .acc-tabpanel:not([hidden]) .account-overview-grid > .acc-card {
    opacity: 0; transform: translateY(14px);
    animation: acc-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .account-head { animation-delay: 0s; }
  .acc-tabpanel:not([hidden]) .account-overview-grid > .acc-card:nth-child(1) { animation-delay: 0.06s; }
  .acc-tabpanel:not([hidden]) .account-overview-grid > .acc-card:nth-child(2) { animation-delay: 0.12s; }
  .acc-tabpanel:not([hidden]) .account-overview-grid > .acc-card:nth-child(3) { animation-delay: 0.18s; }
  .acc-tabpanel:not([hidden]) .account-overview-grid > .acc-card:nth-child(n+4) { animation-delay: 0.24s; }
}
@keyframes acc-rise { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .acc-grid { grid-template-columns: 1fr; }
  .account-info-grid { grid-template-columns: 1fr; }
  .account-head { align-items: start; flex-direction: column; }
  .account-head-actions { justify-content: flex-start; }
  .account-editor-layout { grid-template-columns: 1fr; }
  .account-profile-preview { position: relative; top: auto; min-height: auto; }
}
@media (max-width: 620px) {
  .acc-tab { padding: 0.6rem 0.75rem; font-size: 0.72rem; }
  .acc-card .tiny-btn { min-height: 38px; }
  .inline-btn { min-height: 40px; padding: 0.6rem 1rem; }
  .add-friend input { min-height: 40px; }
  .discovery-chip { min-height: 40px; }
  .profile-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .stories-compose { grid-template-columns: 1fr; }
  .stories-compose .btn-neon { width: 100%; }
}
/* Touch devices: the gallery delete reveals on hover, which never fires on
   touch — keep it visible with a larger tap target there. */
@media (hover: none) {
  .gallery-del { opacity: 1; width: 40px; height: 40px; }
}
.tier-pill { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px;
  font-size: 0.7rem; letter-spacing: 0.15em; font-weight: 700; margin-left: 0.5rem; }
.tier-pill.free { background: rgba(0,240,255,0.15); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); }
.tier-pill.pro { background: var(--neon-pink); color: var(--bg); }

.theme-picker { display: flex; gap: 0.5rem; margin-top: 0.8rem; flex-wrap: wrap; }
.theme-swatch { position: relative; overflow: hidden; width: 40px; height: 40px; border-radius: 4px; cursor: pointer;
  border: 2px solid transparent; transition: all 0.2s; background: linear-gradient(135deg, var(--swatch-a) 50%, var(--swatch-b) 50%); }
.theme-swatch-cyberpunk { --swatch-a: #00f0ff; --swatch-b: #ff2bd6; }
.theme-swatch-sakura { --swatch-a: #ff99cc; --swatch-b: #ffccdd; }
.theme-swatch-matrix { --swatch-a: #00ff66; --swatch-b: #003322; }
.theme-swatch-sunset { --swatch-a: #ff6600; --swatch-b: #ffcc00; }
.theme-swatch-ocean { --swatch-a: #0099ff; --swatch-b: #00ccff; }
.theme-swatch-royal { --swatch-a: #9933ff; --swatch-b: #ffcc33; }
.theme-swatch-blood { --swatch-a: #ff0033; --swatch-b: #660000; }
.theme-swatch-mono { --swatch-a: #ffffff; --swatch-b: #888888; }
.theme-swatch-gold { --swatch-a: #ffcc00; --swatch-b: #996600; }
.theme-swatch-mint { --swatch-a: #00ffcc; --swatch-b: #88ffdd; }
.theme-swatch:hover { transform: scale(1.1); }
.theme-swatch.selected { border-color: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }
.theme-swatch.locked { opacity: 0.72; }
.theme-swatch.locked::after {
  content: 'PRO'; position: absolute; top: 3px; right: 3px; padding: 1px 3px; border-radius: 3px;
  background: rgba(0,0,0,0.72); color: var(--neon-yellow); font-size: 0.52rem; line-height: 1.2;
}

.friend-row, .room-row { display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0.5rem; border-bottom: 1px dashed rgba(0,240,255,0.1); }
.friend-row:last-child, .room-row:last-child { border: none; }
.friend-name, .room-name { color: var(--text); font-size: 0.95rem; }
.friend-row small, .room-row small { color: var(--text-dim); font-size: 0.75rem; }
.presence-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 0.5rem; vertical-align: middle; }
.presence-dot.online { background: #00ff66; box-shadow: 0 0 6px #00ff66, 0 0 2px #00ff66 inset; }
.presence-dot.offline { background: transparent; border: 1px solid var(--text-dim); }
.saved-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas:
  "meta meta" "text btn"; gap: 0.4rem 0.6rem;
  padding: 0.7rem 0.5rem; border-bottom: 1px dashed rgba(0,240,255,0.1); }
.saved-row:last-child { border: none; }
.saved-meta { grid-area: meta; display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: var(--text); }
.saved-text { grid-area: text; color: var(--text-dim); font-size: 0.9rem;
  white-space: pre-wrap; word-break: break-word; padding-left: 0.2rem;
  border-left: 2px solid #ffcc00; padding-left: 0.6rem; }
.saved-row button[data-unsave] { grid-area: btn; align-self: end; }
.friend-actions, .room-actions { display: flex; gap: 0.4rem; }

/* Notifications inbox (account page) — built from the same neon vocabulary as
 * .friend-row: dashed cyan separators, pink unread accent. No new palette. */
.notif-badge {
  display: inline-block; min-width: 1.4em; padding: 0.05em 0.45em;
  margin-left: 0.4rem; border-radius: 999px; background: var(--neon-pink);
  color: var(--bg); font-family: var(--font-display); font-size: 0.7rem;
  font-weight: 700; vertical-align: middle; text-shadow: none;
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.55);
}
/* Shared empty-state for account list cards — keeps friends/blocks/saved/muted/
 * payments/notifications uniform (centered, dimmed) instead of each carrying its
 * own ad-hoc inline style. */
.acc-empty,
.notif-empty,
.empty-social {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.5rem;
  min-height: 4.5rem;
  padding: 1rem;
  border: 1px dashed rgba(0, 240, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.045), rgba(255, 255, 255, 0.018));
  color: var(--text-dim2);
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: center;
  box-shadow: inset 0 0 16px rgba(0, 240, 255, 0.035);
}
.acc-empty::before,
.notif-empty::before,
.empty-social::before {
  content: '';
  width: 2.3rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-pink), transparent);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.38);
}
.sub-status-pro {
  color: var(--neon-pink);
  text-shadow: 0 0 8px rgba(255,43,214,0.42);
}
.sub-free-note,
.friend-status,
.saved-room,
.saved-time {
  color: var(--text-dim);
}
.friend-row .friend-status.is-online {
  color: var(--neon-green, #00ff66);
}
.saved-time {
  margin-left: auto;
}
.pro-recap-coins {
  margin-top: 8px;
  color: var(--neon-cyan);
  font-size: 0.85em;
}
.notif-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.notif-row {
  position: relative;
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 4.3rem;
  padding: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.24);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.025);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.notif-row::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--neon-cyan), transparent);
  opacity: 0.35;
}
.notif-row:hover,
.notif-row:focus-visible {
  border-color: rgba(0, 240, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.11), rgba(255, 43, 214, 0.045)),
    rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.13);
  outline: none;
  transform: translateY(-1px);
}
.notif-row.unread {
  border-color: rgba(255, 43, 214, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 43, 214, 0.11), rgba(0, 240, 255, 0.05)),
    rgba(0, 0, 0, 0.3);
}
.notif-row.unread::before {
  background: linear-gradient(180deg, var(--neon-pink), var(--neon-cyan));
  opacity: 0.95;
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.45);
}
.notif-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.06);
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}
.notif-body {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}
.notif-text {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.notif-row.unread .notif-text { color: #fff; }
.notif-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.notif-kind,
.notif-time,
.notif-unread-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1.2;
}
.notif-kind {
  border: 1px solid rgba(0, 240, 255, 0.16);
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.055);
}
.notif-time {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.035);
}
.notif-unread-chip {
  color: var(--bg);
  background: var(--neon-pink);
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.4);
}
/* Per-notification delete (✕) in the in-chat notifications panel. */
.notif-del-btn {
  flex-shrink: 0; align-self: center; background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 0.85rem; line-height: 1; padding: 0.2rem 0.35rem; opacity: 0.6;
}
.notif-del-btn:hover { color: var(--neon-red); opacity: 1; }

/* Unread-count pill appended to the Account nav link by /js/nav-notify.js. */
.nav-notif-badge {
  display: inline-block; min-width: 1.5em; margin-left: 0.35rem;
  padding: 0.02em 0.4em; border-radius: 999px;
  background: var(--neon-pink); color: var(--bg);
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 700;
  line-height: 1.6; vertical-align: middle; text-align: center; text-shadow: none;
  box-shadow: 0 0 8px rgba(255, 43, 214, 0.6);
}

/* Inline action buttons — .tiny-btn (lists in /account) and .social-btn
 * (feed actions on /board) share their entire color vocabulary;
 * only padding/font-size differ so we don't change either's footprint.
 * Keep additions to the merged selector below so a new "flavor" picks
 * up hover + primary + danger without re-stating them. */
.tiny-btn, .social-btn, .feed-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.125rem;
  min-width: 0;
  line-height: 1.25;
  text-align: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-mono);
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.tiny-btn { padding: 0.3rem 0.7rem; font-size: 0.75rem; border-radius: 5px; }
.social-btn, .feed-actions button { padding: 0.45rem 0.7rem; border-radius: 6px; }

.tiny-btn:hover, .social-btn:hover, .feed-actions button:hover {
  border-color: var(--neon-cyan); color: var(--neon-cyan);
}
.tiny-btn.danger:hover, .social-btn.danger:hover, .feed-actions button.danger:hover {
  border-color: var(--neon-red); color: var(--neon-red);
}
.tiny-btn.primary, .feed-actions button.primary {
  background: var(--neon-pink); color: var(--bg); border-color: var(--neon-pink);
}

/* Primary social CTA — the prominent action on social pages (board "post",
 * online "เข้าแชททันที", send gift, save profile). Polished cyan→pink
 * gradient with a neon glow + a sheen that sweeps across on hover, instead
 * of the old flat pink rectangle. Distinct from the flat list .primary above. */
.social-btn.primary {
  position: relative;
  border: 1px solid transparent;
  color: var(--bg);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.5rem 1.15rem;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
  box-shadow: 0 0 16px rgba(177, 75, 255, 0.34), 0 0 6px rgba(0, 240, 255, 0.4);
  overflow: hidden;
}
.social-btn.primary::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.4) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform 0.55s ease;
}
.social-btn.primary:hover {
  color: var(--bg); border-color: transparent; transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(177, 75, 255, 0.5), 0 0 10px rgba(0, 240, 255, 0.5);
}
.social-btn.primary:hover::after { transform: translateX(130%); }
.social-btn.primary:active { transform: translateY(0); }

.add-friend { display: flex; gap: 0.5rem; margin-top: 1rem; }
.add-friend input { flex: 1; background: rgba(0,0,0,0.4);
  border: 1px solid var(--line); padding: 0.5rem 0.7rem; color: var(--text);
  border-radius: 3px; font-family: var(--font-mono); font-size: 0.9rem; }

/* Compact inline form button — pairs with .add-friend inputs and
 * any [ input ][ button ] row. Rectangular neon, sized to the adjacent input
 * (same 0.5rem vertical padding + radius + mono font -> equal height). This is
 * NOT the .btn-neon hero (no clip-path skew / Orbitron) — that one is for
 * standalone CTAs and looks oversized crammed next to an input. */
.inline-btn {
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.9rem;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
}
.inline-btn:hover {
  background: var(--neon-cyan); color: var(--bg);
  text-shadow: none; box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}
.inline-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.pay-row { display: flex; justify-content: space-between; padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(0,240,255,0.1); font-size: 0.9rem; }
.pay-row .pay-status { font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 999px; }
.pay-status.succeeded { background: rgba(0,255,149,0.15); color: var(--neon-green); }
.pay-status.pending   { background: rgba(246,255,0,0.15); color: var(--neon-yellow); }
.pay-status.failed    { background: rgba(255,56,96,0.15); color: var(--neon-red); }

/* ===== Billing ===== */
.billing-main { max-width: 1060px; }
.billing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}
@media (max-width: 800px) { .billing-grid { grid-template-columns: 1fr; } }
.billing-summary, .billing-methods {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(0, 240, 255, 0.06), transparent 68%),
    var(--surface-card);
  border: 1px solid var(--line-soft);
  padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: 8px;
  box-shadow: var(--shadow-panel);
}
.billing-summary::before, .billing-methods::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  opacity: 0.85;
}
.billing-methods::before {
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-yellow));
}
.billing-summary h2, .billing-methods h2 { font-family: var(--font-display);
  position: relative;
  color: var(--neon-cyan); margin: 0 0 1.2rem; padding-left: 0.9rem;
  letter-spacing: 0.04em; font-size: 1rem; line-height: 1.3;
  text-shadow: 0 0 5px var(--neon-cyan); }
.billing-summary h2::before, .billing-methods h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  border-radius: 999px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.42);
}
.bs-row {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  min-height: 2.7rem; padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(0,240,255,0.1); color: var(--text);
}
.bs-row span:last-child { color: var(--text); text-align: right; font-family: var(--font-mono); }
.bs-row.total {
  margin-top: 0.65rem;
  padding: 0.85rem 0.9rem;
  min-height: 3.25rem;
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.045);
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
}
.bs-features {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
}
.bs-features[data-perks]:empty {
  min-height: 5.2rem;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(0, 240, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}
.bs-features[data-perks]:empty::before {
  content: 'กำลังโหลดสิทธิ์ Pro...';
  color: var(--text-dim);
  font-size: 0.84rem;
}
.bs-features li {
  position: relative;
  min-height: 2.25rem;
  padding: 0.46rem 0.65rem 0.46rem 2rem;
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.45;
}
.bs-features li::before {
  content: '✓';
  position: absolute;
  left: 0.65rem;
  top: 0.52rem;
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(0, 255, 149, 0.45);
}

.pay-option {
  width: 100%;
  display: flex; align-items: center; gap: 1rem;
  min-height: 5rem;
  padding: 1rem;
  border: 1px solid var(--line-soft); border-radius: 8px; margin-bottom: 0.8rem;
  cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s, transform 0.12s;
  background: rgba(255,255,255,0.02);
}
.pay-option:hover, .pay-option:focus-visible {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0,240,255,0.26);
  outline: none;
}
.pay-option:active { transform: translateY(1px); }
.pay-option.selected {
  border-color: var(--neon-pink);
  background:
    linear-gradient(135deg, rgba(255,43,214,0.08), transparent 70%),
    rgba(0, 0, 0, 0.2);
  box-shadow: inset 3px 0 0 var(--neon-pink), 0 0 12px rgba(255,43,214,0.18);
}
.po-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  font-size: 1.45rem;
}
.po-info {
  display: grid;
  gap: 0.22rem;
  flex: 1;
  min-width: 0;
  color: var(--text);
}
.po-info strong {
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.po-info small { color: var(--text-dim); line-height: 1.4; }

#pay-result {
  margin-top: 1.5rem;
  min-height: 2rem;
}
.pay-loading {
  padding: 0.9rem;
  color: var(--text-dim2);
  text-align: center;
  line-height: 1.55;
  border: 1px dashed rgba(0, 240, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}
.qr-display {
  text-align: center; padding: 1.5rem; background: #fff; border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.24);
}
.qr-display img { max-width: 280px; width: 100%; }
.qr-info { color: var(--text); margin: 1rem 0 0; text-align: center; }
.qr-info .amount { font-family: var(--font-display); font-size: 1.8rem;
  color: var(--neon-pink); text-shadow: 0 0 6px var(--neon-pink); }
.qr-helper,
.slip-upload-name,
.slip-help,
.slip-wait-note {
  color: var(--text-dim);
  text-align: center;
  line-height: 1.55;
}
.qr-expiry {
  margin-top: 0.45rem;
  color: var(--neon-yellow);
  font-size: 0.85rem;
  text-align: center;
}
.slip-pick-cta {
  display: block;
  margin-top: 1rem;
  text-align: center;
  cursor: pointer;
}
.slip-upload-name {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}
.slip-help {
  margin-top: 0.6rem;
  font-size: 0.75rem;
}
.slip-wait-note {
  margin-top: 1rem;
  font-size: 0.85rem;
}

/* ===== Social economy ===== */
.social-main { max-width: 1180px; }
.social-head { display: flex; justify-content: space-between; gap: 1.2rem; align-items: end;
  margin-bottom: 1.5rem; border-bottom: 1px solid var(--line-soft); padding-bottom: 1rem; }
.social-title {
  font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.15rem); line-height: 1.08; letter-spacing: 0.04em;
  color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0,240,255,0.7); margin: 0; text-wrap: balance;
}
.social-note { color: var(--text-dim2); font-size: 0.88rem; line-height: 1.6; max-width: 560px; margin: 0; }
.social-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; align-items: start; }
@media (max-width: 900px) {
  .social-grid { grid-template-columns: 1fr; }
  .social-head { align-items: start; flex-direction: column; }
  .social-head > .social-btn { align-self: flex-start; }
}
.social-hero-panel, .rules-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.2rem; align-items: center;
  margin-bottom: 1.2rem; padding: clamp(1rem, 3vw, 1.35rem); border: 1px solid rgba(0,240,255,0.3);
  border-radius: 8px; background: var(--surface-card);
  box-shadow: var(--shadow-panel); overflow: hidden;
}
.compact-panel { grid-template-columns: minmax(0, 1fr) 260px; }
.panel-kicker {
  display: block; margin-bottom: 0.45rem; color: var(--neon-green);
  font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; text-shadow: 0 0 7px rgba(0,255,149,0.55);
}
.social-hero-panel h2, .rules-hero h2 {
  margin: 0 0 0.55rem; color: var(--text); font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.85rem); line-height: 1.25; letter-spacing: 0;
}
.social-hero-panel p, .rules-hero p { margin: 0; color: var(--text-dim); line-height: 1.65; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
.compact-panel .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-grid div {
  min-height: 84px; display: flex; flex-direction: column; justify-content: center; gap: 0.35rem;
  padding: 0.75rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  background: rgba(0,0,0,0.24);
}
.metric-grid strong {
  color: var(--neon-cyan); font-family: var(--font-display); font-size: 1.5rem;
  text-shadow: 0 0 8px rgba(0,240,255,0.55); overflow-wrap: anywhere;
}
.metric-grid span { color: var(--text-dim); font-size: 0.75rem; line-height: 1.35; }
.flow-ribbon {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0.8rem;
  border: 1px solid rgba(255,43,214,0.25); border-radius: 8px; background: rgba(255,43,214,0.045);
}
.flow-ribbon span {
  color: var(--text); border: 1px solid rgba(0,240,255,0.18); border-radius: 999px;
  padding: 0.35rem 0.65rem; font-size: 0.78rem; background: rgba(0,0,0,0.22);
}
.flow-list { display: grid; gap: 0.55rem; }
.flow-list div {
  display: grid; grid-template-columns: 44px 1fr; gap: 0.65rem; align-items: center;
  padding: 0.65rem; border: 1px solid rgba(0,240,255,0.15); border-radius: 8px;
  background: rgba(255,255,255,0.025);
}
.flow-list b {
  display: grid; place-items: center; width: 36px; height: 36px; color: var(--neon-pink);
  border: 1px solid rgba(255,43,214,0.45); border-radius: 6px; font-family: var(--font-display);
}
.flow-list span { color: var(--text); font-size: 0.86rem; line-height: 1.35; }
.section-gap { margin-top: 1.2rem !important; }
.social-card, .feed-card, .profile-panel {
  background: var(--surface-card); border: 1px solid var(--line-soft);
  border-radius: 8px; padding: 1rem; box-shadow: var(--shadow-panel);
}
.social-card h2, .profile-panel h2 { font-family: var(--font-display); color: var(--neon-cyan);
  letter-spacing: 0.04em; line-height: 1.3; font-size: 1rem; margin: 0 0 0.8rem; text-wrap: balance; }
.post-form { display: grid; gap: 0.8rem; margin-bottom: 1rem; }
.composer-head { display: flex; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.composer-head strong { color: var(--neon-cyan); font-family: var(--font-display); letter-spacing: 0.08em; }
.composer-head span { color: var(--text-dim); font-size: 0.8rem; }
[data-social-page="board"] .post-form {
  position: relative;
  overflow: hidden;
  gap: 0.9rem;
  border-color: rgba(0, 240, 255, 0.2);
  background:
    radial-gradient(circle at 12% 0, rgba(0, 240, 255, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(255, 43, 214, 0.035), transparent 68%),
    var(--surface-card);
}
[data-social-page="board"] .post-form::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-yellow));
  opacity: 0.82;
}
[data-social-page="board"] .composer-head {
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}
[data-social-page="board"] .composer-head strong {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
[data-social-page="board"] .composer-head strong::before {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 3px;
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(0, 255, 149, 0.45);
}
[data-social-page="board"] .post-form textarea {
  min-height: 8rem;
  border-radius: 8px;
  line-height: 1.6;
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.04), rgba(0, 0, 0, 0.46)),
    rgba(0, 0, 0, 0.42);
}
.post-form textarea, .post-form input, .post-form select, .post-form button,
.profile-form textarea, .profile-form input, .coin-action select, .gift-form input, .gift-form select {
  font-family: var(--font-mono);
}
.post-form textarea, .profile-form textarea, .profile-form input, .coin-action select, .gift-form input, .gift-form select {
  width: 100%; background: rgba(0,0,0,0.42); border: 1px solid var(--line);
  color: var(--text); border-radius: 4px; padding: 0.7rem; outline: none;
  color-scheme: dark;
}
.post-form textarea, .profile-form textarea { resize: vertical; }
.post-form textarea::placeholder, .post-form input::placeholder,
.profile-form textarea::placeholder, .profile-form input::placeholder,
.gift-form input::placeholder { color: var(--text-dim); opacity: 0.82; }
.post-form textarea:focus, .profile-form textarea:focus, .profile-form input:focus,
.coin-action select:focus, .gift-form input:focus, .gift-form select:focus {
  border-color: var(--neon-cyan); box-shadow: 0 0 8px rgba(0,240,255,0.3);
}
.post-form input:disabled, .post-form textarea:disabled,
.profile-form input:disabled, .profile-form textarea:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}
.board-search { margin-bottom: 0.8rem; }
.board-search input {
  width: 100%; font-family: var(--font-mono); background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--line); color: var(--text); border-radius: 4px;
  padding: 0.55rem 0.7rem; outline: none;
}
.board-search input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 8px rgba(0, 240, 255, 0.3); }
[data-social-page="board"] .board-search {
  margin-bottom: 0.75rem;
}
[data-social-page="board"] .board-search input {
  min-height: 2.65rem;
  border-color: rgba(0, 240, 255, 0.16);
  border-radius: 8px;
  padding: 0.72rem 0.9rem;
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.035), rgba(0, 0, 0, 0.45)),
    rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}
/* Comment composer input (form[data-comment-form]) — it has no class and is a
   default type=text, so the .file-line input[type=file] rule never reached it
   and it rendered as a raw browser input. Style it like the other text fields. */
[data-comment-form] input {
  flex: 1 1 0; min-width: 0; font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.42); border: 1px solid var(--line); color: var(--text);
  border-radius: 4px; padding: 0.5rem 0.7rem; outline: none;
}
[data-comment-form] input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 8px rgba(0, 240, 255, 0.3); }

/* Privacy-card dropdowns (profile visibility / DM policy / auto-lock idle) — bare
   <select> carrying only an inline width:auto, so no scoped form rule reached them
   and they rendered as native OS dropdowns (light, system font) on the dark theme.
   Match the other form fields; the inline width:auto stays for compact placement.
   #device-lock-section is nested inside #privacy-card, so dl-idle is covered too.
   The :not([type="checkbox"]) is load-bearing: without it this ID-specificity rule
   forced width:100% + field padding/border onto the toggle and chip checkboxes
   (beating their class-level width:auto), which stretched them into full-width
   boxes and shoved the labels into a one-word-per-line column. */
#privacy-card select,
#discovery-card select,
#discovery-card input:not([type="checkbox"]) {
  width: 100%;
  font-family: var(--font-mono); background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--line); color: var(--text); border-radius: var(--r-ctl);
  padding: 0.45rem 0.65rem; outline: none; cursor: pointer;
}
#discovery-card input:not([type="checkbox"]) { cursor: text; }
#privacy-card select:focus,
#discovery-card select:focus,
#discovery-card input:not([type="checkbox"]):focus { border-color: var(--neon-cyan); box-shadow: 0 0 8px rgba(0, 240, 255, 0.3); }

.discovery-settings { display: grid; gap: 0.9rem; }
.discovery-note {
  display: grid; gap: 0.25rem; padding: 0.75rem; border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: var(--r-md); background: rgba(0, 240, 255, 0.04); color: var(--text-dim2); font-size: 0.82rem;
}
.discovery-note strong { color: var(--neon-cyan); font-family: var(--font-display); letter-spacing: 0.04em; }
/* Each visibility setting is a labelled row — title + one-line hint on the left,
   a skinned on/off switch on the right. The control stays a real
   <input type=checkbox> so renderDiscovery() keeps reading .checked unchanged;
   the field-skin rule above excludes [type=checkbox] so these don't stretch. */
.discovery-toggle-grid { display: grid; grid-template-columns: 1fr; gap: 0.55rem; }
.discovery-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 0.9rem;
  padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: rgba(0, 0, 0, 0.22); cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.discovery-switch:hover { border-color: rgba(0, 240, 255, 0.4); background: rgba(0, 240, 255, 0.05); }
.discovery-switch:has(input:focus-visible) { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }
/* Master toggle gates the rest of the form, so it reads as the primary row. */
.discovery-switch-primary {
  border-color: rgba(0, 240, 255, 0.45); border-left: 3px solid var(--neon-cyan);
  background: rgba(0, 240, 255, 0.06);
}
.ds-switch-text { display: grid; gap: 0.15rem; min-width: 0; }
.ds-switch-title { color: var(--text); font-size: 0.88rem; line-height: 1.3; }
.discovery-switch-primary .ds-switch-title { color: var(--neon-cyan); }
.ds-switch-hint { color: var(--text-dim); font-size: 0.73rem; line-height: 1.4; }
/* iOS-style on/off switch — shared by Discovery toggles AND the Privacy /
   device-lock .settings-toggle rows so every on/off control looks identical. */
.discovery-switch input[type="checkbox"],
.settings-toggle input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; margin: 0; flex: 0 0 auto; cursor: pointer;
  position: relative; width: 44px; height: 24px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.5);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.discovery-switch input[type="checkbox"]::after,
.settings-toggle input[type="checkbox"]::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--text-dim); transition: transform 0.18s, background 0.18s;
}
.discovery-switch input[type="checkbox"]:checked,
.settings-toggle input[type="checkbox"]:checked {
  background: rgba(0, 240, 255, 0.22); border-color: var(--neon-cyan); box-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
}
.discovery-switch input[type="checkbox"]:checked::after,
.settings-toggle input[type="checkbox"]:checked::after { transform: translateX(20px); background: var(--neon-cyan); }
/* Compact inline checkboxes on the /online filter form — unchanged behaviour,
   kept independent from .discovery-switch so the toggle skin above can't leak in. */
.discovery-toggle-mini {
  display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text); font-size: 0.82rem; line-height: 1.35;
}
.discovery-toggle-mini input { width: auto; margin: 0; flex: 0 0 auto; accent-color: var(--neon-cyan); }
.discovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.discovery-grid label { display: grid; gap: 0.3rem; }
.discovery-span { grid-column: 1 / -1; }
.discovery-hint { color: var(--text-dim); font-size: 0.72rem; line-height: 1.4; }
.discovery-block { display: grid; gap: 0.4rem; }
.discovery-chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
/* Selection shows via the pill fill + a leading check; the real checkbox is
   visually hidden but stays keyboard-focusable (the ring is mirrored onto the
   pill via :has). Cleaner than a raw checkbox crammed inside each pill. */
.discovery-chip {
  display: inline-flex; align-items: center; gap: 0.3rem; min-height: 34px; padding: 0.3rem 0.8rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--text-dim);
  background: rgba(0, 0, 0, 0.24); font-size: 0.78rem; cursor: pointer; user-select: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.discovery-chip input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.discovery-chip:hover { border-color: rgba(0, 240, 255, 0.4); color: var(--text); }
.discovery-chip:has(input:checked) {
  border-color: var(--neon-cyan); color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.12); box-shadow: 0 0 7px rgba(0, 240, 255, 0.25);
}
.discovery-chip:has(input:checked) span::before { content: '✓ '; }
.discovery-chip:has(input:focus-visible) { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }
.discovery-location-box {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap;
  padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(0, 240, 255, 0.04);
}
.discovery-location-status, .discovery-location { color: var(--text-dim); font-size: 0.78rem; line-height: 1.35; }
.discovery-actions { display: flex; align-items: center; justify-content: center; gap: 0.55rem; flex-wrap: wrap; }

/* Privacy Shield lock screen (Pro) — opaque cover over /chat until PIN unlock. */
.lock-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center;
  justify-content: center; padding: 1.5rem; background: var(--bg); }
.lock-overlay.hidden { display: none; }
.lock-box { width: 100%; max-width: 340px; text-align: center; background: rgba(10, 10, 27, 0.92);
  border: 1px solid var(--neon-cyan); border-radius: 10px; padding: 2rem 1.5rem;
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.25); }
.lock-emoji { font-size: 2.4rem; }
.lock-title { font-family: var(--font-display); color: var(--neon-cyan); letter-spacing: 0.08em; margin: 0.4rem 0 0.2rem; }
.lock-sub { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1rem; }
#lock-pin-input { width: 100%; box-sizing: border-box; text-align: center; letter-spacing: 0.3em;
  font-family: var(--font-mono); font-size: 1.2rem; padding: 0.7rem; background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line); color: var(--text); border-radius: 6px; outline: none; }
#lock-pin-input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0, 240, 255, 0.35); }
.lock-err { color: var(--neon-red); font-size: 0.82rem; min-height: 1.1em; margin: 0.5rem 0; }
.lock-wipe { display: block; width: 100%; margin-top: 0.9rem; background: none; border: none;
  color: var(--text-dim); font-size: 0.78rem; cursor: pointer; text-decoration: underline; }
.lock-wipe:hover { color: var(--neon-pink); }

/* Settings modal (privacy + on-device lock, opened from the chat ⋮ menu).
   Built on the shared .modal-bg/.modal vocabulary (style.css) so it shares the
   Dialog's z-index (100) — a PIN-prompt Dialog (appended to <body> later) stacks
   above it. These rules only size/scroll the box, add the close button, and style
   the rendered <h2> (the container isn't .acc-card so .acc-card h2 can't reach it). */
.settings-box { max-width: 460px; width: 100%; text-align: left; position: relative;
  max-height: calc(100vh - 3rem); overflow-y: auto; }
.settings-close { position: absolute; top: 0.5rem; right: 0.7rem; background: none; border: none;
  color: var(--text-dim); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0.2rem; }
.settings-close:hover { color: var(--neon-pink); }
.settings-card h2 { font-family: var(--font-display); color: var(--neon-cyan);
  letter-spacing: 0.06em; margin: 0 0 1rem; font-size: 1.05rem; text-shadow: 0 0 6px var(--neon-cyan); }
.delchats-note {
  margin: 0.3rem 0 0.8rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.55;
}
.delchats-all-btn {
  width: 100%;
  margin-top: 0.9rem;
}

/* ----- Account settings forms (privacy + device-lock) — neon HUD form -----
   These render functions used raw inline styles + native checkbox/select, which
   read as unstyled against the panels. Real classes + skinned controls here. */
.settings-upsell { color: var(--text-dim2); margin: 0 0 0.9rem; line-height: 1.55; }
.settings-toggles { display: flex; flex-direction: column; gap: 0.6rem; margin: 0 0 0.8rem; }
.settings-toggle, .settings-row {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: rgba(0, 0, 0, 0.22); line-height: 1.5;
  transition: border-color 0.15s, background 0.15s;
}
.settings-toggle { cursor: pointer; align-items: center; justify-content: space-between; padding: 0.7rem 0.85rem; }
.settings-toggle > span { flex: 1; }
.settings-row { align-items: center; flex-wrap: wrap; }
.settings-toggle:hover, .settings-row:hover { border-color: rgba(0, 240, 255, 0.4); background: rgba(0, 240, 255, 0.05); }
.settings-row > span:first-child { flex: 1; min-width: 8rem; }
/* The toggle markup is <input><span>; order:1 sends the switch to the right so
   the text reads on the left, matching the Discovery rows. */
.settings-toggle input[type="checkbox"] { order: 1; }
/* Native selects in account cards get the dark neon field + cyan focus glow. */
.acc-card select {
  width: auto; max-width: 100%;
  background: rgba(0, 0, 0, 0.5); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-ctl);
  padding: 0.4rem 0.6rem; font-family: var(--font-mono); font-size: 0.85rem;
  cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s;
}
.acc-card select:focus { outline: none; border-color: var(--neon-cyan); box-shadow: 0 0 8px rgba(0, 240, 255, 0.4); }
.dl-divider { border: none; border-top: 1px solid var(--line); margin: 1.1rem 0 0.9rem; }
.dl-title { font-family: var(--font-display); color: var(--neon-cyan); letter-spacing: 0.06em; font-size: 0.95rem; margin: 0; }
.dl-desc { color: var(--text-dim2); font-size: 0.82rem; margin: 0.3rem 0 0.8rem; line-height: 1.55; }
.dl-desc strong { color: var(--neon-pink); }
.dl-on { color: var(--neon-green); font-size: 0.85rem; margin-bottom: 0.6rem; }
.dl-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
/* Pro expiry warning callout (renderSubscription). */
.sub-expiry-warn {
  margin-top: 0.7rem; padding: 0.5rem 0.75rem;
  border: 1px solid var(--neon-pink); border-radius: var(--r-ctl);
  color: var(--neon-pink); font-size: 0.85em; line-height: 1.5;
}
.file-line { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; color: var(--text-dim); font-size: 0.8rem; }

/* Neon-skin native file inputs (profile editor avatar/banner + board image).
 * The container rule restyles the field; ::file-selector-button restyles the
 * browser's default grey "Choose File" chrome to match the neon theme. */
.account-profile-grid input[type="file"],
.account-upload-grid input[type="file"],
.upload-field input[type="file"],
.file-line input[type="file"] {
  width: 100%; box-sizing: border-box;
  background: rgba(0, 0, 0, 0.42); border: 1px solid var(--line);
  border-radius: 4px; color: var(--text-dim);
  font-family: var(--font-mono); font-size: 0.82rem;
  padding: 0.45rem 0.6rem; cursor: pointer;
}
.account-profile-grid input[type="file"]:focus-visible,
.account-upload-grid input[type="file"]:focus-visible,
.upload-field input[type="file"]:focus-visible,
.file-line input[type="file"]:focus-visible {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}
.account-profile-grid input[type="file"]::file-selector-button,
.account-upload-grid input[type="file"]::file-selector-button,
.upload-field input[type="file"]::file-selector-button,
.file-line input[type="file"]::file-selector-button {
  background: transparent; border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan); font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem; margin-right: 0.7rem;
  border-radius: 3px; cursor: pointer; transition: all 0.2s;
}
.account-profile-grid input[type="file"]::file-selector-button:hover,
.account-upload-grid input[type="file"]::file-selector-button:hover,
.upload-field input[type="file"]::file-selector-button:hover,
.file-line input[type="file"]::file-selector-button:hover {
  background: var(--neon-cyan); color: var(--bg);
}
.account-profile-grid input[type="file"]:disabled,
.account-upload-grid input[type="file"]:disabled,
.upload-field input[type="file"]:disabled,
.file-line input[type="file"]:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}
/* Board feed sort toggle — layout only; the buttons reuse the .social-btn /
 * .social-btn.primary neon vocabulary (active = gradient). Equal padding on
 * both states so toggling doesn't change the button footprint. */
.board-sort { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.board-sort .social-btn { padding: 0.5rem 1.15rem; }
[data-social-page="board"] .board-sort {
  padding: 0.65rem;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.05), transparent 60%),
    rgba(7, 7, 13, 0.34);
}
[data-social-page="board"] .board-sort .social-btn {
  flex: 1 1 8rem;
  min-height: 2.35rem;
  justify-content: center;
}

.feed-list { display: grid; gap: 1rem; }
.feed-card { padding: 0; overflow: hidden; }
.feed-card.deep-link-highlight { box-shadow: 0 0 0 2px var(--neon-pink), 0 0 18px rgba(255, 43, 214, 0.35); }
/* Paid post boost (coin sink). Boosted posts float to the top of the feed with a
   neon ring + a "BOOST" pill. Neon palette only (locked cyberpunk identity). */
.feed-card.boosted { box-shadow: 0 0 0 1px var(--neon-cyan), 0 0 16px rgba(0, 240, 255, 0.22); }
.boost-pill { margin-left: auto; align-self: flex-start; font-family: var(--font-display);
  font-size: 0.6rem; letter-spacing: 0.12em; color: var(--bg); background: var(--neon-cyan);
  padding: 0.15rem 0.5rem; border-radius: 3px; box-shadow: 0 0 8px rgba(0, 240, 255, 0.5); }
.boost-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0 1rem 0.85rem; }
.boost-picker-head { width: 100%; font-size: 0.8rem; color: var(--neon-cyan); letter-spacing: 0.04em; }
.spotlight-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.8rem; }
/* Pro-only filter/sort bar on /online. It behaves like a compact control deck,
   not a loose line of native inputs inside the profile card. */
.online-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
  margin-bottom: 0.9rem;
  padding: 0.75rem;
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.055), transparent 42%),
    linear-gradient(315deg, rgba(255, 43, 214, 0.045), transparent 46%),
    rgba(7, 7, 13, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.of-label { color: var(--text-dim); font-size: 0.72rem; font-family: var(--font-display); letter-spacing: 0.08em; }
.of-label:not(:first-child) { margin-left: 0.4rem; }
.of-chip { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  min-height: 2.125rem; font-size: 0.74rem; color: var(--text-dim); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.25rem 0.7rem; background: rgba(0, 0, 0, 0.24); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s; }
.of-chip:hover, .of-chip:focus-visible { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 8px rgba(0, 240, 255, 0.18); outline: none; }
.of-chip.active { border-color: var(--neon-cyan); color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1); box-shadow: 0 0 8px rgba(0, 240, 255, 0.25); }
.online-filter-upsell { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 3rem;
  font-size: 0.78rem; line-height: 1.45; color: var(--neon-pink); text-align: center; text-decoration: none;
  border: 1px dashed rgba(255, 43, 214, 0.4); border-radius: 8px; padding: 0.55rem 0.8rem;
  background: rgba(255, 43, 214, 0.045); }
.online-filter-upsell:hover, .online-filter-upsell:focus-visible { border-color: var(--neon-pink); box-shadow: 0 0 10px rgba(255, 43, 214, 0.28); outline: none; }
.discovery-filter-form { width: 100%; display: grid; gap: 0.65rem; }
.discovery-filter-grid { display: grid; grid-template-columns: minmax(180px, 1.5fr) repeat(4, minmax(120px, 1fr)); gap: 0.5rem; }
.discovery-filter-grid input, .discovery-filter-grid select {
  box-sizing: border-box; min-width: 0; width: 100%; min-height: 2.5rem; font-family: var(--font-mono);
  color: var(--text); background: rgba(0, 0, 0, 0.42); border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 6px; padding: 0.55rem 0.7rem; outline: none; color-scheme: dark;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.discovery-filter-grid select {
  appearance: none;
  padding-right: 2rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--neon-cyan) 50%),
    linear-gradient(135deg, var(--neon-cyan) 50%, transparent 50%);
  background-position:
    calc(100% - 1rem) 50%,
    calc(100% - 0.7rem) 50%;
  background-size: 0.34rem 0.34rem, 0.34rem 0.34rem;
  background-repeat: no-repeat;
}
.discovery-filter-grid input::placeholder { color: var(--text-dim); opacity: 0.82; }
.discovery-filter-grid input:focus, .discovery-filter-grid select:focus {
  border-color: var(--neon-cyan); background-color: rgba(0, 240, 255, 0.045); box-shadow: 0 0 10px rgba(0, 240, 255, 0.26);
}
.discovery-filter-form .discovery-chip-row { gap: 0.35rem; }
.discovery-check input { width: auto; margin: 0; accent-color: var(--neon-cyan); }
.discovery-check:has(input:checked) { border-color: var(--neon-cyan); color: var(--neon-cyan); background: rgba(0, 240, 255, 0.1); }
.discovery-check:has(input:focus-visible) { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }
.discovery-filter-actions { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.discovery-filter-actions .profile-save-result {
  display: inline-flex;
  align-items: center;
  min-height: 2.125rem;
  color: var(--neon-green, #36f1a3);
}
.discovery-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.35rem; }
.discovery-tags span {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0.1rem 0.45rem;
  border: 1px solid rgba(255, 43, 214, 0.28); border-radius: 999px; color: var(--neon-pink);
  background: rgba(255, 43, 214, 0.07); font-size: 0.68rem;
}
.user-row.show-blurred-photo .user-avatar { filter: blur(5px); }
.user-row.show-blurred-photo:hover .user-avatar { filter: blur(3px); }
@media (max-width: 980px) {
  .discovery-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .discovery-toggle-grid, .discovery-grid, .discovery-filter-grid { grid-template-columns: 1fr; }
  .discovery-actions, .discovery-filter-actions { align-items: stretch; }
  .discovery-actions > *, .discovery-filter-actions > .tiny-btn { width: 100%; justify-content: center; }
}
/* Pro favorites (System 3): ⭐ on rows + a quick-DM favorites bar. */
.fav-star {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 40px; width: 40px; height: 40px; margin-left: auto; align-self: center;
  border: 1px solid var(--line-soft); border-radius: 999px;
  background: rgba(7, 7, 13, 0.36);
  color: var(--text-dim); font-size: 1.1rem; line-height: 1;
  cursor: pointer;
  transition: color 0.15s, text-shadow 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.fav-star:hover,
.fav-star:focus-visible {
  color: var(--neon-yellow); border-color: rgba(246, 255, 0, 0.5);
  background: rgba(246, 255, 0, 0.08); outline: none;
}
.fav-star.on { color: var(--neon-yellow); text-shadow: 0 0 8px rgba(255, 230, 0, 0.6); }
.favorites-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.8rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(246, 255, 0, 0.14);
  border-radius: 999px;
  background: rgba(246, 255, 0, 0.035);
}
.favorites-bar .of-label { flex: 0 0 auto; color: var(--neon-yellow, #f6ff00); }
.fav-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: min(100%, 15rem);
  min-height: 2.4rem;
  padding: 0.25rem 0.35rem 0.25rem 0.25rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.065), transparent 45%),
    rgba(0, 0, 0, 0.24);
  color: var(--text);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.12s;
}
.fav-chip:hover,
.fav-chip:focus-visible {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.22);
  outline: none;
}
.fav-chip:active { transform: translateY(1px); }
.fav-chip-av { display: block; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: rgba(0,240,255,0.1); flex: 0 0 28px; }
.fav-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.76rem; color: var(--text); }
.fav-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.4rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.7rem;
}
.fav-chip-x:hover { color: var(--neon-red); background: rgba(255, 43, 67, 0.08); }
.spotlight-tag { font-family: var(--font-display); font-size: 0.55rem; letter-spacing: 0.1em; color: var(--bg);
  background: var(--neon-cyan); padding: 0.1rem 0.4rem; border-radius: 3px; box-shadow: 0 0 6px rgba(0, 240, 255, 0.5); white-space: nowrap; }
/* Pro status badge next to a user's name (board/online/profile) — neon-pink so it
   reads as premium and stays distinct from the cyan action tags above. */
.pro-badge { display: inline-block; vertical-align: middle; margin-left: 0.35rem; font-family: var(--font-display);
  font-size: 0.55rem; letter-spacing: 0.1em; color: var(--bg); background: var(--neon-pink);
  padding: 0.1rem 0.4rem; border-radius: 3px; box-shadow: 0 0 6px var(--neon-pink); white-space: nowrap; }
/* First-party house-ad card (free/anon only; Pro hides it). Neon palette, dashed
   purple edge so it reads as a promo, not a post. */
.house-ad { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1rem; margin-bottom: 0.9rem;
  text-decoration: none; border: 1px dashed var(--neon-purple); border-radius: 6px; position: relative;
  background: linear-gradient(135deg, rgba(177, 75, 255, 0.10), rgba(0, 240, 255, 0.06)); }
.house-ad-pro {
  justify-content: center;
  opacity: 0.72;
}
.house-ad-pro-chip {
  color: var(--neon-cyan);
  font-size: 0.8em;
  letter-spacing: 0.06em;
}
.house-ad-main { flex: 1; min-width: 0; }
.house-ad-title { color: var(--neon-cyan); font-weight: 700; font-size: 0.95rem; }
.house-ad-text { color: var(--text-dim); font-size: 0.82rem; margin-top: 0.15rem; }
.house-ad-cta { color: var(--neon-pink); font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.05em; white-space: nowrap; flex: 0 0 auto; }
.house-ad-tag { position: absolute; top: 0.3rem; right: 0.55rem; font-size: 0.52rem; letter-spacing: 0.12em; color: var(--text-dim); text-transform: uppercase; }
/* Equipped name cosmetics (coin-bought glow + flair) + the account store swatches. */
.glow-cyan { color: var(--neon-cyan); text-shadow: 0 0 7px var(--neon-cyan); }
.glow-pink { color: var(--neon-pink); text-shadow: 0 0 7px var(--neon-pink); }
.glow-purple { color: var(--neon-purple); text-shadow: 0 0 7px var(--neon-purple); }
.name-flair { font-size: 0.9em; }
.cosmetic-store { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.cosmetic-swatch { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; min-width: 3.4rem;
  padding: 0.4rem 0.5rem; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: 5px;
  color: var(--text-dim); cursor: pointer; font-family: var(--font-mono); font-size: 0.68rem; }
.cosmetic-swatch:hover { border-color: var(--neon-cyan); }
.cosmetic-swatch.equipped { border-color: var(--neon-pink); color: var(--neon-pink); box-shadow: 0 0 8px rgba(255, 43, 214, 0.3); }
.cosmetic-swatch .cos-preview { font-size: 1.05rem; line-height: 1.2; }
.avatar-frame {
  position: relative; display: inline-grid; place-items: center; padding: 3px;
  border-radius: 12px; isolation: isolate; flex: 0 0 auto; overflow: visible;
}
.avatar-frame .feed-avatar, .avatar-frame .user-avatar, .avatar-frame .profile-avatar,
.avatar-frame .account-preview-avatar, .avatar-frame .fav-chip-av, .avatar-frame .me-avatar,
.avatar-frame .msg-avatar, .avatar-frame .profile-pop-av {
  position: relative; z-index: 1; margin: 0; border-color: rgba(255,255,255,0.34);
}
.account-preview-body > .avatar-frame { width: max-content; margin-top: -39px; }
.fav-chip .avatar-frame { padding: 2px; border-radius: 999px; }
.avatar-frame-preview { width: 34px; height: 34px; padding: 3px; border-radius: 9px; }
.avatar-frame-preview > span { display: block; width: 26px; height: 26px; border-radius: 6px; background: rgba(0,240,255,0.16); }
.avatar-frame-gif {
  width: 64px; height: 64px; padding: 0; border-radius: 0;
  --avatar-frame-hole-x: 50%;
  --avatar-frame-hole-y: 50%;
  --avatar-frame-hole-size: 50%;
}
.avatar-frame-gif::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 0; pointer-events: none;
  background: var(--avatar-frame-image) center / contain no-repeat;
  animation: none;
}
.avatar-frame-gif::after { display: none; }
.avatar-frame-gif .feed-avatar, .avatar-frame-gif .user-avatar, .avatar-frame-gif .profile-avatar,
.avatar-frame-gif .account-preview-avatar, .avatar-frame-gif .fav-chip-av, .avatar-frame-gif .me-avatar,
.avatar-frame-gif .msg-avatar, .avatar-frame-gif .profile-pop-av {
  position: absolute; left: var(--avatar-frame-hole-x); top: var(--avatar-frame-hole-y);
  width: var(--avatar-frame-hole-size); height: var(--avatar-frame-hole-size);
  transform: translate(-50%, -50%);
  border-radius: 50%; border-color: rgba(255,255,255,0.44);
  box-shadow: 0 0 12px rgba(255,196,92,0.25);
}
/* Raster frames use the source art's actual transparent opening, not the canvas center. */
.avatar-frame-art_emerald_ram {
  --avatar-frame-image: url('/img/avatar-frames/emerald-ram.webp');
  --avatar-frame-hole-x: 50.49%; --avatar-frame-hole-y: 51.76%; --avatar-frame-hole-size: 62.70%;
}
.avatar-frame-art_ruby_wings {
  --avatar-frame-image: url('/img/avatar-frames/ruby-wings.webp');
  --avatar-frame-hole-x: 49.90%; --avatar-frame-hole-y: 51.07%; --avatar-frame-hole-size: 57.23%;
}
.avatar-frame-art_crimson_valor {
  --avatar-frame-image: url('/img/avatar-frames/crimson-valor.webp');
  --avatar-frame-hole-x: 50%; --avatar-frame-hole-y: 47.66%; --avatar-frame-hole-size: 55.47%;
}
.avatar-frame-art_rose_phoenix {
  --avatar-frame-image: url('/img/avatar-frames/rose-phoenix.webp');
  --avatar-frame-hole-x: 49.51%; --avatar-frame-hole-y: 49.51%; --avatar-frame-hole-size: 58.79%;
}
.avatar-frame-art_blue_blossom {
  --avatar-frame-image: url('/img/avatar-frames/blue-blossom.webp');
  --avatar-frame-hole-x: 50.20%; --avatar-frame-hole-y: 50.98%; --avatar-frame-hole-size: 68.36%;
}
.avatar-frame-art_gold_violet {
  --avatar-frame-image: url('/img/avatar-frames/gold-violet.webp');
  --avatar-frame-hole-x: 50.59%; --avatar-frame-hole-y: 50.98%; --avatar-frame-hole-size: 62.50%;
}
.avatar-frame-art_emerald_dragons {
  --avatar-frame-image: url('/img/avatar-frames/emerald-dragons.webp');
  --avatar-frame-hole-x: 50.20%; --avatar-frame-hole-y: 51.07%; --avatar-frame-hole-size: 56.25%;
}
.avatar-frame-art_violet_crown {
  --avatar-frame-image: url('/img/avatar-frames/violet-crown.webp');
  --avatar-frame-hole-x: 50%; --avatar-frame-hole-y: 49.51%; --avatar-frame-hole-size: 54.30%;
}
.avatar-frame-art_angel_ruby {
  --avatar-frame-image: url('/img/avatar-frames/angel-ruby.webp');
  --avatar-frame-hole-x: 50.20%; --avatar-frame-hole-y: 49.02%; --avatar-frame-hole-size: 53.12%;
}
.avatar-frame-art_pink_aurelia {
  --avatar-frame-image: url('/img/avatar-frames/pink-aurelia.webp');
  --avatar-frame-hole-x: 50.10%; --avatar-frame-hole-y: 48.05%; --avatar-frame-hole-size: 58.01%;
}
.avatar-frame-royal_amber_laurel {
  --avatar-frame-image: url('/img/avatar-frames/royal-amber-laurel.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 60.00%;
}
.avatar-frame-royal_amethyst_arcana {
  --avatar-frame-image: url('/img/avatar-frames/royal-amethyst-arcana.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 59.00%;
}
.avatar-frame-royal_amethyst_flame {
  --avatar-frame-image: url('/img/avatar-frames/royal-amethyst-flame.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_amethyst_wings {
  --avatar-frame-image: url('/img/avatar-frames/royal-amethyst-wings.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_aqua_celeste {
  --avatar-frame-image: url('/img/avatar-frames/royal-aqua-celeste.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 61.00%;
}
.avatar-frame-royal_arcane_lotus {
  --avatar-frame-image: url('/img/avatar-frames/royal-arcane-lotus.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 61.00%;
}
.avatar-frame-royal_celestial_gold {
  --avatar-frame-image: url('/img/avatar-frames/royal-celestial-gold.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 60.00%;
}
.avatar-frame-royal_crimson_wreath {
  --avatar-frame-image: url('/img/avatar-frames/royal-crimson-wreath.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 60.00%;
}
.avatar-frame-royal_emerald_crest {
  --avatar-frame-image: url('/img/avatar-frames/royal-emerald-crest.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 60.00%;
}
.avatar-frame-royal_emerald_halo {
  --avatar-frame-image: url('/img/avatar-frames/royal-emerald-halo.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 59.00%;
}
.avatar-frame-royal_emerald_laurel {
  --avatar-frame-image: url('/img/avatar-frames/royal-emerald-laurel.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 60.00%;
}
.avatar-frame-royal_emerald_phoenix {
  --avatar-frame-image: url('/img/avatar-frames/royal-emerald-phoenix.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_emerald_wings {
  --avatar-frame-image: url('/img/avatar-frames/royal-emerald-wings.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_ivory_crystal {
  --avatar-frame-image: url('/img/avatar-frames/royal-ivory-crystal.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 61.00%;
}
.avatar-frame-royal_ivory_halo {
  --avatar-frame-image: url('/img/avatar-frames/royal-ivory-halo.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 61.00%;
}
.avatar-frame-royal_ivory_laurel {
  --avatar-frame-image: url('/img/avatar-frames/royal-ivory-laurel.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 60.00%;
}
.avatar-frame-royal_jade_celeste {
  --avatar-frame-image: url('/img/avatar-frames/royal-jade-celeste.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 60.00%;
}
.avatar-frame-royal_jade_dragon {
  --avatar-frame-image: url('/img/avatar-frames/royal-jade-dragon.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_jade_lotus {
  --avatar-frame-image: url('/img/avatar-frames/royal-jade-lotus.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 60.00%;
}
.avatar-frame-royal_jade_seraph {
  --avatar-frame-image: url('/img/avatar-frames/royal-jade-seraph.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_lunar_seraph {
  --avatar-frame-image: url('/img/avatar-frames/royal-lunar-seraph.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 59.00%;
}
.avatar-frame-royal_moonstone_crown {
  --avatar-frame-image: url('/img/avatar-frames/royal-moonstone-crown.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 59.00%;
}
.avatar-frame-royal_obsidian_regalia {
  --avatar-frame-image: url('/img/avatar-frames/royal-obsidian-regalia.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_obsidian_seraph {
  --avatar-frame-image: url('/img/avatar-frames/royal-obsidian-seraph.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_obsidian_wreath {
  --avatar-frame-image: url('/img/avatar-frames/royal-obsidian-wreath.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 60.00%;
}
.avatar-frame-royal_onyx_crown {
  --avatar-frame-image: url('/img/avatar-frames/royal-onyx-crown.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_onyx_mage {
  --avatar-frame-image: url('/img/avatar-frames/royal-onyx-mage.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 61.00%;
}
.avatar-frame-royal_pearl_diadem {
  --avatar-frame-image: url('/img/avatar-frames/royal-pearl-diadem.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 61.00%;
}
.avatar-frame-royal_pearl_phoenix {
  --avatar-frame-image: url('/img/avatar-frames/royal-pearl-phoenix.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_pearl_wings {
  --avatar-frame-image: url('/img/avatar-frames/royal-pearl-wings.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_rose_aurelia {
  --avatar-frame-image: url('/img/avatar-frames/royal-rose-aurelia.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 60.00%;
}
.avatar-frame-royal_rose_crystal {
  --avatar-frame-image: url('/img/avatar-frames/royal-rose-crystal.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 60.00%;
}
.avatar-frame-royal_rose_seraph {
  --avatar-frame-image: url('/img/avatar-frames/royal-rose-seraph.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 59.00%;
}
.avatar-frame-royal_ruby_diadem {
  --avatar-frame-image: url('/img/avatar-frames/royal-ruby-diadem.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 59.00%;
}
.avatar-frame-royal_ruby_halo {
  --avatar-frame-image: url('/img/avatar-frames/royal-ruby-halo.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 59.00%;
}
.avatar-frame-royal_ruby_phoenix {
  --avatar-frame-image: url('/img/avatar-frames/royal-ruby-phoenix.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_ruby_thorn {
  --avatar-frame-image: url('/img/avatar-frames/royal-ruby-thorn.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 59.00%;
}
.avatar-frame-royal_ruby_valkyrie {
  --avatar-frame-image: url('/img/avatar-frames/royal-ruby-valkyrie.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_sapphire_crown {
  --avatar-frame-image: url('/img/avatar-frames/royal-sapphire-crown.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 59.00%;
}
.avatar-frame-royal_sapphire_lotus {
  --avatar-frame-image: url('/img/avatar-frames/royal-sapphire-lotus.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 61.00%;
}
.avatar-frame-royal_sapphire_thorn {
  --avatar-frame-image: url('/img/avatar-frames/royal-sapphire-thorn.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 60.00%;
}
.avatar-frame-royal_sapphire_valor {
  --avatar-frame-image: url('/img/avatar-frames/royal-sapphire-valor.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_silk_fleur {
  --avatar-frame-image: url('/img/avatar-frames/royal-silk-fleur.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 60.00%;
}
.avatar-frame-royal_solar_crown {
  --avatar-frame-image: url('/img/avatar-frames/royal-solar-crown.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_solar_seraph {
  --avatar-frame-image: url('/img/avatar-frames/royal-solar-seraph.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_sun_lotus {
  --avatar-frame-image: url('/img/avatar-frames/royal-sun-lotus.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 61.00%;
}
.avatar-frame-royal_sunfire_blades {
  --avatar-frame-image: url('/img/avatar-frames/royal-sunfire-blades.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_topaz_flame {
  --avatar-frame-image: url('/img/avatar-frames/royal-topaz-flame.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_violet_crest {
  --avatar-frame-image: url('/img/avatar-frames/royal-violet-crest.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 58.00%;
}
.avatar-frame-royal_violet_laurel {
  --avatar-frame-image: url('/img/avatar-frames/royal-violet-laurel.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 60.00%;
}
.avatar-frame-gpt_aurora_seraph {
  --avatar-frame-image: url('/img/avatar-frames/gpt-aurora-seraph.gif');
  --avatar-frame-hole-x: 49.61%; --avatar-frame-hole-y: 52.73%; --avatar-frame-hole-size: 52.00%;
}
.avatar-frame-gpt_inferno_crown {
  --avatar-frame-image: url('/img/avatar-frames/gpt-inferno-crown.gif');
  --avatar-frame-hole-x: 49.61%; --avatar-frame-hole-y: 50.00%; --avatar-frame-hole-size: 52.00%;
}
.avatar-frame-gpt_emerald_pagoda {
  --avatar-frame-image: url('/img/avatar-frames/gpt-emerald-pagoda.gif');
  --avatar-frame-hole-x: 49.61%; --avatar-frame-hole-y: 45.31%; --avatar-frame-hole-size: 52.00%;
}
.avatar-frame-gpt_moon_pearl {
  --avatar-frame-image: url('/img/avatar-frames/gpt-moon-pearl.gif');
  --avatar-frame-hole-x: 49.41%; --avatar-frame-hole-y: 52.15%; --avatar-frame-hole-size: 52.00%;
}
.avatar-frame-gpt_dragon_regalia {
  --avatar-frame-image: url('/img/avatar-frames/gpt-dragon-regalia.gif');
  --avatar-frame-hole-x: 49.61%; --avatar-frame-hole-y: 46.48%; --avatar-frame-hole-size: 52.00%;
}
.avatar-frame-gpt_sapphire_crest {
  --avatar-frame-image: url('/img/avatar-frames/gpt-sapphire-crest.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 48.83%; --avatar-frame-hole-size: 52.00%;
}
.avatar-frame-gpt_orchid_bloom {
  --avatar-frame-image: url('/img/avatar-frames/gpt-orchid-bloom.gif');
  --avatar-frame-hole-x: 49.61%; --avatar-frame-hole-y: 52.15%; --avatar-frame-hole-size: 52.00%;
}
.avatar-frame-gpt_jade_drakes {
  --avatar-frame-image: url('/img/avatar-frames/gpt-jade-drakes.gif');
  --avatar-frame-hole-x: 49.61%; --avatar-frame-hole-y: 45.31%; --avatar-frame-hole-size: 52.00%;
}
.avatar-frame-gpt_lotus_moon {
  --avatar-frame-image: url('/img/avatar-frames/gpt-lotus-moon.gif');
  --avatar-frame-hole-x: 49.80%; --avatar-frame-hole-y: 49.22%; --avatar-frame-hole-size: 52.00%;
}
.avatar-frame-gpt_sunfire_wings {
  --avatar-frame-image: url('/img/avatar-frames/gpt-sunfire-wings.gif');
  --avatar-frame-hole-x: 49.61%; --avatar-frame-hole-y: 53.12%; --avatar-frame-hole-size: 52.00%;
}
.avatar-frame-gpt2_phoenix_flame {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-phoenix-flame.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 55.08%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_sapphire_serpent {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-sapphire-serpent.gif');
  --avatar-frame-hole-x: 49.22%; --avatar-frame-hole-y: 53.91%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_divine_heir {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-divine-heir.gif');
  --avatar-frame-hole-x: 50.78%; --avatar-frame-hole-y: 54.49%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_amethyst_empress {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-amethyst-empress.gif');
  --avatar-frame-hole-x: 47.07%; --avatar-frame-hole-y: 55.47%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_regal_jade {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-regal-jade.gif');
  --avatar-frame-hole-x: 51.17%; --avatar-frame-hole-y: 55.08%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_holy_blessing {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-holy-blessing.gif');
  --avatar-frame-hole-x: 49.80%; --avatar-frame-hole-y: 53.32%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_infernal_wrath {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-infernal-wrath.gif');
  --avatar-frame-hole-x: 50.59%; --avatar-frame-hole-y: 54.88%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_gilded_fortune {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-gilded-fortune.gif');
  --avatar-frame-hole-x: 49.22%; --avatar-frame-hole-y: 57.62%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_aura_sylph {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-aura-sylph.gif');
  --avatar-frame-hole-x: 50.39%; --avatar-frame-hole-y: 53.32%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_celestial_moonlight {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-celestial-moonlight.gif');
  --avatar-frame-hole-x: 50.20%; --avatar-frame-hole-y: 51.56%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_dragon_emperor {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-dragon-emperor.gif');
  --avatar-frame-hole-x: 48.63%; --avatar-frame-hole-y: 51.76%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_lotus_auspice {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-lotus-auspice.gif');
  --avatar-frame-hole-x: 49.22%; --avatar-frame-hole-y: 50.39%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_storm_vanguard {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-storm-vanguard.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 53.52%; --avatar-frame-hole-size: 49.04%;
}
.avatar-frame-gpt2_dawn_sovereign {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-dawn-sovereign.gif');
  --avatar-frame-hole-x: 50.59%; --avatar-frame-hole-y: 52.93%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_frost_sovereign {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-frost-sovereign.gif');
  --avatar-frame-hole-x: 49.22%; --avatar-frame-hole-y: 51.76%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_sunfire_monarch {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-sunfire-monarch.gif');
  --avatar-frame-hole-x: 49.02%; --avatar-frame-hole-y: 53.12%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_abyssal_warden {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-abyssal-warden.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 53.52%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_emerald_guardian {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-emerald-guardian.gif');
  --avatar-frame-hole-x: 49.41%; --avatar-frame-hole-y: 52.93%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_void_eclipse {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-void-eclipse.gif');
  --avatar-frame-hole-x: 49.41%; --avatar-frame-hole-y: 51.37%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_radiant_seraph {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-radiant-seraph.gif');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 49.61%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt2_void_omen {
  --avatar-frame-image: url('/img/avatar-frames/gpt2-void-omen.gif');
  --avatar-frame-hole-x: 49.02%; --avatar-frame-hole-y: 52.73%; --avatar-frame-hole-size: 49.00%;
}
.avatar-frame-gpt3_rose_thorn {
  --avatar-frame-image: url('/img/avatar-frames/gpt3-rose-thorn.webp');
  --avatar-frame-hole-x: 49.90%; --avatar-frame-hole-y: 46.29%; --avatar-frame-hole-size: 57.84%;
}
.avatar-frame-gpt3_opal_butterfly {
  --avatar-frame-image: url('/img/avatar-frames/gpt3-opal-butterfly.webp');
  --avatar-frame-hole-x: 49.80%; --avatar-frame-hole-y: 48.34%; --avatar-frame-hole-size: 59.60%;
}
.avatar-frame-gpt3_tide_trident {
  --avatar-frame-image: url('/img/avatar-frames/gpt3-tide-trident.webp');
  --avatar-frame-hole-x: 49.90%; --avatar-frame-hole-y: 52.93%; --avatar-frame-hole-size: 54.33%;
}
.avatar-frame-gpt3_lantern_festival {
  --avatar-frame-image: url('/img/avatar-frames/gpt3-lantern-festival.webp');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 47.36%; --avatar-frame-hole-size: 57.84%;
}
.avatar-frame-gpt3_moon_antler {
  --avatar-frame-image: url('/img/avatar-frames/gpt3-moon-antler.webp');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 49.90%; --avatar-frame-hole-size: 56.67%;
}
.avatar-frame-gpt3_jade_sanctum {
  --avatar-frame-image: url('/img/avatar-frames/gpt3-jade-sanctum.webp');
  --avatar-frame-hole-x: 49.80%; --avatar-frame-hole-y: 54.39%; --avatar-frame-hole-size: 57.26%;
}
.avatar-frame-gpt3_clockwork_astrolabe {
  --avatar-frame-image: url('/img/avatar-frames/gpt3-clockwork-astrolabe.webp');
  --avatar-frame-hole-x: 49.90%; --avatar-frame-hole-y: 52.83%; --avatar-frame-hole-size: 54.91%;
}
.avatar-frame-gpt3_coral_aurelia {
  --avatar-frame-image: url('/img/avatar-frames/gpt3-coral-aurelia.webp');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 47.27%; --avatar-frame-hole-size: 60.19%;
}
.avatar-frame-gpt3_koi_pearl {
  --avatar-frame-image: url('/img/avatar-frames/gpt3-koi-pearl.webp');
  --avatar-frame-hole-x: 50.00%; --avatar-frame-hole-y: 48.83%; --avatar-frame-hole-size: 65.27%;
}
.avatar-frame-gpt3_solar_phoenix {
  --avatar-frame-image: url('/img/avatar-frames/gpt3-solar-phoenix.webp');
  --avatar-frame-hole-x: 49.80%; --avatar-frame-hole-y: 51.76%; --avatar-frame-hole-size: 59.41%;
}
/* End raster avatar frames. */
.feed-author > .avatar-frame-gif, .user-row > .avatar-frame-gif { width: 64px; height: 64px; }
.profile-core > .avatar-frame-gif { width: 150px; height: 150px; }
.profile-row > .avatar-frame-gif { width: 96px; height: 96px; }
.account-preview-body > .avatar-frame-gif { width: 118px; height: 118px; margin-top: -59px; }
.fav-chip .avatar-frame-gif { width: 34px; height: 34px; padding: 0; }
.chat-page .me-card > .me-avatar-frame { display: inline-grid; place-items: center; flex: 0 0 auto; }
.chat-page .me-card > .avatar-frame-gif { width: 58px; height: 58px; }
.chat-page .msg > .avatar-frame { align-self: flex-start; }
.chat-page .msg > .avatar-frame-gif { width: 48px; height: 48px; }
.chat-page .msg.grouped > .avatar-frame { visibility: hidden; }
.chat-page .user-item > .avatar-frame-gif { width: 50px; height: 50px; margin: -4px 0; }
.chat-page .profile-pop-avatar-frame { display: inline-grid; place-items: center; width: max-content; margin-top: -56px; }
.chat-page .profile-pop-avatar-frame > .profile-pop-av { margin-top: 0; }
.chat-page .profile-pop-avatar-frame.avatar-frame { margin-top: -59px; }
.chat-page .profile-pop-avatar-frame.avatar-frame-gif { width: 138px; height: 138px; margin-top: -70px; }
.avatar-frame-preview.avatar-frame-gif { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.avatar-frame-preview.avatar-frame-gif > span { border-radius: 50%; }
.feed-body { padding: 1rem; }
.feed-author { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.feed-avatar, .user-avatar { display: block; width: 42px; height: 42px; border-radius: 6px; border: 1px solid var(--neon-cyan);
  overflow: hidden; background: rgba(0,240,255,0.1); flex: 0 0 auto; }
.feed-name, .user-name {
  display: inline-flex;
  align-items: center;
  min-height: 2.125rem;
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 700;
}
.feed-meta, .user-meta, .mini-meta { color: var(--text-dim); font-size: 0.78rem; text-decoration: none; }
.feed-text { color: var(--text); white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
.hashtag {
  display: inline-flex;
  align-items: center;
  min-height: 2.125rem;
  border: none;
  border-radius: 5px;
  background: none;
  padding: 0 0.35rem;
  font: inherit;
  color: var(--neon-cyan);
  cursor: pointer;
}
.hashtag:hover,
.hashtag:focus-visible {
  background: rgba(0, 240, 255, 0.08);
  text-decoration: underline;
}
.mention { color: var(--neon-pink); text-decoration: none; }
.mention:hover { text-decoration: underline; }
/* 🏆 gift leaderboards on /online */
.lb-group {
  margin-top: 0.85rem;
  padding: 0.75rem;
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(0, 240, 255, 0.045), transparent 46%),
    rgba(7, 7, 13, 0.28);
}
.lb-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--text-dim2);
  letter-spacing: 0.05em;
  margin: 0 0 0.55rem;
}
.lb-title::before {
  content: '';
  width: 3px;
  height: 1em;
  border-radius: 999px;
  background: var(--neon-pink);
  box-shadow: 0 0 8px rgba(255, 43, 214, 0.5);
}
.lb-list { display: flex; flex-direction: column; gap: 0.42rem; }
.lb-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.12s;
}
.lb-row:hover,
.lb-row:focus-visible {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.055);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.16);
  outline: none;
}
.lb-row:active { transform: translateY(1px); }
.lb-row.top-rank {
  border-color: rgba(246, 255, 0, 0.24);
  background:
    linear-gradient(90deg, rgba(246, 255, 0, 0.07), transparent 52%),
    rgba(255, 255, 255, 0.022);
}
.lb-rank {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 43, 214, 0.35);
  border-radius: 999px;
  color: var(--neon-pink);
  background: rgba(255, 43, 214, 0.055);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
}
.lb-row.top-rank .lb-rank {
  color: var(--bg);
  border-color: var(--neon-yellow, #f6ff00);
  background: var(--neon-yellow, #f6ff00);
  box-shadow: 0 0 10px rgba(246, 255, 0, 0.38);
}
.lb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0.16rem 0.5rem;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 999px;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.045);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
}
/* 💬 Q&A: profile panel + answered cards + account inbox */
.profile-qa-panel { grid-column: 1 / -1; }
.qa-ask { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.8rem; }
.qa-ask textarea { background: rgba(0,0,0,0.5); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-family: var(--font-mono); font-size: 0.88rem; padding: 0.55rem 0.7rem; resize: vertical; }
.qa-card { border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.8rem; margin-bottom: 0.5rem; }
.qa-q { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 0.3rem; }
.qa-a { color: var(--text); }
.qa-inbox-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.45rem;
}
.qa-inbox-row {
  position: relative;
  display: grid;
  gap: 0.65rem;
  min-height: 5rem;
  padding: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.025);
}
.qa-inbox-row::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--neon-cyan), transparent);
  opacity: 0.42;
}
.qa-inbox-row.is-pending {
  border-color: rgba(255, 43, 214, 0.25);
  background:
    linear-gradient(135deg, rgba(255, 43, 214, 0.09), rgba(0, 240, 255, 0.04)),
    rgba(0, 0, 0, 0.28);
}
.qa-inbox-row.is-pending::before {
  background: linear-gradient(180deg, var(--neon-pink), var(--neon-cyan));
  opacity: 0.95;
}
.qa-inbox-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.qa-status-chip,
.qa-inbox-time {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1.2;
}
.qa-status-chip {
  color: var(--bg);
  background: var(--neon-cyan);
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}
.qa-inbox-row.is-pending .qa-status-chip {
  background: var(--neon-pink);
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.38);
}
.qa-inbox-time {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.035);
}
.qa-inbox-q {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.qa-inbox-a {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 8px;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.045);
  font-size: 0.88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
/* account overview: stats strip in the identity card */
.account-stats { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.acct-stat { display: flex; flex-direction: column; min-width: 64px; }
.acct-stat strong { font-family: var(--font-display); color: var(--neon-cyan); font-size: 1.1rem; line-height: 1.2; }
.acct-stat span { font-size: 0.72rem; color: var(--text-dim); font-family: var(--font-mono); }
.qa-inbox-actions {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto auto;
  gap: 0.5rem;
  align-items: center;
}
.qa-answer-input {
  min-width: 0;
  min-height: 2.5rem;
  background: rgba(0,0,0,0.46);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  color-scheme: dark;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.55rem 0.7rem;
}
.qa-answer-input:focus-visible {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}
.inline-btn.primary {
  border-color: transparent;
  color: var(--bg);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  text-shadow: none;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.18);
}
.inline-btn.primary:hover {
  color: var(--bg);
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.32);
}
.board-tag-active { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; padding: 0.5rem 0.8rem;
  border: 1px solid rgba(0, 240, 255, 0.25); border-radius: 6px; background: rgba(0, 240, 255, 0.05); color: var(--text); }
.board-tag-active strong { color: var(--neon-cyan); }
.clear-tag { margin-left: auto; border: 1px solid var(--line); background: none; color: var(--text-dim);
  border-radius: 5px; padding: 0.25rem 0.6rem; cursor: pointer; font-size: 0.8rem; transition: color 0.15s, border-color 0.15s; }
.clear-tag:hover { color: var(--neon-pink); border-color: var(--neon-pink); }
.tip-count { color: var(--text-dim); font-size: 0.85rem; align-self: center; }
.follow-tag { border: 1px solid rgba(0, 240, 255, 0.4); background: none; color: var(--neon-cyan);
  border-radius: 5px; padding: 0.25rem 0.6rem; cursor: pointer; font-size: 0.8rem; transition: background 0.15s; }
.follow-tag:hover { background: rgba(0, 240, 255, 0.12); }
.board-trending { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0.2rem 0 0.6rem; }
.board-trending-label { color: var(--text-dim); font-size: 0.82rem; margin-right: 0.2rem; }
.profile-pinned { margin: 0.6rem 0; }
.pinned-card { border: 1px solid rgba(0,240,255,0.35); border-radius: 12px; padding: 0.7rem 0.9rem; background: rgba(0,240,255,0.03); }
.pinned-head { color: var(--neon-cyan); font-size: 0.82rem; font-weight: 600; margin-bottom: 0.3rem; }
.pinned-card .feed-image { max-height: 320px; border-radius: 8px; margin-top: 0.4rem; border-top: 0; }
.pinned-link { display: inline-block; margin-top: 0.4rem; color: var(--neon-cyan); text-decoration: none; font-size: 0.85rem; }
.board-schedule-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.3rem 0; color: var(--text-dim); font-size: 0.85rem; }
.board-schedule-wrap input {
  min-height: 2.125rem;
  padding: 0.4rem 0.6rem;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  color-scheme: dark;
  font: inherit;
  outline: none;
}
.board-schedule-wrap input:focus-visible {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}
.board-schedule-wrap input::-webkit-calendar-picker-indicator { filter: invert(1) hue-rotate(140deg); opacity: 0.82; }
.notif-prefs-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.65rem;
}
.notif-pref-row {
  display: grid;
  grid-template-columns: auto 2.2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-height: 3.45rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.22);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.notif-pref-row:hover,
.notif-pref-row:focus-within {
  border-color: rgba(0, 240, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.09), rgba(255, 43, 214, 0.035)),
    rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.1);
}
.notif-pref-row input[type="checkbox"] {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  margin: 0;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.notif-pref-row input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--text-dim);
  transition: transform 0.18s, background 0.18s;
}
.notif-pref-row input[type="checkbox"]:checked {
  border-color: rgba(0, 240, 255, 0.55);
  background: rgba(0, 240, 255, 0.18);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}
.notif-pref-row input[type="checkbox"]:checked::after {
  transform: translateX(1.22rem);
  background: var(--neon-cyan);
}
.notif-pref-row input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
}
.notif-pref-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.055);
  font-size: 0.95rem;
}
.notif-pref-copy {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}
.notif-pref-title {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.notif-pref-state {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.35;
}
.referral-link-row,
.muted-keyword-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.75rem;
}
.referral-input,
.muted-keyword-form input {
  min-width: 0;
  min-height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  color-scheme: dark;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  padding: 0.58rem 0.75rem;
}
.referral-input:focus-visible,
.muted-keyword-form input:focus-visible {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.24);
}
.referral-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.referral-stat {
  display: grid;
  gap: 0.16rem;
  min-height: 3.1rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.045);
}
.referral-stat strong {
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-size: 0.96rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.referral-stat span {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.35;
}
.tag-follow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.tag-follow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  max-width: 100%;
  padding: 0.22rem 0.32rem 0.22rem 0.72rem;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.055);
  box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.025);
}
.tag-follow-chip-muted {
  border-color: rgba(255, 43, 214, 0.22);
  background: rgba(255, 43, 214, 0.04);
}
.tag-follow-chip-board {
  border-color: rgba(0, 240, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.07), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.18);
}
.tag-follow-link,
.tag-follow-label {
  min-width: 0;
  overflow: hidden;
  color: var(--neon-cyan);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag-follow-label {
  color: var(--text);
}
.tag-follow-link:hover,
.tag-follow-link:focus-visible {
  color: var(--neon-pink);
  outline: none;
  text-decoration: underline;
}
.tag-follow-rm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(255, 43, 214, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0;
}
.tag-follow-rm:hover,
.tag-follow-rm:focus-visible {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  background: rgba(255, 43, 214, 0.1);
  outline: none;
}
.visitor-summary {
  margin: 0.35rem 0 0;
  color: var(--text-dim2);
  font-size: 0.88rem;
  line-height: 1.55;
}
.visitor-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.65rem;
}
.visitor-row {
  display: grid;
  grid-template-columns: 2.65rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.23);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.visitor-row:hover,
.visitor-row:focus-visible {
  border-color: rgba(0, 240, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 43, 214, 0.035)),
    rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.12);
  outline: none;
  transform: translateY(-1px);
}
.visitor-avatar-wrap,
.visitor-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.visitor-avatar {
  width: 2.45rem;
  height: 2.45rem;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.06);
}
.visitor-avatar .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visitor-info {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.visitor-name {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.visitor-handle,
.visitor-when {
  color: var(--text-dim);
  font-size: 0.76rem;
  white-space: nowrap;
}
.visitor-when {
  justify-self: end;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}
.visitor-upsell a {
  color: var(--neon-cyan);
  text-decoration: none;
}
.visitor-upsell a:hover,
.visitor-upsell a:focus-visible {
  color: var(--neon-pink);
  outline: none;
}
@media (max-width: 620px) {
  .qa-inbox-row {
    padding: 0.75rem;
  }
  .qa-inbox-actions {
    grid-template-columns: 1fr;
  }
  .qa-inbox-actions .inline-btn,
  .qa-inbox-actions .tiny-btn {
    width: 100%;
  }
  .notif-pref-row {
    grid-template-columns: auto 2rem minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.6rem;
  }
  .notif-pref-row input[type="checkbox"] {
    width: 2.55rem;
  }
  .notif-pref-row input[type="checkbox"]:checked::after {
    transform: translateX(1.02rem);
  }
  .visitor-row {
    grid-template-columns: 2.55rem minmax(0, 1fr);
  }
  .visitor-when {
    grid-column: 2;
    justify-self: start;
  }
}
.feed-image { width: 100%; max-height: 520px; object-fit: cover; display: block; border-top: 1px solid var(--line); }
/* The <a> wrapping a post image: make it a block so there's no inline baseline
   gap under the image (the .feed-card clips the corners via overflow:hidden). */
.feed-image-link { display: block; line-height: 0; }
.feed-gallery { display: grid; gap: 2px; border-top: 1px solid var(--line); }
.feed-gallery.gallery-2, .feed-gallery.gallery-3, .feed-gallery.gallery-4 { grid-template-columns: 1fr 1fr; }
.feed-gallery .feed-image { max-height: 260px; border-top: 0; }
.feed-gallery .feed-image-link { border-top: 0; }
.repost-embed { display: block; margin: 0.4rem 1rem 0; padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; background: rgba(255,255,255,0.02); }
.repost-embed.unavailable { color: var(--text-dim, #8aa); font-size: 0.85rem; }
.repost-embed-author { font-size: 0.85rem; margin-bottom: 0.2rem; }
.repost-embed-body { font-size: 0.9rem; white-space: pre-wrap; word-break: break-word; }
.repost-embed-img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 8px; margin-top: 0.4rem; }
.repost-count { color: var(--text-dim, #8aa); font-size: 0.82rem; align-self: center; }

/* polish for the new board features: threaded replies / image gallery / repost */
.comment-reply-btn { margin-left: 0.4rem; padding: 0 0.35em; border: none; background: none;
  color: var(--text-dim); cursor: pointer; font-size: 0.85rem; line-height: 1.3; transition: color 0.15s; }
.comment-reply-btn:hover { color: var(--neon-cyan); }
.comment-row.is-reply { background: rgba(0, 240, 255, 0.035); border-radius: 0 6px 6px 0; }
/* a 3-image album reads better with the first image spanning the full width */
.feed-gallery.gallery-3 .feed-image-link:first-child { grid-column: 1 / -1; }
.repost-embed { transition: border-color 0.15s, background 0.15s; }
.repost-embed:hover { border-color: var(--neon-cyan); background: rgba(0, 240, 255, 0.05); }
/* Board composer: let the file picker share its row with the "post" button
   instead of forcing it to wrap (the shared file-input rule sets width:100%). */
.file-line input[type="file"] { width: auto; flex: 1 1 0; min-width: 0; }
[data-social-page="board"] .poll-compose {
  margin: 0;
  padding: 0.65rem;
  border: 1px solid rgba(0, 240, 255, 0.13);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}
[data-social-page="board"] .file-line {
  align-items: stretch;
  padding: 0.65rem;
  border: 1px solid rgba(0, 240, 255, 0.13);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}
[data-social-page="board"] .file-line input[type="file"] {
  min-height: 2.5rem;
  border-radius: 7px;
}
[data-social-page="board"] #board-submit {
  min-width: 7.5rem;
  min-height: 2.5rem;
  justify-content: center;
}
.poll { display: grid; gap: 0.5rem; margin: 0.2rem 0 0.4rem; }
.poll-option { position: relative; overflow: hidden; display: flex; align-items: center; gap: 0.5rem; width: 100%;
  text-align: left; padding: 0.6rem 0.8rem; border: 1px solid rgba(0, 240, 255, 0.22); border-radius: 6px;
  background: rgba(255, 255, 255, 0.02); color: var(--text); cursor: pointer; font: inherit; transition: border-color 0.15s; }
.poll-option:hover, .poll-option.voted { border-color: var(--neon-cyan); }
.poll-bar { position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  appearance: none; -webkit-appearance: none; background: transparent; pointer-events: none; z-index: 0; }
.poll-bar::-webkit-progress-bar { background: transparent; }
.poll-bar::-webkit-progress-value { background: rgba(0, 240, 255, 0.14); transition: width 0.4s ease; }
.poll-bar::-moz-progress-bar { background: rgba(0, 240, 255, 0.14); transition: width 0.4s ease; }
.poll-label { position: relative; z-index: 1; flex: 1; }
.poll-pct { position: relative; z-index: 1; color: var(--neon-cyan); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.poll-total { color: var(--text-dim); font-size: 0.78rem; }
.poll-compose { margin: 0.3rem 0; }
.poll-compose summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.125rem;
  cursor: pointer;
  color: var(--neon-cyan);
  font-size: 0.85rem;
  padding: 0.25rem 0.35rem;
  border-radius: 5px;
}
.poll-compose summary:hover,
.poll-compose summary:focus-visible { background: rgba(0, 240, 255, 0.08); }
.poll-compose input { display: block; width: 100%; margin-top: 0.4rem; padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: inherit; }
.poll-compose small { display: block; margin-top: 0.4rem; color: var(--text-dim); font-size: 0.75rem; }
.reactions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.1rem 0 0.5rem; }
.reaction { display: inline-flex; align-items: center; justify-content: center; min-width: 2.125rem; min-height: 2.125rem; gap: 0.25rem; padding: 0.25rem 0.65rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--text); cursor: pointer;
  font-size: 0.95rem; line-height: 1.4; transition: border-color 0.15s, background 0.15s; }
.reaction:hover,
.reaction:focus-visible { border-color: var(--neon-cyan); background: rgba(0, 240, 255, 0.08); }
.reaction.on { border-color: var(--neon-cyan); background: rgba(0, 240, 255, 0.12); }
.reaction-n { font-size: 0.78rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.reaction.on .reaction-n { color: var(--neon-cyan); }
.comment-reactions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; margin-left: 0.3rem; vertical-align: middle; }
.reaction.sm { padding: 0.18rem 0.5rem; font-size: 0.85rem; line-height: 1.3; }
.react-add { display: inline-flex; align-items: center; justify-content: center; min-width: 2.125rem; min-height: 2.125rem; padding: 0 0.45em; border: 1px solid var(--line); background: none; color: var(--text-dim);
  border-radius: 999px; cursor: pointer; font-size: 0.8rem; line-height: 1.4; transition: color 0.15s, border-color 0.15s; }
.react-add:hover,
.react-add:focus-visible { color: var(--neon-cyan); border-color: var(--neon-cyan); background: rgba(0, 240, 255, 0.08); }
.react-palette { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; }
.react-palette.hidden { display: none; }
.feed-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.8rem 1rem; border-top: 1px solid var(--line); }
/* .feed-actions button colors live in the unified .tiny-btn/.social-btn
 * block above — same vocabulary, less drift when a new flavor is added. */
.comment-list { padding: 0 1rem 1rem; display: grid; gap: 0.45rem; }
.comment-row { border-left: 2px solid rgba(0,240,255,0.35); padding-left: 0.6rem; color: var(--text); font-size: 0.86rem; }
.comment-row.is-reply { margin-left: 1.1rem; border-left-color: rgba(0,240,255,0.16); }
.reply-form { margin: 0.15rem 0 0.4rem 1.1rem; }
.comment-del { margin-left: 0.4rem; padding: 0 0.35em; border: none; background: none; color: var(--text-dim);
  font-size: 0.8rem; line-height: 1; cursor: pointer; vertical-align: baseline; transition: color 0.15s; }
.comment-del:hover { color: var(--neon-pink); }
.comment-like { margin-left: 0.4rem; padding: 0 0.35em; border: none; background: none; color: var(--text-dim);
  font-size: 0.78rem; line-height: 1; cursor: pointer; vertical-align: baseline; transition: color 0.15s; }
.comment-like:hover { color: var(--neon-pink); }
.comment-time { margin-left: 0.4rem; color: var(--text-dim); font-size: 0.72rem; white-space: nowrap; }
.side-list, .user-list, .leader-list, .coin-list, .gift-list { display: grid; gap: 0.7rem; }
.side-row, .user-row, .leader-row, .coin-row, .gift-row { border: 1px solid rgba(0,240,255,0.14);
  border-radius: 6px; padding: 0.75rem; background: rgba(255,255,255,0.02); }
.action-row { color: var(--text); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.action-row:hover { border-color: var(--neon-cyan); transform: translateX(2px); color: var(--neon-cyan); }
.user-row, .leader-row { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.rank-badge { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--neon-pink);
  color: var(--neon-pink); border-radius: 6px; font-family: var(--font-display); font-weight: 900; }
.coin-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(5.25rem, auto) minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-height: 4.35rem;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.045), transparent 48%),
    rgba(255,255,255,0.02);
}
.coin-row::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(0, 240, 255, 0.42);
}
.coin-row strong {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  max-width: 100%;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 999px;
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-size: 0.84rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coin-row .mini-meta { min-width: 0; line-height: 1.45; }
.coin-row-credit::before { background: var(--neon-green, #36f1a3); }
.coin-row-credit strong {
  border-color: rgba(54, 241, 163, 0.32);
  color: var(--neon-green, #36f1a3);
  background: rgba(54, 241, 163, 0.06);
}
.coin-row-debit::before { background: var(--neon-pink); }
.coin-row-debit strong {
  border-color: rgba(255, 43, 214, 0.28);
  color: var(--neon-pink);
  background: rgba(255, 43, 214, 0.055);
}
.payment-row::before { background: var(--neon-yellow, #f6ff00); }
.payment-row strong {
  border-color: rgba(246, 255, 0, 0.26);
  color: var(--neon-yellow, #f6ff00);
  background: rgba(246, 255, 0, 0.055);
}
.coin-result { margin: 1rem 0; }
.coin-packages { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0.8rem; align-items: stretch; }
@media (max-width: 900px) { .coin-packages { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .coin-packages { grid-template-columns: 1fr; } }
.coin-package {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 13.5rem;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 8px;
  padding: 1rem;
  background:
    radial-gradient(125% 90% at 100% 0%, rgba(246, 255, 0, 0.08), transparent 48%),
    linear-gradient(145deg, rgba(0, 240, 255, 0.045), transparent 44%),
    rgba(255,255,255,0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
}
.coin-package::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-yellow, #f6ff00), var(--neon-cyan));
  opacity: 0.55;
}
.coin-package:hover {
  border-color: rgba(246, 255, 0, 0.5);
  box-shadow: 0 0 18px rgba(246, 255, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}
.coin-package-badge { position: absolute; top: 0.65rem; right: 0.65rem; max-width: 48%;
  display: inline-flex; align-items: center; justify-content: center; min-height: 1.45rem;
  color: var(--bg); background: var(--neon-pink); border-radius: 4px; padding: 0.18rem 0.45rem;
  font-family: var(--font-display); font-size: 0.55rem; letter-spacing: 0.08em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 0 8px rgba(255,43,214,0.45); }
.coin-package .coin-amount {
  padding-right: 4.5rem;
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(255, 43, 214, 0.35);
}
.coin-package .mini-meta { min-height: 2.25rem; line-height: 1.45; }
.coin-bonus-line, .coin-campaign-line { margin-top: 0.35rem; color: var(--text-dim); font-size: 0.76rem; line-height: 1.35; }
.coin-campaign-line { color: var(--neon-pink); }
.coin-package-actions {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0.85rem 0 0;
  border: 0;
  border-top: 1px solid rgba(0, 240, 255, 0.12);
}
.coin-package-actions button {
  width: 100%;
  min-height: 2.25rem;
  padding-inline: 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}
.coin-package-actions button[data-buy-promptpay] {
  border-color: rgba(255, 43, 214, 0.55);
  color: var(--neon-pink);
  background: rgba(255, 43, 214, 0.06);
}
.coin-package-actions button[data-buy-promptpay]:hover,
.coin-package-actions button[data-buy-promptpay]:focus-visible {
  background: var(--neon-pink);
  color: var(--bg);
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.38);
}
.coin-spend-menu { margin: 1rem 0; }
.coin-spend-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.7rem; }
.coin-spend-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.42rem;
  min-height: 9rem;
  overflow: hidden;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(0,240,255,0.18);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dim);
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(255, 43, 214, 0.075), transparent 48%),
    rgba(255,255,255,0.025);
  transition: border-color 0.18s, transform 0.15s, box-shadow 0.18s, background 0.18s;
}
.coin-spend-card::after {
  content: '›';
  position: absolute;
  right: 0.75rem;
  top: 0.65rem;
  color: var(--neon-pink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.72;
  text-shadow: 0 0 8px rgba(255, 43, 214, 0.38);
}
.coin-spend-card:hover,
.coin-spend-card:focus-visible {
  border-color: var(--neon-cyan);
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(255, 43, 214, 0.105), transparent 48%),
    rgba(0, 240, 255, 0.045);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.16);
  transform: translateY(-2px);
  outline: none;
}
.coin-spend-card strong {
  padding-right: 1.25rem;
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.coin-spend-card span:not(.coin-spend-price) { line-height: 1.45; }
.coin-spend-price {
  align-self: start;
  width: max-content;
  max-width: 100%;
  color: var(--neon-pink);
  font-family: var(--font-mono);
  padding: 0.14rem 0.45rem;
  border: 1px solid rgba(255, 43, 214, 0.25);
  border-radius: 999px;
  background: rgba(255, 43, 214, 0.06);
}
@media (max-width: 980px) { .coin-spend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .coin-spend-grid { grid-template-columns: 1fr; } }
.slip-verify-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(0, 240, 255, 0.06), transparent 44%),
    linear-gradient(315deg, rgba(255, 43, 214, 0.045), transparent 46%),
    rgba(7, 7, 13, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.slip-verify-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
  flex-wrap: wrap;
  color: var(--text);
}
.slip-verify-head strong {
  color: var(--neon-cyan);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}
.slip-verify-head span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  max-width: 100%;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(246, 255, 0, 0.26);
  border-radius: 999px;
  background: rgba(246, 255, 0, 0.05);
  color: var(--neon-yellow, #f6ff00);
  font-size: 0.78rem;
  line-height: 1.35;
}
.slip-file-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 0.65rem;
  align-items: center; color: var(--text-dim); font-size: 0.8rem; padding: 0.65rem;
  border: 1px solid rgba(0, 240, 255, 0.12); border-radius: 7px;
  background: rgba(0, 0, 0, 0.22); }
.slip-file-row > span:first-child { color: var(--text-dim2); }
.slip-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.slip-file-pick { width: max-content; min-height: 38px; padding: 0.45rem 0.8rem;
  border: 1px solid var(--neon-cyan); border-radius: 6px; background: rgba(0, 240, 255, 0.08);
  color: var(--neon-cyan); font-family: var(--font-mono); font-size: 0.78rem; cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.slip-file-pick:hover:not(:disabled), .slip-file-pick:focus-visible {
  background: var(--neon-cyan); color: var(--bg); box-shadow: 0 0 10px rgba(0, 240, 255, 0.35); outline: none;
}
.slip-file-pick:disabled { cursor: not-allowed; opacity: 0.5; }
.slip-file-name {
  min-width: 0;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}
.slip-data-line { display: grid; gap: 0.35rem; color: var(--text-dim); font-size: 0.8rem; }
.slip-data-line textarea { min-height: 5.5rem; resize: vertical; padding: 0.75rem; border: 1px solid rgba(0, 240, 255, 0.14); border-radius: 6px; background: rgba(0, 0, 0, 0.38); color: var(--text); font-family: var(--font-mono); color-scheme: dark; }
.slip-data-line textarea::placeholder { color: var(--text-dim); opacity: 0.85; }
.slip-data-line textarea:focus { outline: none; border-color: var(--neon-cyan); box-shadow: 0 0 14px rgba(0, 240, 255, 0.24); }
.slip-data-line textarea:disabled { cursor: not-allowed; opacity: 0.58; }
.slip-verify-form .social-btn.primary {
  width: 100%;
  min-height: 2.5rem;
}
.slip-verify-form .social-btn.primary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}
.slip-verify-form .mini-meta[data-slip-result] {
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px dashed rgba(0, 240, 255, 0.18);
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.035);
  line-height: 1.45;
}
.coin-row-actions { grid-column: 1 / -1; margin-top: 0.2rem; }
.coin-row-actions button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.125rem; padding: 0.35rem 0.75rem;
  border: 1px solid var(--line); border-radius: 5px;
  background: transparent; color: var(--text-dim);
  font-family: var(--font-mono); font-size: 0.75rem; cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s, box-shadow 0.18s;
}
.coin-row-actions button:hover,
.coin-row-actions button:focus-visible {
  border-color: var(--neon-cyan); color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08); outline: none;
}
.coin-amount { font-family: var(--font-display); color: var(--neon-pink); font-size: 1.5rem; }
.daily-bonus {
  position: relative;
  overflow: hidden;
  border-color: rgba(246, 255, 0, 0.2);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(246, 255, 0, 0.08), transparent 48%),
    linear-gradient(145deg, rgba(0, 240, 255, 0.045), transparent 46%),
    var(--surface-card);
}
.daily-bonus::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-yellow, #f6ff00), var(--neon-cyan), var(--neon-pink));
  opacity: 0.55;
}
.daily-bonus h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.daily-bonus h2::before {
  content: '';
  flex: 0 0 auto;
  width: 3px;
  height: 1em;
  border-radius: 999px;
  background: var(--neon-yellow, #f6ff00);
  box-shadow: 0 0 8px rgba(246, 255, 0, 0.42);
}
.daily-bonus .social-note { margin-bottom: 0; line-height: 1.55; }
.daily-bonus-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  padding: 0.7rem;
  border: 1px solid rgba(0, 240, 255, 0.13);
  border-radius: 8px;
  background: rgba(7, 7, 13, 0.34);
}
.daily-bonus-row .coin-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  min-width: 5.5rem;
  padding: 0.2rem 0.75rem;
  border: 1px solid rgba(54, 241, 163, 0.34);
  border-radius: 999px;
  background: rgba(54, 241, 163, 0.06);
  color: var(--neon-green, #36f1a3);
  font-size: 1.35rem;
  line-height: 1;
}
.daily-bonus-row .social-btn.primary {
  min-height: 2.4rem;
  margin-left: auto;
}
.daily-bonus-done,
.daily-streak {
  display: inline-flex;
  align-items: center;
  min-height: 2.125rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1.35;
}
.daily-bonus-done {
  color: var(--text-dim2);
  border: 1px dashed rgba(0, 240, 255, 0.18);
  background: rgba(0, 240, 255, 0.035);
}
.daily-streak {
  color: var(--neon-pink);
  border: 1px solid rgba(255, 43, 214, 0.24);
  background: rgba(255, 43, 214, 0.055);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
@media (max-width: 560px) {
  .daily-bonus-row { align-items: stretch; }
  .daily-bonus-row .coin-amount,
  .daily-bonus-row .social-btn.primary,
  .daily-bonus-done,
  .daily-streak {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}
@media (max-width: 560px) {
  .slip-file-row { grid-template-columns: 1fr; align-items: stretch; }
  .slip-file-pick { width: 100%; }
  .coin-row { grid-template-columns: 1fr; }
  .coin-row strong { justify-self: start; }
}
.achv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; margin-top: 0.5rem; }
.achv-badge { display: flex; align-items: center; gap: 0.5rem; border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 8px; padding: 0.55rem 0.7rem; background: rgba(0, 240, 255, 0.05); }
.achv-emoji { font-size: 1.3rem; line-height: 1; }
.achv-name { color: var(--text); font-size: 0.8rem; line-height: 1.3; }
.achv-locked { opacity: 0.4; filter: grayscale(1); border-color: var(--line); background: rgba(255, 255, 255, 0.02); }
.profile-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-card);
  box-shadow: var(--shadow-panel);
}
.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-yellow));
  opacity: 0.78;
  pointer-events: none;
}
.profile-banner { position: relative; overflow: hidden; min-height: clamp(140px, 18vw, 190px); background: linear-gradient(120deg, rgba(0,240,255,0.18), rgba(255,43,214,0.22));
  background-size: cover; background-position: center; border-bottom: 1px solid var(--line); }
.profile-banner::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 10, 0.68));
  pointer-events: none;
}
.profile-banner-img {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover;
}
/* Legacy fallback for cached renders; .stat-chip is shared with the chat profile popover (chat.js) — keep it. */
.profile-core { display: flex; gap: 1rem; align-items: end; padding: 1rem; margin-top: -54px; }
.profile-core > .user-avatar { width: 92px; height: 92px; box-shadow: 0 0 18px rgba(0,240,255,0.35); }
.stat-chip { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.7rem; color: var(--text-dim); }

/* Modern social header (X/Discord-style): banner -> avatar overlapping at left + action
 * cluster at right -> full-width identity (name, handle, tagline, meta, stat row). */
.profile-topbar { position: relative; z-index: 4; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; min-width: 0; padding: 0 1.2rem; margin-top: -46px; }
.profile-avatar-wrap { position: relative; flex: 0 0 auto; line-height: 0; }
.profile-avatar-wrap > .user-avatar { width: 96px; height: 96px; border-radius: 8px; box-shadow: 0 0 18px rgba(0,240,255,0.35); }
.profile-avatar-wrap > .profile-avatar-frame.avatar-frame-gif { width: 156px; height: 156px; }
.profile-avatar-wrap.is-online::after { content: ''; position: absolute; right: 5px; bottom: 6px;
  width: 13px; height: 13px; border-radius: 50%; background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green); border: 2px solid var(--bg); animation: live-pulse 1.6s ease-in-out infinite; }
.profile-avatar-wrap.has-avatar-frame.is-online::after { right: 25px; bottom: 26px; }
.profile-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; min-width: 0; padding-bottom: 0.35rem; }
.profile-act { min-height: 40px; padding: 0 0.95rem; display: inline-flex; align-items: center; justify-content: center;
  min-width: 6.5rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, 0.22); color: var(--text-dim); cursor: pointer;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.02em; text-decoration: none; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.2s; }
.profile-act:hover,
.profile-act:focus-visible { border-color: var(--neon-cyan); color: var(--neon-cyan); background: rgba(0, 240, 255, 0.08); outline: none; }
.profile-act:focus-visible { box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.18), 0 0 14px rgba(0, 240, 255, 0.32); }
.profile-act:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.profile-act.is-primary { border-color: transparent; color: var(--bg); font-weight: 700;
  min-width: 7.5rem;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
  box-shadow: 0 0 16px rgba(177,75,255,0.34), 0 0 6px rgba(0,240,255,0.4); }
.profile-act.is-primary:hover { color: var(--bg); box-shadow: 0 0 22px rgba(177,75,255,0.5), 0 0 10px rgba(0,240,255,0.55); }
.profile-act.is-primary[data-following="1"] { background: transparent; color: var(--neon-cyan); border-color: var(--neon-cyan); box-shadow: none; font-weight: 400; }
.profile-act-minor { display: inline-flex; gap: 0.4rem; min-width: 0; }
.profile-act.is-minor { min-height: 40px; padding: 0 0.7rem; font-size: 0.76rem; }
.profile-act.is-danger:hover { border-color: var(--neon-red); color: var(--neon-red); }
.profile-editor-cta { margin-top: 1.2rem; }
.profile-identity { position: relative; z-index: 2; min-width: 0; padding: 0.7rem 1.2rem 1.2rem; }
.profile-name { font-family: var(--font-display); font-size: 1.65rem; line-height: 1.2; color: var(--neon-cyan); overflow-wrap: anywhere; text-wrap: balance; }
.profile-handle { font-family: var(--font-mono); color: var(--text-dim); font-size: 0.92rem; margin-top: 0.15rem; overflow-wrap: anywhere; }
.profile-tagline { color: var(--text); line-height: 1.5; margin: 0.6rem 0 0; max-width: 60ch; white-space: pre-wrap; word-break: break-word; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 0.45rem 0.6rem; margin-top: 0.65rem; color: var(--text-dim); font-size: 0.85rem; }
.profile-meta-item { display: inline-flex; align-items: center; min-height: 2rem; max-width: 100%; padding: 0.2rem 0.55rem; border: 1px solid rgba(0, 240, 255, 0.14); border-radius: 999px; background: rgba(0, 240, 255, 0.045); overflow-wrap: anywhere; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.85rem; }
.profile-stat { display: inline-flex; align-items: baseline; gap: 0.25rem; min-width: 0; min-height: 2.45rem; padding: 0.35rem 0.65rem; border: 1px solid rgba(0, 240, 255, 0.16); border-radius: 8px; background: var(--surface-card-quiet); color: var(--text-dim); font-size: 0.85rem; overflow-wrap: anywhere; }
.profile-stat b { font-family: var(--font-display); color: var(--text); font-size: 1.05rem; margin-right: 0.25rem; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; align-items: start; gap: 1.2rem; margin-top: 1.2rem; }
.profile-panel { position: relative; overflow: hidden; }
.profile-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), rgba(255, 43, 214, 0.7));
  opacity: 0.66;
  pointer-events: none;
}
.profile-panel > * { position: relative; }
/* Profile photo gallery (Pro perk) — one grid shared by the public profile
   panel and the account editor; thumbnails reuse the neon palette only. */
.profile-gallery-panel { grid-column: 1 / -1; }
.profile-gallery-section .gallery-head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.1rem; }
.profile-gallery-section .gallery-head h3 { margin: 0; }
.profile-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.5rem;
}
.profile-gallery-grid:empty { display: none; }
.profile-gallery-grid > .acc-empty { grid-column: 1 / -1; }
.gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.3);
  background-size: cover;
  background-position: center;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.gallery-thumb-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.gallery-thumb:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}
.gallery-del {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--neon-red, #ff3860);
  color: var(--neon-red, #ff3860);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, box-shadow 0.2s, transform 0.15s;
}
.gallery-thumb:hover .gallery-del,
.gallery-del:focus { opacity: 1; }
.gallery-del:hover { box-shadow: 0 0 10px rgba(255, 56, 96, 0.55); transform: scale(1.08); }
.gallery-count { color: var(--text-dim2); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 400; }
/* Drop zone — replaces the native file input UI with a neon click+drag area.
   Click works via the explicit label-for=input; drop is handled in JS. */
.gallery-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 120px;
  padding: 1rem;
  border: 1.5px dashed rgba(0, 240, 255, 0.35);
  border-radius: 8px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(0, 240, 255, 0.07), transparent 60%),
    rgba(0, 0, 0, 0.25);
  color: var(--text-dim);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, background 0.2s;
}
.gallery-dropzone:hover,
.gallery-dropzone:focus-within,
.gallery-dropzone.is-dragover {
  border-color: var(--neon-cyan);
  border-style: solid;
  color: var(--text);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.28), inset 0 0 24px rgba(0, 240, 255, 0.08);
}
.gallery-dropzone input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.gallery-dropzone .dz-glyph {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.55);
}
.gallery-dropzone .dz-title {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 0.88rem;
}
.gallery-dropzone .dz-hint { font-size: 0.74rem; color: var(--text-dim); }
.gallery-dropzone[hidden] { display: none; }
/* Upsell card — what a free member sees in place of the drop zone. */
.gallery-upsell-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(255, 43, 214, 0.06) 60%, transparent 90%),
    rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
/* display:flex above is author-origin so it beats the UA [hidden]{display:none};
   without this guard a Pro user (upsell.hidden=true) still sees the card. */
.gallery-upsell-card[hidden] { display: none; }
.gallery-upsell-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 240, 255, 0.04) 0 1px, transparent 1px 4px);
  opacity: 0.6;
}
.gallery-upsell-card > * { position: relative; }
.gallery-upsell-card .upsell-header { display: flex; align-items: center; gap: 0.55rem; }
.gallery-upsell-card .upsell-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--neon-pink);
  border-radius: 50%;
  color: var(--neon-pink);
  font-family: var(--font-mono);
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(255, 43, 214, 0.55);
  flex-shrink: 0;
}
.gallery-upsell-card .upsell-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}
.gallery-upsell-card .upsell-sub { margin: 0; line-height: 1.55; color: var(--text); font-size: 0.85rem; }
.gallery-upsell-card .upsell-sub strong { color: var(--neon-cyan); font-family: var(--font-mono); }
.gallery-upsell-card .upsell-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-top: 0.15rem;
}
.gallery-upsell-card .upsell-preview span {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 5px;
  background:
    repeating-linear-gradient(45deg, rgba(0, 240, 255, 0.06) 0 6px, transparent 6px 12px),
    rgba(0, 0, 0, 0.35);
}
.gallery-upsell-card .upsell-preview span::after {
  content: '⌬';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 240, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.gallery-upsell-card .upsell-cta { align-self: flex-start; margin-top: 0.3rem; }

/* ============================================================
   Stories — 24h ephemeral posts (bubble row + fullscreen viewer)
   ============================================================ */
.profile-stories-wrap { margin: 0 0 0.9rem; }
.profile-stories-wrap:empty { display: none; }
.story-bubble-row {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.55rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-card-quiet);
  box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.035);
  scroll-padding: 0.55rem;
  scrollbar-width: thin;
}
.story-bubble {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  border: 0;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.story-bubble:hover,
.story-bubble:focus-visible { transform: translateY(-1px); box-shadow: 0 0 12px rgba(0, 240, 255, 0.4); outline: none; }
.story-bubble-inner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.35);
  border: 2px solid var(--bg);
  overflow: hidden;
}
.story-bubble-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.story-bubble.is-add {
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(255, 43, 214, 0.08)),
    rgba(0, 0, 0, 0.35);
  border: 1.5px dashed var(--neon-cyan);
  padding: 0;
}
.story-bubble.is-add::before {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 1.7rem;
  line-height: 1;
}
.story-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  padding: 3.2rem 0 5.5rem;
}
.story-progress-row {
  position: fixed;
  top: 0.6rem;
  left: 0.8rem;
  right: 0.8rem;
  display: flex;
  gap: 4px;
  z-index: 252;
}
.story-progress {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}
.story-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}
.story-progress-fill.is-complete { width: 100%; }
.story-progress-fill.is-active { animation: story-progress-fill 5000ms linear forwards; }
@keyframes story-progress-fill { from { width: 0; } to { width: 100%; } }
.story-viewer-close {
  position: fixed;
  top: 1.8rem;
  right: 1.1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 253;
}
.story-viewer-close:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}
.story-viewer-image {
  max-width: 92vw;
  max-height: 70vh;
  object-fit: contain;
  border: 1px solid var(--neon-cyan);
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.35);
}
.story-viewer-caption {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 80vw;
  text-align: center;
  margin-top: 0.7rem;
  padding: 0.5rem 0.9rem;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
}
.story-viewer-caption:empty { display: none; }
.story-tap-left, .story-tap-right {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 30vw;
  cursor: pointer;
  z-index: 251;
}
.story-tap-left { left: 0; }
.story-tap-right { right: 0; }
.story-viewer-reactions {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.25rem;
  padding: 0.45rem 0.55rem;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
  z-index: 253;
}
.story-react-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.3rem 0.45rem;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}
.story-react-btn:hover { transform: scale(1.15); }
.story-react-btn.is-flashed {
  transform: scale(1.45);
  filter: drop-shadow(0 0 10px var(--neon-pink));
}
/* Compose card on /account — separate upload + caption + post-button form
   (different rhythm from gallery's drag-zone because each story is a single
   intentional post, not a batch upload). */
.stories-compose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.1rem;
  align-items: start;
  /* fill the card in two columns (file | caption) so the form reads balanced
   * instead of a narrow centered strip with empty margins either side. */
  margin: 0.9rem 0 0;
}
.stories-compose textarea {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 0.55rem 0.7rem;
  resize: vertical;
}
.stories-compose textarea:focus {
  border-color: var(--neon-cyan);
  outline: none;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}
.stories-compose .btn-neon { grid-column: 1 / -1; justify-self: center; min-width: 220px; }
.story-mine-thumb { cursor: pointer; }
.story-views-tag {
  position: absolute;
  z-index: 2;
  bottom: 5px;
  left: 5px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 4px;
  pointer-events: none;
}
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-core { align-items: start; }
  .profile-topbar { flex-direction: column; align-items: flex-start; gap: 0.8rem; margin-top: -40px; }
  .profile-actions { width: 100%; justify-content: flex-start; }
  .profile-banner { min-height: 130px; }
}
@media (max-width: 620px) {
  .profile-topbar { padding: 0 1rem; }
  .profile-avatar-wrap > .profile-avatar-frame.avatar-frame-gif,
  .profile-core > .avatar-frame-gif { width: 132px; height: 132px; }
  .profile-avatar-wrap.has-avatar-frame.is-online::after { right: 21px; bottom: 22px; }
  .profile-identity { padding: 0.7rem 1rem 1.1rem; }
  .profile-name { font-size: 1.4rem; }
  .profile-actions { align-items: stretch; }
  .profile-act { min-width: 0; }
  #profile-follow-btn, #profile-knock-btn { flex: 1 1 min(100%, 10rem); }
  .profile-act-minor { display: flex; flex: 1 1 100%; }
  .profile-act.is-minor { flex: 1 1 calc(50% - 0.2rem); }
  .profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 0.75rem; }
  .profile-stat { justify-content: center; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .story-bubble-row { padding: 0.45rem; scroll-padding: 0.45rem; }
  .story-bubble { width: 60px; height: 60px; }
}
.profile-form { display: grid; gap: 0.7rem; }
.rules-copy { max-width: 820px; margin: 0 auto; color: var(--text); line-height: 1.78; font-size: 0.98rem; }
.rules-copy p { margin: 0; color: var(--text-dim); }
.rules-copy p + p { margin-top: 0.9rem; }
.rules-copy h2 {
  position: relative;
  font-family: var(--font-display); color: var(--neon-cyan); letter-spacing: 0; line-height: 1.25;
  margin: 2.2rem 0 0.75rem; padding-left: 0.95rem;
  text-wrap: balance; text-shadow: 0 0 8px rgba(0,240,255,0.45);
}
.rules-copy h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.16em;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink));
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
}
.rules-copy h3 {
  margin: 1.35rem 0 0.45rem;
  color: var(--neon-pink);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.3;
  text-wrap: balance;
}
.rules-copy h3::before {
  content: '#';
  margin-right: 0.35rem;
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(0, 255, 149, 0.4);
}
.rules-copy li { margin: 0.45rem 0; }
.rules-page .rules-copy {
  max-width: 900px;
}
.rules-page .rules-copy > p {
  position: relative;
  margin: 0 auto 1.35rem;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.055), transparent 68%),
    var(--surface-card-quiet);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.rules-page .rules-copy > p::before {
  content: '!';
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid rgba(0, 240, 255, 0.48);
  border-radius: 50%;
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-size: 0.8rem;
  line-height: 1;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.22);
}
.rules-page .rules-copy ul {
  display: grid;
  gap: 0.65rem;
  margin: 0.85rem 0 1.65rem;
  padding: 0;
  list-style: none;
}
.rules-page .rules-copy li {
  position: relative;
  margin: 0;
  padding: 0.78rem 0.9rem 0.78rem 2.55rem;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 7, 13, 0.38);
  color: var(--text-dim);
  line-height: 1.65;
  box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.025);
}
.rules-page .rules-copy li::before {
  content: '';
  position: absolute;
  left: 0.9rem;
  top: 1.08rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 3px;
  background: var(--neon-green);
  box-shadow: 0 0 9px rgba(0, 255, 149, 0.42);
}
.rules-page .rules-copy h2:nth-of-type(2) + ul li {
  border-color: rgba(255, 43, 214, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 43, 214, 0.06), transparent 70%),
    rgba(7, 7, 13, 0.4);
}
.rules-page .rules-copy h2:nth-of-type(2) + ul li::before {
  background: var(--neon-pink);
  box-shadow: 0 0 9px rgba(255, 43, 214, 0.42);
}
.rules-page .rules-copy strong {
  color: var(--neon-yellow);
  font-weight: 700;
}
.seo-page .page-sub { max-width: 780px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.seo-page a:not(.btn-neon) { color: var(--neon-cyan); text-decoration: none; }
.rules-hero { position: relative; }
.rules-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-yellow));
  opacity: 0.75;
  pointer-events: none;
}
.seo-page p a:not(.btn-neon),
.seo-page li a:not(.btn-neon),
.seo-page .rules-hero a:not(.btn-neon) {
  display: inline-flex;
  align-items: center;
  min-height: 2.125rem;
  padding: 0 0.25rem;
  border-radius: 5px;
}
.seo-page a:not(.btn-neon):hover,
.seo-page a:not(.btn-neon):focus-visible {
  background: rgba(0, 240, 255, 0.08);
  text-decoration: underline;
}
.seo-layout { display: grid; gap: 1rem; margin-top: 1.4rem; }
.seo-card-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1rem); align-items: stretch; margin: 1.4rem 0;
}
.seo-card {
  position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr; gap: 0.6rem;
  min-height: 168px; background:
    linear-gradient(145deg, rgba(0, 240, 255, 0.065), transparent 72%),
    var(--surface-card);
  border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 1.05rem; color: var(--text); line-height: 1.65; box-shadow: var(--shadow-panel);
}
.seo-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
}
.seo-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-yellow));
}
.seo-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
}
.seo-card h2, .seo-card h3 {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0 0 0.55rem; color: var(--neon-cyan); font-family: var(--font-display);
  font-size: 0.95rem; letter-spacing: 0.02em; line-height: 1.3; text-wrap: balance;
}
.seo-card h2::before, .seo-card h3::before {
  content: '';
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 3px;
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(0, 255, 149, 0.5);
}
.seo-card p { margin: 0; color: var(--text-dim); }
.seo-cta {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: center;
  max-width: 820px; margin: 2rem auto 0; padding: 1rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.045), transparent);
}
.seo-note { color: var(--text-dim); font-size: 0.88rem; line-height: 1.6; text-align: center; }
.seo-link-panel {
  max-width: 820px; margin: 1.6rem auto 0; padding: 1rem;
  border: 1px solid rgba(0,240,255,0.18); border-radius: 8px;
  background: var(--surface-card-quiet); box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  display: flex; flex-wrap: wrap;
  gap: 0.65rem; align-items: center; justify-content: center;
}
.seo-link-panel h2 {
  width: 100%; margin: 0 0 0.35rem; font-family: var(--font-display);
  color: var(--neon-cyan); font-size: 0.95rem; letter-spacing: 0.02em; line-height: 1.3; text-align: center;
}
.seo-page .seo-link-panel a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.125rem;
  min-width: min(100%, 10rem);
  color: var(--neon-pink); text-decoration: none; border: 1px solid rgba(255,43,214,0.28);
  border-radius: 999px; padding: 0.42rem 0.75rem; background: rgba(0,0,0,0.22);
}
.seo-page .seo-link-panel a:hover { text-decoration: underline; }
@media (max-width: 860px) { .seo-card-grid { grid-template-columns: 1fr; } }
.rich-empty {
  align-content: start;
  justify-items: start;
  gap: 0.55rem;
  margin-bottom: 1rem;
  text-align: left;
}
.rich-empty::before { justify-self: start; }
.rich-empty strong {
  color: var(--neon-cyan); font-family: var(--font-display); letter-spacing: 0.08em;
}
.rich-empty span { line-height: 1.55; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }

@media (max-width: 900px) {
  .social-hero-panel, .rules-hero, .compact-panel { grid-template-columns: 1fr; }
  .metric-grid, .compact-panel .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .auth-card { order: 1; }
  .auth-rail {
    order: 2;
    min-height: 0;
  }
  .auth-rail h2 { max-width: 100%; }
}
@media (max-width: 620px) {
  .topbar { padding: 0.85rem 1rem; }
  .topnav { gap: 0.35rem; }
  .topnav a { font-size: 0.66rem; padding: 0.38rem 0.44rem; letter-spacing: 0.08em; }
  .page-main { padding: 2rem 1rem; }
  .auth-main {
    align-items: start;
    padding: 1.25rem 1rem 2rem;
  }
  .auth-card {
    padding: 1.25rem;
    max-width: 100%;
  }
  .auth-shell { gap: 0.8rem; }
  .auth-rail {
    padding: 1rem;
    gap: 0.8rem;
  }
  .auth-rail h2 {
    font-size: clamp(1.45rem, 8vw, 1.8rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  .auth-rail p { font-size: 0.9rem; }
  .auth-rail-list li {
    min-height: 3.5rem;
    padding: 0.62rem 0.7rem;
  }
  .auth-rail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .auth-tabs { margin-top: -0.1rem; }
  .auth-tab {
    min-height: 2.35rem;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
  }
  .auth-title {
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
  }
  .account-head-actions .tiny-btn { flex: 1 1 calc(50% - 0.55rem); text-align: center; }
  .account-editor-card, .acc-card { padding: 1rem; }
  .account-card-head { display: grid; gap: 0.8rem; }
  .account-profile-grid, .account-upload-grid { grid-template-columns: 1fr; }
  .account-profile-span { grid-column: auto; }
  .account-preview-banner { height: 120px; }
  .add-friend { flex-direction: column; }
  .inline-btn { width: 100%; }
  .notif-row {
    grid-template-columns: 2.1rem minmax(0, 1fr);
    gap: 0.6rem;
    min-height: 4.1rem;
    padding: 0.65rem;
  }
  .notif-icon {
    width: 2rem;
    height: 2rem;
  }
  .notif-meta {
    gap: 0.3rem;
  }
  .page-title {
    font-size: clamp(1.85rem, 10vw, 2.25rem);
    line-height: 1.15;
    margin-bottom: 0.7rem;
    overflow-wrap: anywhere;
  }
  .error-main {
    padding: 1.35rem 1rem;
  }
  .error-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .error-help {
    display: grid;
    grid-template-columns: 1fr;
  }
  .error-help a {
    width: 100%;
  }
  .error-actions .btn-neon {
    width: 100%;
    min-width: 0;
  }
  .page-sub { font-size: 0.92rem; margin-bottom: 1.7rem; }
  .social-title { font-size: clamp(1.5rem, 8vw, 1.8rem); letter-spacing: 0.02em; }
  .social-head > .social-btn { width: 100%; }
  .rules-hero h2, .rules-hero p, .rules-copy p, .rules-copy li {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  [data-social-page="board"] .composer-head {
    align-items: flex-start;
  }
  [data-social-page="board"] .file-line {
    display: grid;
    grid-template-columns: 1fr;
  }
  [data-social-page="board"] #board-submit,
  [data-social-page="board"] .board-sort .social-btn {
    width: 100%;
  }
  [data-social-page="board"] .board-sort .social-btn {
    flex-basis: 100%;
  }
  .rules-page .rules-copy > p,
  .rules-page .rules-copy li {
    padding-right: 0.8rem;
  }
  .rules-page .rules-copy > p { padding-left: 2.35rem; }
  .rules-page .rules-copy li { padding-left: 2.15rem; }
  .rules-page .rules-copy > p::before { left: 0.72rem; }
  .rules-page .rules-copy li::before { left: 0.72rem; }
  .metric-grid, .compact-panel .metric-grid { grid-template-columns: 1fr; }
  .social-hero-panel, .rules-hero { padding: 1rem; }
  .seo-link-panel { justify-content: stretch; }
  .seo-page .seo-link-panel a { width: 100%; }
  .seo-cta .btn-neon { width: min(100%, 320px); }
  .pc-badge { right: 18px; }
}

/* ===== Online page — responsive card grid + live status (layout pass) =====
 * /online was a single full-width column: on desktop ~60% of each row was empty,
 * on phones the oversized stacked metric boxes pushed the list off-screen. Tile
 * the list into a responsive card grid and slim the stat boxes on phones. Scoped
 * to #online-list / [data-social-page="online"] so the shared .user-list / .user-row
 * vocabulary on /board, /profile and /account is left untouched. */
#online-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 0.7rem;
  align-items: start;
}
/* The ad slot + empty state are not user cards — span them across the full grid. */
#online-list > :not(.user-row) { grid-column: 1 / -1; }
#online-list > .house-ad { margin-bottom: 0; }
#online-list .user-row {
  align-items: flex-start;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
#online-list .user-row:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.18);
  transform: translateY(-2px);
}
#online-list .user-row.is-online { box-shadow: inset 3px 0 0 var(--neon-green); }
#online-list .user-row.is-online:hover {
  box-shadow: inset 3px 0 0 var(--neon-green), 0 0 14px rgba(0, 240, 255, 0.18);
}
/* Pulsing "online now" dot in the meta line — neon-green, no layout shift. */
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 5px; vertical-align: middle;
  background: var(--neon-green); box-shadow: 0 0 6px var(--neon-green);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  .poll-bar::-webkit-progress-value,
  .poll-bar::-moz-progress-bar {
    transition: none;
  }
  .story-progress-fill.is-active {
    animation: none;
    width: 100%;
  }
  .live-dot {
    animation: none;
  }
}
/* Phones: keep the two live/total stats side-by-side as a slim bar instead of
 * two oversized stacked boxes (overrides the <=620px single-column rule above). */
@media (max-width: 620px) {
  [data-social-page="online"] .metric-grid { grid-template-columns: repeat(2, 1fr); }
  [data-social-page="online"] .metric-grid div { min-height: 0; padding: 0.5rem 0.65rem; }
  [data-social-page="online"] .metric-grid strong { font-size: clamp(1.1rem, 4.5vw, 1.5rem); }
}

/* Daily quests card rows (account social tab). */
.quest-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.65rem;
}
.quest-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 4.5rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.025);
}
.quest-row.is-ready {
  border-color: rgba(255, 43, 214, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 43, 214, 0.095), rgba(0, 240, 255, 0.045)),
    rgba(0, 0, 0, 0.28);
}
.quest-row.is-claimed {
  opacity: 0.78;
}
.quest-body {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
}
.quest-label {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.quest-meta {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.3;
}
.quest-progress {
  width: 100%;
  height: 0.45rem;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}
.quest-progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.045);
}
.quest-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.32);
}
.quest-progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.32);
}
.quest-reward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.12rem 0.55rem;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 999px;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.045);
  font-size: 0.74rem;
  white-space: nowrap;
}
.quest-claim-btn {
  min-width: 6.4rem;
}
@media (max-width: 620px) {
  .quest-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .quest-reward {
    justify-self: start;
  }
  .quest-claim-btn {
    width: 100%;
  }
  .referral-link-row,
  .muted-keyword-form {
    grid-template-columns: 1fr;
  }
  .referral-stats {
    grid-template-columns: 1fr;
  }
}
