@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-card: #161616;
  --bg-elev: #1d1d1d;
  --bg-window: #1a1a1a;
  --bg-window-bar: #232323;
  --bg-row: #1f1f1f;
  --bg-row-alt: #1a1a1a;

  --text: #ffffff;
  --text-soft: #d4d4d4;
  --text-muted: #909090;
  --text-dim: #666666;

  --line: #262626;
  --line-strong: #333333;
  --line-soft: #1f1f1f;

  --yellow: #fde047;
  --yellow-soft: #facc15;
  --yellow-dim: rgba(253, 224, 71, 0.12);
  --yellow-glow: rgba(253, 224, 71, 0.35);

  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: var(--yellow); color: var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
img, video { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.section-title .yel { color: var(--yellow); }

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 64px;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 32px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(253, 224, 71, 0.4));
}

.logo-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.logo-free {
  background: var(--yellow);
  color: var(--bg);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  letter-spacing: 0.1em;
  border-radius: 3px;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--yellow); }
.nav-links a.active { color: var(--yellow); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

.nav-toggle { display: none; padding: 8px 12px; border: 1px solid var(--line-strong); background: transparent; border-radius: var(--radius-sm); color: var(--text); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--bg);
}

.btn-yellow:hover {
  background: white;
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-dark:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-outline:hover { border-color: var(--text); }

.btn-ghost { color: var(--text-muted); padding: 12px 16px; }
.btn-ghost:hover { color: var(--text); }

.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 32px; font-size: 14px; }
.btn-sm { padding: 8px 16px; font-size: 12px; }

/* ============ SECTION 1 — HEADER / HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-video video {
  position: absolute;
  top: 50%;
  right: 0;
  height: 92%;
  width: auto;
  max-width: 60%;
  transform: translateY(-50%);
  object-fit: contain;
  opacity: 0.85;
}

.hero-bg-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 40%, rgba(10, 10, 10, 0.2) 100%),
    linear-gradient(to bottom, transparent 0%, rgba(10, 10, 10, 0.4) 70%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--yellow);
  border-bottom-width: 2px;
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero h1 .yel { color: var(--yellow); }
.hero h1 .line { display: block; }

.hero-desc {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 480px;
  margin-bottom: 14px;
  line-height: 1.55;
}

.hero-compat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.hero-compat .yel { color: var(--yellow); }

/* Wavy divider at bottom of hero */
.hero-divider {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  z-index: 3;
  pointer-events: none;
}

.hero-divider svg { width: 100%; height: 100%; display: block; }

/* ============ SECTION 2 — WHO WE ARE / FEATURES ============ */
.section {
  padding: 110px 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: all 0.2s ease;
}

.feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--yellow);
  font-size: 20px;
  margin-bottom: 22px;
}

.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============ SECTION 3 — PLACEHOLDER ============ */
.section-placeholder {
  padding: 110px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.placeholder-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px;
  color: var(--text-dim);
}

.placeholder-card h3 {
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  font-size: 16px;
  text-transform: uppercase;
}

.placeholder-card p {
  font-size: 14px;
  font-style: italic;
}

/* ============ SECTION 4 — FORGEMAGIE BOT (HTML-coded windows) ============ */
.forge-section {
  background: var(--bg);
  position: relative;
}

