*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

:root {
  --bg:        #1a1a2e;
  --card:      #16213e;
  --deep:      #0f3460;
  --accent:    #7c83fd;
  --accent-10: rgba(124,131,253,.10);
  --accent-30: rgba(124,131,253,.30);
  --success:   #2ecc71;
  --danger:    #c0392b;
  --warning:   #e67e22;
  --text:      #e0e0e0;
  --muted:     #9090a0;
  --border:    #2a2a4a;
  --radius:    12px;
}

/* THEME: Emerald */
[data-theme="emerald"] {
  --bg:        #0f1f1a;
  --card:      #132a22;
  --deep:      #0a3d2e;
  --accent:    #34d399;
  --accent-10: rgba(52,211,153,.10);
  --accent-30: rgba(52,211,153,.30);
  --success: #22c55e;
  --danger:  #ef4444;
  --warning: #f59e0b;
  --text:    #e0f0ea;
  --muted:   #7faa98;
  --border:  #1e3f32;
  --btn-text: #fff;
}

/* THEME: Crimson */
[data-theme="crimson"] {
  --bg:        #1a0f14;
  --card:      #2a1320;
  --deep:      #3d0a24;
  --accent:    #f43f5e;
  --accent-10: rgba(244,63,94,.10);
  --accent-30: rgba(244,63,94,.30);
  --success: #34d399;
  --danger:  #ef4444;
  --warning: #f59e0b;
  --text:    #f0e0e5;
  --muted:   #aa7f8e;
  --border:  #3f1e2c;
  --btn-text: #fff;
}

/* THEME: Sunset */
[data-theme="sunset"] {
  --bg:        #1a150f;
  --card:      #2a2013;
  --deep:      #3d2a0a;
  --accent:    #f59e0b;
  --accent-10: rgba(245,158,11,.10);
  --accent-30: rgba(245,158,11,.30);
  --success: #34d399;
  --danger:  #ef4444;
  --warning: #fb923c;
  --text:    #f0ebe0;
  --muted:   #aa9a7f;
  --border:  #3f3420;
  --btn-text: #1a150f;
}

/* THEME: Arctic */
[data-theme="arctic"] {
  --bg:        #eef2f7;
  --card:      #ffffff;
  --deep:      #e2e8f0;
  --accent:    #4f6df5;
  --accent-10: rgba(79,109,245,.10);
  --accent-30: rgba(79,109,245,.30);
  --success: #16a34a;
  --danger:  #dc2626;
  --warning: #d97706;
  --text:    #1e293b;
  --muted:   #64748b;
  --border:  #cbd5e1;
  --btn-text: #fff;
}

