/* ============================================================================
   BestPixel — officiële website. Pixel-brand: indigo/violet op diep navy.
   Kleuren, fonts en effecten volgen de BestPixel 2026 branding kit.
   ============================================================================ */
:root {
  /* Brand palette */
  --bp-indigo:     #6c63ff;
  --bp-indigo-600: #564dff;
  --bp-indigo-300: #8b85ff;
  --bp-indigo-200: #a8a4ff;
  --bp-violet:     #b06cff;
  --bp-ink:        #07091a;

  /* Surfaces */
  --bg:       #080b1c;
  --bg-2:     #0b1029;
  --panel:    #111634;
  --panel-2:  #161c40;
  --panel-hi: #1d2554;
  --line:     rgba(139, 133, 255, 0.16);
  --line-2:   rgba(139, 133, 255, 0.30);

  /* Text */
  --text:    #eef0ff;
  --muted:   #9aa0d4;
  --muted-2: #6f76a8;

  /* Effects */
  --glow:      0 0 0 1px rgba(108,99,255,.35), 0 18px 60px -22px rgba(108,99,255,.55);
  --radius:    16px;
  --radius-sm: 10px;

  --brand: var(--bp-indigo);
  /* Motion — Apple-HIG-inspired easing. Decelerate on entrance, gentle spring on emphasis. */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --t-fast: 0.16s;
  --t-med:  0.28s;
  --t-slow: 0.5s;
  --font-pixel: "Press Start 2P", monospace;
  --font-body:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Indigo glow backdrop */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 80% -8%, rgba(108,99,255,.22), transparent 60%),
    radial-gradient(800px 600px at 6% 10%, rgba(176,108,255,.12), transparent 55%),
    linear-gradient(180deg, #0a0e24 0%, #080b1c 42%, #07091a 100%);
}
/* Pixel grid overlay (masked towards the top) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(139,133,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,133,255,.045) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}
.grain { display: none; }

a { color: var(--bp-indigo-200); }
h1, h2, h3 { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.2px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.small { font-size: 0.84rem; }
.pixelated { image-rendering: pixelated; image-rendering: crisp-edges; }
code { font-family: ui-monospace, Menlo, monospace; background: rgba(139,133,255,0.1); padding: 0.1rem 0.35rem; border-radius: 0.3rem; }

/* --- Layout shell --- */
main { position: relative; z-index: 2; min-height: 60vh; }
.section { width: min(1180px, 92vw); margin: 0 auto; padding: clamp(2.4rem, 6vw, 4.5rem) 0; }
.section.narrow { width: min(560px, 92vw); }
.sub { margin: 2.4rem 0 1rem; font-size: 1.4rem; }
.empty { padding: 2rem 0; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 1000; isolation: isolate;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem clamp(1rem, 2vw, 2rem);
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 28, 0.72);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,0.45); background: rgba(8,11,28,0.9); }

/* Scroll-reveal (smooth decelerate, gentle settle) */
.reveal { opacity: 0; transform: translateY(22px) scale(0.985); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* First-paint entrances */
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.site-header { animation: slideDown var(--t-med) var(--ease-out) both; }
.hero-content > * { animation: fadeUp var(--t-slow) var(--ease-out) both; }
.hero-content .eyebrow { animation-delay: .02s; }
.hero-content h1 { animation-delay: .08s; }
.hero-content .hero-copy { animation-delay: .16s; }
.hero-content .hero-actions { animation-delay: .24s; }
.hero-content .hero-meta { animation-delay: .3s; }
.hero-panel { animation: fadeUp var(--t-slow) var(--ease-out) both; animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  .site-header, .hero-content > *, .hero-panel { animation: none !important; }
}

/* Unify interactive-surface motion with the HIG easing. */
.feature-card, .hl, .cat-card, .thread-row, .thread-item, .lb-row, .server-card,
.stat-card, .panel, .admin-card, .online-card, .sec-link, .swatch {
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease) !important;
}
.main-nav a, .footer-cols a, .footer-bottom a, .admin-nav a, .card-link, .back-link,
.user-chip, .status-pill, .icon-btn, .copy-btn { transition: all var(--t-fast) var(--ease) !important; }
.avatar { transition: transform var(--t-med) var(--ease-spring); }
.user-chip:hover .avatar { transform: scale(1.06); }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text); }
.brand-logo { width: 2.15rem; height: 2.15rem; border-radius: 0.5rem; display: block; }
.brand-name { font-size: 1.12rem; font-weight: 800; letter-spacing: 0.2px; }
.brand-name span { color: var(--bp-indigo-300); }

.main-nav { display: flex; gap: 0.25rem; margin-left: 0.6rem; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 0.5rem 0.8rem; border-radius: 0.55rem; transition: color .15s, background-color .15s; }
.main-nav a:hover { color: var(--text); background: var(--panel); }
.main-nav a.is-active { color: #fff; background: var(--bp-indigo); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 0.55rem; }
.inline-form { display: inline; margin: 0; }

.status-pill { display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; color: var(--muted); font-size: 0.85rem; padding: 0.42rem 0.75rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); }
.status-pill strong { color: var(--text); }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.status-pill.is-live .dot { background: #6ce29a; box-shadow: 0 0 0 4px rgba(108,226,154,0.18); animation: pulse 2s infinite; }
.status-pill.lg { font-size: 1rem; padding: 0.6rem 1rem; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

.user-chip { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); padding: 0.25rem 0.65rem 0.25rem 0.3rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); }
.user-chip .meta { font-weight: 700; font-size: 0.88rem; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar { width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; color: #fff; object-fit: cover; flex: none; }
.avatar.sm { width: 2rem; height: 2rem; }
.avatar.lg { width: 3rem; height: 3rem; font-size: 1rem; }
.avatar.xl { width: 4.5rem; height: 4.5rem; font-size: 1.5rem; border-radius: 1.1rem; }

.nav-toggle { display: none; }
.nav-toggle.is-open { background: rgba(108,99,255,0.18); border-color: var(--bp-indigo); color: var(--bp-indigo-200); }
.mobile-nav { display: none; }
.mobile-nav:not([hidden]) { position: relative; z-index: 900; display: flex; flex-direction: column; padding: 0.5rem clamp(1rem,2vw,2rem) 0.8rem; background: rgba(8,11,28,0.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); animation: navdrop .22s ease; }
.mobile-nav a { padding: 0.85rem 0.4rem; color: var(--text); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); transition: color .15s, padding-left .15s; }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:hover { color: var(--bp-indigo-200); padding-left: 0.7rem; }
@keyframes navdrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 1px solid transparent; border-radius: 0.7rem; padding: 0.72rem 1.15rem; background: linear-gradient(180deg, var(--bp-indigo-300), var(--bp-indigo-600)); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.9rem; white-space: nowrap; cursor: pointer; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), background var(--t-med) var(--ease), filter var(--t-med) var(--ease); box-shadow: 0 10px 30px -10px rgba(108,99,255,.7); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(108,99,255,.9); }
.btn:active { transform: scale(0.96); transition-duration: 80ms; }
.btn.sm { padding: 0.5rem 0.85rem; font-size: 0.84rem; border-radius: 0.6rem; box-shadow: none; }
.btn.block { width: 100%; }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--bp-indigo); box-shadow: none; }
.btn-ghost.danger { color: #ff8088; border-color: rgba(255,128,136,0.4); }
.btn-header { background: var(--panel); color: var(--text); border-color: var(--line-2); box-shadow: none; }
.btn-header:hover { border-color: var(--bp-indigo); }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 10px 24px -10px rgba(88,101,242,.8); }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0.2rem; }
.icon-btn:hover { color: #ff8088; }
.hero-actions { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero-actions.center { justify-content: center; }

/* --- Hero --- */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(1.4rem, 3vw, 2.5rem); position: relative; padding: clamp(2rem,5vw,3.5rem) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-pixel); text-transform: uppercase; letter-spacing: 1px; color: var(--bp-indigo-200); font-size: 0.6rem; line-height: 1.6; background: rgba(108,99,255,.10); border: 1px solid var(--line-2); padding: 0.5rem 0.75rem; border-radius: 999px; margin: 0; }
.hero-content h1 { font-family: var(--font-pixel); font-size: clamp(1.9rem, 5vw, 3.4rem); margin: 1.1rem 0 0; line-height: 1.12; letter-spacing: 1px; }
.grad, .hero-content h1 .grad { color: var(--bp-indigo); text-shadow: 0 0 26px rgba(108,99,255,.55); }
.hero-content h1 .grad { display: block; margin-top: 0.15em; }
.hero-copy { color: var(--muted); max-width: 52ch; font-size: 1.08rem; margin-top: 1.3rem; }
.hero-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1.6rem; }
.hero-meta span { display: inline-flex; flex-direction: column; font-size: 0.72rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 1px; }
.hero-meta span strong { font-family: var(--font-pixel); font-size: 1.1rem; color: var(--text); margin-bottom: 0.3rem; letter-spacing: 0; }

