/* ─── variables.css ──────────────────────────────────────────────
   CSS custom properties (:root), dark mode variable overrides
   ([data-theme="dark"]), and the theme toggle button (.btn-theme).
   ─────────────────────────────────────────────────────────────── */

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --bg:           #fff5f9;
  --bg-panel:     #ffffff;
  --bg-row-hover: #fff5f9;

  --pink:         #e91e8c;
  --pink-mid:     #f06292;
  --pink-soft:    #fce4ec;
  --pink-pale:    #fff0f6;
  --rose:         #f8bbd0;

  --positive:     #2ecc8f;
  --negative:     #f0607e;
  --neutral:      #d4a8bd;

  --text:         #3d1a2e;
  --text-sec:     #8d5a72;
  --text-muted:   #c4a0b5;
  --border:       #fad4e4;
  --shadow:       rgba(233, 30, 140, 0.08);
  --shadow-lg:    rgba(233, 30, 140, 0.15);

  --amvgg:        #a855f7;
  --amvgg-soft:   #f3e8ff;
  --amvgg-border: #ddd6fe;

  --warning-bg:     #fef9c3;
  --warning-border: #eab308;
  --warning-text:   #713f12;

  --font-display: 'Fredoka One', cursive;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  --radius:       12px;
  --radius-lg:    20px;
  --radius-pill:  100px;

  --transition:    150ms cubic-bezier(0.4, 0, 0.2, 1);
  --duration-enter: 0.55s;

  --warning-amber:      #ffb74d;
  --warning-amber-glow: rgba(255, 183, 77, 0.22);

  --bg-surface:   #ffffff;
  --bg-gradient:  linear-gradient(135deg, #fff0f6, #fce4ec);
  --bg-glass:     rgba(255, 255, 255, 0.92);
  --row-border:   #fff0f5;
}

/* ─── Theme toggle button ────────────────────────────────────── */
.btn-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--pink-soft);
  border: 1.5px solid var(--rose);
  border-radius: var(--radius-pill);
  color: var(--pink);
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.btn-theme:hover {
  transform: translateY(-2px);
  background: var(--pink);
  color: white;
  box-shadow: 0 4px 14px var(--shadow-lg);
}
.btn-theme:active { transform: scale(0.95); }