/* Arctic-specific overrides */
[data-theme="arctic"] .card { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
[data-theme="arctic"] .terminal-bar { background: #1e293b; }
[data-theme="arctic"] .terminal-body { background: #0f172a; color: #7cfc7c; }
[data-theme="arctic"] .hero-glow { background: radial-gradient(circle, rgba(79,109,245,.12) 0%, transparent 70%); }
[data-theme="arctic"] .brand { color: var(--accent); }
[data-theme="arctic"] .server-tab.active { color: #fff; }
[data-theme="arctic"] .step-num { color: #fff; }

/* Sunset button text fix */
[data-theme="sunset"] .server-tab.active { color: var(--bg); }
[data-theme="sunset"] .step-num { color: var(--bg); }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
code {
  overflow-wrap: break-word;
  word-break: break-all;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.brand { font-size: 1.2rem; font-weight: 700; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: 7px; }
.brand-logo { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.lang-switch { display: flex; gap: 4px; align-items: center; margin-left: auto; margin-right: 12px; }
.lang-flag {
  text-decoration: none; font-size: 1.1rem; opacity: .45;
  transition: opacity .2s; cursor: pointer; line-height: 1;
}
.lang-flag:hover { opacity: .8; }
.lang-flag.active { opacity: 1; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-sm { color: var(--btn-text, #fff); }
.nav-links a.btn-sm:hover { color: var(--btn-text, #fff); opacity: .85; }
.nav-admin { color: var(--warning) !important; }

/* HAMBURGER — hidden on desktop */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; flex-direction: column; gap: 5px;
  z-index: 101;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MAIN */
main { padding: 40px 16px; display: flex; justify-content: center; }
main:has(.landing) { padding: 0; display: block; }

/* LANDING WRAPPER */
.landing { width: 100%; }

/* CARD */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  animation: cardIn .4s ease-out;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-sm  { max-width: 440px; overflow: hidden; }
.card-md  { max-width: 680px; }
.card-lg  { max-width: 960px; }

/* CARD HEADER */
.card-title {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.card-title h1 { margin-bottom: 0; }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(124,131,253,.2), rgba(167,139,250,.15));
  border: 1px solid rgba(124,131,253,.25);
}
.card-subtitle {
  font-size: .88rem; color: var(--muted); margin: -16px 0 24px;
}
.card-title + .card-subtitle { margin-top: -4px; }

h1 { font-size: 1.5rem; color: var(--accent); margin-bottom: 24px; }
h2 { font-size: 1.15rem; color: var(--accent); margin: 28px 0 16px; }
h3 { font-size: .95rem; color: var(--muted); margin-bottom: 12px; }

/* FORMS */
label { display: block; font-size: .8rem; color: var(--muted); margin: 14px 0 4px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--deep);
  color: var(--text); font-size: .95rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,131,253,.15);
}
input[type="checkbox"] { width: auto; accent-color: var(--accent); }

/* BUTTONS */
.btn {
  display: inline-block; padding: 11px 20px; border: none; border-radius: 10px;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: opacity .15s, transform .15s, box-shadow .2s;
  text-align: center;
}
.btn:hover { opacity: .85; }
.btn:active { transform: scale(.97); }
.btn-primary  { background: var(--accent);   color: var(--btn-text, #fff); }
.btn-outline  { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-queue       { background: #6366f1; color: #fff; }
.btn-queue-sched { background: transparent; color: #6366f1; border: 1px solid #6366f1; }
.btn-success  { background: var(--success);  color: #fff; }
.btn-danger   { background: var(--danger);   color: #fff; }
.btn-warning  { background: var(--warning);  color: #fff; }
.btn-sm       { padding: 7px 14px; font-size: .85rem; border-radius: 8px;
                background: var(--accent); color: var(--btn-text, #fff); font-weight: 600; }
.btn-block    { width: 100%; display: block; }
.btn-group    { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn-row      { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.booking-actions .btn { min-width: 0; }

/* ALERTS */
.alert {
  padding: 12px 16px; border-radius: 8px; margin-bottom: 20px;
  font-size: .9rem;
}
.alert-info    { background: rgba(124,131,253,.15); border: 1px solid var(--accent); color: var(--accent); }
.alert-success { background: rgba(46,204,113,.15);  border: 1px solid var(--success); color: var(--success); }
.alert-error   { background: rgba(192,57,43,.15);   border: 1px solid var(--danger);  color: var(--danger); }
.alert-warning { background: rgba(230,126,34,.12);  border: 1px solid var(--warning); color: var(--warning); }

/* BADGE */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: .75rem; font-weight: 600;
}
.badge-premium { background: rgba(46,204,113,.2); color: var(--success); border: 1px solid var(--success); }
.badge-free    { background: rgba(144,144,160,.15); color: var(--muted); border: 1px solid var(--border); }
.badge-admin   { background: rgba(230,126,34,.2); color: var(--warning); border: 1px solid var(--warning); }

/* TABLE */
.table-wrap { overflow-x: auto; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 12px;
     border-bottom: 1px solid var(--border); }
td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }

/* SECTION */
.section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row > * { flex: 1; min-width: 160px; }

/* PREMIUM BOX */
.premium-box {
  padding: 20px; border-radius: 10px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative; overflow: hidden;
}
.premium-active {
  background: rgba(46,204,113,.06);
  border: 1px solid rgba(46,204,113,.35);
}
.premium-active::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,204,113,.12), transparent 70%);
  pointer-events: none;
}
.premium-inactive {
  background: rgba(124,131,253,.05);
  border: 1px solid var(--border);
}
.premium-box p { font-size: .9rem; color: var(--muted); margin-top: 4px; }

/* STATUS DOT */
.status-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 6px; vertical-align: middle;
}
.status-dot.green  { background: var(--success); box-shadow: 0 0 6px rgba(46,204,113,.5); }
.status-dot.orange { background: var(--warning); box-shadow: 0 0 6px rgba(230,126,34,.5); }

/* SERVER TABS */
.server-tabs {
  display: flex; gap: 4px; margin-bottom: 20px;
  background: var(--deep); border-radius: 10px; padding: 4px;
  border: 1px solid var(--border);
}
.server-tab {
  padding: 8px 18px; font-size: .85rem; font-weight: 600;
  border-radius: 8px; text-decoration: none; color: var(--muted);
  transition: all .2s;
}
.server-tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.server-tab.active {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 8px rgba(124,131,253,.3);
}

/* ACCORDION (spots) */
.accordion {
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden;
}
.accordion details { border-bottom: 1px solid var(--border); }
.accordion details:last-child { border-bottom: none; }
.accordion summary {
  padding: 12px 16px; cursor: pointer; background: var(--deep);
  font-size: .9rem; font-weight: 600; list-style: none;
  display: flex; align-items: center; gap: 10px;
  transition: background .2s;
}
.accordion summary:hover { background: rgba(15,52,96,.8); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion .arrow {
  display: inline-block; color: var(--accent);
  transition: transform .25s ease;
  font-size: .7rem;
}
.accordion details[open] > summary .arrow { transform: rotate(180deg); }
.accordion .ch-body {
  padding: 8px 12px; display: flex; flex-direction: column; gap: 2px;
}
.spot-row-item {
  border-radius: 8px; transition: background .15s;
}
.spot-row-item:hover { background: rgba(124,131,253,.06); }
.spot-row-item label {
  margin: 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; cursor: pointer; font-size: .9rem;
}
.spot-row-item .spot-desc {
  color: var(--muted); font-size: .78rem;
}
.spot-time-row {
  width: 100%;
  padding: 0 8px 10px 38px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.spot-time-row label {
  margin: 0; font-size: .72rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: .3px;
}
.spot-time-row input[type="time"] { width: 130px; }

/* TERMINAL LOG */
.terminal {
  margin-top: 20px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #0d0d1a;
  border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.terminal-dots .dot-r { background: #ff5f57; }
.terminal-dots .dot-y { background: #febc2e; }
.terminal-dots .dot-g { background: #28c840; }
.terminal-title {
  font-size: .72rem; color: var(--muted); margin-left: 8px;
  text-transform: uppercase; letter-spacing: .5px;
}
.terminal-body {
  background: #0a0a14; padding: 14px 16px;
  font-size: .78rem; font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  color: #7cfc7c; min-height: 60px; max-height: 220px;
  overflow-y: auto; white-space: pre-wrap; line-height: 1.6;
}

/* DEMO TERMINAL (landing) */
.demo-terminal {
  max-width: 700px; margin: 0 auto;
}
.demo-terminal .terminal { margin-top: 0; }
.demo-terminal .terminal-body {
  min-height: auto; max-height: none; overflow: visible;
  padding: 18px 20px;
}
.demo-line {
  padding: 2px 0; font-size: .82rem; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
}

/* TOKEN GUIDE */
.token-guide-details { margin-top: 10px; }
.token-guide-details > summary.guide-toggle {
  cursor: pointer;
  font-size: .84rem;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.token-guide-details > summary.guide-toggle::before {
  content: "▶";
  font-size: .65rem;
  transition: transform .2s;
}
.token-guide-details[open] > summary.guide-toggle::before {
  transform: rotate(90deg);
}
.token-guide-details > summary.guide-toggle::-webkit-details-marker { display: none; }
.token-guide {
  margin-top: 14px; padding: 16px 18px;
  background: linear-gradient(135deg, rgba(15,52,96,.45), rgba(26,26,46,.75));
  border-radius: 10px; border: 1px solid var(--border);
  overflow: hidden; max-width: 100%; box-sizing: border-box;
  font-size: .82rem; line-height: 1.8;
}
.token-guide .guide-title {
  color: var(--text); font-weight: 700; margin-bottom: 12px;
  font-size: .86rem; display: flex; align-items: center; gap: 6px;
}
.token-guide .guide-step {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 9px;
  font-size: .84rem;
  line-height: 1.55;
}
.token-guide .guide-num {
  color: var(--accent); font-weight: 700;
  font-size: .82rem; flex-shrink: 0; padding-top: 1px;
  min-width: 18px;
}
.token-guide .guide-text {
  flex: 1; min-width: 0;
}
.token-guide code {
  display: inline;
  background: rgba(124,131,253,.15); padding: 1px 6px; border-radius: 4px;
  font-size: .79rem; color: var(--accent);
  word-break: break-word;
  overflow-wrap: break-word;
}
.token-guide strong { color: var(--text); font-weight: 700; }
.guide-code-row {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.35); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 12px; margin: 6px 0;
  overflow: hidden;
}
.guide-code-row code {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .76rem; background: transparent; padding: 0; color: var(--muted);
}
.guide-copy-btn {
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  width: auto !important;
  background: var(--accent); color: #fff;
  border: none; border-radius: 7px;
  padding: 5px 13px; font-size: .76rem;
  cursor: pointer; font-weight: 700;
  white-space: nowrap;
  transition: opacity .15s;
  margin: 0;
}
.guide-copy-btn:hover { opacity: .8; }
.guide-copy-btn:active { transform: scale(.97); }
.token-guide .guide-alt {
  margin-top: 12px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 10px;
}
.token-guide .guide-alt summary {
  cursor: pointer; color: var(--muted); font-size: .81rem;
  list-style: none; display: flex; align-items: center; gap: 6px;
  user-select: none;
}
.token-guide .guide-alt summary::before { content: '▶'; font-size: .6rem; transition: transform .2s; }
details[open] .guide-alt summary::before { transform: rotate(90deg); }
.token-guide .guide-alt summary::-webkit-details-marker { display: none; }
.token-guide .guide-help {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: .82rem; line-height: 1.5;
}
.token-info-box {
  margin-top: 12px; padding: 14px 16px;
  background: rgba(0,0,0,.2); border: 1px solid var(--border);
  border-radius: 10px; font-size: .82rem; color: var(--muted);
}
.token-info-box summary {
  cursor: pointer; color: var(--text); font-weight: 600;
  font-size: .84rem;
}
.token-info-box ul {
  margin: 10px 0; padding-left: 18px; line-height: 1.7;
}
.token-info-box ul li strong { color: var(--text); }
.token-info-box p { margin-top: 10px; line-height: 1.5; }

/* INFO BOX */
.info-box {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 20px; padding: 16px 18px;
  background: rgba(124,131,253,.05);
  border: 1px solid rgba(124,131,253,.18);
  border-radius: 10px;
}
.info-box-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.info-box-body strong {
  font-size: .9rem; color: var(--text); display: block; margin-bottom: 2px;
}
.info-box-body p { font-size: .84rem; color: var(--muted); }

/* DISCORD LINK */
.discord-link {
  color: var(--accent); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 2px;
  transition: opacity .15s;
}
.discord-link:hover { opacity: .75; text-decoration: underline; }

/* THEME PICKER */
.theme-picker {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px;
}
.theme-option {
  cursor: pointer; text-align: center; margin: 0;
  padding: 6px; border-radius: 10px;
  border: 2px solid transparent;
  transition: border-color .2s, transform .15s;
}
.theme-option:hover { transform: translateY(-2px); }
.theme-option.active { border-color: var(--accent); }
.theme-option input[type="radio"] { display: none; }
.theme-swatch {
  width: 56px; height: 38px; border-radius: 6px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(128,128,128,.2);
}
.theme-accent {
  position: absolute; bottom: 6px; left: 6px;
  width: 14px; height: 14px; border-radius: 50%;
}
.theme-card-s {
  position: absolute; top: 5px; right: 5px;
  width: 22px; height: 12px; border-radius: 3px;
  opacity: .8;
}
.theme-name {
  display: block; font-size: .68rem; color: var(--muted);
  margin-top: 4px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .3px;
}
.theme-option.active .theme-name { color: var(--accent); }

/* GREETING */
.greeting {
  margin-bottom: 20px;
}
.greeting h1 {
  display: flex; align-items: center; gap: 10px;
}
.greeting .wave {
  display: inline-block; font-size: 1.4rem;
  animation: wave .6s ease-in-out;
  transform-origin: 70% 70%;
}
@keyframes wave {
  0%   { transform: rotate(0); }
  15%  { transform: rotate(14deg); }
  30%  { transform: rotate(-8deg); }
  45%  { transform: rotate(14deg); }
  60%  { transform: rotate(-4deg); }
  75%  { transform: rotate(10deg); }
  100% { transform: rotate(0); }
}

/* PROFILE NICK GROUPS */
.profile-nick-group {
  margin-bottom: 16px; padding: 14px 16px; border-radius: 10px;
  background: rgba(255,255,255,.02); border: 1px solid var(--border);
}
.profile-nick-group label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-weight: 600; }
.nick-icon { font-size: 1.1rem; }
.nick-hint { display: block; margin-top: 4px; font-size: .78rem; line-height: 1.4; }
.profile-nick-group input { margin-bottom: 0; }

/* PROFILE STATUS */
.profile-status {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 8px;
  font-size: .85rem; margin-top: 8px;
}
.profile-status.ok {
  background: rgba(46,204,113,.08); border: 1px solid rgba(46,204,113,.2);
  color: var(--success);
}
.profile-status.warn {
  background: rgba(230,126,34,.08); border: 1px solid rgba(230,126,34,.2);
  color: var(--warning);
}

/* LANDING HERO */
.hero {
  text-align: center; padding: 80px 16px 40px;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,131,253,.18) 0%, transparent 70%);
  pointer-events: none; animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: .6; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;  transform: translateX(-50%) scale(1.15); }
}
.hero h1 { font-size: 2.5rem; color: var(--text); margin-bottom: 16px; position: relative; }
.hero h1 span {
  color: var(--accent);
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin: 0 auto 32px; position: relative; }

/* GLOW BUTTON */
.btn-glow {
  position: relative;
  box-shadow: 0 0 20px rgba(124,131,253,.3), 0 0 60px rgba(124,131,253,.1);
  transition: box-shadow .3s, opacity .15s, transform .2s;
}
.btn-glow:hover {
  opacity: 1 !important;
  box-shadow: 0 0 25px rgba(124,131,253,.5), 0 0 80px rgba(124,131,253,.2);
  transform: translateY(-2px);
}
.btn-lg { padding: 14px 32px; font-size: 1.05rem; border-radius: 12px; }

/* STATS BAR */
.stats-bar {
  display: flex; justify-content: center; align-items: center; gap: 32px;
  padding: 0 16px 56px; max-width: 700px; margin: 0 auto;
  position: relative;
}
.stat-item { text-align: center; transition: transform .2s; }
.stat-item:hover { transform: translateY(-3px); }
.stat-sep {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}
.stat-number {
  display: block; font-size: 2.4rem; font-weight: 800;
  line-height: 1.1; color: var(--accent);
}
.stat-label {
  display: block; font-size: .78rem; color: var(--muted);
  margin-top: 6px; text-transform: uppercase; letter-spacing: .8px;
}

/* SERVERS SHOWCASE */
.servers-showcase { text-align: center; }
.servers-desc {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 24px;
  text-align: center;
}
.servers-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.server-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.server-badge:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(124,131,253,.15);
}
.server-badge-icon { font-size: 1.4rem; }
.server-badge-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

/* LANDING SECTIONS */
.landing-section {
  max-width: 800px; margin: 0 auto; padding: 0 16px 64px;
}
.section-title {
  text-align: center; font-size: 1.4rem; color: var(--text);
  margin-bottom: 32px;
}

/* FEATURES */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  text-align: center; border: 1px solid transparent;
  transition: transform .25s, border-color .3s, box-shadow .3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,131,253,.35);
  box-shadow: 0 12px 40px rgba(124,131,253,.12);
}
.feature-card .icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { color: var(--text); font-size: 1rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .88rem; }

/* HOW IT WORKS — STEPS */
.steps {
  display: flex; flex-direction: column; gap: 20px;
}
.step {
  display: flex; align-items: flex-start; gap: 20px;
  background: var(--card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s;
}
.step:hover {
  border-color: rgba(124,131,253,.3);
  box-shadow: 0 8px 30px rgba(124,131,253,.08);
}
.step-num {
  flex-shrink: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 1.1rem; font-weight: 800;
  background: var(--accent);
  color: var(--btn-text, #fff);
}
.step-body h3 { color: var(--text); font-size: 1rem; margin-bottom: 4px; }
.step-body p  { color: var(--muted); font-size: .88rem; }

/* PRICING */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 960px; margin: 0 auto;
}
.pricing-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 32px 24px;
  display: flex; flex-direction: column; position: relative;
  transition: transform .25s, box-shadow .3s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-premium {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(124,131,253,.15);
}
.pricing-premium::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: var(--radius); z-index: -1;
  background: linear-gradient(135deg, var(--accent), rgba(124,131,253,.3));
  opacity: .15; pointer-events: none;
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--btn-text, #fff);
  padding: 4px 16px; border-radius: 20px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px;
}
.pricing-header { text-align: center; margin-bottom: 24px; }
.pricing-header h3 {
  font-size: 1.1rem; color: var(--text); margin-bottom: 8px;
}
.pricing-price {
  font-size: 2.8rem; font-weight: 800; color: var(--text);
  line-height: 1;
}
.pricing-price span {
  font-size: 1rem; font-weight: 600; color: var(--muted);
}
.pricing-tc {
  width: 36px; height: 36px; object-fit: contain;
  vertical-align: middle; margin-left: 4px;
}
.pricing-period {
  font-size: .82rem; color: var(--muted); margin-top: 4px;
}
.pricing-features {
  list-style: none; flex: 1; margin-bottom: 24px;
}
.pricing-features li {
  padding: 8px 0; font-size: .88rem; color: var(--text);
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(128,128,128,.1);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  flex-shrink: 0; font-size: .8rem; width: 20px; text-align: center;
}
.pricing-features li.yes::before { content: '✓'; color: var(--success); font-weight: 700; }
.pricing-features li.no::before  { content: '✕'; color: var(--muted); }
.pricing-features li.no { color: var(--muted); }
.pricing-trial {
  border-color: #34d399;
  box-shadow: 0 0 24px rgba(52,211,153,.12);
}
.pricing-trial::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: var(--radius); z-index: -1;
  background: linear-gradient(135deg, #34d399, rgba(52,211,153,.3));
  opacity: .10; pointer-events: none;
}
.pricing-badge-trial {
  background: #34d399; color: #052e16;
}
.btn-trial {
  background: #34d399; color: #052e16; font-weight: 700;
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.btn-trial:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(52,211,153,.3); }
.pricing-lifetime {
  border-color: #d4af37;
  box-shadow: 0 0 30px rgba(212,175,55,.2);
}
.pricing-lifetime::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: var(--radius); z-index: -1;
  background: linear-gradient(135deg, #d4af37, rgba(212,175,55,.3));
  opacity: .12; pointer-events: none;
}
.pricing-badge-gold {
  background: linear-gradient(135deg, #d4af37, #f0d060);
  color: #1a1200;
}
.btn-gold {
  background: linear-gradient(135deg, #d4af37, #f0d060);
  color: #1a1200; font-weight: 700;
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.btn-gold:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,175,55,.3); }
.pricing-trial-note {
  margin-top: 24px; text-align: center;
  padding: 14px 20px; border-radius: 12px;
  border: 1px dashed var(--accent);
  background: var(--deep);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .92rem; color: var(--muted);
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.pricing-trial-note span { font-size: 1.3rem; }
.pricing-trial-note p { margin: 0; }
.pricing-trial-note strong { color: var(--accent); }

.land-ref-section {
  margin-top: 28px; max-width: 720px; margin-left: auto; margin-right: auto;
}
.land-ref-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 20px 24px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
}
.land-ref-icon { font-size: 2rem; }
.land-ref-text { flex: 1; min-width: 200px; }
.land-ref-text h3 { margin: 0 0 6px 0; font-size: 1.1rem; color: var(--text); }
.land-ref-text p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.land-ref-text strong { color: var(--accent); }
.cta-ref-hint {
  margin-top: 14px; font-size: .88rem; color: var(--muted); font-weight: 400;
}

/* AUTOPILOT BANNER */
.autopilot-banner {
  text-align: center;
  padding: 40px 28px;
  margin: 0 auto 32px;
  max-width: 800px;
  background: linear-gradient(135deg, rgba(124,131,253,.10) 0%, rgba(52,211,153,.08) 100%);
  border: 1px solid rgba(124,131,253,.22);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.autopilot-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 50% 50%, rgba(124,131,253,.08) 0%, transparent 70%);
  pointer-events: none;
}
.autopilot-icon {
  font-size: 2.6rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(124,131,253,.4));
}
.autopilot-banner h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.autopilot-desc {
  color: var(--muted);
  font-size: .95rem;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.autopilot-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.autopilot-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(124,131,253,.08);
  border: 1px solid rgba(124,131,253,.15);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .88rem;
  color: var(--text);
  font-weight: 500;
  transition: transform .2s, border-color .2s;
}
.autopilot-step:hover {
  transform: translateY(-2px);
  border-color: rgba(124,131,253,.35);
}
.autopilot-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  flex-shrink: 0;
}
.autopilot-arrow {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
  opacity: .6;
}
@media (max-width: 640px) {
  .autopilot-steps { flex-direction: column; gap: 10px; }
  .autopilot-arrow { transform: rotate(90deg); }
  .autopilot-banner { padding: 28px 16px; margin-bottom: 24px; }
  .autopilot-banner h2 { font-size: 1.3rem; }
}

/* TRUST / SECURITY */
.trust-section {
  position: relative;
  border: 1px solid rgba(124,131,253,.18);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(124,131,253,.06) 0%, rgba(39,201,63,.04) 100%);
  padding: 48px 32px 40px;
}
.trust-badge {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 16px rgba(124,131,253,.4));
}
.trust-section .section-title {
  margin-bottom: 4px;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 32px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.trust-card {
  background: rgba(124,131,253,.06);
  border: 1px solid rgba(124,131,253,.12);
  border-radius: 14px;
  padding: 24px 20px;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.trust-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124,131,253,.35);
  box-shadow: 0 8px 28px rgba(124,131,253,.12);
}
.trust-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.trust-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.trust-card p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.55;
}
.trust-bottom {
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  font-style: italic;
}
@media (max-width: 768px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-section { padding: 32px 18px 28px; }
}
@media (max-width: 540px) {
  .trust-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* FAQ */
.faq-list {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 700px; margin: 0 auto;
}
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .3s;
}
.faq-item[open] { border-color: rgba(124,131,253,.3); }
.faq-item summary {
  padding: 18px 20px; cursor: pointer; font-weight: 600;
  font-size: .95rem; color: var(--text); list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .2s;
}
.faq-item summary:hover { background: rgba(124,131,253,.04); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.3rem; color: var(--accent);
  font-weight: 300; transition: transform .25s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer {
  padding: 0 20px 18px; font-size: .88rem;
  color: var(--muted); line-height: 1.7;
}

/* ROADMAP */
.roadmap {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 700px; margin: 0 auto;
}
.roadmap-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  transition: border-color .3s, transform .2s, box-shadow .3s;
}
.roadmap-item:hover { border-color: rgba(124,131,253,.3); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.roadmap-icon { font-size: 1.5rem; flex-shrink: 0; }
.roadmap-body { flex: 1; }
.roadmap-body h3 { color: var(--text); font-size: .95rem; margin-bottom: 2px; }
.roadmap-body p  { color: var(--muted); font-size: .82rem; }

/* STICKY CTA (mobile only) */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  padding: 12px 16px; z-index: 50;
  background: linear-gradient(transparent, var(--bg) 30%);
  padding-top: 28px;
  transform: translateY(100%); transition: transform .3s ease;
}
.sticky-cta.visible { transform: translateY(0); }

/* CTA SECTION */
.cta-section {
  text-align: center; padding: 48px 24px;
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.cta-section h2 {
  font-size: 1.5rem; color: var(--text); margin-bottom: 10px;
}
.cta-section p {
  color: var(--muted); font-size: .95rem; margin-bottom: 24px;
}

/* FADE-UP ANIMATIONS */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: .1s; }
.fade-up.d2 { transition-delay: .2s; }
.fade-up.d3 { transition-delay: .3s; }
.fade-up.d4 { transition-delay: .4s; }
.fade-up.d5 { transition-delay: .5s; }

/* ROW HELPER */
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }

/* FORM LINK */
.form-footer { text-align: center; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.form-footer a { color: var(--accent); text-decoration: none; }

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
.td-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.form-inline { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }

/* ============================================================
   TABLET  ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  nav { padding: 12px 16px; }

  .card { padding: 24px 18px; }

  main:has(.landing) { padding: 0; }

  .hero h1 { font-size: 2rem; }
  .hero-glow { width: 400px; height: 300px; }

  .stats-bar { gap: 24px; }
  .stat-number { font-size: 2rem; }

  .features { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }

  .cta-section h2 { font-size: 1.3rem; }

  table { font-size: .82rem; }
  th, td { padding: 8px 10px; }
}

/* ============================================================
   MOBILE  ≤ 540px
   ============================================================ */
@media (max-width: 540px) {
  /* Nav — hamburger */
  nav {
    padding: 10px 14px;
    flex-wrap: nowrap;
    position: relative;
  }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0;
    width: 240px; height: 100vh;
    background: var(--card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 60px 24px 24px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 100;
    box-shadow: -8px 0 30px rgba(0,0,0,.4);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    font-size: .95rem; padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .btn-sm {
    margin-top: 8px; text-align: center;
    padding: 10px 14px; border-radius: 8px;
  }

  /* Main & card */
  main { padding: 16px 10px; }
  main:has(.landing) { padding: 0; }
  .card { padding: 18px 14px; border-radius: 8px; }

  /* Typography */
  h1 { font-size: 1.25rem; margin-bottom: 18px; }
  h2 { font-size: 1rem; margin: 20px 0 12px; }

  /* Row → stack */
  .row { flex-direction: column; gap: 0; }

  /* Button groups → full width (except hero) */
  .btn-group { flex-direction: column; gap: 8px; }
  .btn-group .btn,
  .btn-group a.btn { width: 100%; text-align: center; }
  .hero .btn-group { flex-direction: row; justify-content: center; }
  .hero .btn-group .btn,
  .hero .btn-group a.btn { width: auto; }

  /* Premium box → stack */
  .premium-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }

  /* Inline form rows → wrap */
  .form-inline { flex-direction: column; align-items: stretch; }
  .form-inline input,
  .form-inline select { width: 100%; }

  /* Table action cells → wrap */
  .td-actions { flex-direction: column; align-items: flex-start; }

  /* Spot rows in admin → wrap */
  .spot-row { flex-wrap: wrap; }
  .spot-row input { min-width: 0; }

  /* Server tabs */
  .server-tabs { flex-wrap: wrap; }
  .server-tab { padding: 7px 14px; font-size: .82rem; }

  /* Accordion */
  .spot-time-row { padding-left: 36px; }
  .spot-time-row input[type="time"] { width: 110px; }

  /* Terminal */
  .terminal-body { font-size: .72rem; padding: 10px 12px; max-height: 180px; }

  /* Card icon */
  .card-icon { width: 36px; height: 36px; font-size: 1rem; }
  .card-title { gap: 10px; }

  /* Token guide */
  .token-guide { padding: 14px; font-size: .78rem; }

  /* Greeting */
  .greeting h1 { font-size: 1.15rem; }

  /* Hero */
  .hero { padding: 40px 14px 24px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: .95rem; }
  .hero-glow { width: 300px; height: 220px; top: -60px; }

  /* Stats */
  .stats-bar { gap: 16px; padding-bottom: 32px; }
  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: .7rem; letter-spacing: .4px; }
  .stat-sep { height: 30px; }

  /* Features & sections */
  .landing-section { padding: 0 14px 40px; }
  .section-title { font-size: 1.15rem; margin-bottom: 20px; }
  .features { grid-template-columns: 1fr; }
  .feature-card { padding: 20px; }
  .feature-card:hover { transform: none; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing-card { padding: 24px 18px; }
  .pricing-card:hover { transform: none; }
  .pricing-price { font-size: 2.2rem; }

  /* Roadmap */
  .roadmap-item { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .roadmap-body h3 { font-size: .88rem; }

  /* FAQ */
  .faq-item summary { padding: 14px 16px; font-size: .88rem; }
  .faq-answer { padding: 0 16px 14px; font-size: .82rem; }

  /* Sticky CTA */
  .sticky-cta { display: block; }

  /* Steps */
  .step { padding: 18px; gap: 14px; }
  .step-num { width: 36px; height: 36px; font-size: .95rem; }

  /* CTA */
  .cta-section { padding: 32px 18px; }
  .cta-section h2 { font-size: 1.15rem; }
  .cta-section p { font-size: .88rem; }
  .btn-lg { padding: 12px 24px; font-size: .95rem; }

  /* Tables */
  table { font-size: .8rem; }
  th, td { padding: 7px 8px; }

  /* inputs / selects */
  input, select, textarea { font-size: .9rem; padding: 9px 10px; }

  /* Details/summary (accordion) */
  summary { padding: 10px 12px !important; font-size: .88rem !important; }
}

/* ---------------------------------------------------------------------------
   Teaser (free user spot preview)
--------------------------------------------------------------------------- */
.teaser-section { margin-top: 24px; }

/* Live FOMO bar */
.teaser-live-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; margin-bottom: 16px;
  background: rgba(46,204,113,.06); border: 1px solid rgba(46,204,113,.2);
  border-radius: var(--radius); font-size: .85rem; color: var(--muted);
}
.teaser-live-bar strong { color: var(--success); }
.teaser-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); flex-shrink: 0;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,204,113,.4); }
  50%      { box-shadow: 0 0 0 6px rgba(46,204,113,0); }
}

/* Blur wrap */
.teaser-blur-wrap { position: relative; margin-bottom: 20px; }
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.teaser-blur-wrap .teaser-grid {
  filter: blur(3px); pointer-events: none; user-select: none;
  max-height: 220px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}
.teaser-blur-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.25); border-radius: var(--radius);
}
.teaser-blur-content {
  text-align: center; padding: 24px;
}
.teaser-blur-content strong {
  display: block; font-size: 1.05rem; color: var(--text); margin: 8px 0 4px;
}
.teaser-blur-content p {
  color: var(--muted); font-size: .85rem; margin-bottom: 16px;
}
.teaser-spot {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.teaser-lock { font-size: 1.1rem; }
.teaser-spot-name { font-weight: 600; font-size: .88rem; color: var(--text); }
.teaser-spot-ch   { font-size: .75rem; color: var(--muted); }

/* Mini features grid */
.teaser-features-mini {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.teaser-feat {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.teaser-feat > span { font-size: 1.3rem; flex-shrink: 0; }
.teaser-feat strong { font-size: .88rem; color: var(--text); display: block; }
.teaser-feat p { font-size: .78rem; color: var(--muted); margin: 0; }

/* Animated premium box border */
.premium-inactive {
  background: rgba(124,131,253,.05);
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.premium-inactive::after {
  content: ''; position: absolute; inset: -2px;
  border-radius: 12px; z-index: -1;
  background: linear-gradient(135deg, var(--accent), var(--warning), var(--accent));
  background-size: 200% 200%;
  animation: premiumBorder 3s ease infinite;
}
@keyframes premiumBorder {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ---------------------------------------------------------------------------
   Onboarding
--------------------------------------------------------------------------- */
.onboarding { text-align: center; }
.ob-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 32px;
}
.ob-step-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  background: var(--deep); color: var(--muted);
  border: 2px solid var(--border);
  transition: all .3s;
}
.ob-step-dot.active {
  background: var(--accent); color: var(--btn-text, #fff);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(124,131,253,.3);
}
.ob-line {
  width: 48px; height: 2px;
  background: var(--border);
}
.ob-desc {
  color: var(--muted); font-size: .92rem; margin-bottom: 24px;
  max-width: 360px; margin-left: auto; margin-right: auto;
}
.ob-info-card {
  background: var(--deep); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  margin-bottom: 24px;
}
.ob-info-card strong { color: var(--accent); font-size: 1rem; }
.ob-info-card p { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.ob-panel form { text-align: left; }
.ob-checklist {
  display: flex; flex-direction: column; gap: 10px;
  text-align: left; margin-top: 20px;
}
.ob-check-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--deep); border: 1px solid var(--border);
  font-size: .9rem; color: var(--muted);
}
.ob-check-item.done {
  border-color: rgba(46,204,113,.3);
  color: var(--success);
}
.ob-check-item.pending { color: var(--muted); }
.ob-check-icon {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  background: var(--card); border: 1px solid var(--border);
}
.ob-check-item.done .ob-check-icon {
  background: rgba(46,204,113,.15); border-color: var(--success);
  color: var(--success);
}

/* ---------------------------------------------------------------------------
   Presets bar
--------------------------------------------------------------------------- */
.presets-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 28px;
}
.preset-chip {
  display: inline-flex;
  align-items: center;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  font-size: .8rem;
}
.preset-chip > button {
  background: none;
  border: none;
  color: var(--text);
  padding: 4px 10px;
  cursor: pointer;
  font-size: .8rem;
}
.preset-chip > button:hover { color: var(--accent); }
.preset-del {
  background: none !important;
  border-left: 1px solid var(--border) !important;
  color: var(--muted) !important;
  padding: 4px 8px !important;
  cursor: pointer;
  font-size: .75rem !important;
}
.preset-del:hover { color: var(--danger) !important; }

/* ---------------------------------------------------------------------------
   History table
--------------------------------------------------------------------------- */
/* History filters */
.hist-filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px;
  align-items: center;
}
.hist-filter-group { display: flex; gap: 4px; }
.hist-pill {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  font-size: .8rem; font-weight: 500; text-decoration: none;
  color: var(--muted); background: rgba(255,255,255,.04);
  border: 1px solid var(--border); transition: all .2s;
}
.hist-pill:hover { color: var(--fg); background: rgba(255,255,255,.08); }
.hist-pill.active {
  color: var(--accent); background: rgba(124,131,253,.12);
  border-color: var(--accent);
}

/* History pagination */
.hist-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 4px; margin-top: 20px; flex-wrap: wrap;
}
.hist-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px;
  font-size: .82rem; font-weight: 500; text-decoration: none;
  color: var(--muted); background: rgba(255,255,255,.04);
  border: 1px solid var(--border); transition: all .2s;
}
.hist-page-btn:hover { color: var(--fg); background: rgba(255,255,255,.08); }
.hist-page-btn.active {
  color: #fff; background: var(--accent); border-color: var(--accent);
  pointer-events: none;
}
.hist-page-dots { color: var(--muted); padding: 0 4px; }

.history-table-wrap { overflow-x: auto; margin-top: 16px; }
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.history-table th, .history-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.history-table th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.history-table tr:hover td { background: rgba(255,255,255,.02); }
.text-muted  { color: var(--muted); }
.text-sm     { font-size: .8rem; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state p { margin-bottom: 20px; }

/* ---------------------------------------------------------------------------
   Autocron
--------------------------------------------------------------------------- */
/* Spot picker — shared between dashboard & autocron */
.spot-picker {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--deep);
}
.spot-picker-group { border-bottom: 1px solid var(--border); }
.spot-picker-group:last-child { border-bottom: none; }
.spot-picker-ch {
  padding: 10px 14px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
  background: var(--deep);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}
.spot-picker-item {
  display: flex; align-items: center; flex-wrap: wrap;
  padding: 0 6px;
  transition: background .15s;
  border-radius: 0;
}
.spot-picker-item:hover { background: rgba(124,131,253,.06); }
.spot-picker-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  cursor: pointer;
  margin: 0;
  font-size: .9rem;
  flex: 1; min-width: 0;
}
.spot-picker-name { font-weight: 500; color: var(--text); }
.spot-picker-desc { color: var(--muted); font-size: .78rem; }

/* Spot favorite star */
.spot-fav-btn {
  background: none; border: none; cursor: pointer;
  padding: 4px 8px; margin-right: 4px;
  font-size: 1rem; color: var(--muted); opacity: .4;
  transition: all .2s; flex-shrink: 0;
}
.spot-fav-btn:hover { opacity: .8; }
.spot-fav-btn.active { color: #f59e0b; opacity: 1; }

/* Spot search row + fav filter */
.spot-search-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.spot-fav-filter {
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px;
  border-radius: 20px; font-size: .82rem; font-weight: 500; cursor: pointer;
  color: var(--muted); background: rgba(255,255,255,.04);
  border: 1px solid var(--border); transition: all .2s; white-space: nowrap;
}
.spot-fav-filter:hover { color: var(--fg); background: rgba(255,255,255,.08); }
.spot-fav-filter.active {
  color: #f59e0b; background: rgba(245,158,11,.12);
  border-color: #f59e0b;
}

.ac-times {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 10px 38px;
}
.ac-times-sep { color: var(--muted); }
.ac-times input { width: 120px; padding: 6px 10px; font-size: .85rem; }

.autocron-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.autocron-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.autocron-card.ac-inactive { opacity: .6; }
.ac-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ac-card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  font-size: .85rem;
}
.ac-meta { color: var(--muted); }
.ac-spot-info { display: block; font-size: .82rem; padding: 2px 0 2px 8px; border-left: 2px solid var(--border); }
.ac-spot-alt { border-left-color: var(--accent); opacity: .85; }
.alt-section { margin-top: 20px; }
.alt-toggle { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--accent); padding: 8px 0; }
.alt-row { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 8px; }
.alt-row-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.alt-label { font-weight: 600; font-size: .85rem; color: var(--accent); }
.alt-row-fields { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.alt-row-fields select { flex: 2; min-width: 140px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: .88rem; }
.alt-row-fields input[type=time] { flex: 1; min-width: 90px; }
.ac-badges { display: flex; gap: 6px; }
.ac-card-actions { display: flex; gap: 8px; }

/* TOKEN EXPIRED MODAL */
.token-expired-backdrop {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  animation: alertIn .3s ease;
}
.token-expired-card {
  background: var(--card); border: 1px solid var(--danger);
  border-radius: var(--radius); padding: 32px;
  width: 90%; max-width: 420px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.token-expired-icon { font-size: 2.5rem; margin-bottom: 12px; }
.token-expired-card h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--danger); margin: 0 0 8px;
}
.token-expired-card p {
  font-size: .9rem; color: var(--muted); margin: 0 0 24px; line-height: 1.5;
}
.token-expired-actions {
  display: flex; gap: 10px; justify-content: center;
}
.token-expired-actions .btn { min-width: 130px; }