.hero-panel { position: relative; border: 1px solid var(--line-2); border-radius: 22px; padding: 1.6rem 1.3rem 1.3rem; text-align: center; overflow: hidden; box-shadow: var(--glow);
  background: radial-gradient(120% 90% at 50% 0%, rgba(108,99,255,.22), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.hero-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(139,133,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(139,133,255,.05) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.hero-bex { position: relative; image-rendering: pixelated; width: clamp(150px, 44%, 210px); height: auto; margin: 0 auto 0.6rem; display: block; filter: drop-shadow(0 20px 28px rgba(0,0,0,.5)); animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-panel article { position: relative; padding: 0.95rem; border-radius: 0.9rem; background: rgba(8,11,28,0.45); border: 1px solid var(--line); text-align: left; }
.hero-panel article + article { margin-top: 0.7rem; }
.hero-panel h2 { font-family: var(--font-pixel); margin: 0; font-size: 2rem; text-align: center; letter-spacing: 0; }
.hero-panel > article > p { margin: 0.5rem 0 0; color: var(--muted); text-align: center; }
.hero-online ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.hero-online li { font-size: 0.86rem; }
.gtavi-label { margin: 0; color: var(--bp-indigo-200); font-family: var(--font-pixel); font-size: 0.55rem; text-transform: uppercase; letter-spacing: 1px; line-height: 1.6; }
.hero-orb { display: none; }

/* --- Section heads / feature cards --- */
.section-head { max-width: 720px; }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 0.85rem 0 0.6rem; }
.section-head.row, .page-hero.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.eyebrow + h2, .section-head .eyebrow { margin-top: 0; }
.kicker, .section-head > .eyebrow { }
.page-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.7rem; flex-wrap: wrap; }
.page-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); margin: 0.6rem 0 0.4rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; transition: transform .2s, border-color .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 22px 50px -28px rgba(108,99,255,.6); }
.feature-card .ic { color: var(--bp-indigo-300); }
.feature-card h3 { margin: 0.7rem 0 0.4rem; font-size: 1.2rem; }
.feature-card p { color: var(--muted); margin: 0 0 0.9rem; }
.card-link { font-weight: 700; text-decoration: none; font-size: 0.9rem; color: var(--bp-indigo-200); }
.card-link:hover { color: var(--text); }

/* --- Thread feed (home) --- */
.thread-feed { display: grid; gap: 0.5rem; }
.thread-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 0.7rem; background: var(--panel); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.thread-row:hover { border-color: var(--line-2); transform: translateX(3px); }
.cat-chip { flex: none; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.28rem 0.55rem; border-radius: 999px; color: var(--accent, var(--bp-indigo-200)); border: 1px solid color-mix(in srgb, var(--accent, var(--bp-indigo)) 45%, transparent); background: color-mix(in srgb, var(--accent, var(--bp-indigo)) 14%, transparent); }
.thread-title { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-meta { color: var(--muted); font-size: 0.82rem; flex: none; }

/* --- About section --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: center; }
.about-copy h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: 0.6rem 0 0.9rem; }
.about-copy p { font-size: 1.04rem; line-height: 1.75; }
.about-copy .hero-actions { margin-top: 1.4rem; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.hl { padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: grid; gap: 0.5rem; transition: transform .2s, border-color .2s; }
.hl:hover { transform: translateY(-4px); border-color: var(--line-2); }
.hl-ic { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 0.7rem; color: var(--bp-indigo-200); background: rgba(108,99,255,0.14); }
.hl strong { display: block; }
.hl .muted { font-size: 0.88rem; }

/* --- Admin forms --- */
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.9rem; }
.toggle-row { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; cursor: pointer; }
.toggle-row input { width: auto; }
.admin-table .cat-icon { display: grid; place-items: center; border-radius: 0.55rem; color: var(--accent, var(--bp-indigo-200)); background: color-mix(in srgb, var(--accent, var(--bp-indigo)) 16%, transparent); }

/* --- Join CTA --- */
.join { position: relative; text-align: center; padding: clamp(2rem, 5vw, 3.2rem); border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden; box-shadow: var(--glow);
  background: radial-gradient(120% 120% at 50% 0%, rgba(108,99,255,.22), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.join h2 { font-family: var(--font-pixel); font-size: clamp(1.1rem, 3vw, 1.7rem); margin: 0.6rem 0 0.7rem; letter-spacing: 0; }
.join p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.join-bex { image-rendering: pixelated; width: 96px; height: 96px; object-fit: contain; margin-bottom: 0.4rem; }
.join .hero-actions { margin-top: 1.4rem; }

/* --- Connect block (server) --- */
.connect-card { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; padding: 1.4rem 1.6rem; border: 1px solid var(--line-2); border-radius: var(--radius); margin-bottom: 1.6rem;
  background: radial-gradient(120% 130% at 0% 0%, rgba(108,99,255,.18), transparent 55%), linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--glow); }
.connect-card .ck { font-family: var(--font-pixel); font-size: 0.55rem; letter-spacing: 1px; text-transform: uppercase; color: var(--bp-indigo-300); }
.connect-addr { display: flex; align-items: center; gap: 0.7rem; }
.connect-addr code { font-family: var(--font-pixel); font-size: 1rem; background: rgba(8,11,28,0.6); border: 1px solid var(--line-2); color: var(--text); padding: 0.6rem 0.9rem; border-radius: 0.6rem; letter-spacing: 0.5px; }
.copy-btn { background: var(--panel-hi); border: 1px solid var(--line-2); color: var(--text); border-radius: 0.6rem; padding: 0.55rem 0.7rem; cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 0.4rem; transition: .15s; }
.copy-btn:hover { border-color: var(--bp-indigo); }
.connect-grow { flex: 1; min-width: 200px; }

/* --- Stat cards / server --- */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.stat-card { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); display: grid; gap: 0.3rem; }
.stat-card strong { font-family: var(--font-pixel); font-size: 1.4rem; letter-spacing: 0; }
.stat-card .muted { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }
.server-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.server-card { padding: 1.3rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--glow); }
.server-card h3 { margin: 0.5rem 0; }
.server-card-top { display: flex; align-items: center; justify-content: space-between; }
.server-state { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; color: #6ce29a; }
.server-card .btn { margin-top: 0.9rem; }
.tag { display: inline-block; font-family: var(--font-pixel); font-size: 0.55rem; letter-spacing: 0.5px; text-transform: uppercase; color: var(--bp-indigo-200); background: rgba(108,99,255,0.12); border: 1px solid var(--line-2); border-radius: 0.5rem; padding: 0.3rem 0.5rem; }
.online-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.6rem; }
.online-card { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 0.7rem; background: var(--panel); }
.online-card > div { display: grid; gap: 0.1rem; min-width: 0; }
.online-card strong { font-size: 0.92rem; }
.online-card .muted { font-size: 0.78rem; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: #6ce29a; box-shadow: 0 0 0 4px rgba(108,226,154,0.16); flex: none; }

/* --- Forum index --- */
.forum-grid { display: grid; grid-template-columns: 1fr 300px; gap: 1.2rem; align-items: start; }
.cat-list { display: grid; gap: 0.7rem; }
.cat-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-left: 3px solid var(--accent, var(--bp-indigo)); border-radius: 0.8rem; background: var(--panel); text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s, box-shadow .2s; }
.cat-card:hover { transform: translateX(4px); border-color: var(--line-2); box-shadow: 0 18px 40px -28px rgba(108,99,255,.6); }
.cat-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 0.7rem; color: var(--accent, var(--bp-indigo-200)); background: color-mix(in srgb, var(--accent, var(--bp-indigo)) 16%, transparent); flex: none; }
.cat-body { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.cat-body strong { font-size: 1.05rem; }
.cat-stats { text-align: center; flex: none; }
.cat-stats strong { display: block; font-family: var(--font-pixel); font-size: 1rem; }
.cat-stats .muted { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; }
.forum-side { padding: 1.2rem; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--panel); }
.forum-side h3 { margin: 0 0 0.9rem; font-size: 1.05rem; }
.side-threads { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.side-threads li { display: grid; gap: 0.1rem; }
.side-threads a { text-decoration: none; font-weight: 700; font-size: 0.92rem; color: var(--text); }
.side-threads a:hover { color: var(--bp-indigo-200); }
.side-threads .muted { font-size: 0.78rem; }

/* --- Thread list (category) --- */
.thread-list { display: grid; gap: 0.5rem; }
.thread-item { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--panel); text-decoration: none; color: var(--text); transition: border-color .2s; }
.thread-item:hover { border-color: var(--line-2); }
.thread-main { display: grid; gap: 0.15rem; min-width: 0; }
.thread-main strong { display: flex; align-items: center; gap: 0.4rem; }
.thread-main .muted { font-size: 0.8rem; }
.thread-counts { text-align: center; font-size: 0.82rem; display: grid; }
.thread-last { font-size: 0.78rem; text-align: right; }