/* ─── Dark mode variables ─────────────────────────────────────── */
[data-theme="dark"] {
  --bg:           #1a0d15;
  --bg-panel:     #231218;
  --bg-surface:   #2a1420;
  --bg-row-hover: #351825;
  --bg-gradient:  linear-gradient(135deg, #2d1422, #3d1a2e);
  --bg-glass:     rgba(26, 13, 21, 0.94);
  --row-border:   #3a1a2e;

  --pink-soft:    rgba(233, 30, 140, 0.18);
  --pink-pale:    rgba(233, 30, 140, 0.1);
  --rose:         #5a2040;

  --text:         #f0d4e6;
  --text-sec:     #c4829b;
  --text-muted:   #7d4a63;
  --border:       #3a1a2e;
  --shadow:       rgba(0, 0, 0, 0.45);
  --shadow-lg:    rgba(0, 0, 0, 0.65);

  --amvgg-soft:   rgba(168, 85, 247, 0.18);
  --amvgg-border: #3d1a5a;

  --warning-bg:     #1e1400;
  --warning-border: #a07800;
  --warning-text:   #f0c060;
}


[data-theme="dark"] .rarity-common     { background: #1e1e1e; color: #aaaaaa; border-color: #333; }
[data-theme="dark"] .rarity-uncommon   { background: #0d1f10; color: #66bb6a; border-color: #1b3e1f; }
[data-theme="dark"] .rarity-rare       { background: #0d1929; color: #64b5f6; border-color: #1a3a5a; }
[data-theme="dark"] .rarity-ultra-rare,
[data-theme="dark"] .rarity-ultra_rare { background: #1a0d2a; color: #ce93d8; border-color: #3d1a5a; }
[data-theme="dark"] .rarity-legendary  { background: #1a1400; color: #ffd740; border-color: #3a2d00; }

[data-theme="dark"] .demand-high   { background: #0d1f10; color: #66bb6a; border-color: #1b3e1f; }
[data-theme="dark"] .demand-medium { background: #1a1400; color: #ffd740; border-color: #3a2d00; }

/* ─── base.css ───────────────────────────────────────────────────
   Reset, body, polka-dot background, floating decorations,
   and .main layout wrapper.
   ─────────────────────────────────────────────────────────────── */

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient mesh gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 45%, rgba(249, 168, 212, 0.52) 0%, transparent 48%),
    radial-gradient(ellipse at 88% 12%, rgba(216, 180, 254, 0.42) 0%, transparent 40%),
    radial-gradient(ellipse at 55% 90%, rgba(251, 207, 232, 0.48) 0%, transparent 46%),
    radial-gradient(ellipse at 4%  88%, rgba(233, 30, 140, 0.16) 0%, transparent 32%);
  background-attachment: fixed;
  pointer-events: none;
  z-index: 0;
}

/* Grain overlay for texture depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse at 10% 45%, rgba(90, 15, 55, 0.75) 0%, transparent 48%),
    radial-gradient(ellipse at 88% 12%, rgba(55, 10, 95, 0.6) 0%, transparent 40%),
    radial-gradient(ellipse at 55% 90%, rgba(70, 10, 55, 0.65) 0%, transparent 46%),
    radial-gradient(ellipse at 4%  88%, rgba(180, 20, 100, 0.22) 0%, transparent 30%);
}

/* ─── Floating decorations ───────────────────────────────────── */
.bg-deco {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.deco {
  position: absolute;
  font-size: 0; /* hide original emoji text */
  color: transparent;
  --dx: 0px;
  opacity: 0;
  will-change: transform, opacity;
  animation: float-deco linear infinite, deco-enter 1.8s ease forwards;
}

/* All decos render as glowing ✦ stars via ::before */
.deco::before {
  content: '✦';
  font-size: 1.3rem;
  color: var(--pink);
  text-shadow:
    0 0 10px rgba(233, 30, 140, 0.8),
    0 0 25px rgba(233, 30, 140, 0.4),
    0 0 50px rgba(233, 30, 140, 0.15);
  display: block;
  line-height: 1;
}

/* Alternating purple sparkles for visual variety */
.d2::before, .d5::before, .d8::before {
  color: var(--amvgg);
  text-shadow:
    0 0 10px rgba(168, 85, 247, 0.8),
    0 0 25px rgba(168, 85, 247, 0.4),
    0 0 50px rgba(168, 85, 247, 0.15);
}

/* Size variations */
.d3::before { font-size: 0.9rem; }
.d6::before { font-size: 0.85rem; }
.d4::before { font-size: 1.6rem; }
.d7::before { font-size: 1.5rem; }
.d8::before { font-size: 0.8rem; }

/* Staggered entry: fades+unblurs in at different times */
@keyframes deco-enter {
  from { opacity: 0; filter: blur(6px); }
  to   { opacity: 0.5; filter: blur(0); }
}

/* Unique horizontal drift per element via --dx custom property */
.d1 { left:  4%;  top: 12%; animation-duration: 13s, 1.8s; animation-delay: 0s,   0.1s; --dx:  10px; }
.d2 { left: 14%;  top: 68%; animation-duration: 16s, 1.8s; animation-delay: -4s,  0.3s; --dx: -14px; }
.d3 { left: 28%;  top: 32%; animation-duration: 19s, 1.8s; animation-delay: -8s,  0.5s; --dx:   8px; }
.d4 { left: 48%;  top: 82%; animation-duration: 14s, 1.8s; animation-delay: -2s,  0.7s; --dx: -10px; }
.d5 { left: 63%;  top:  8%; animation-duration: 17s, 1.8s; animation-delay: -6s,  0.2s; --dx:  12px; }
.d6 { left: 76%;  top: 52%; animation-duration: 12s, 1.8s; animation-delay: -9s,  0.6s; --dx:  -8px; }
.d7 { left: 87%;  top: 28%; animation-duration: 15s, 1.8s; animation-delay: -3s,  0.4s; --dx:  16px; }
.d8 { left: 93%;  top: 74%; animation-duration: 18s, 1.8s; animation-delay: -7s,  0.8s; --dx: -11px; }

@keyframes float-deco {
  0%   { transform: translate(0, 0)              rotate(0deg);   opacity: 0.22; }
  25%  { transform: translate(calc(var(--dx) * 0.5), -13px)  rotate(90deg);  opacity: 0.55; }
  50%  { transform: translate(var(--dx), -24px)  rotate(180deg); opacity: 0.6; }
  75%  { transform: translate(calc(var(--dx) * 0.5), -11px)  rotate(270deg); opacity: 0.5; }
  100% { transform: translate(0, 0)              rotate(360deg); opacity: 0.22; }
}

/* ─── Shared spinner (used on home and values pages) ────────── */
.spinner-ring {
  width: 34px;
  height: 34px;
  border: 3px solid var(--rose);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── View Transitions API (cross-page navigation) ──────────── */
@view-transition {
  navigation: auto;
}

@keyframes vt-out {
  to { opacity: 0; transform: translateY(-6px); }
}

@keyframes vt-in {
  from { opacity: 0; transform: translateY(8px); }
}

::view-transition-old(root) {
  animation: 160ms ease-out both vt-out;
}

::view-transition-new(root) {
  animation: 240ms ease-in both vt-in;
}

/* Logo morphs smoothly between pages */
::view-transition-old(site-logo),
::view-transition-new(site-logo) {
  animation-duration: 380ms;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Discord CTA card (homepage) ───────────────────────────── */
.discord-cta-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #5865f205;
  border: 1.5px solid #5865f230;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  flex-wrap: wrap;
}
.discord-cta-card:hover {
  border-color: #5865f2;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.15);
  transform: translateY(-2px);
}
.discord-cta-card:active { transform: scale(0.99); }

.discord-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #5865f2;
  border-radius: var(--radius);
  flex-shrink: 0;
  font-size: 1.6rem;
  color: white;
}
.discord-cta-body {
  flex: 1;
  min-width: 180px;
}
.discord-cta-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
}
.discord-cta-body span {
  font-size: 0.85rem;
  color: var(--text-sec);
  line-height: 1.4;
}
.discord-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #5865f2;
  color: white;
  font-family: var(--font-display);
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.discord-cta-card:hover .discord-cta-btn {
  background: #4752c4;
  box-shadow: 0 2px 12px rgba(88, 101, 242, 0.35);
}

/* ─── Discord CTA banner (values page) ──────────────────────── */
.discord-cta-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #5865f205;
  border: 1.5px solid #5865f230;
  border-left: 4px solid #5865f2;
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin: 1.5rem 0;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  flex-wrap: wrap;
}
.discord-cta-banner:hover {
  border-color: #5865f2;
  box-shadow: 0 3px 14px rgba(88, 101, 242, 0.12);
}
.discord-cta-banner .discord-cta-icon {
  width: 36px;
  height: 36px;
  font-size: 1.15rem;
  border-radius: 8px;
}
.discord-cta-banner .discord-cta-body {
  min-width: 120px;
}
.discord-cta-banner .discord-cta-body strong {
  font-size: 0.95rem;
}
.discord-cta-banner .discord-cta-btn {
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  margin-left: auto;
}

[data-theme="dark"] .discord-cta-card,
[data-theme="dark"] .discord-cta-banner {
  background: rgba(88, 101, 242, 0.08);
  border-color: rgba(88, 101, 242, 0.25);
}
[data-theme="dark"] .discord-cta-card:hover,
[data-theme="dark"] .discord-cta-banner:hover {
  border-color: #5865f2;
}

/* ─── Screen-reader only (visually hidden but indexable) ─────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3 { text-wrap: balance; }

/* ─── Main ───────────────────────────────────────────────────── */
.main {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ─── Toast notifications ───────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 4px 20px var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease;
  white-space: nowrap;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--success { border-color: rgba(46, 204, 143, 0.45); color: var(--positive); }
.toast--error   { border-color: rgba(220, 60, 80, 0.4);   color: var(--negative); }

/* ─── Mobile: keep toast clear of the safe-area inset ─────────── */
@media (max-width: 599px) {
  #toast-container {
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 32px);
    max-width: 100%;
  }
  .toast { white-space: normal; text-align: center; }
}

/* ─── header.css ─────────────────────────────────────────────────
   Header bar, logo, version badge, sync button, status dot,
   animations, and page nav tabs.
   ─────────────────────────────────────────────────────────────── */

/* ─── Reserve header height before JS populates it (prevents CLS) */
#app-header { min-height: 68px; }

/* ─── Header ─────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 68px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--rose);
  box-shadow: none;
  transition: box-shadow 220ms ease;
}

.header--scrolled {
  box-shadow: 0 4px 28px var(--shadow-lg);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  height: 56px;
  width: auto;
  display: block;
  view-transition-name: site-logo;
  contain: layout;
}

.header-version {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--pink-mid);
  background: var(--pink-soft);
  border: 1px solid var(--rose);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  letter-spacing: 0.03em;
  align-self: center;
  margin-left: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.last-updated {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-sec);
}

/* ─── Live badge ──────────────────────────────────────────────── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(46, 204, 143, 0.1);
  border: 1px solid rgba(46, 204, 143, 0.3);
  border-radius: var(--radius-pill);
  padding: 3px 8px 3px 6px;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--positive);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.live-badge--stale {
  background: rgba(255, 183, 77, 0.1);
  border-color: rgba(255, 183, 77, 0.35);
  color: var(--warning-amber);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  transition: background var(--transition);
}

.live-badge:not(.live-badge--stale) .live-dot {
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.7; }
}

/* legacy status-dot kept for backwards compat */
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ─── Search hint button (desktop only) ──────────────────────── */
.btn-search-hint {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--pink-soft);
  border: 1.5px solid var(--rose);
  border-radius: var(--radius-pill);
  color: var(--text-sec);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  min-height: 36px;
}

@media (min-width: 800px) {
  .btn-search-hint { display: flex; }
}

.btn-search-hint:hover {
  background: rgba(233, 30, 140, 0.08);
  border-color: var(--pink-mid);
  color: var(--pink);
}

.search-hint-icon { font-size: 0.85rem; line-height: 1; }

.search-hint-kbd {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-body);
  line-height: 1.4;
}

.btn-sync {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  background: var(--pink);
  border: none;
  border-radius: var(--radius-pill);
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(233, 30, 140, 0.38);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 44px;
}

.btn-sync:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(233, 30, 140, 0.48);
}

.btn-sync:active { transform: scale(0.97); }

.btn-sync.spinning .btn-icon { animation: spin 0.9s linear infinite; }
.btn-icon { display: inline-block; font-size: 1rem; line-height: 1; }

/* ─── Page routing ───────────────────────────────────────────── */
.page.page-hidden { display: none; }

/* ─── Page nav tabs ──────────────────────────────────────────── */
.page-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--pink-soft);
  border: 1.5px solid var(--rose);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.page-tab {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-sec);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.page-tab:hover {
  background: rgba(233, 30, 140, 0.08);
  color: var(--pink);
}

