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

:root {
  --bg: #06070d;
  --bg-card: #0f111c;
  --bg-card-alt: #151827;
  --border: rgba(255, 255, 255, 0.10);
  --border-hi: rgba(168, 85, 247, 0.52);
  --text: #f8fafc;
  --muted: #94a3b8;
  --purple: #a855f7;
  --twitch: #9146ff;
  --green: #22c55e;
  --cyan: #38bdf8;
  --gold: #eab308;
  --red: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 6%, rgba(145, 70, 255, 0.19), transparent 36%),
    radial-gradient(circle at 88% 16%, rgba(34, 197, 94, 0.11), transparent 34%),
    linear-gradient(180deg, #06070d 0%, #090b15 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
body.menu-locked { overflow: hidden; }
body.menu-locked .live-grid iframe {
  display: none !important;
}
main { flex: 1; }

a { color: inherit; text-decoration: none; }
code {
  font-family: 'JetBrains Mono', monospace;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.88em;
  word-break: break-word;
}

.container { width: 100%; max-width: 1290px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 640px) {
  .container { padding: 0 14px; }
}

/* ==================== Sticky Navbar + Mobile Burger Drawer ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(6, 7, 14, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 12px;
  flex-wrap: nowrap;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 0;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
  flex-shrink: 0;
  object-fit: cover;
}

.brand-text-col {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-name {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  letter-spacing: 0.05em;
  line-height: 1;
  color: #ffffff;
}

.brand-domain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  color: #c084fc;
  letter-spacing: 0.06em;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  background: rgba(145, 70, 255, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.42);
  color: #e9d5ff;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.brand-badge.live-on {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.48);
  color: #86efac;
}

.nav-pill-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  flex-wrap: nowrap;
}

.nav-pill-bar a {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.nav-pill-bar a:hover {
  color: #ffffff;
  background: rgba(168, 85, 247, 0.18);
}

.nav-pill-bar a.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.85), rgba(124, 58, 237, 0.85));
  box-shadow: 0 4px 14px rgba(145, 70, 255, 0.35);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Animated 3-Line Burger Button */
.burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.burger-btn:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: var(--purple);
}
.burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.burger-btn.is-open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.is-open .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn.is-open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Slide-Over Mobile Burger Drawer & Backdrop */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(3, 4, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.mobile-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 360px);
  height: 100dvh;
  z-index: 250;
  background: linear-gradient(180deg, #0b0d18 0%, #0f1222 100%);
  border-left: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
  transform: translateX(104%);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px;
  gap: 14px;
}
.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mobile-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card-alt);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.15s ease;
}
.mobile-nav-link:hover {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.4);
}
.mobile-nav-link.active {
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.26), rgba(34, 197, 94, 0.10));
  border-color: var(--purple);
  box-shadow: 0 6px 18px rgba(145, 70, 255, 0.22);
}
.mobile-nav-icon {
  font-size: 19px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}
.mobile-nav-txt b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}
.mobile-nav-txt small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.mobile-socials-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (max-width: 1150px) {
  .nav-pill-bar { display: none; }
  .burger-btn { display: inline-flex; }
}

@media (max-width: 640px) {
  .nav-inner { height: 60px; gap: 8px; }
  .brand-avatar { width: 34px; height: 34px; }
  .brand-name { font-size: 19px; }
  .brand-domain { display: none; }
  .brand-badge { font-size: 9.5px; padding: 3px 7px; }
  .desktop-only-auth { display: none !important; }
}

/* ==================== Subpage Header Banner ==================== */
.page-hero {
  padding: 34px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at 20% 0%, rgba(145, 70, 255, 0.14), transparent 55%);
}
.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 10px;
}
.page-breadcrumb a { color: #c084fc; font-weight: 700; }
.page-breadcrumb a:hover { text-decoration: underline; }

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid var(--border);
  background: var(--bg-card-alt);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: 0.16s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.30); }