.badge { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.16rem 0.45rem; border-radius: 999px; }
.badge.pin { color: var(--bp-indigo-200); background: rgba(108,99,255,0.16); }
.badge.lock { color: var(--muted); background: rgba(139,133,255,0.12); }
.badge.online { color: #04130b; background: #6ce29a; }

/* --- Thread view --- */
.back-link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.88rem; margin-bottom: 1rem; }
.back-link:hover { color: var(--bp-indigo-200); }
.thread-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.thread-head h1 { font-size: clamp(1.4rem, 4vw, 2rem); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.mod-bar { display: flex; gap: 0.4rem; }
.post-list { display: grid; gap: 0.8rem; }
.post { display: grid; grid-template-columns: 170px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.post-author { padding: 1.2rem; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; text-align: center; background: var(--bg-2); border-right: 1px solid var(--line); }
.post-author strong { font-size: 0.95rem; }
.post-author .muted { font-size: 0.78rem; }
.post-body { padding: 1.2rem; min-width: 0; }
.post-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.prose { line-height: 1.7; word-wrap: break-word; }
.prose p { margin: 0 0 0.8rem; }
.prose p:last-child { margin-bottom: 0; }
.role-tag { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.14rem 0.45rem; border-radius: 999px; }
.role-member { color: var(--muted); background: rgba(139,133,255,0.12); }
.role-moderator { color: var(--bp-indigo-200); background: rgba(108,99,255,0.16); }
.role-admin { color: #fff; background: var(--bp-indigo); }

.reply-box { margin-top: 1.4rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.reply-box h3 { margin: 0 0 0.7rem; display: flex; align-items: center; gap: 0.4rem; font-size: 1.05rem; }
.lock-note { margin-top: 1.2rem; padding: 1rem; border: 1px dashed var(--line-2); border-radius: 0.8rem; text-align: center; }

/* --- Forms --- */
.stack { display: grid; gap: 0.95rem; }
.stack label, .auth-card label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.9rem; color: #ced2f5; }
input, textarea, select { width: 100%; border-radius: 0.7rem; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); padding: 0.72rem 0.85rem; font: inherit; }
textarea { resize: vertical; line-height: 1.5; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: var(--bp-indigo); box-shadow: 0 0 0 3px rgba(108,99,255,0.18); }
input[type="color"] { height: 2.7rem; padding: 0.2rem; width: 4rem; }
label small { font-weight: 500; }
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 2px solid var(--bp-indigo); outline-offset: 2px; }

/* --- Auth card --- */
.auth-card { padding: clamp(1.6rem, 4vw, 2.5rem); border: 1px solid var(--line-2); border-radius: 22px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--glow); text-align: center; }
.auth-card.wide { text-align: left; }
.auth-logo { width: 3.2rem; height: 3.2rem; border-radius: 0.8rem; margin-bottom: 0.6rem; image-rendering: pixelated; }
.auth-card h1 { margin: 0 0 0.3rem; font-size: 1.6rem; }
.auth-card form { text-align: left; margin-top: 1.2rem; }
.auth-alt { margin-top: 1.2rem; color: var(--muted); font-size: 0.9rem; }
.or { display: flex; align-items: center; gap: 0.8rem; margin: 1.1rem 0; color: var(--muted-2); font-size: 0.78rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* --- Security: 2FA + passkeys --- */
.btn.block + .btn.block { margin-top: 0.6rem; }
.otp-input { font-family: var(--font-pixel); font-size: 1.1rem; letter-spacing: 0.35em; text-align: center; }
.setup-steps { margin: 1.2rem 0 0; padding-left: 1.2rem; display: grid; gap: 1.4rem; }
.setup-steps li { color: var(--muted); }
.setup-steps li strong { color: var(--text); }
.qr-wrap { margin: 1.1rem 0; display: flex; justify-content: center; }
.qr-box { padding: 0.8rem; background: #fff; border-radius: 0.9rem; line-height: 0; box-shadow: 0 12px 30px -12px rgba(0,0,0,0.5); }
.qr-box img, .qr-box canvas { display: block; }
.manual-entry { margin-top: 0.6rem; }
.manual-entry summary { cursor: pointer; color: var(--bp-indigo-200); font-size: 0.88rem; }
.kv { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.6rem; flex-wrap: wrap; }
.kv > span:first-child { width: 70px; color: var(--muted-2); font-size: 0.8rem; }
.otp-secret { letter-spacing: 0.12em; }
.otp-enable { display: flex; gap: 0.5rem; margin-top: 0.7rem; max-width: 320px; }
.copy-btn.sm { padding: 0.35rem 0.55rem; font-size: 0.8rem; }
.sec-links { display: grid; gap: 0.5rem; }
.sec-link { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: 0.7rem; background: var(--bg-2); text-decoration: none; color: var(--text); transition: border-color .15s; }
.sec-link:hover { border-color: var(--line-2); }
.sec-link > span:nth-child(2) { display: grid; flex: 1; }
.sec-ic { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 0.6rem; color: var(--bp-indigo-200); background: rgba(108,99,255,0.14); flex: none; }
.passkey-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.passkey-head h3 { margin: 0 0 0.2rem; }
.passkey-list { display: grid; gap: 0.2rem; }
.passkey-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.passkey-row:last-child { border-bottom: 0; }
.passkey-ic { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 0.6rem; color: var(--bp-indigo-200); background: rgba(108,99,255,0.14); flex: none; }
.passkey-meta { display: grid; flex: 1; min-width: 0; }

/* --- Leaderboard --- */
.leaderboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.lb-row { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: 1rem; padding: 0.8rem 1.1rem; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--panel); }
.lb-rank { font-family: var(--font-pixel); font-size: 0.95rem; text-align: center; color: var(--muted-2); }
.rank-1 { border-color: rgba(255,209,102,0.5); } .rank-1 .lb-rank { color: #ffd166; }
.rank-2 { border-color: rgba(203,213,225,0.4); } .rank-2 .lb-rank { color: #cbd5e1; }
.rank-3 { border-color: rgba(205,127,80,0.4); } .rank-3 .lb-rank { color: #cd7f50; }
.lb-name { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); min-width: 0; }
.lb-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name:hover strong { color: var(--bp-indigo-200); }
.lb-score { font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
.lb-score strong { color: var(--text); }

/* --- Profile --- */
.profile-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.4rem; }
.profile-head h1, .profile-head h2 { margin: 0 0 0.2rem; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.panel { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.panel h3 { margin: 0 0 0.9rem; display: flex; align-items: center; gap: 0.45rem; font-size: 1.05rem; }
.linked-ok { color: #6ce29a; font-weight: 700; }
.link-code { margin: 0.8rem 0; padding: 0.9rem; border: 1px dashed var(--line-2); border-radius: 0.7rem; background: rgba(108,99,255,0.06); }
.code-pill { font-family: var(--font-pixel); font-size: 1.1rem; letter-spacing: 0.15em; color: var(--bp-indigo-200); background: none; }

/* --- Community bugs --- */
.bugs-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.2rem; align-items: start; }
.bug-list { display: grid; gap: 0.4rem; }
.bug-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.bug-row:last-child { border-bottom: 0; }
.bug-main { display: grid; gap: 0.1rem; min-width: 0; }
.bug-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Support tickets: index --- */
.ticket-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.4rem; align-items: start; }
.col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.col-head h2 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.2rem; margin: 0; }
.ticket-cards { display: grid; gap: 0.6rem; }
.ticket-card { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-decoration: none; color: var(--text); transition: transform var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.ticket-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 16px 38px -26px rgba(108,99,255,.6); }
.tc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted-2); flex: none; }
.ticket-card.status-open .tc-dot { background: #ffd479; box-shadow: 0 0 0 4px rgba(255,212,121,0.14); }
.ticket-card.status-answered .tc-dot { background: #6ce29a; box-shadow: 0 0 0 4px rgba(108,226,154,0.16); }
.ticket-card.status-closed .tc-dot { background: var(--muted-2); }
.tc-body { display: grid; gap: 0.3rem; flex: 1; min-width: 0; }
.tc-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.tc-hint { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 700; color: #6ce29a; }
.tcat-chip { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px; color: var(--bp-indigo-200); background: rgba(108,99,255,0.14); border: 1px solid var(--line-2); }
.tcat-chip.sm { font-size: 0.68rem; padding: 0.12rem 0.45rem; }
.ticket-new .sticky-panel { position: sticky; top: 84px; }
.empty-state { text-align: center; padding: 2.2rem 1.2rem; color: var(--muted); }
.empty-state .ic { color: var(--bp-indigo-300); }
.empty-state p { margin: 0.7rem 0 0; }

/* --- Support tickets: conversation --- */
.ticket-page { width: min(820px, 92vw); }
.ticket-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.tdh-main h1 { font-size: clamp(1.3rem, 3.4vw, 1.8rem); margin: 0 0 0.4rem; }
.tdh-meta { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; font-size: 0.85rem; }
.badge.lg { font-size: 0.74rem; padding: 0.3rem 0.7rem; }
.badge.sm { font-size: 0.6rem; padding: 0.12rem 0.4rem; }

.ticket-thread { display: grid; gap: 1rem; margin-bottom: 1.3rem; }
.tmsg-row { display: flex; align-items: flex-end; gap: 0.7rem; max-width: 84%; }
.tmsg-row.from-me { margin-left: auto; flex-direction: row-reverse; }
.tmsg-row.from-team { margin-right: auto; }
.tmsg-avatar { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.78rem; color: #fff; flex: none; }
.tmsg-bubble { padding: 0.85rem 1rem; border-radius: 1rem; border: 1px solid var(--line); min-width: 0; }
.from-me .tmsg-bubble { background: linear-gradient(180deg, rgba(108,99,255,0.16), rgba(108,99,255,0.08)); border-color: var(--line-2); border-bottom-right-radius: 0.3rem; }
.from-team .tmsg-bubble { background: var(--panel); border-bottom-left-radius: 0.3rem; }
.tmsg-meta { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.35rem; flex-wrap: wrap; }
.tmsg-bubble .prose { line-height: 1.6; }

.ticket-reply { padding: 1.1rem 1.2rem; }
.ticket-reply .sr-head { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; margin-bottom: 0.6rem; }
.ticket-reply textarea { margin-bottom: 0.7rem; }
.ticket-reply-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ticket-closed { padding: 1rem 1.2rem; text-align: center; color: var(--muted); border-style: dashed; }

/* --- Sessions --- */
.session-list { display: grid; gap: 0.4rem; }
.session-row { display: flex; justify-content: space-between; padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-radius: 0.6rem; background: var(--panel); font-size: 0.9rem; }

/* --- Role tags (4 roles) + banned badge --- */
.role-user { color: var(--muted); background: rgba(139,133,255,0.12); }
.role-gametester { color: #ffd479; background: rgba(255,196,77,0.14); }
.role-moderator { color: var(--bp-indigo-200); background: rgba(108,99,255,0.16); }
.role-admin { color: #fff; background: var(--bp-indigo); }
.badge.banned { color: #ff8088; background: rgba(255,128,136,0.16); }

/* --- Connect call-to-action --- */
.connect-title { margin: 0.3rem 0 0; font-size: clamp(1.2rem, 3vw, 1.7rem); }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; }
.connect-btn { flex: none; }

/* --- Admin panel --- */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; gap: 1rem; padding: 1.3rem 1rem; border-right: 1px solid var(--line); background: rgba(8,11,28,0.85); backdrop-filter: blur(10px); }
.admin-side .brand { padding: 0.2rem 0.4rem; }
.admin-tag { font-family: var(--font-pixel); font-size: 0.5rem; letter-spacing: 1px; text-transform: uppercase; color: var(--bp-indigo-300); padding: 0 0.5rem; }
.admin-nav { display: grid; gap: 0.25rem; margin-top: 0.4rem; }
.admin-nav a { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.7rem; border-radius: 0.6rem; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.92rem; transition: .15s; }
.admin-nav a:hover { color: var(--text); background: var(--panel); }
.admin-nav a.is-active { color: #fff; background: var(--bp-indigo); }
.admin-nav a.is-active .ic { color: #fff; }
.admin-side-foot { margin-top: auto; display: grid; gap: 0.6rem; }
.admin-back { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 700; padding: 0.2rem 0.4rem; }
.admin-back:hover { color: var(--bp-indigo-200); }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 2.2rem); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(8,11,28,0.8); backdrop-filter: blur(12px); z-index: 10; }
.admin-top .page-title { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; }
.admin-content { padding: clamp(1.2rem, 3vw, 2.4rem); width: 100%; }
.admin-headrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.admin-headrow h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0.3rem 0 0; }
.admin-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: 1.4rem; }
.admin-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 1.3rem; margin-bottom: 1.2rem; }
.admin-card h2 { font-size: 1.15rem; margin: 0 0 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.admin-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.admin-card-head h2 { margin: 0; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.admin-grid.three { grid-template-columns: repeat(3, 1fr); }
.admin-grid .admin-card { margin-bottom: 0; }
@media (max-width: 1100px) { .admin-grid.three { grid-template-columns: 1fr; } }
.dash-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 1.2rem; align-items: start; }
.dash-grid .admin-card { margin-bottom: 0; }
.quick-card .sec-links { margin-top: 0.2rem; }
.admin-hr { border: 0; border-top: 1px solid var(--line); margin: 1.1rem 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); font-weight: 700; padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 0.7rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.member-cell { display: flex; align-items: center; gap: 0.7rem; }
.member-cell strong { font-weight: 700; }
.admin-filter, .admin-search-form { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.admin-search { position: relative; display: flex; align-items: center; }
.admin-search .ic { position: absolute; left: 0.7rem; color: var(--muted-2); }
.admin-search input { padding-left: 2.2rem; min-width: 220px; }
.admin-filter select { width: auto; }
.role-form { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.6rem; }
.role-form select { width: auto; min-width: 160px; }
.linked-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.status-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* --- Admin banner (e.g. launch mode notice on the normal home) --- */
.admin-banner { width: min(1180px, 92vw); margin: 1rem auto -0.5rem; padding: 0.7rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: 0.8rem; background: rgba(108,99,255,0.1); font-size: 0.9rem; }
.admin-banner .ic { color: var(--bp-indigo-200); vertical-align: -3px; }
.admin-banner .ab-actions { display: flex; gap: 1rem; }
.admin-banner a { color: var(--bp-indigo-200); font-weight: 700; text-decoration: none; }
.admin-banner a:hover { color: #fff; }

/* --- Newsletter templates --- */
.tpl-label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text); margin: 0.4rem 0 0.4rem; }
.tpl-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.tpl-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.8rem; border: 1px solid var(--line-2); border-radius: 0.7rem; background: rgba(139, 133, 255, 0.05); color: var(--text); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.tpl-chip:hover { background: rgba(108, 99, 255, 0.16); border-color: var(--bp-indigo); }
.tpl-chip:active { transform: scale(0.96); }
.tpl-chip svg { width: 1rem; height: 1rem; color: var(--bp-indigo-300); }
.tpl-chip.tpl-clear svg { color: var(--muted); }

/* --- Modal --- */
body.modal-open { overflow: hidden; }
/* A hidden overlay must truly be gone, otherwise (display:flex + opacity:0) it
   sits invisibly on top at z-index 3000 and swallows every click on the page,
   including the button that is supposed to open it. */
.modal-overlay[hidden] { display: none !important; }
.modal-overlay { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 1.2rem; background: rgba(4, 6, 16, 0.66); backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--t-med) var(--ease); }
.modal-overlay.is-open { opacity: 1; }
.modal { position: relative; width: min(440px, 100%); max-height: 90vh; overflow-y: auto; padding: clamp(1.4rem, 4vw, 2rem); border: 1px solid var(--line-2); border-radius: 1.2rem; background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), var(--glow); text-align: center; transform: translateY(14px) scale(0.97); transition: transform var(--t-med) var(--ease-spring); }
.modal-overlay.is-open .modal { transform: none; }
.modal h3 { margin: 0.2rem 0 0.4rem; font-size: 1.3rem; }
.modal > p { margin: 0 0 1.1rem; }
.modal form { text-align: left; }
.modal-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.4rem; height: 3.4rem; margin: 0 auto 0.4rem; border-radius: 1rem; background: linear-gradient(135deg, var(--bp-indigo-200), var(--bp-indigo-600, #564dff)); color: #fff; box-shadow: 0 12px 26px -10px rgba(108,99,255,.8); }
.modal-icon svg { width: 1.6rem; height: 1.6rem; }
.modal-close { position: absolute; top: 0.7rem; right: 0.8rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: rgba(255,255,255,0.06); color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.modal-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 1.2rem; }
.steam-help { margin-top: 0.6rem; }
.steam-help summary { cursor: pointer; color: var(--bp-indigo-200); font-size: 0.88rem; font-weight: 600; }
.steam-help ol { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.88rem; line-height: 1.55; display: grid; gap: 0.4rem; }
@media (prefers-reduced-motion: reduce) { .modal-overlay, .modal { transition: none; } }

/* --- Launch ("Openingsmodus") landing --- */
.launch { text-align: center; }
.launch-hero { max-width: 760px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem) 0 1rem; }
.launch-bex { image-rendering: pixelated; width: clamp(110px, 22vw, 150px); height: auto; margin: 0 auto 1rem; display: block; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); animation: bob 2.6s ease-in-out infinite; }
.launch h1 { font-family: var(--font-pixel); font-size: clamp(1.6rem, 5vw, 3rem); line-height: 1.18; letter-spacing: 1px; margin: 0.8rem 0 0; }
.launch .eyebrow { justify-content: center; display: inline-flex; }
.launch-lead { color: var(--muted); font-size: 1.06rem; max-width: 52ch; margin: 1.1rem auto 0; }

.countdown { display: flex; justify-content: center; align-items: center; gap: 0.6rem; margin: 2.2rem 0 0.8rem; flex-wrap: wrap; }
.cd-unit { display: grid; gap: 0.3rem; padding: 0.9rem 0.6rem; min-width: 92px; border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--glow); }
.cd-num { font-family: var(--font-pixel); font-size: clamp(1.5rem, 4vw, 2.4rem); color: var(--text); line-height: 1; }
.cd-lbl { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); font-weight: 700; }
.cd-sep { font-family: var(--font-pixel); font-size: 1.4rem; color: var(--bp-indigo-300); }
.cd-target { margin: 0.4rem 0 0; }

.launch-cta { display: flex; justify-content: center; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.8rem; }
.launch-cta .inline-form { display: inline; }
.beta-done { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: #6ce29a; padding: 0.72rem 1.1rem; border: 1px solid rgba(108,226,154,0.4); border-radius: 0.7rem; background: rgba(108,226,154,0.08); }

.launch-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; max-width: 640px; margin: 2.4rem auto 0; }
.ldate { display: grid; gap: 0.35rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-align: left; transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.ldate.is-next { border-color: var(--line-2); box-shadow: var(--glow); }
.ldate.is-done { opacity: 0.65; }
.ldate strong { font-size: 1.05rem; }
.ld-tag { font-family: var(--font-pixel); font-size: 0.55rem; letter-spacing: 1px; text-transform: uppercase; color: var(--bp-indigo-300); }

@media (max-width: 540px) {
  .launch-dates { grid-template-columns: 1fr; }
  .cd-unit { min-width: 70px; padding: 0.7rem 0.4rem; }
  .countdown { gap: 0.35rem; }
}

/* --- Footer --- */
.site-footer { position: relative; z-index: 2; margin-top: 3rem; border-top: 1px solid var(--line); background: rgba(8,11,28,0.5); }
.footer-inner { width: min(1180px, 92vw); margin: 0 auto; padding: 2.6rem 0 2rem; display: grid; grid-template-columns: 1.3fr 2fr; gap: 2rem 1rem; }
.footer-brand-col { max-width: 340px; }
.footer-brand-col .brand { margin-bottom: 0.8rem; }
.footer-brand-col p { color: var(--muted); font-size: 0.92rem; margin: 0 0 1rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-cols h5 { font-family: var(--font-pixel); font-size: 0.55rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); margin: 0 0 1rem; }
.footer-cols a { display: block; color: var(--muted); text-decoration: none; font-size: 0.92rem; padding: 0.28rem 0; transition: color .15s; }
.footer-cols a:hover { color: var(--bp-indigo-200); }
.footer-bottom { width: min(1180px, 92vw); margin: 0 auto; padding: 1.2rem 0 2.4rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted-2); font-size: 0.85rem; }
.footer-bottom span span { color: var(--bp-indigo-300); }
.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--bp-indigo-200); }
.footer-credits { color: var(--muted-2); }