/* TOKEN EXPIRED PROFILE BANNER */
.token-expired-banner {
  background: rgba(244,63,94,.1); border: 1px solid var(--danger);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 16px;
  font-size: .88rem; font-weight: 500; color: var(--danger);
  display: flex; align-items: center; gap: 8px;
}

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  width: 90%; max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transform: translateY(20px) scale(.96);
  transition: transform .25s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-title {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
}
.modal-desc {
  font-size: .84rem; color: var(--muted); margin-bottom: 18px;
}
.modal-actions {
  display: flex; gap: 10px; margin-top: 20px;
}
.modal-actions .btn { flex: 1; }

/* SPOT HIGHLIGHT on preset apply */
.spot-row-item.highlight {
  animation: spotFlash .6s ease;
}
@keyframes spotFlash {
  0%   { background: rgba(124,131,253,.25); }
  100% { background: transparent; }
}

/* TOAST */
#toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 300;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 12px 20px; border-radius: var(--radius);
  font-size: .88rem; font-weight: 500;
  color: #fff; background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  opacity: 0; transform: translateX(40px);
  transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { border-left: 4px solid var(--success); }
.toast-error   { border-left: 4px solid var(--danger); }
.toast-info    { border-left: 4px solid var(--accent); }

.btn-sm { padding: 5px 12px; font-size: .8rem; }