.forge-intro {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.forge-intro p {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* === The mock software windows === */
.win {
  background: var(--bg-window);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  font-size: 12px;
}

.win-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: var(--bg-window-bar);
  border-bottom: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 500;
}

.win-bar .title {
  display: flex; align-items: center; gap: 8px;
  letter-spacing: 0.02em;
}

.win-bar .title::before {
  content: '';
  width: 12px; height: 12px;
  background: var(--yellow);
  border-radius: 2px;
  display: inline-block;
  transform: rotate(-4deg);
}

.win-bar .ctrls {
  display: flex; gap: 4px;
  color: var(--text-muted);
}

.win-bar .ctrls span {
  width: 22px; height: 18px;
  display: grid; place-items: center;
  font-size: 12px;
  border-radius: 2px;
}

.win-bar .ctrls span:hover { background: rgba(255,255,255,0.05); }

.win-body { padding: 14px; }

/* Forge windows wrapper — tabbed layout */
.forge-windows {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

/* Tab bar */
.forge-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px;
  margin-bottom: 28px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.forge-tab {
  flex: 1;
  padding: 11px 16px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.forge-tab .num {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  background: var(--bg-elev);
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  transition: all 0.2s ease;
}

.forge-tab:hover { color: var(--text); }
.forge-tab:hover .num { color: var(--text); }

.forge-tab.active { color: var(--bg); }
.forge-tab.active .num { background: var(--bg); color: var(--yellow); }

/* Sliding background pill */
.forge-tab-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: calc(33.333% - 3.333px);
  background: var(--yellow);
  border-radius: 4px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.forge-tabs[data-active="1"] .forge-tab-slider { transform: translateX(0); }
.forge-tabs[data-active="2"] .forge-tab-slider { transform: translateX(100%); }
.forge-tabs[data-active="3"] .forge-tab-slider { transform: translateX(200%); }

/* Window stage — single window visible at a time */
.forge-stage {
  position: relative;
  min-height: 600px;
}

.forge-stage .win {
  display: none;
}

.forge-stage .win.active {
  display: block;
  animation: paneIn 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes paneIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tab progress dots (bottom indicator) */
.forge-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.forge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.forge-dot:hover { background: var(--text-muted); }
.forge-dot.active {
  background: var(--yellow);
  width: 24px;
  border-radius: 3px;
}

/* === Window 1 — Config (large table) === */
.win-config { position: relative; }

.win-config .header-note {
  padding: 10px 14px;
  background: rgba(253, 224, 71, 0.06);
  border-left: 2px solid var(--yellow);
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.win-config .header-note strong { color: var(--yellow); }

.config-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.config-table th,
.config-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--text-soft);
}

.config-table th {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  background: var(--bg-row);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.config-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.015); }
.config-table tbody tr:hover { background: rgba(253, 224, 71, 0.03); }

.config-table td.charac { font-weight: 600; color: var(--text); }
.config-table td.num { font-family: var(--font-mono); text-align: center; }
.config-table td.center { text-align: center; }
.config-table td.dash { color: var(--text-dim); text-align: center; }

/* Custom checkbox */
.cb {
  display: inline-grid;
  place-items: center;
  width: 14px; height: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.cb.checked {
  background: var(--yellow);
  border-color: var(--yellow);
}

.cb.checked::after {
  content: '✓';
  color: var(--bg);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

/* Editable-looking numeric cells (with highlight bg) */
.config-table td.cell-edit {
  background: var(--bg-elev);
  font-family: var(--font-mono);
  text-align: center;
  border: 1px solid var(--line);
}

.config-table tr.row-bold td.cell-edit {
  background: rgba(0, 0, 0, 0.4);
}

.config-table tr.row-bold td.charac { color: var(--yellow); }

/* Config window footer */
.config-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  font-size: 11.5px;
}

.cfg-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
}

.cfg-opt.full { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; }

.cfg-select {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  padding: 5px 26px 5px 10px;
  font-size: 11px;
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
  cursor: pointer;
  min-width: 90px;
}

.cfg-num {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 5px 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  border-radius: 3px;
  width: 60px;
  text-align: right;
}

/* === Window 2 — Preset (smaller table) === */
.win-preset {
  position: relative;
}

.preset-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.preset-table th, .preset-table td {
  padding: 7px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.preset-table th {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  background: var(--bg-row);
  border-bottom: 1px solid var(--line-strong);
}

.preset-table td { color: var(--text-soft); }
.preset-table td.lbl { font-weight: 600; color: var(--text); }
.preset-table td.val { font-family: var(--font-mono); }
.preset-table td.dash { color: var(--text-dim); }

.preset-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.preset-foot .link {
  font-size: 11px;
  color: var(--yellow);
  text-decoration: underline;
  margin-right: auto;
}

.preset-btn {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 7px 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
}

.preset-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.preset-btn.primary { background: var(--yellow); color: var(--bg); border-color: var(--yellow); }
.preset-btn.primary:hover { background: white; color: var(--bg); border-color: white; }

/* Callouts on windows */
.win-callout {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--yellow);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 11px;
  color: var(--text-soft);
  max-width: 200px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 4px var(--yellow-dim);
  z-index: 3;
}

.win-callout .title {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}

.win-callout p { line-height: 1.5; }

.win-callout::before {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  background: var(--bg-card);
  border-right: 1px solid var(--yellow);
  border-bottom: 1px solid var(--yellow);
  transform: rotate(135deg);
}

.win-callout.from-right { right: -180px; top: 24px; }
.win-callout.from-right::before { left: -7px; top: 12px; }

.win-callout.from-left { left: -180px; top: 50%; }
.win-callout.from-left::before { right: -7px; top: 12px; transform: rotate(-45deg); }

.win-callout.from-bottom { bottom: -90px; left: 30%; }
.win-callout.from-bottom::before { top: -7px; left: 20px; transform: rotate(225deg); }

/* === Window 3 — Queue (File d'attente) === */
.queue-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
}

.queue-row:last-child { border-bottom: none; }
.queue-row:hover { background: rgba(255, 255, 255, 0.02); }

.q-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: radial-gradient(circle at 30% 25%, #262626, #161616);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 3px;
}

.q-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.q-field {
  display: flex; flex-direction: column; gap: 4px;
}

.q-field label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.q-field .select {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 6px 26px 6px 10px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.q-actions {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.q-btn {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  padding: 4px 14px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  min-width: 100px;
  text-align: center;
}

.q-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.q-btn.danger:hover { border-color: #ef4444; color: #ef4444; }

.queue-foot {
  padding: 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-row);
  display: flex;
  justify-content: center;
}

.queue-foot .btn-danger {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  padding: 10px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
}

.queue-foot .btn-danger:hover { border-color: #ef4444; color: #ef4444; }

/* Mini stat icons inside item name */
.q-stat-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  margin-left: 6px;
  background: var(--yellow-dim);
  color: var(--yellow);
  border-radius: 3px;
}

/* ============ SECTION 5 — DOWNLOAD / PRICING ============ */
.download-section {
  padding: 110px 0;
  background: var(--bg-alt);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.price-card:hover { border-color: var(--line-strong); }

.price-card.featured {
  border: 1px solid var(--yellow);
  background: linear-gradient(180deg, rgba(253, 224, 71, 0.04), var(--bg-card));
}

.price-card.featured::before {
  content: 'POPULAIRE';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--bg);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 4px 12px;
  border-radius: 3px;
}

.price-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.price-list {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
  border-top: 1px solid var(--line);
}

.price-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-soft);
  text-align: center;
}

.price-list li.disabled {
  color: var(--text-dim);
  text-decoration: line-through;
}

.price-amount-wrap { text-align: center; margin-bottom: 22px; }

.price-old {
  font-size: 18px;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-bottom: 4px;
  font-weight: 500;
}

.price-amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: 0.02em;
}