.btn-twitch { background: linear-gradient(135deg, #9146ff, #7c3aed); border-color: #a855f7; box-shadow: 0 6px 20px rgba(145, 70, 255, 0.32); }
.btn-green { background: linear-gradient(135deg, #22c55e, #16a34a); color: #042f14; border-color: #4ade80; box-shadow: 0 6px 20px rgba(34, 197, 94, 0.26); }
.btn-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #1c1002; border-color: #fcd34d; }
.btn-sm { padding: 7px 13px; min-height: 38px; font-size: 12.5px; }

@media (max-width: 520px) {
  .hero-cta-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
  .hero-cta-row .btn { width: 100%; padding: 10px 10px; font-size: 12.5px; white-space: normal; line-height: 1.2; }
}

/* ==================== Hero + Live Stream Embed ==================== */
.hero { padding: 32px 0 28px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  color: #86efac; background: rgba(34, 197, 94, 0.10); border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
  max-width: 100%; white-space: normal;
}
.hero h1 {
  font-family: 'Anton', sans-serif; font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.06; letter-spacing: 0.03em; text-transform: uppercase; max-width: 980px;
}
.hero p.lead { color: var(--muted); font-size: clamp(14px, 1.8vw, 16px); max-width: 820px; margin-top: 10px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.mobile-stream-tabs {
  display: none;
  gap: 6px;
  margin-top: 18px;
  background: var(--bg-card);
  padding: 5px;
  border-radius: 11px;
  border: 1px solid var(--border);
}
.mobile-stream-tab {
  flex: 1;
  min-height: 38px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}
.mobile-stream-tab.active {
  background: rgba(145, 70, 255, 0.30);
  color: #ffffff;
  border: 1px solid rgba(168, 85, 247, 0.55);
}

.live-grid {
  display: grid; grid-template-columns: 1fr 370px; gap: 14px; margin-top: 22px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.stream-player-box { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #05060b; }
.stream-player-box iframe, .stream-chat-box iframe { width: 100%; height: 100%; border: 0; }
.stream-chat-box { height: 100%; min-height: 460px; border-radius: 10px; overflow: hidden; background: #0b0d17; border: 1px solid var(--border); }

@media (max-width: 980px) {
  .mobile-stream-tabs { display: flex; }
  .live-grid { grid-template-columns: 1fr; margin-top: 10px; padding: 8px; gap: 10px; }
  .stream-chat-box { min-height: 370px; height: 370px; }
  .live-grid.mode-stream .stream-chat-box { display: none; }
  .live-grid.mode-chat .stream-player-box { display: none; }
  .live-grid.mode-chat .stream-chat-box { height: 64vh; min-height: 420px; }
}

/* ==================== Sections & Subpage Cards ==================== */
.section { padding: 44px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
@media (max-width: 640px) { .section { padding: 30px 0; } }

.sec-head { margin-bottom: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.sec-kicker { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: var(--purple); letter-spacing: 0.14em; text-transform: uppercase; }
.sec-title { font-family: 'Anton', sans-serif; font-size: clamp(24px, 3.1vw, 38px); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 4px; line-height: 1.1; }
.sec-desc { color: var(--muted); max-width: 680px; font-size: 14.5px; }

.cards-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 18px; }
@media (max-width: 720px) {
  .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr; gap: 12px; }
}

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; gap: 11px; min-width: 0;
}
@media (max-width: 640px) { .card { padding: 16px; } }
.card.highlight { border-color: var(--border-hi); box-shadow: 0 12px 38px rgba(145, 70, 255, 0.13); }
.card h3 { font-size: 17.5px; font-weight: 800; line-height: 1.25; }
.card p { color: var(--muted); font-size: 14px; }

.hub-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--purple);
  box-shadow: 0 14px 36px rgba(145, 70, 255, 0.22);
}

/* ==================== Creator Banner & Social Cards (/siete) ==================== */
.creator-banner-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-hi);
  background: var(--bg-card);
  margin-bottom: 24px;
}
.creator-banner-bg {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.creator-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,7,13,0.15) 0%, rgba(15,17,28,0.96) 100%);
}
.creator-banner-body {
  padding: 0 24px 24px;
  margin-top: -46px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.creator-big-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid var(--purple);
  background: #090b14;
  box-shadow: 0 8px 26px rgba(0,0,0,0.65);
  object-fit: cover;
}
@media (max-width: 640px) {
  .creator-banner-bg { height: 120px; }
  .creator-banner-body {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 16px 18px;
    margin-top: -38px;
    gap: 12px;
  }
  .creator-big-avatar { width: 74px; height: 74px; }
  .creator-banner-body > .btn { width: 100%; }
}

.social-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.16s ease;
  min-width: 0;
}
.social-card-link:hover {
  transform: translateY(-2px);
  border-color: var(--purple);
  background: rgba(145, 70, 255, 0.10);
}
@media (max-width: 560px) {
  .social-card-link {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 11px;
  }
  .social-card-link .btn {
    width: 100%;
  }
}
.vod-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #070912;
}