@media (max-width: 768px) {
  .history-table thead { display: none; }
  .history-table, .history-table tbody, .history-table tr, .history-table td {
    display: block; width: 100%;
  }
  .history-table tr {
    padding: 12px 0; border-bottom: 1px solid var(--border);
  }
  .history-table td {
    display: flex; justify-content: space-between; align-items: center;
    padding: 4px 0; border: none; font-size: .84rem;
  }
  .history-table td::before {
    content: attr(data-label);
    font-weight: 600; font-size: .75rem; text-transform: uppercase;
    letter-spacing: .04em; color: var(--muted); margin-right: 12px;
    flex-shrink: 0;
  }
  .hist-filters { flex-direction: column; align-items: flex-start; }
  .hist-pagination { gap: 2px; }
  .hist-page-btn { min-width: 32px; height: 32px; padding: 0 6px; font-size: .76rem; }
}
@media (max-width: 540px) {
  .teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .teaser-features-mini { grid-template-columns: 1fr; }
  .spot-picker-item .ac-times { flex-direction: row; padding-left: 38px; }
  .autocron-card { padding: 12px 14px; }
  .btn-row { flex-direction: column; gap: 6px; }
  .btn-row .btn { width: 100%; text-align: center; }
  .referral-link-row { flex-direction: column; }
  .referral-stats { justify-content: center; }
}