.price-amount .per { font-size: 13px; color: var(--text-muted); font-weight: 500; }

.price-free {
  font-size: 28px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: 0.05em;
}

/* ============ HALL OF FAME CTA ============ */
.cta-section {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto;
}

.cta-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.cta-title .arrow {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  background: var(--yellow);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 18px;
}

.cta-text { max-width: 460px; font-size: 14.5px; color: var(--text-muted); }

/* ============ FOOTER ============ */
.footer {
  padding: 36px 0 28px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 12.5px;
}

.footer-content .left { display: flex; align-items: center; gap: 12px; }
.footer-content strong { color: var(--text); font-weight: 700; }
.footer-content a { color: var(--text-muted); }
.footer-content a:hover { color: var(--yellow); }
.footer-disclaimer { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* ============ ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.40s; }
.delay-6 { animation-delay: 0.48s; }

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .config-table { font-size: 10.5px; }
  .config-table th, .config-table td { padding: 6px 7px; }
  .win-callout.from-right, .win-callout.from-left { display: none; }
}

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 16px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero { padding: 100px 0 60px; min-height: auto; }

  /* Make tables horizontally scrollable */
  .win-body { overflow-x: auto; }
  .config-table { min-width: 760px; }
  .preset-table { min-width: 500px; }
  .queue-row { grid-template-columns: 40px 1fr; gap: 12px; }
  .queue-row .q-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .q-btn { flex: 1; min-width: auto; }
}