/* ==================== RPG Customizer (/postava) ==================== */
.customizer-shell {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 22px;
  background: linear-gradient(145deg, rgba(14, 16, 28, 0.98), rgba(19, 22, 37, 0.96));
  border: 1px solid var(--border-hi);
  border-radius: 16px;
  padding: 22px;
  align-items: start;
}
.preview-stage {
  position: sticky;
  top: 86px;
  background: radial-gradient(circle at 50% 60%, rgba(168, 85, 247, 0.24), #070811 72%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
#avatarPreviewCanvas {
  image-rendering: pixelated;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.04), transparent 65%);
  border-radius: 10px;
}

@media (max-width: 920px) {
  .customizer-shell { grid-template-columns: 1fr; padding: 14px; gap: 16px; }
  .preview-stage { position: relative; top: 0; padding: 14px; gap: 10px; }
  #avatarPreviewCanvas { width: 180px; height: 180px; }
}

.stat-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.stat-pill { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 8px; padding: 8px; text-align: center; }
.stat-pill b { display: block; font-size: 15px; color: #fff; font-family: 'JetBrains Mono', monospace; }
.stat-pill span { font-size: 10px; color: var(--muted); text-transform: uppercase; }

.cust-sub-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 6px 0 6px;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 8px;
}
.roster-grid.npc-grid {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}
@media (max-width: 520px) {
  .roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster-grid.npc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
}