.page-tab.active {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 2px 10px rgba(233, 30, 140, 0.35);
}

/* ─── Apps nav dropdown ──────────────────────────────────────── */
.page-tab-dropdown {
  position: relative;
}

.page-tab-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-tab-dropdown-caret {
  font-size: 0.65rem;
  transition: transform var(--transition);
}

.page-tab-dropdown.open .page-tab-dropdown-caret {
  transform: rotate(180deg);
}

.page-tab-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-panel);
  border: 1.5px solid var(--rose);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 60;
}

.page-tab-dropdown.open .page-tab-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-tab-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius);
  color: var(--text-sec);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.page-tab-dropdown-item i {
  width: 16px;
  text-align: center;
  color: var(--pink-mid);
}

.page-tab-dropdown-item:hover {
  background: var(--pink-soft);
  color: var(--pink);
}

.page-tab-dropdown-item.active {
  background: var(--pink);
  color: #fff;
}

.page-tab-dropdown-item.active i {
  color: #fff;
}

@media (max-width: 599px) {
  .page-tab { padding: 5px 14px; font-size: 0.8rem; }
  /* Hide desktop nav tabs — the hamburger drawer replaces them */
  .page-nav { display: none; }
}

/* ─── Trade Calculator CTA button ────────────────────────────── */
.btn-trade-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--amvgg) 100%);
  border: none;
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(233, 30, 140, 0.38), 0 2px 8px rgba(168, 85, 247, 0.28);
  transition: transform var(--transition), box-shadow var(--transition);
}