/* ── Referral ─────────────────────────────────────────── */
.referral-section { border-top: 1px solid var(--border); padding-top: 20px; }
.referral-box { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.referral-link-row { display: flex; gap: 8px; align-items: center; }
.referral-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.referral-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.referral-stat-num { font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--accent); }
.referral-stat-label { font-size: .78rem; color: var(--muted); text-align: center; }

/* ── Landing Referral (kroki jak "Jak to działa?" — .steps / .step) ── */
.ref-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-10);
  border: 1px solid var(--accent-30);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ref-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: .95rem;
  line-height: 1.6;
}

.ref-reward {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.ref-reward-inner {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--accent-30);
  border-radius: 16px;
  padding: 22px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 24px var(--accent-10);
}
.ref-reward-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 30% 50%, var(--accent-10), transparent 65%);
  pointer-events: none;
}

.ref-reward-num {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.03em;
  position: relative;
  z-index: 1;
}

.ref-reward-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.ref-reward-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.ref-reward-sub {
  font-size: .8rem;
  color: var(--muted);
  max-width: 220px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .ref-reward-inner { flex-direction: column; text-align: center; padding: 20px 24px; gap: 12px; }
  .ref-reward-num { font-size: 2.6rem; }
  .ref-reward-sub { max-width: 100%; }
}