.item-chip {
  min-height: 52px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  transition: all 0.14s ease;
}
.item-chip:hover { border-color: rgba(255, 255, 255, 0.34); transform: translateY(-1px); }
.item-chip.active {
  background: rgba(145, 70, 255, 0.28);
  border-color: #a855f7;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.32);
}
.item-chip .chip-title { font-size: 12px; font-weight: 700; line-height: 1.2; }
.item-chip .chip-row { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.item-chip .chip-swatch { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.45); flex-shrink: 0; }
.item-chip small { font-size: 10px; color: #fde047; font-family: 'JetBrains Mono', monospace; line-height: 1.1; }
.item-chip small.chip-free { color: #86efac; }

.npc-card-chip { min-height: 82px; padding: 7px 5px; }
.npc-mini-sprite {
  display: block;
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
  background-repeat: no-repeat;
  background-size: 384px 144px;
  background-position: -6px -4px;
}

/* ==================== Subscriber Emotes & Badges Showcase (/sub) ==================== */
.emote-tier-showcase {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}
.emote-tier-panel {
  background: linear-gradient(160deg, rgba(16, 19, 32, 0.96), rgba(12, 14, 24, 0.96));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}
@media (max-width: 640px) { .emote-tier-panel { padding: 14px; } }
.emote-tier-panel.tier-highlight {
  border-color: rgba(168, 85, 247, 0.50);
  box-shadow: 0 10px 32px rgba(145, 70, 255, 0.12);
}
.emote-tier-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.emotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}
@media (max-width: 520px) {
  .emotes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}

.emote-box {
  background: var(--bg-card-alt);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 11px;
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.emote-box:hover {
  border-color: #a855f7;
  transform: translateY(-2px);
  background: rgba(145, 70, 255, 0.14);
}
.emote-box img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  image-rendering: pixelated;
}
@media (max-width: 520px) {
  .emote-box img { width: 48px; height: 48px; }
}
.emote-box .emote-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  color: #f8fafc;
}
.emote-box .emote-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.20);
  color: #e9d5ff;
  text-align: center;
}
.emote-box .emote-tag.gif { background: rgba(34, 197, 94, 0.20); color: #86efac; }
.emote-box .emote-tag.gold { background: rgba(234, 179, 8, 0.22); color: #fde047; }

/* ==================== Commands Table & Mobile Cards (/prikazy) ==================== */
.cat-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cat-pill {
  padding: 7px 13px;
  min-height: 36px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.cat-pill.active {
  background: rgba(145, 70, 255, 0.28);
  border-color: var(--purple);
  color: #ffffff;
}

.cmd-table-wrap { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
table.cmd-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.cmd-table th, table.cmd-table td { padding: 11px 15px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
table.cmd-table th { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.02); }
.cost-badge { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(234, 179, 8, 0.14); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.35); white-space: nowrap; }
.cost-badge.free { background: rgba(34, 197, 94, 0.13); color: #86efac; border-color: rgba(34, 197, 94, 0.35); }
.cost-badge.points { background: rgba(168, 85, 247, 0.18); color: #e9d5ff; border-color: rgba(168, 85, 247, 0.42); }

/* Mobile Card Transformation for Commands Table (Zero Horizontal Scroll!) */
@media (max-width: 760px) {
  .cmd-only-mobile-cards { background: transparent; border: 0; overflow: visible; }
  .cmd-only-mobile-cards table.cmd-table thead { display: none; }
  .cmd-only-mobile-cards table.cmd-table,
  .cmd-only-mobile-cards table.cmd-table tbody { display: flex; flex-direction: column; gap: 10px; }
  .cmd-only-mobile-cards table.cmd-table tr {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 14px;
  }
  .cmd-only-mobile-cards table.cmd-table td {
    padding: 0;
    border: 0;
  }
  .cmd-only-mobile-cards .copy-cmd-btn {
    width: 100%;
  }
}

/* ==================== Inputs, Pills, Forms & Modals ==================== */
input[type="text"], input[type="email"], input[type="number"], input[type="password"], textarea, select {
  width: 100%; background: #0b0d17; border: 1px solid var(--border); border-radius: 9px;
  padding: 11px 13px; color: #fff; font-size: 14.5px; font-family: inherit; min-height: 44px;
}
@media (max-width: 640px) {
  input[type="text"], input[type="email"], input[type="number"], input[type="password"], textarea, select {
    font-size: 16px; /* Prevents iOS Safari auto-zoom on tap */
  }
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--purple); }

.donate-form-row {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 10px;
}
@media (max-width: 520px) {
  .donate-form-row { grid-template-columns: 1fr; }
}

.waitlist-form-row {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 460px;
  width: 100%;
}
@media (max-width: 560px) {
  .waitlist-form-row { flex-direction: column; max-width: 100%; }
  .waitlist-form-row .btn { width: 100%; }
}

.coming-soon-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245, 158, 11, 0.16); border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; max-width: 100%; white-space: normal;
}

.toast-fixed {
  position: fixed; bottom: 20px; right: 20px; left: auto; max-width: calc(100vw - 28px); z-index: 999;
  background: #101424; border: 1.5px solid var(--green); color: #dcfce7;
  padding: 12px 16px; border-radius: 10px; font-weight: 700; font-size: 13.5px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75); display: none;
}
@media (max-width: 640px) {
  .toast-fixed { left: 14px; right: 14px; bottom: 14px; text-align: center; }
}
.toast-fixed.show { display: block; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(6px);
  z-index: 500; display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-backdrop.show { display: flex; }
.modal-card {
  background: var(--bg-card); border: 1.5px solid var(--border-hi); border-radius: 16px;
  padding: 24px; max-width: 460px; width: 100%; text-align: center; display: flex; flex-direction: column; gap: 14px;
}
.device-code-big {
  font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 800;
  letter-spacing: 0.16em; color: #e9d5ff; background: #090b14; border: 1px dashed var(--purple);
  padding: 12px; border-radius: 10px;
}

/* ==================== Multi-Column Footer ==================== */
footer.site-footer {
  padding: 36px 0 30px;
  border-top: 1px solid var(--border);
  background: rgba(5, 6, 12, 0.85);
  color: var(--muted);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  text-align: left;
  margin-bottom: 22px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links a:hover { color: #ffffff; }