/* shimmer sweep */
.btn-trade-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: trade-shimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes trade-shimmer {
  0%      { transform: translateX(-120%); }
  35%, 100% { transform: translateX(220%); }
}

.btn-trade-icon {
  font-size: 1.05rem;
  line-height: 1;
  display: inline-block;
}

.btn-trade-cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px rgba(233, 30, 140, 0.52), 0 4px 14px rgba(168, 85, 247, 0.4);
}

.btn-trade-cta:active {
  transform: scale(0.97);
}

/* ─── Hamburger menu trigger (mobile only) ───────────────────── */
.btn-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--pink-soft);
  border: 1.5px solid var(--rose);
  border-radius: var(--radius-pill);
  color: var(--pink);
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
  line-height: 1;
}

.btn-hamburger:hover {
  transform: translateY(-2px);
  background: var(--pink);
  color: white;
  box-shadow: 0 4px 14px var(--shadow-lg);
}

.btn-hamburger:active { transform: scale(0.95); }

@media (max-width: 599px) {
  .btn-hamburger { display: flex; }

  /* Compact the remaining quick-access buttons to icon-only circles */
  .btn-search-hint {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .btn-search-hint .search-hint-label,
  .btn-search-hint .search-hint-kbd { display: none; }

  .btn-trade-cta {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    box-shadow: none;
  }
  .btn-trade-cta::before { display: none; }
  .btn-trade-cta .btn-trade-label { display: none; }

  /* Theme toggle + account move into the drawer to keep the header uncrowded */
  .btn-theme,
  #headerUserWrap { display: none; }

  .header-right { gap: 8px; }
}

/* ─── Header user / login ─────────────────────────────────────── */
.header-user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--rose);
  object-fit: cover;
  transition: border-color var(--transition), transform var(--transition);
}