/* ---------------------------------------------------------------------------
   Page entrance animation (t11)
--------------------------------------------------------------------------- */
main {
  animation: pageIn .35s ease-out;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------------------
   FAQ smooth open (t14)
--------------------------------------------------------------------------- */
.faq-item[open] .faq-answer {
  animation: faqSlide .3s ease-out;
}
@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------------------
   Skeleton / loading shimmer (t8)
--------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(90deg, var(--deep) 25%, var(--border) 37%, var(--deep) 63%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  height: 28px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------------------------------------------------------------------------
   Terminal syntax coloring (t15)
--------------------------------------------------------------------------- */
.term-success { color: var(--success); }
.term-error   { color: var(--danger); }
.term-warn    { color: #f59e0b; }
.term-info    { color: var(--accent); }
.term-dim     { color: var(--muted); }

/* ---------------------------------------------------------------------------
   Password visibility toggle (t5)
--------------------------------------------------------------------------- */
.pw-wrap {
  position: relative;
}
.pw-wrap input {
  padding-right: 44px;
}
.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  line-height: 1;
  transition: color .2s;
  width: auto !important;
  min-height: auto !important;
}
.pw-toggle:hover { color: var(--text); }

/* ---------------------------------------------------------------------------
   Loading button state (t4)
--------------------------------------------------------------------------- */
.btn.loading {
  pointer-events: none;
  opacity: .65;
}
.btn.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
  animation: btnSpin .6s linear infinite;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------------------
   Alert auto-dismiss (t12)
--------------------------------------------------------------------------- */
.alert {
  animation: alertIn .3s ease-out;
  position: relative;
}
.alert.dismissing {
  animation: alertOut .3s ease-in forwards;
}
@keyframes alertIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes alertOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* ---------------------------------------------------------------------------
   Empty hint for inline areas (t1, t9)
--------------------------------------------------------------------------- */
.empty-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--deep);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: .84rem;
  color: var(--muted);
}
.empty-hint .empty-hint-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ---------------------------------------------------------------------------
   Utility classes for profile inline styles cleanup (t10)