/* --- Flashes --- */
.flashes { position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 2000; display: grid; gap: 0.5rem; max-width: min(380px, 90vw); }
.flash { padding: 0.85rem 1.1rem; border-radius: 0.7rem; font-weight: 700; font-size: 0.9rem; border: 1px solid var(--line-2); background: var(--panel-hi); box-shadow: 0 20px 50px -16px rgba(0,0,0,.7); animation: slidein var(--t-med) var(--ease-spring); }
.flash.success { border-color: rgba(108,226,154,0.5); color: #c9ffe0; }
.flash.error { border-color: rgba(255,128,136,0.5); color: #ffd5d8; }
@keyframes slidein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* --- Error pages --- */
.error-page { text-align: center; }
.error-page h1 { font-family: var(--font-pixel); font-size: clamp(2.4rem, 9vw, 4.5rem); margin: 1rem 0 0.6rem; color: var(--bp-indigo); }
.error-page img { image-rendering: pixelated; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.5)); }

/* --- Responsive --- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .forum-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .bugs-grid { grid-template-columns: 1fr; }
  .ticket-layout { grid-template-columns: 1fr; }
  .ticket-new { order: -1; }
  .ticket-new .sticky-panel { position: static; }
  .tmsg-row { max-width: 94%; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
  .admin-side .admin-tag { display: none; }
  .admin-nav { grid-auto-flow: column; margin-top: 0; }
  .admin-side-foot { margin: 0 0 0 auto; grid-auto-flow: column; align-items: center; }
}
@media (max-width: 640px) {
  .user-chip .meta { display: none; }
  .thread-item { grid-template-columns: auto 1fr; }
  .thread-counts, .thread-last { display: none; }
  .post { grid-template-columns: 1fr; }
  .post-author { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--line); }
  .lb-row { grid-template-columns: 2rem 1fr; }
  .lb-score { grid-column: 2; text-align: right; }
  .status-pill { display: none; }
  .header-right a.btn-ghost.sm[href="/login"] { display: none; }
  .header-right { gap: 0.4rem; }
  .section { padding: 2.2rem 0; }
  .page-hero { margin-bottom: 1.1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-cols { gap: 1rem; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===================== FastPass ===================== */