.header-user-avatar:hover {
  border-color: var(--pink);
  transform: scale(1.08);
}

.header-login-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--pink-soft);
  border: 1.5px solid var(--rose);
  border-radius: var(--radius-pill);
  color: var(--pink);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.header-login-btn:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

/* ─── Mobile slide-out drawer (hamburger menu) ───────────────── */
.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-drawer-backdrop.open {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  width: min(300px, 84vw);
  flex-direction: column;
  gap: 4px;
  background: var(--bg-panel);
  border-left: 1.5px solid var(--border);
  box-shadow: -8px 0 32px var(--shadow-lg);
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

@media (max-width: 599px) {
  .mobile-drawer { display: flex; }
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
}

.mobile-drawer-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
}

.mobile-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--pink-soft);
  border: 1.5px solid var(--rose);
  border-radius: 50%;
  color: var(--text-sec);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.mobile-drawer-close:hover {
  background: var(--pink);
  color: #fff;
}

.mobile-drawer-user {
  padding: 6px 2px 12px;
}

.mobile-drawer-user:empty { display: none; }

.mobile-drawer-user .header-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
}

.mobile-drawer-user .header-user-avatar {
  width: 38px;
  height: 38px;
}

.mobile-drawer-user .header-login-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.85rem;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-sec);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background var(--transition), color var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.mobile-drawer-link i {
  width: 18px;
  text-align: center;
  color: var(--pink-mid);
}

.mobile-drawer-link:hover {
  background: var(--pink-soft);
  color: var(--pink);
}

.mobile-drawer-link.active {
  background: var(--pink);
  color: #fff;
}

.mobile-drawer-link.active i {
  color: #fff;
}

.mobile-drawer-divider {
  height: 1px;
  margin: 10px 4px;
  background: var(--border);
}

/* ── Login chooser dialog ──────────────────────────────────────── */
.login-chooser-dialog {
  position: fixed;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--bg-panel);
  padding: 28px 24px 24px;
  max-width: 320px;
  width: calc(100% - 32px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.login-chooser-dialog::backdrop {
  background: rgba(0,0,0,0.45);
}

.login-chooser-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
}

.login-chooser-close:hover { background: var(--bg-alt); }

.login-chooser-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
  margin: 0 0 6px;
  text-align: center;
}

.login-chooser-sub {
  font-size: 0.8rem;
  color: var(--text-sec);
  text-align: center;
  margin: 0 0 20px;
  line-height: 1.5;
}

.login-chooser-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-chooser-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 140ms;
}

.login-chooser-btn:hover { opacity: 0.88; }

.login-chooser-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.login-chooser-btn--discord {
  background: #5865f2;
  color: #fff;
}

.login-chooser-btn--roblox {
  background: #e52207;
  color: #fff;
}

/* ─── footer.css ─────────────────────────────────────────────────
   Site footer layout, brand, links, copyright, and version badge.
   ─────────────────────────────────────────────────────────────── */

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  border-top: 1.5px solid var(--border);
  background: var(--bg-panel);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--pink);
  letter-spacing: 0.01em;
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 560px;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-sources {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}

.footer-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-sec);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--pink); }
.footer-link-icon { font-size: 1rem; line-height: 1; vertical-align: middle; }

.footer-dot {
  font-size: 0.55rem;
  color: var(--border);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-copyright {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-version {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pink-mid);
  background: var(--pink-soft);
  border: 1px solid var(--rose);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  letter-spacing: 0.03em;
}

@media (max-width: 599px) {
  .footer-inner { padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px)); gap: 12px; }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-right {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Dot separators look orphaned when items wrap on narrow screens */
  .footer-dot { display: none; }
}