--------------------------------------------------------------------------- */
.mt-0  { margin-top: 0 !important; }
.mt-6  { margin-top: 6px; }
.mt-8  { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-24 { margin-top: 24px; }
.pt-20 { padding-top: 20px; }
.text-xs { font-size: .75rem; }
.text-sm { font-size: .8rem; }
.text-muted { color: var(--muted); }
.fw-600 { font-weight: 600; }
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-4  { gap: 4px; }
.gap-6  { gap: 6px; }
.items-center { align-items: center; }
.price-line { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.price-line img { width: 16px; height: 16px; object-fit: contain; }
.price-line.lg img { width: 18px; height: 18px; }
.price-line.gold { color: #d4af37; }
.dashed-box {
  padding: 8px 12px;
  background: var(--deep);
  border-radius: 8px;
  border: 1px dashed var(--accent);
  font-size: .85rem;
}
.cursor-na { opacity: .5; cursor: not-allowed; letter-spacing: 2px; }

/* ===================================================================
   ADMIN PANEL — v3
   =================================================================== */

/* Layout */
main.admin-main { padding: 28px 20px; display: block; }

.admin-page {
  max-width: 1140px;
  margin: 0 auto;
  animation: cardIn .35s ease-out;
}

/* ── Tab bar ── */
.admin-tabs-outer {
  margin-bottom: 20px;
}
.admin-tabs {
  display: flex;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.admin-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: background .18s, color .18s, box-shadow .18s;
}
.admin-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.admin-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 14px rgba(124,131,253,.5);
}

/* ── Main card container ── */
.adm-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}

/* ── Card header ── */
.adm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.adm-card-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.adm-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-10), rgba(124,131,253,.2));
  border: 1px solid var(--accent-30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.adm-card-sub {
  font-size: .8rem;
  color: var(--muted);
  margin: 4px 0 0;
}
.adm-kpi-row {
  display: flex;
  gap: 12px;
}
.adm-kpi {
  text-align: center;
  padding: 10px 18px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 70px;
}
.adm-kpi-val {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.adm-kpi-lbl {
  display: block;
  font-size: .7rem;
  color: var(--muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Toolbar ── */
.adm-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.adm-search {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color .2s;
}
.adm-search:focus-within { border-color: var(--accent); }
.adm-search svg { color: var(--muted); flex-shrink: 0; }
.adm-search input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: .88rem;
  padding: 11px 0;
  width: 100%;
  outline: none;
  box-shadow: none;
}
.adm-search input::placeholder { color: var(--muted); }
.adm-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.adm-filters select {
  background: var(--deep);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .84rem;
  cursor: pointer;
  outline: none;
  min-width: 150px;
  transition: border-color .2s;
  width: auto;
}
.adm-filters select:focus { border-color: var(--accent); }

/* ── User cards ── */
.adm-user-card {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 8px;
  transition: border-color .18s, box-shadow .18s, transform .15s;
}
.adm-user-card:hover {
  border-color: var(--accent-30);
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  transform: translateY(-1px);
}
.adm-user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.adm-user-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.adm-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-10), var(--accent-30));
  border: 1px solid var(--accent-30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  color: var(--accent);
  flex-shrink: 0;
}
.adm-user-name {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}
.adm-user-name strong { font-size: .9rem; }
.adm-user-meta2 {
  display: flex;
  gap: 12px;
  font-size: .78rem;
  color: var(--muted);
}
.adm-user-id {
  font-family: monospace;
  background: rgba(255,255,255,.06);
  padding: 1px 6px;
  border-radius: 4px;
}
.adm-user-right {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.adm-user-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.adm-action-form {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.adm-action-form input[type="password"],
.adm-action-form input[type="text"] {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: .82rem;
  width: 160px;
  outline: none;
  transition: border-color .18s;
  box-shadow: none;
}
.adm-action-form input:focus { border-color: var(--accent); }
.adm-action-form select {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: .82rem;
  outline: none;
  cursor: pointer;
  width: auto;
  transition: border-color .18s;
}
.adm-action-form select:focus { border-color: var(--accent); }

.adm-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text);
  cursor: pointer;
}
.adm-toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── Pagination ── */
.adm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px 0 4px;
  flex-wrap: wrap;
}
.pg-btn {
  background: var(--deep);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
}
.pg-btn:hover { border-color: var(--accent); color: var(--text); }
.pg-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 10px rgba(124,131,253,.45); }
.pg-info { font-size: .76rem; color: var(--muted); padding: 7px 12px; background: var(--deep); border-radius: 8px; border: 1px solid var(--border); }

/* ── Server grid ── */
.adm-server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.adm-server-card {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color .18s, transform .15s, box-shadow .18s;
}
.adm-server-card:hover { border-color: var(--accent-30); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.adm-inactive { opacity: .5; }
.adm-srv-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}
.adm-srv-name { font-weight: 700; font-size: .92rem; margin-bottom: 4px; }
.adm-srv-gid {
  font-family: monospace;
  font-size: .7rem;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  padding: 2px 8px;
  border-radius: 5px;
}
.adm-srv-cmd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  margin-bottom: 14px;
}
.adm-srv-tpl { font-size: .75rem; color: var(--muted); }
.adm-srv-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── Add box ── */
.adm-add-box {
  margin-top: 22px;
  padding: 22px 24px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: rgba(124,131,253,.03);
}
.adm-add-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.adm-add-form { display: flex; flex-direction: column; gap: 12px; }
.adm-add-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.adm-field { display: flex; flex-direction: column; gap: 5px; }
.adm-field label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0;
}
.adm-field input,
.adm-field select {
  width: 100%;
  background: var(--deep);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: .86rem;
  outline: none;
  transition: border-color .18s;
  box-shadow: none;
}
.adm-field input:focus,
.adm-field select:focus { border-color: var(--accent); }

/* ── Spots page ── */
.adm-srv-detail {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.adm-srv-detail > summary { list-style: none; }
.adm-srv-detail > summary::-webkit-details-marker { display: none; }
.adm-srv-detail[open] > summary .adm-ch-arrow { transform: rotate(90deg); }
.adm-srv-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--deep) 0%, rgba(255,255,255,.02) 100%);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  cursor: pointer;
  user-select: none;
  transition: background .2s;
}
.adm-srv-group-head:hover { background: rgba(124,131,253,.06); }
.adm-srv-group-head strong { font-size: .95rem; }
.adm-srv-channels { padding: 12px 16px; }