/* ============================================================ */
/* SECTION 3 — SOFTWARE WINDOW (animated mockup)                */
/* ============================================================ */

.app-window {
  max-width: 1180px;
  margin: 0 auto;
  background: #2d2d2d;
  border: 1px solid #0a0a0a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(253, 224, 71, 0.06);
  font-family: var(--font);
  font-size: 12px;
  color: #d4d4d4;
}

.app-titlebar {
  background: #1a1a1a;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #0a0a0a;
  font-size: 11px;
}

.app-titlebar .title {
  display: flex; align-items: center; gap: 8px;
  color: #e0e0e0;
  font-weight: 600;
}

.app-titlebar .title::before {
  content: '';
  width: 11px; height: 11px;
  background: var(--yellow);
  border-radius: 2px;
}

.app-titlebar .ctrls { display: flex; gap: 2px; color: #888; }
.app-titlebar .ctrls span {
  width: 22px; height: 18px;
  display: grid; place-items: center;
  font-size: 11px;
}
.app-titlebar .ctrls span:hover { background: rgba(255,255,255,0.05); }

.app-shell {
  display: grid;
  grid-template-columns: 110px 1fr 100px;
  min-height: 600px;
}

/* === Left sidebar (account list) === */
.app-sidebar-left {
  background: #2a2a2a;
  border-right: 1px solid #1a1a1a;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-account {
  background: #353535;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.app-account.active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow);
}

.app-account .avatar {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #3a3a3a, #1f1f1f);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 6px;
  overflow: hidden;
  border: 2px solid var(--yellow);
}

.app-account .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-account strong {
  display: block;
  color: #e0e0e0;
  font-size: 10.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.app-account .status-on {
  color: #6dde6d;
  font-size: 9px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.app-account .status-on::before {
  content: '';
  width: 6px; height: 6px;
  background: #6dde6d;
  border-radius: 50%;
  box-shadow: 0 0 6px #6dde6d;
  animation: dot-pulse 1.8s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.app-sidebar-foot {
  margin-top: auto;
  display: flex;
  gap: 6px;
  justify-content: center;
  padding-top: 12px;
  border-top: 1px solid #1a1a1a;
  font-size: 14px;
  color: #888;
}

/* === Main area === */
.app-main {
  background: #2d2d2d;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #2d2d2d;
  border-bottom: 1px solid #1a1a1a;
  flex-wrap: wrap;
}

.app-toolbar .status {
  font-size: 11.5px;
  color: #b0b0b0;
  flex: 1;
  min-width: 200px;
}
.app-toolbar .status strong { color: #6dde6d; font-weight: 600; }
.app-toolbar .status em { color: #6dde6d; font-style: normal; font-weight: 600; }

.app-toolbar .actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.tb-btn,
.app-toolbar .seg,
.app-toolbar .ico,
.app-toolbar .btn-disconnect {
  background: #3a3a3a;
  border: 1px solid #1a1a1a;
  color: #d4d4d4;
  padding: 5px 11px;
  font-size: 11px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.tb-btn:hover,
.app-toolbar .seg:hover,
.app-toolbar .ico:hover { background: #454545; }

.app-toolbar .seg.active { background: #e8e8e8; color: #000; }
.app-toolbar .btn-disconnect { padding: 5px 18px; }
.app-toolbar .ico { padding: 5px 8px; font-size: 13px; }

.app-toolbar .ico.play { color: #6dde6d; }
.app-toolbar .ico.stop { color: #ff5555; }

/* Secondary toolbars */
.app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  background: #2d2d2d;
  border-bottom: 1px solid #1a1a1a;
  flex-wrap: wrap;
  font-size: 11px;
}

.app-row .lvl {
  display: flex; align-items: center; gap: 6px;
  color: #b0b0b0;
}

.app-row .lvl::before {
  content: '🏆';
  font-size: 12px;
}

.lvl-bar {
  display: inline-grid;
  place-items: center;
  width: 88px; height: 20px;
  background: var(--yellow);
  border: 1px solid #1a1a1a;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #000;
}

.app-row .alt-sel {
  background: #3a3a3a;
  border: 1px solid #1a1a1a;
  color: #d4d4d4;
  padding: 4px 22px 4px 10px;
  font-size: 11px;
  border-radius: 3px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #999 50%), linear-gradient(135deg, #999 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 8px) 50%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
  min-width: 160px;
  font-family: inherit;
}

.app-row .havres,
.app-row .abo {
  margin-left: auto;
  color: var(--yellow);
  font-weight: 600;
}
.app-row .abo .warn { color: #ff5555; font-weight: 700; }
.app-row .script-debug { color: var(--yellow); }

/* === Console === */
.app-console {
  background: #1a1a1a;
  flex: 1;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  max-height: 400px;
}

.app-console-inner {
  position: absolute;
  inset: 12px 14px;
  overflow: hidden;
}

.log {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  animation: logIn 0.35s forwards;
}

.log .time { color: #6e6e6e; margin-right: 2px; }
.log .step { color: #b0b0b0; }
.log .hl-yellow { color: var(--yellow); }
.log .hl-green { color: #6dde6d; }
.log .hl-pink { color: #ff7ab8; }
.log .em { color: #ff7ab8; font-style: normal; }
.log.warn { color: #ffb44a; }
.log.success { color: #6dde6d; }
.log.confirm { color: #4ad4d4; font-weight: 500; }

@keyframes logIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* === Bottom command bar === */
.app-cmd {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  background: #2d2d2d;
  border-top: 1px solid #1a1a1a;
}

.app-cmd .alt-sel { min-width: 100px; }

.app-cmd input {
  flex: 1;
  background: #3a3a3a;
  border: 1px solid #1a1a1a;
  color: #d4d4d4;
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 3px;
  font-family: inherit;
}

.app-cmd .tb-btn { font-size: 10.5px; padding: 5px 10px; }

/* === Right sidebar (action buttons) === */
.app-sidebar-right {
  background: #2d2d2d;
  border-left: 1px solid #1a1a1a;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.right-row {
  display: flex;
  gap: 3px;
  margin-bottom: 3px;
}

.rb {
  background: #3a3a3a;
  border: 1px solid #1a1a1a;
  color: #d4d4d4;
  padding: 5px 4px;
  font-size: 9.5px;
  font-weight: 500;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: all 0.15s;
}

.rb:hover {
  background: #454545;
  border-color: var(--yellow);
}

.right-row .rb:first-child { padding: 4px; min-width: 28px; }
.right-row .rb { flex: 1; }

.rb.empty {
  background: transparent;
  border-color: transparent;
  min-height: 22px;
  cursor: default;
}
.rb.empty:hover { background: transparent; border-color: transparent; }

.rb-sep {
  height: 1px;
  background: #1a1a1a;
  margin: 4px 0;
}

/* === Bottom stats bar === */
.app-bottom {
  background: #232323;
  padding: 10px 14px;
  display: flex;
  gap: 18px;
  align-items: center;
  border-top: 1px solid #0a0a0a;
  font-size: 11.5px;
  color: #d4d4d4;
  flex-wrap: wrap;
}

.app-bottom .stat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.app-bottom .ico-heart { color: #ff5577; font-size: 13px; }
.app-bottom .ico-bolt { color: var(--yellow); font-size: 13px; }
.app-bottom .ico-bag { color: #d4d4d4; font-size: 13px; }
.app-bottom .ico-pos { color: #d4d4d4; font-size: 13px; }

.app-bar {
  display: inline-block;
  position: relative;
  width: 130px;
  height: 17px;
  background: #1a1a1a;
  border: 1px solid #0a0a0a;
  border-radius: 2px;
  overflow: hidden;
}

.app-bar .fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, var(--yellow), #f59e0b);
  transition: width 1s ease;
  animation: barShimmer 3.2s ease-in-out infinite;
}

@keyframes barShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

.app-bar .num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #000;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.app-bottom .kamas-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.02em;
}

.app-bottom .pos {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #d4d4d4;
}

/* Floating annotation tags on the software window */
.app-tag {
  position: absolute;
  background: var(--yellow);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(253, 224, 71, 0.3);
}

.app-tag::after {
  content: '';
  position: absolute;
  background: var(--yellow);
  width: 8px; height: 8px;
  transform: rotate(45deg);
}

.app-tag.tag-1 { top: 90px; right: -90px; }
.app-tag.tag-1::after { left: -3px; top: 50%; margin-top: -4px; }

.app-tag.tag-2 { bottom: 60px; left: -110px; }
.app-tag.tag-2::after { right: -3px; top: 50%; margin-top: -4px; }

@media (max-width: 1320px) {
  .app-tag { display: none; }
}

/* Section 3 wrapper */
.section-software {
  position: relative;
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.app-window-wrap {
  position: relative;
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .app-sidebar-left, .app-sidebar-right { flex-direction: row; flex-wrap: wrap; overflow-x: auto; }
  .app-sidebar-right { padding: 6px; }
  .rb { font-size: 10px; padding: 5px 8px; }
  .app-bottom { font-size: 10.5px; gap: 12px; }
  .app-bar { width: 80px; }
}

/* ============================================================ */
/* AUTH + PROFILE PAGES                                          */
/* ============================================================ */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px 24px 60px;
  position: relative;
}

.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 15%, rgba(253, 224, 71, 0.05), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 85%, rgba(253, 224, 71, 0.03), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  position: relative;
  z-index: 1;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: var(--yellow);
  border-radius: 0 0 2px 2px;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-logo img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 14px rgba(253, 224, 71, 0.4));
}

.auth-card h1 {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.auth-card h1 .yel { color: var(--yellow); }

.auth-sub {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  margin-bottom: 32px;
}

.auth-sub a { color: var(--yellow); font-weight: 600; }
.auth-sub a:hover { text-decoration: underline; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(253, 224, 71, 0.1);
}

.field input::placeholder { color: var(--text-dim); }

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--yellow);
  flex-shrink: 0;
}

.checkbox-row a { color: var(--yellow); font-weight: 600; }
.checkbox-row a:hover { text-decoration: underline; }

.auth-divider {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 22px 0;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-foot {
  text-align: center;
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.auth-foot a { color: var(--yellow); font-weight: 700; }
.auth-foot a:hover { text-decoration: underline; }

/* === Profile page === */
.profile-page {
  min-height: 100vh;
  padding: 120px 24px 60px;
  position: relative;
}

.profile-wrap {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.profile-header {
  text-align: center;
  margin-bottom: 32px;
}

.profile-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.profile-header h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a3a3a, #1f1f1f);
  border: 3px solid var(--yellow);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 24px rgba(253, 224, 71, 0.25);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.profile-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  padding: 4px 10px;
  background: rgba(253, 224, 71, 0.1);
  border-radius: 999px;
}

.profile-meta::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--yellow);
}

.profile-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 14px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.profile-row:last-of-type { border-bottom: none; }

.profile-row .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.profile-row .value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}

.profile-row .value .copy-btn {
  margin-left: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
}

.profile-row .value .copy-btn:hover { color: var(--yellow); border-color: var(--yellow); }

.profile-actions {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.profile-actions .btn { justify-content: center; }

.btn-logout {
  background: transparent;
  color: #ff8585;
  border: 1px solid rgba(255, 133, 133, 0.3);
}

.btn-logout:hover {
  background: rgba(255, 133, 133, 0.08);
  border-color: #ff8585;
}

@media (max-width: 700px) {
  .auth-card { padding: 36px 24px; }
  .profile-card { padding: 32px 22px; }
  .profile-top { flex-direction: column; text-align: center; gap: 16px; }
  .profile-row { grid-template-columns: 1fr; gap: 4px; }
  .profile-actions { grid-template-columns: 1fr; }
}

/* Toast for copy feedback */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--yellow);
  color: var(--bg);
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(253, 224, 71, 0.4);
  z-index: 100;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show { transform: translateX(-50%) translateY(0); }