/* ─── Sync status in footer ──────────────────────────────────── */
.footer-sync-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--positive);
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.footer-sync-dot--stale {
  background: var(--warning-amber);
  animation: none;
}

/* ── discord.css ─────────────────────────────────────────────────
   Styles for the /discord bot landing page.
   Discord mockup colours are always-dark (hardcoded) regardless
   of the AMverse light/dark theme.
   ─────────────────────────────────────────────────────────────── */

/* ── Page wrapper ────────────────────────────────────────────── */
.dc-page {
  position: relative;
  z-index: 1;
}

.dc-section {
  padding: 5rem 1.5rem;
  position: relative;
}

.dc-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.dc-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.dc-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}

.dc-section-sub {
  color: var(--text-sec);
  font-size: 1rem;
  line-height: 1.6;
}

/* ── Hero ────────────────────────────────────────────────────── */
.dc-hero {
  background: linear-gradient(135deg, #0f0520 0%, #1a0930 45%, #0c1225 100%);
  padding: 5.5rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
  /* pull edge-to-edge below the header */
  margin-top: 0;
}

.dc-hero-glow {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.dc-hero-glow--left  { background: rgba(155, 89, 182, 0.22); left: -180px; top: -100px; }
.dc-hero-glow--right { background: rgba(233,  30, 140, 0.14); right: -120px; bottom: -120px; }

.dc-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Hero text ───────────────────────────────────────────────── */
.dc-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.dc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(88, 101, 242, 0.18);
  border: 1px solid rgba(88, 101, 242, 0.38);
  color: #a5b4fc;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  width: fit-content;
  letter-spacing: 0.02em;
}

.dc-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  color: #f0e6f8;
  line-height: 1.15;
  margin: 0;
}

.dc-hero-sub {
  color: #b4a4cc;
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 440px;
}

/* ── Discord CTA button ──────────────────────────────────────── */
.dc-btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #5865F2;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.78rem 1.7rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 22px rgba(88, 101, 242, 0.42);
  width: fit-content;
  line-height: 1;
}
.dc-btn-discord:hover  { background: #4752c4; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(88, 101, 242, 0.58); }
.dc-btn-discord:active { transform: scale(0.97); }
.dc-btn-discord--sm   { font-size: 0.87rem; padding: 0.55rem 1.2rem; }
.dc-btn-discord--lg   { font-size: 1.12rem; padding: 0.9rem 2.1rem; }

/* ── Discord Window chrome ───────────────────────────────────── */
.dc-hero-visual {
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s ease;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.6));
}
.dc-hero-visual:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.dc-window {
  background: #313338;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
}