/* Channel accordion */
.adm-ch-detail {
  margin-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .18s;
}
.adm-ch-detail[open] { border-color: var(--accent-30); }
.adm-ch-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  cursor: pointer;
  background: rgba(255,255,255,.025);
  font-size: .87rem;
  list-style: none;
  user-select: none;
  transition: background .15s;
  flex-wrap: wrap;
}
.adm-ch-summary:hover { background: rgba(255,255,255,.06); }
.adm-ch-summary::-webkit-details-marker { display: none; }
.adm-ch-arrow {
  font-size: .65rem;
  color: var(--accent);
  transition: transform .2s;
  flex-shrink: 0;
}
details[open] > .adm-ch-summary .adm-ch-arrow { transform: rotate(90deg); }
.adm-ch-cid {
  font-family: monospace;
  font-size: .7rem;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  padding: 2px 7px;
  border-radius: 4px;
}
.adm-ch-btns {
  display: flex;
  gap: 6px;
  margin-left: 4px;
}
.adm-ch-count {
  margin-left: auto;
  font-size: .72rem;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  padding: 2px 9px;
  border-radius: 20px;
  font-weight: 600;
}
.adm-ch-body { padding: 12px 16px; }

/* Spots list */
.adm-spots-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.adm-spot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  background: rgba(255,255,255,.025);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all .15s;
}
.adm-spot-row:hover { background: rgba(255,255,255,.05); border-color: var(--border); }
.adm-spot-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adm-spot-info strong { font-size: .86rem; }
.adm-spot-info span { font-size: .76rem; color: var(--muted); }
.adm-spot-actions { display: flex; align-items: center; gap: 8px; }
.adm-empty-msg { font-size: .82rem; color: var(--muted); padding: 14px 0; text-align: center; font-style: italic; }

/* New spot form */
.adm-add-spot-area { padding-top: 10px; border-top: 1px dashed var(--border); }
.adm-spot-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.adm-new-spot-row { display: flex; gap: 8px; }
.adm-new-spot-row input {
  flex: 1;
  width: auto;
  background: var(--deep);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: .83rem;
  outline: none;
  transition: border-color .18s;
  box-shadow: none;
}
.adm-new-spot-row input:focus { border-color: var(--accent); }
.adm-spot-row-btns { display: flex; gap: 8px; }
.adm-remove-btn {
  padding: 0 10px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-size: .9rem;
  min-height: 34px;
  transition: opacity .15s;
}
.adm-remove-btn:hover { opacity: .8; }

/* ── btn-xs override ── */
.btn-xs {
  padding: 6px 13px !important;
  font-size: .78rem !important;
  white-space: nowrap;
  border-radius: 8px !important;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  main.admin-main { padding: 16px 12px; }
  .adm-card { padding: 18px 16px; }
  .admin-tabs { flex-direction: column; gap: 4px; }
  .admin-tab { justify-content: flex-start; padding: 11px 16px; }
  .adm-card-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .adm-kpi-row { gap: 8px; }
  .adm-toolbar { flex-direction: column; }
  .adm-filters select { min-width: 0; width: 100%; }
  .adm-server-grid { grid-template-columns: 1fr; }
  .adm-user-row { flex-direction: column; align-items: flex-start; }
  .adm-user-right { margin-top: 4px; }
  .adm-user-actions { flex-direction: column; }
  .adm-action-form { width: 100%; }
  .adm-action-form input[type="password"] { width: 100%; }
  .adm-add-fields { grid-template-columns: 1fr; }
  .adm-ch-summary { gap: 6px; }
  .adm-ch-count { margin-left: 0; }
}


/* ================================================================
   TICKETS — fab, panel, list, detail, messages
   ================================================================ */

/* ── Floating Action Button ── */
.tk-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124,131,253,.45);
  z-index: 900;
  transition: transform .2s, box-shadow .2s;
}
.tk-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(124,131,253,.6);
}

/* ── Slide-up Panel ── */
.tk-panel {
  position: fixed;
  bottom: 92px;
  right: 28px;
  width: 340px;
  max-height: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  z-index: 901;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  display: flex;
  flex-direction: column;
}
.tk-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.tk-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.tk-panel-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
}
.tk-panel-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.tk-panel-body {
  padding: 16px 18px;
  overflow-y: auto;
}
.tk-panel-desc {
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 14px;
}
.tk-panel-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tk-panel-form input,
.tk-panel-form textarea {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--fg);
  font-size: .88rem;
  resize: vertical;
}
.tk-panel-form input:focus,
.tk-panel-form textarea:focus {
  border-color: var(--primary);
  outline: none;
}
.tk-panel-link {
  display: block;
  margin-top: 12px;
  font-size: .82rem;
  color: var(--primary);
  text-decoration: none;
}
.tk-panel-link:hover { text-decoration: underline; }

/* ── Ticket List ── */
.tk-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}
.tk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color .2s, background .2s;
  gap: 12px;
}
.tk-row:hover {
  border-color: var(--primary);
  background: rgba(124,131,253,.06);
}
.tk-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.tk-row-subject {
  font-weight: 600;
  font-size: .92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tk-row-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.tk-row-user {
  font-size: .8rem;
  color: var(--muted);
}
.tk-row-meta {
  font-size: .78rem;
  color: var(--muted);
  opacity: .7;
}
.tk-row-date {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Status Badges ── */
.tk-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.tk-badge-open {
  background: rgba(76,175,80,.15);
  color: #4caf50;
}
.tk-badge-pending {
  background: rgba(255,193,7,.15);
  color: #ffc107;
}
.tk-badge-closed {
  background: rgba(158,158,158,.15);
  color: #9e9e9e;
}

/* ── Filter Tabs ── */
.tk-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tk-filter {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  background: var(--deep);
  border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s;
}
.tk-filter:hover,
.tk-filter.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Ticket Detail ── */
.tk-back {
  display: inline-block;
  font-size: .85rem;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 12px;
}
.tk-back:hover { text-decoration: underline; }

.tk-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tk-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.tk-detail-subject {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--fg);
}
.tk-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.tk-header-user {
  font-size: .82rem;
  color: var(--primary);
  font-weight: 600;
}
.tk-header-date {
  font-size: .78rem;
  color: var(--muted);
}

/* ── Messages (chat style) ── */
.tk-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 4px;
}
.tk-msg {
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 85%;
}
.tk-msg-user {
  background: var(--deep);
  border: 1px solid var(--border);
  align-self: flex-start;
}
.tk-msg-admin {
  background: rgba(124,131,253,.1);
  border: 1px solid rgba(124,131,253,.2);
  align-self: flex-end;
}
.tk-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 10px;
}
.tk-msg-author {
  font-weight: 700;
  font-size: .8rem;
}
.tk-msg-admin .tk-msg-author { color: var(--primary); }
.tk-msg-user .tk-msg-author { color: var(--fg); }
.tk-msg-time {
  font-size: .72rem;
  color: var(--muted);
}
.tk-msg-body {
  font-size: .88rem;
  line-height: 1.5;
  color: var(--fg);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Reply Form ── */
.tk-reply-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.tk-reply-form textarea {
  flex: 1;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--fg);
  font-size: .88rem;
  resize: vertical;
  min-height: 48px;
}
.tk-reply-form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

/* ── Status Change Form (admin) ── */
.tk-status-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--deep);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.tk-status-form label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.tk-status-form select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--fg);
  font-size: .84rem;
}

/* ── Create Block (user tickets page) ── */
.tk-create-block {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.tk-create-block summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 18px;
}
.tk-create-block summary::-webkit-details-marker { display: none; }
.tk-create-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-top: 1px solid var(--border);
}
.tk-create-form label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}
.tk-create-form input,
.tk-create-form textarea {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--fg);
  font-size: .88rem;
  resize: vertical;
}
.tk-create-form input:focus,
.tk-create-form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .tk-fab { bottom: 18px; right: 18px; width: 46px; height: 46px; }
  .tk-panel { right: 12px; left: 12px; width: auto; bottom: 76px; }
  .tk-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tk-row-right { gap: 8px; }
  .tk-header { flex-direction: column; }
  .tk-header-right { align-items: flex-start; }
  .tk-msg { max-width: 95%; }
  .tk-reply-form { flex-direction: column; }
  .tk-reply-form .btn { width: 100%; }
}