.fp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.fp-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; }
.fp-card.featured { border-color: var(--line-2); box-shadow: var(--glow); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.fp-card.current { border-color: #6ce29a; }
.fp-card h3 { margin: 0 0 .25rem; font-size: 1.3rem; }
.fp-tagline { margin: 0 0 1rem; font-size: 0.9rem; min-height: 2.4em; }
.fp-tag { position: absolute; top: -0.7rem; right: 1.1rem; font-family: var(--font-pixel); font-size: 0.52rem; text-transform: uppercase; letter-spacing: 1px; color: #fff; background: var(--bp-indigo); padding: 0.4rem 0.6rem; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(108,99,255,.9); }
.fp-price { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 1.1rem; }
.fp-price .amount { font-size: 2.1rem; font-weight: 800; color: var(--text); letter-spacing: -1px; }
.fp-price .per { font-size: 0.9rem; }
.fp-perks { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.6rem; flex: 1; }
.fp-perks li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.92rem; color: #d4d8f7; }
.fp-perks li .ic { color: #6ce29a; flex: none; margin-top: 1px; }
.fp-card form { margin: 0; }
.fp-card .btn[aria-disabled="true"] { opacity: 0.65; pointer-events: none; }
.fp-notice { display: flex; gap: 0.9rem; align-items: flex-start; background: rgba(108,99,255,.10); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1.4rem; }
.fp-notice.ok { background: rgba(108,226,154,.10); border-color: rgba(108,226,154,.35); }
.fp-notice-ic { flex: none; color: var(--bp-indigo-200); }
.fp-notice.ok .fp-notice-ic { color: #6ce29a; }
.fp-notice strong { color: var(--text); }
.fp-cfg { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem 1rem; overflow-x: auto; margin: 0; }
.fp-cfg code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.82rem; color: var(--bp-indigo-200); white-space: pre; }
.admin-stats-inline { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
@media (max-width: 900px) { .fp-grid { grid-template-columns: 1fr; } }

/* ===================== Galerij (in-game screenshots) ===================== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.media-tile { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.media-tile.is-shared { border-color: #6ce29a; }
.media-frame { display: block; aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.media-frame img, .media-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.7rem 0.85rem; }
.media-meta { min-width: 0; }
.media-meta strong { display: block; font-size: 0.86rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-meta .muted { font-size: 0.74rem; }
.media-foot .inline-form { flex: none; }
.media-badge { position: absolute; top: 0.6rem; left: 0.6rem; }
.media-kind { position: absolute; top: 0.6rem; right: 0.6rem; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.18rem 0.45rem; border-radius: 999px; color: var(--text); background: rgba(8,11,28,0.72); }
/* Public profile gallery section */
.profile-media { margin-top: 1.4rem; }
.profile-media .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }

/* ===================== MDT (police, LEO-only) ===================== */
.mdt-wrap { max-width: 1180px; margin: 0 auto; padding: 1.6rem 1.1rem 3rem; }
.mdt-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.mdt-head h1 { display: flex; align-items: center; gap: .55rem; font-size: 1.5rem; margin: 0; }
.mdt-head .ic { color: var(--brand); }
.mdt-offline { background: rgba(255,90,90,.12); border: 1px solid rgba(255,90,90,.4); color: #ffb3b3; padding: .7rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .9rem; }
.mdt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1.3rem; }
.mdt-stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.mdt-stat b { display: block; font-size: 1.7rem; line-height: 1; }
.mdt-stat span { color: var(--muted); font-size: .82rem; }
.mdt-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.1rem; align-items: start; }
.mdt-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1.1rem; }
.mdt-panel > h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); margin: 0 0 .8rem; display: flex; align-items: center; gap: .45rem; }
.mdt-search { display: flex; gap: .5rem; }
.mdt-search input { flex: 1; }
.mdt-input, .mdt-panel input[type=text], .mdt-panel input[type=search], .mdt-panel input[type=number], .mdt-panel textarea, .mdt-panel select {
    width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
    border-radius: var(--radius-sm); padding: .55rem .7rem; font: inherit; font-size: .9rem;
}
.mdt-panel textarea { min-height: 70px; resize: vertical; }
.mdt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.mdt-row { display: flex; align-items: center; gap: .7rem; justify-content: space-between; padding: .6rem .7rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mdt-row .grow { min-width: 0; }
.mdt-row .grow strong { display: block; }
.mdt-row .grow small { color: var(--muted); }
.mdt-row a.name { color: var(--text); text-decoration: none; font-weight: 600; }
.mdt-row a.name:hover { color: var(--brand); }
.mdt-empty { color: var(--muted); font-size: .88rem; padding: .5rem .2rem; }
.mdt-badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .2rem .5rem; border-radius: 999px; white-space: nowrap; }
.mdt-badge.wanted { background: rgba(255,70,70,.16); color: #ff8f8f; border: 1px solid rgba(255,70,70,.4); }
.mdt-badge.felony { background: rgba(255,70,70,.16); color: #ff8f8f; }
.mdt-badge.misdemeanor { background: rgba(255,175,60,.14); color: #ffcf87; }
.mdt-badge.infraction { background: rgba(120,160,255,.14); color: #a9c3ff; }
.mdt-badge.ok { background: rgba(70,220,140,.14); color: #86e8b4; }
.mdt-badge.warn { background: rgba(255,175,60,.14); color: #ffcf87; }
.mdt-badge.muted { background: var(--panel-2); color: var(--muted); }
.mdt-form-row { display: grid; gap: .55rem; margin-top: .3rem; }
.mdt-form-row .cols { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mdt-profile-head { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1.1rem; flex-wrap: wrap; }
.mdt-mug { width: 84px; height: 84px; border-radius: var(--radius-sm); object-fit: cover; background: var(--panel-2); border: 1px solid var(--line); flex: none; }
.mdt-profile-head h1 { margin: 0 0 .25rem; }
.mdt-meta { color: var(--muted); font-size: .9rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.mdt-tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .4rem; }
.mdt-back { color: var(--muted); text-decoration: none; font-size: .85rem; display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .8rem; }
.mdt-back:hover { color: var(--text); }
.mdt-recent { font-size: .82rem; color: var(--muted); }
.mdt-recent li { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .mdt-grid { grid-template-columns: 1fr; } .mdt-stats { grid-template-columns: 1fr 1fr; } }

/* ===================== Profiles (public + own) + leaderboard ===================== */
.pf-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--panel-hi), var(--panel)); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.1rem; }
.pf-hero-main { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.pf-avatar { width: 84px; height: 84px; border-radius: 20px; object-fit: cover; flex: none;
    display: flex; align-items: center; justify-content: center; font-size: 1.9rem; font-weight: 800;
    color: #0b1020; border: 1px solid var(--line-2); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.pf-id { min-width: 0; }
.pf-id h1 { margin: 0 0 .45rem; font-size: 1.6rem; line-height: 1.1; }
.pf-id .eyebrow { margin: 0 0 .1rem; }
.pf-badges { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.pf-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700;
    padding: .24rem .6rem; border-radius: 999px; background: var(--panel-2); color: var(--muted-2);
    border: 1px solid var(--line); white-space: nowrap; }
.pf-badge.sm { font-size: .66rem; padding: .18rem .45rem; }
.pf-badge.live { background: rgba(56,236,168,.14); color: #7ff0c4; border-color: rgba(56,236,168,.35); }
.pf-badge.live .dot { width: 7px; height: 7px; border-radius: 50%; background: #38eca8; box-shadow: 0 0 8px #38eca8; }
.pf-badge.staff { background: rgba(120,160,255,.16); color: #a9c3ff; border-color: rgba(120,160,255,.4); }
.pf-badge.pass { background: linear-gradient(135deg, rgba(255,193,84,.2), rgba(255,140,84,.14)); color: #ffcf87; border-color: rgba(255,193,84,.4); }
.pf-badge.job { background: rgba(150,120,255,.14); color: #c3b0ff; border-color: rgba(150,120,255,.35); }
.pf-bio { margin: .55rem 0 .3rem; color: var(--text); max-width: 60ch; }
.pf-sub { margin: .3rem 0 0; font-size: .85rem; }
.pf-sub a { color: var(--brand); text-decoration: none; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; margin-bottom: 1.1rem; }
.pf-stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: .9rem 1rem; display: flex; flex-direction: column; gap: .15rem; position: relative; overflow: hidden; }
.pf-stat-ic { color: var(--brand); opacity: .8; }
.pf-stat strong { font-size: 1.35rem; line-height: 1.1; }
.pf-stat .muted { font-size: .78rem; }
.pf-stat.medal { border-color: rgba(255,193,84,.5); }
.pf-stat.medal-1 { background: linear-gradient(135deg, rgba(255,193,84,.16), var(--panel)); }
.pf-stat.medal-2 { background: linear-gradient(135deg, rgba(200,210,225,.14), var(--panel)); }
.pf-stat.medal-3 { background: linear-gradient(135deg, rgba(205,140,90,.14), var(--panel)); }
.pf-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.1rem; align-items: start; }
.pf-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.pf-h { font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2);
    margin: 0 0 .8rem; display: flex; align-items: center; gap: .45rem; }
.pf-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; }
.pf-photo { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.pf-photo:hover img { transform: scale(1.06); }
.pf-photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .35rem .5rem; font-size: .72rem;
    background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; }
.pf-sessions, .pf-chars, .pf-vehicles { display: flex; flex-direction: column; gap: .45rem; }
.pf-session { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem .6rem;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .88rem; }
.pf-avatar-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: .5rem; margin: .6rem 0; }
.pf-ava-opt { margin: 0; }
.pf-ava-btn { position: relative; width: 100%; aspect-ratio: 1; padding: 0; border: 2px solid var(--line);
    border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--bg-2); }
.pf-ava-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-ava-btn:hover { border-color: var(--brand); }
.pf-ava-btn.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(56,236,168,.3); }
.pf-ava-check { position: absolute; top: 3px; right: 3px; background: var(--brand); color: #06210f;
    border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.pf-char, .pf-veh { display: flex; align-items: center; gap: .6rem; padding: .55rem .65rem;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pf-char .grow, .pf-veh .grow { min-width: 0; display: flex; flex-direction: column; }
.pf-char .grow small, .pf-veh .grow small { font-size: .76rem; }
.pf-char-ic { color: var(--brand); opacity: .85; flex: none; }
.lb-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; align-items: end; margin-bottom: 1.2rem; }
.lb-pod { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.1rem 1rem 1.2rem; text-decoration: none; color: var(--text); transition: transform .12s, border-color .12s; }
.lb-pod:hover { transform: translateY(-3px); border-color: var(--line-2); }
.lb-pod.place-1 { border-color: rgba(255,193,84,.5); background: linear-gradient(180deg, rgba(255,193,84,.12), var(--panel)); padding-top: 1.5rem; }
.lb-pod.place-2 { border-color: rgba(200,210,225,.4); }
.lb-pod.place-3 { border-color: rgba(205,140,90,.4); }
.lb-medal { font-size: 1.5rem; line-height: 1; }
.lb-ava { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #0b1020; font-size: 1.05rem; border: 1px solid var(--line-2); }
.lb-pod-name { font-size: .98rem; display: flex; align-items: center; gap: .35rem; }
.lb-pod-score { color: var(--muted); font-size: .82rem; }
.lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.lb-item { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.lb-item .lb-rank { font-weight: 800; color: var(--muted-2); min-width: 2.4rem; font-size: .95rem; }
.lb-item .lb-ava { width: 40px; height: 40px; border-radius: 11px; font-size: .85rem; }
.lb-info { flex: 1; min-width: 0; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.lb-info strong { display: flex; align-items: center; gap: .35rem; }
.lb-info:hover strong { color: var(--brand); }
.lb-score { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.lb-score strong { color: var(--text); }
@media (max-width: 820px) {
    .pf-cols { grid-template-columns: 1fr; }
    .pf-hero { flex-direction: column; align-items: flex-start; }
    .lb-podium { grid-template-columns: 1fr; }
    .lb-pod.place-1 { padding-top: 1.1rem; order: -1; }
}

/* Profiles round 2: cover, tenure, avatar/cover picker, showcase, leaderboard tabs */
.pf-cover { height: 190px; border-radius: var(--radius) var(--radius) 0 0; background-size: cover; background-position: center;
    border: 1px solid var(--line); border-bottom: 0; position: relative; }
.pf-cover::after { content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(180deg, transparent 40%, rgba(8,11,28,.85)); }
.pf-hero.has-cover { border-radius: 0 0 var(--radius) var(--radius); margin-top: -2px; }
.pf-tier { display: inline-flex; align-items: center; gap: .28rem; font-size: .72rem; font-weight: 800;
    padding: .22rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; border: 1px solid transparent; white-space: nowrap; }
.pf-tier.tier-inline { padding: .05rem .4rem; font-size: .64rem; }
.pf-tier.tier-rookie  { background: rgba(150,160,180,.16); color: #c3ccdb; border-color: rgba(150,160,180,.3); }
.pf-tier.tier-regular { background: rgba(90,180,255,.16); color: #a9d4ff; border-color: rgba(90,180,255,.35); }
.pf-tier.tier-veteran { background: rgba(180,120,255,.18); color: #d3b8ff; border-color: rgba(180,120,255,.4); }
.pf-tier.tier-legend  { background: linear-gradient(135deg, rgba(255,193,84,.24), rgba(255,120,84,.16)); color: #ffd68a; border-color: rgba(255,193,84,.5); }
.pf-chars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; }
.pf-ava-tile { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; border: 2px solid var(--line); background: var(--bg-2); }
.pf-ava-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-ava-tile.is-avatar { border-color: var(--brand); }
.pf-ava-tile.is-cover { box-shadow: inset 0 0 0 2px rgba(255,193,84,.7); }
.pf-ava-acts { position: absolute; inset: auto 0 0 0; display: flex; gap: 3px; padding: 3px; justify-content: center;
    background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .15s; }
.pf-ava-tile:hover .pf-ava-acts { opacity: 1; }
.pf-ava-acts form { margin: 0; }
.pf-ava-acts button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(255,255,255,.25);
    background: rgba(0,0,0,.55); color: #fff; font-weight: 800; font-size: .78rem; cursor: pointer; }
.pf-ava-acts button:hover { background: var(--brand); color: #06210f; border-color: var(--brand); }
.pf-ava-reset { display: flex; gap: .5rem; margin-top: .6rem; }
.pf-ava-reset form { margin: 0; }
.pf-showcase { display: flex; flex-direction: column; gap: .45rem; margin-top: .3rem; }
.pf-char-check { cursor: pointer; }
.pf-char-check input { accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.lb-tabs { display: inline-flex; gap: .3rem; padding: .3rem; background: var(--panel); border: 1px solid var(--line);
    border-radius: 999px; margin-bottom: 1.1rem; }
.lb-tab { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .95rem; border-radius: 999px;
    text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; }
.lb-tab:hover { color: var(--text); }
.lb-tab.is-active { background: var(--brand); color: #06210f; }
.lb-item.is-me, .lb-pod.is-me { border-color: var(--brand); box-shadow: 0 0 0 1px rgba(56,236,168,.4); }
.lb-you { margin-top: .7rem; padding: .7rem 1rem; background: var(--panel); border: 1px dashed var(--line-2);
    border-radius: var(--radius-sm); color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.lb-you strong { color: var(--brand); }

/* Profiles round 3: role badges, leaderboard filters, name picker */
.pf-badge.role { font-weight: 800; }
.pf-badge.role.role-admin  { background: linear-gradient(135deg, rgba(255,90,90,.22), rgba(255,150,60,.16)); color: #ffb0a0; border-color: rgba(255,110,90,.5); }
.pf-badge.role.role-mod    { background: rgba(120,160,255,.18); color: #b3ccff; border-color: rgba(120,160,255,.45); }
.pf-badge.role.role-tester { background: rgba(90,220,180,.16); color: #8fe9c6; border-color: rgba(90,220,180,.4); }
.lb-controls { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.lb-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.lb-search { display: flex; align-items: center; gap: .4rem; background: var(--panel); border: 1px solid var(--line);
    border-radius: 999px; padding: .3rem .8rem; color: var(--muted); }
.lb-search .ic { flex: none; }
.lb-search input { background: none; border: 0; color: var(--text); font: inherit; font-size: .9rem; outline: none; width: 150px; }
.lb-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .8rem; border-radius: 999px;
    background: var(--panel); border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 600; }
.lb-chip:hover { color: var(--text); border-color: var(--line-2); }
.lb-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.lb-chip.is-on { background: rgba(56,236,168,.15); color: #7ff0c4; border-color: rgba(56,236,168,.4); }
.lb-chip.is-on .dot { background: #38eca8; box-shadow: 0 0 8px #38eca8; }
.lb-chip.clear { color: #ff9f9f; }
.lb-pod-tags { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; }
.lb-info strong .pf-badge.role { vertical-align: middle; }
.pf-char-name-row { justify-content: flex-start; }
.pf-name-pick { display: inline-flex; align-items: center; gap: .4rem; margin: 0; cursor: pointer; flex: none; }
.pf-name-pick input { accent-color: var(--brand); width: 17px; height: 17px; }
.pf-vis-pick { display: flex; align-items: center; gap: .6rem; margin: 0; cursor: pointer; min-width: 0; }
.pf-vis-pick input { accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.pf-vis-pick > span { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 640px) { .lb-controls { flex-direction: column; align-items: stretch; } .lb-search input { width: 100%; } }

/* ============================================================================
   2026 VISUAL UPGRADE LAYER — cohesive polish + motion, appended last so equal-
   specificity rules refine the base. Hover/scroll-triggered (no full-screen
   continuous repaints). Fully disabled under prefers-reduced-motion (bottom).
   ============================================================================ */

/* Richer, deeper backdrop (more depth, still static = zero repaint cost) */
body::before {
  background:
    radial-gradient(720px 560px at 80% -8%, rgba(108,99,255,.30), transparent 60%),
    radial-gradient(680px 560px at 4% 6%, rgba(176,108,255,.18), transparent 56%),
    radial-gradient(560px 520px at 62% 108%, rgba(88,120,255,.14), transparent 60%),
    linear-gradient(180deg, #0a0e24 0%, #080b1c 44%, #06081a 100%);
}

/* Page-load entrance for the main content */
main { animation: pageIn .5s var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Thin scroll-progress bar (width driven by JS) */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--bp-indigo), var(--bp-violet), var(--bp-indigo-300));
  box-shadow: 0 0 12px rgba(108,99,255,.7); z-index: 200; border-radius: 0 3px 3px 0;
  transition: width .1s linear; }

/* Animated gradient headline accent */
.grad, .hero-content h1 .grad {
  background: linear-gradient(100deg, var(--bp-indigo-200), var(--bp-violet) 40%, var(--bp-indigo-300) 70%, var(--bp-indigo-200));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 22px rgba(139,133,255,.35));
  animation: gradSlide 7s ease-in-out infinite;
}
@keyframes gradSlide { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

/* Buttons: sheen sweep on hover + crisper primary glow */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease-out); pointer-events: none; }
.btn:hover::after { left: 140%; }
.btn-ghost::after { background: linear-gradient(100deg, transparent, rgba(139,133,255,.22), transparent); }

/* Ripple (JS-spawned span) */
.btn .ripple, .lb-tab .ripple, .lb-chip .ripple { position: absolute; border-radius: 50%; transform: translate(-50%,-50%) scale(0);
  background: rgba(255,255,255,.35); pointer-events: none; animation: ripple .55s var(--ease-out) forwards; }
.btn-ghost .ripple { background: rgba(139,133,255,.3); }
@keyframes ripple { to { transform: translate(-50%,-50%) scale(1); opacity: 0; } }

/* Nav: animated underline indicator */
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.28rem; height: 2px;
  background: linear-gradient(90deg, var(--bp-indigo), var(--bp-violet)); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.is-active { background: transparent; color: #fff; }
.main-nav a.is-active::after { transform: scaleX(1); }

/* Cards & panels: pointer spotlight (--mx/--my from JS) + lift + gradient hover edge */
.feature-card, .panel, .pf-panel, .mdt-panel, .hero-panel, .lb-pod, .stat-card, .cat-card {
  position: relative; transition: transform var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.feature-card::after, .panel::after, .pf-panel::after, .mdt-panel::after, .hero-panel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  transition: opacity .3s var(--ease); z-index: 1;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, -20%), rgba(139,133,255,.16), transparent 45%); }
.feature-card:hover::after, .panel:hover::after, .pf-panel:hover::after, .mdt-panel:hover::after, .hero-panel:hover::after { opacity: 1; }
.feature-card:hover, .panel:hover, .pf-panel:hover, .mdt-panel:hover {
  transform: translateY(-4px); border-color: var(--line-2);
  box-shadow: 0 24px 55px -30px rgba(108,99,255,.7); }
/* keep interactive children above the spotlight overlay */
.panel > *, .pf-panel > *, .mdt-panel > *, .feature-card > * { position: relative; z-index: 2; }

/* Inputs: smoother focus ring */
input, textarea, select { transition: border-color .18s var(--ease), box-shadow .22s var(--ease), background .18s var(--ease); }
input:focus-visible, textarea:focus-visible, select:focus-visible { box-shadow: 0 0 0 3px rgba(108,99,255,0.22), 0 0 22px -6px rgba(108,99,255,.6); }

/* Shimmer for premium badges */
.pf-badge.pass, .pf-tier.tier-legend { position: relative; overflow: hidden; }
.pf-badge.pass::before, .pf-tier.tier-legend::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.5), transparent 70%);
  transform: translateX(-120%); animation: badgeShine 3.6s ease-in-out infinite; }
@keyframes badgeShine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Hero panel: scoped rotating aurora ring behind it (small area = cheap) */
.hero-panel::before { z-index: 0; }
.hero-panel { isolation: isolate; }
.hero-glow { position: absolute; inset: -40%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(108,99,255,.0), rgba(108,99,255,.35), rgba(176,108,255,.28), rgba(108,99,255,.0));
  filter: blur(38px); opacity: .55; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Nicer custom scrollbar */
* { scrollbar-color: var(--bp-indigo-600) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--bp-indigo-300), var(--bp-indigo-600)); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--bp-indigo-200), var(--bp-indigo)); }

/* Links in content: subtle underline grow */
.hero-copy a, .about-copy a, .post a, .thread-title a { background-image: linear-gradient(var(--bp-indigo-300), var(--bp-indigo-300));
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s var(--ease-out); }
.hero-copy a:hover, .about-copy a:hover, .post a:hover, .thread-title a:hover { background-size: 100% 1.5px; }

/* Respect reduced motion — kill the decorative motion */
@media (prefers-reduced-motion: reduce) {
  main, .grad, .hero-glow, .pf-badge.pass::before, .pf-tier.tier-legend::before, .hero-bex { animation: none !important; }
  .btn::after { transition: none; }
  .grad { -webkit-text-fill-color: initial; color: var(--bp-indigo-200); background: none; }
}

/* ===================== Vehicle catalog (read-only showcase) ===================== */
.veh-filters { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-bottom: 1.4rem; }
.veh-search { display: flex; align-items: center; gap: .5rem; background: var(--panel); border: 1px solid var(--line);
    border-radius: 999px; padding: .55rem 1.05rem; color: var(--muted); flex: 1 1 220px; min-width: 170px; max-width: 320px;
    transition: border-color .18s var(--ease); }
.veh-search:focus-within { border-color: var(--bp-indigo); box-shadow: 0 0 0 3px rgba(108,99,255,.18); }
.veh-search .ic { flex: none; }
.veh-search input { width: 100%; background: none; border: 0; color: var(--text); font: inherit; font-size: .92rem; outline: none; padding: 0; }
.veh-search input:focus-visible { box-shadow: none; }
/* width:auto beats the global `select { width:100% }`, so the dropdowns sit inline instead of stacking. */
.veh-filters select { width: auto; flex: 0 0 auto; min-width: 150px; background: var(--panel); border: 1px solid var(--line); color: var(--text);
    border-radius: 999px; padding: .55rem 2.2rem .55rem 1rem; font: inherit; font-size: .88rem; cursor: pointer; box-shadow: none;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa0d4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .9rem center; }
.veh-filters select:hover { border-color: var(--line-2); }
.veh-soort { display: inline-flex; gap: .25rem; padding: .28rem; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; margin-left: auto; }
.veh-chip { padding: .38rem .9rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .85rem; transition: color .15s, background .15s; }
.veh-chip:hover { color: var(--text); }
.veh-chip.is-on { background: var(--bp-indigo); color: #fff; box-shadow: 0 8px 20px -8px var(--bp-indigo); }
.veh-chip.veh-clear { color: #ff9f9f; display: inline-flex; align-items: center; gap: .3rem; border: 1px solid rgba(255,120,120,.25); }

.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.veh-card { position: relative; background: linear-gradient(180deg, var(--panel-hi), var(--panel));
    border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
    text-decoration: none; color: inherit; cursor: pointer;
    transition: transform var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.veh-card:hover { transform: translateY(-6px); border-color: var(--line-2);
    box-shadow: 0 30px 60px -30px rgba(108,99,255,.75), 0 0 0 1px rgba(139,133,255,.15); }

/* Dark showroom tile with a soft indigo top-glow */
.veh-thumb { position: relative; aspect-ratio: 5 / 3; overflow: hidden;
    background: radial-gradient(120% 120% at 50% 0%, rgba(139,133,255,.18), transparent 60%), linear-gradient(165deg, var(--panel-hi), var(--bg-2)); }
.veh-thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center 60%;
    padding: .5rem .7rem; filter: drop-shadow(0 16px 22px rgba(0,0,0,.55)); transition: transform var(--t-med) var(--ease-out); }
.veh-card:hover .veh-thumb img { transform: scale(1.06); }
.veh-thumb.no-img { display: flex; align-items: center; justify-content: center; }
.veh-thumb.no-img img { display: none; }
.veh-thumb.no-img::after { content: ""; width: 44%; height: 44%; opacity: .22;
    background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238b93c8'%3E%3Cpath d='M5 11l1.4-4.2A2 2 0 0 1 8.3 5h7.4a2 2 0 0 1 1.9 1.4L19 11h1a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-1.2a2 2 0 0 1-3.9 0H9.1a2 2 0 0 1-3.9 0H4a1 1 0 0 1-1-1V12a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"); }

.veh-badges { position: absolute; top: .55rem; left: .55rem; display: flex; flex-direction: column; gap: .3rem; z-index: 2; }
.veh-badge { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .22rem .55rem; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.veh-badge.fleet { background: linear-gradient(135deg, #7aa2ff, #5a7bff); color: #061023; }
.veh-badge.armed { background: linear-gradient(135deg, #ff6b6b, #ff8a5a); color: #2a0808; }
.veh-class { position: absolute; bottom: .55rem; right: .55rem; z-index: 2; font-size: .66rem; font-weight: 700;
    color: #dfe3f5; background: rgba(14,18,40,.78); padding: .24rem .6rem; border-radius: 999px; border: 1px solid rgba(139,133,255,.2); }

.veh-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .1rem; flex: 1; }
.veh-make { font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--bp-indigo-200); font-weight: 800; }
.veh-name { margin: .1rem 0 .3rem; font-size: 1.06rem; line-height: 1.15; font-weight: 800; letter-spacing: -.2px; }
.veh-note { margin: 0 0 .5rem; font-size: .74rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.veh-note .ic { color: var(--bp-indigo-300); }
.veh-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .55rem; border-top: 1px solid var(--line); }
.veh-seats { color: var(--muted-2); font-size: .8rem; display: inline-flex; align-items: center; gap: .3rem; }
.veh-price { font-weight: 800; color: #fff; font-size: .82rem; background: rgba(108,99,255,.18); border: 1px solid rgba(139,133,255,.32);
    padding: .3rem .65rem; border-radius: 999px; white-space: nowrap; }
.veh-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.8rem; }
@media (max-width: 560px) { .veh-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; } .veh-name { font-size: .95rem; } }

/* Vehicle detail page */
.vd-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.4rem; align-items: start; margin-top: .4rem; }
.vd-stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    background: radial-gradient(120% 120% at 50% 0%, rgba(139,133,255,.2), transparent 60%), linear-gradient(165deg, var(--panel-hi), var(--bg-2)); }
.vd-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 1.4rem; filter: drop-shadow(0 26px 34px rgba(0,0,0,.6)); }
.vd-badge { position: absolute; top: .8rem; left: .8rem; z-index: 2; }
.vd-info { padding-top: .3rem; }
.vd-make { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--bp-indigo-200); font-weight: 800; margin: 0; }
.vd-name { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: .1rem 0 .2rem; line-height: 1.1; }
.vd-note { color: var(--muted); font-size: .95rem; margin: .2rem 0 1rem; display: flex; align-items: center; gap: .4rem; }
.vd-note .ic { color: var(--bp-indigo-300); flex: none; }
.vd-note strong { color: var(--text); }
.vd-price-card { display: flex; flex-direction: column; gap: .1rem; background: linear-gradient(135deg, rgba(108,99,255,.2), rgba(176,108,255,.12));
    border: 1px solid var(--line-2); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1.1rem; width: fit-content; min-width: 180px; }
.vd-price { font-size: 1.7rem; line-height: 1.1; }
.vd-specs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 0; }
.vd-specs > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .8rem; }
.vd-specs dt { color: var(--muted-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .15rem; }
.vd-specs dd { margin: 0; font-weight: 700; }
.vd-stage.no-img { display: flex; align-items: center; justify-content: center; }
.vd-stage.no-img .vd-img { display: none; }
.vd-stage.no-img::after { content: ""; width: 40%; height: 40%; opacity: .22;
    background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238b93c8'%3E%3Cpath d='M5 11l1.4-4.2A2 2 0 0 1 8.3 5h7.4a2 2 0 0 1 1.9 1.4L19 11h1a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-1.2a2 2 0 0 1-3.9 0H9.1a2 2 0 0 1-3.9 0H4a1 1 0 0 1-1-1V12a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"); }
@media (max-width: 760px) { .vd-wrap { grid-template-columns: 1fr; } }