.dc-window-bar {
  background: #2b2d31;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.dc-window-dots {
  display: flex;
  gap: 6px;
}
.dc-window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}
.dc-window-dots span:nth-child(1) { background: #ed6a5e; }
.dc-window-dots span:nth-child(2) { background: #f5c451; }
.dc-window-dots span:nth-child(3) { background: #61c554; }

.dc-window-title {
  color: #949ba4;
  font-size: 0.82rem;
  font-weight: 600;
}

.dc-channel-hash {
  color: #5c6068;
  margin-right: 1px;
}

.dc-window-body {
  padding: 0.75rem 0 1rem;
}

/* ── Discord messages ────────────────────────────────────────── */
.dc-msg {
  display: flex;
  gap: 0.75rem;
  padding: 0.35rem 1rem;
}
.dc-msg:hover { background: rgba(0, 0, 0, 0.06); }

/* avatars */
.dc-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  overflow: hidden;
}
.dc-av--sm    { width: 32px; height: 32px; font-size: 0.8rem; }
.dc-av--user  { background: linear-gradient(135deg, #9B59B6, #6c3483); color: #fff; }
.dc-av--bot   { background: #1e1f22; }
.dc-av img    { width: 100%; height: 100%; object-fit: cover; }

/* message content */
.dc-msg-content { flex: 1; min-width: 0; }

.dc-msg-meta {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.18rem;
  flex-wrap: wrap;
}

.dc-uname    { color: #c9ccd1; font-weight: 600; font-size: 0.87rem; }
.dc-bot-name { color: #ffffff; font-weight: 600; font-size: 0.87rem; }

.dc-app-badge {
  background: #5865F2;
  color: #fff;
  font-size: 0.61rem;
  font-weight: 700;
  padding: 0.08em 0.42em;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.dc-app-badge--sm { font-size: 0.57rem; }

.dc-ts {
  color: #949ba4;
  font-size: 0.71rem;
}

.dc-msg-text {
  color: #dbdee1;
  line-height: 1.5;
  font-size: 0.88rem;
  word-break: break-word;
}

/* ── Discord Embed ───────────────────────────────────────────── */
.dc-embed {
  display: flex;
  background: #2b2d31;
  border-radius: 4px;
  max-width: 440px;
  margin-top: 6px;
  overflow: hidden;
}

.dc-embed-bar         { width: 4px; background: #9B59B6; flex-shrink: 0; }
.dc-embed-bar--green  { background: #57F287; }

.dc-embed-body {
  padding: 10px 14px 10px 12px;
  flex: 1;
  color: #dbdee1;
  min-width: 0;
}

.dc-embed-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.dc-embed-text { flex: 1; min-width: 0; }

.dc-embed-title {
  font-weight: 700;
  color: #e3e5e8;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.dc-embed-variant {
  font-weight: 400;
  color: #949ba4;
  font-size: 0.8rem;
}

.dc-embed-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 4px;
}

.dc-field-name {
  color: #b5bac1;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.dc-field-val {
  color: #e3e5e8;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

.dc-field-val--sm { font-size: 0.78rem; font-weight: 600; }

.dc-val-detail {
  color: #949ba4;
  font-weight: 400;
  font-size: 0.73rem;
}

.dc-embed-thumb {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
  align-self: flex-start;
}

.dc-demand            { font-size: 0.73rem; font-weight: 600; margin-top: 3px; }
.dc-demand--high      { color: #57F287; }
.dc-demand--medium    { color: #FEE75C; }
.dc-demand--low       { color: #ED4245; }

.dc-embed-footer {
  color: #949ba4;
  font-size: 0.71rem;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dc-verdict {
  font-size: 0.81rem;
  font-weight: 700;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 4px;
  line-height: 1.4;
}
.dc-verdict--win  { background: rgba(87, 242, 135, 0.14); color: #57F287; }
.dc-verdict--lose { background: rgba(237,  66,  69, 0.14); color: #ED4245; }
.dc-verdict--even { background: rgba(254, 231,  92, 0.14); color: #FEE75C; }

/* small embed variant used in example cards */
.dc-embed--sm .dc-embed-title  { font-size: 0.82rem; }
.dc-embed--sm .dc-embed-footer { font-size: 0.67rem; margin-top: 6px; }

/* ── Typing indicator ────────────────────────────────────────── */
.dc-typing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 1rem;
}

.dc-typing-inner {
  display: flex;
  align-items: center;
  background: #2b2d31;
  padding: 7px 12px;
  border-radius: 18px;
  gap: 4px;
}

.dc-typing-inner span {
  width: 7px;
  height: 7px;
  background: #949ba4;
  border-radius: 50%;
  animation: dc-bounce 1.2s ease-in-out infinite;
}
.dc-typing-inner span:nth-child(2) { animation-delay: 0.2s; }
.dc-typing-inner span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dc-bounce {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.55; }
  30%            { transform: translateY(-5px); opacity: 1;    }
}

/* ── Feature cards ───────────────────────────────────────────── */
.dc-features-section { padding-top: 4rem; padding-bottom: 4rem; }

.dc-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.dc-feature-card {
  background: var(--bg-panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.dc-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px var(--shadow-lg);
  border-color: var(--pink-mid);
}

.dc-feature-icon { font-size: 2rem; margin-bottom: 1rem; }

.dc-feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.55rem;
}

.dc-feature-card p {
  color: var(--text-sec);
  font-size: 0.91rem;
  line-height: 1.65;
}

/* ── How it works (example chats) ───────────────────────────── */
.dc-examples-section { background: var(--bg-gradient); }

.dc-examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.dc-example-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dc-example-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink);
  padding: 0 0.2rem;
}

/* chat panels in examples */
.dc-chat {
  background: #313338;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.dc-chat .dc-msg          { padding: 0.45rem 0.75rem; }
.dc-chat .dc-embed        { max-width: 100%; }
.dc-chat .dc-embed-fields { gap: 0.5rem; }

/* ── Variants section ────────────────────────────────────────── */
.dc-variants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.dc-variant-item {
  background: var(--bg-panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color var(--transition);
}
.dc-variant-item:hover { border-color: var(--pink-mid); }

.dc-variant-tag {
  background: var(--pink-soft);
  color: var(--pink);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  border: 1px solid var(--rose);
  min-width: 48px;
  text-align: center;
  flex-shrink: 0;
}

.dc-variant-name { color: var(--text-sec); font-size: 0.88rem; }

/* callout box */
.dc-callout {
  background: var(--warning-bg);
  border: 1.5px solid var(--warning-border);
  color: var(--warning-text);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.dc-callout--info {
  background: var(--amvgg-soft);
  border-color: var(--amvgg-border);
  color: var(--amvgg);
}
[data-theme="dark"] .dc-callout--info { color: #c084fc; }

/* ── Setup steps ─────────────────────────────────────────────── */
.dc-setup-section { background: var(--bg-gradient); }

.dc-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.dc-step {
  background: var(--bg-panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  transition: transform var(--transition), box-shadow var(--transition);
}
.dc-step:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--shadow); }

.dc-step-num {
  width: 36px;
  height: 36px;
  background: var(--pink);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(233, 30, 140, 0.35);
}

.dc-step-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.dc-step-content p {
  color: var(--text-sec);
  font-size: 0.89rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.dc-step-content p:last-child { margin-bottom: 0; }

.dc-step-content code,
.dc-faq-a code {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.42em;
  font-size: 0.86em;
  color: var(--pink);
  font-family: 'Courier New', Courier, monospace;
}

/* ── FAQ accordion ───────────────────────────────────────────── */
.dc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 780px;
  margin: 0 auto;
}

.dc-faq-item {
  background: var(--bg-panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.dc-faq-item[open] { border-color: var(--pink); }

.dc-faq-q {
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  gap: 1rem;
  user-select: none;
  transition: color var(--transition);
}
.dc-faq-q::-webkit-details-marker { display: none; }

.dc-faq-q::after {
  content: '+';
  color: var(--pink);
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}
.dc-faq-item[open] .dc-faq-q::after { transform: rotate(45deg); }

.dc-faq-a         { padding: 0 1.25rem 1.1rem; }
.dc-faq-a p       { color: var(--text-sec); font-size: 0.91rem; line-height: 1.65; }

/* ── CTA section ─────────────────────────────────────────────── */
.dc-cta-section {
  background: linear-gradient(135deg, #0f0520 0%, #1a0930 45%, #0c1225 100%);
  padding: 5.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dc-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.dc-cta-glow {
  position: absolute;
  inset: -200px;
  background: radial-gradient(circle at 50% 50%, rgba(155, 89, 182, 0.22), transparent 60%);
  pointer-events: none;
}

.dc-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  color: #f0e6f8;
  line-height: 1.2;
}

.dc-cta-link {
  color: #a78bcf;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.dc-cta-link:hover { color: #e0c8ff; }

/* ── Animations ──────────────────────────────────────────────── */

/* hero messages auto-play on page load */
.dc-anim {
  opacity: 0;
  animation: dc-msg-in 0.4s ease var(--delay, 0s) forwards;
}

/* typing indicator: fade in, then fade out */
.dc-anim--typing {
  opacity: 0;
  animation:
    dc-msg-in  0.35s ease var(--delay, 0s)            forwards,
    dc-fade-out 0.3s ease calc(var(--delay, 0s) + 0.7s) forwards;
}

@keyframes dc-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0);   }
}

@keyframes dc-fade-out {
  to { opacity: 0; }
}

/* scroll-triggered items inside .dc-scroll-anim containers */
.dc-anim-scroll {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity   0.4s ease calc(var(--i, 0) * 0.22s),
    transform 0.4s ease calc(var(--i, 0) * 0.22s);
}

.dc-scroll-anim.is-visible .dc-anim-scroll {
  opacity: 1;
  transform: translateY(0);
}

/* generic fade-up for cards / sections */
.dc-fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.dc-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .dc-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .dc-hero-content { align-items: center; }
  .dc-hero-sub     { max-width: 100%; }
  .dc-hero-visual  { transform: none; filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5)); max-width: 560px; margin: 0 auto; }

  .dc-features-grid,
  .dc-examples-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }

  .dc-variants-grid { grid-template-columns: repeat(2, 1fr); }
  .dc-steps         { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .dc-hero          { padding: 3.5rem 1rem 3rem; }
  .dc-section       { padding: 3.5rem 1rem; }
  .dc-cta-section   { padding: 4rem 1rem; }

  .dc-variants-grid { grid-template-columns: 1fr; }

  .dc-embed-fields  { grid-template-columns: 1fr; }

  .dc-window        { font-size: 0.82rem; }
}
