/* ═══════════════════════════════════════════════
   designed.css — BrawlMap shared design system
   ═══════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0b0b0f;
  --bg2:        #111118;
  --bg3:        #18181f;
  --border:     #2a2a3a;
  --border2:    #3a3a50;
  --gold:       #1e1e28;
  --gold1:      #ffd037;
  --gold2:      #1e1e28;
  --white:      #ffffff;
  --purple:     #7c3aed;
  --purple2:    #a855f7;
  --purple3:    #c084fc;
  --text:       #e8e0ff;
  --text2:      #ffffff;
  --text3:      #5e5280;
  --nav-bg:     #080808;
  --nav-border: #161616;
  --nav-dropdown:#13131c;
  --nav-hover:  rgba(255,255,255,0.1);
  --nav-active: rgba(255,255,255,0.12);
  --button-bg:  #111118;
  --button-text:#ffffff;
  --shadow:     rgba(0,0,0,0.5);
  --radius:     12px;
  --radius-sm:  4px;
}

html[data-theme="light"] {
  --bg:          #f8fafc;
  --bg2:         #ffffff;
  --bg3:         #eef2ff;
  --border:      #d6d6e0;
  --border2:     #c4c4db;
  --gold:        #fef3c7;
  --gold1:       #a06d00;
  --gold2:       #b68711;
  --white:       #111827;
  --purple:      #5b21b6;
  --purple2:     #7c3aed;
  --purple3:     #c4b5fd;
  --text:        #111827;
  --text2:       #1f2937;
  --text3:       #6b7280;
  --nav-bg:      #ffffff;
  --nav-border:  #d6d6e0;
  --nav-dropdown: #ffffff;
  --nav-hover:   rgba(17,24,39,0.08);
  --nav-active:  rgba(17,24,39,0.08);
  --button-bg:   #f3f4f6;
  --button-text: #111827;
  --shadow:      rgba(15,23,42,0.08);
}

html {
  height: 100%;
}

body {
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Nunito', sans-serif;
  color: var(--text);
}

/* Sticky footer — sits at bottom on short pages (About, Contact, etc.) */
#footer-root {
  margin-top: auto;
  width: 100%;
  flex-shrink: 0;
  padding-top: 2.5rem;
}

/* ── NAV ── */
nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  display: flex;
  align-items: center;
  padding: 0 4rem;
  position: sticky;
  top: 0;
  z-index: 200;
  transform: translateY(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
  will-change: transform, opacity;
}

nav.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  margin-right: 1.5rem;
  padding: 0.4rem 0;
  text-decoration: none;
}

.nav-logo-img {
  display: block;
  height: 38px;
  width: auto;
}

.nav-right { 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  margin-left: auto; }

.nav-dropdown a.disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/*--- Nav tabs ------------------------------------------------------------------------------------------*/

.nav-tab {
  padding: 0 1rem;
  height: 36px;
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  letter-spacing: 0.2px;
  position: relative;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  border-radius: 4px;
  background: transparent;
  border: none;
  appearance: none;
  font-family: inherit;
  line-height: 1;
}
.nav-tab:hover { color: var(--text2); background: var(--nav-hover); }
.nav-tab.active { color: var(--text2); border-bottom-color: transparent; background: var(--nav-active); }
.nav-tab.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.nav-badge {
  background: var(--purple);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 20px;
  margin-left: 5px;
}

/* More dropdown */
.nav-more-wrap,
.nav-profile-wrap,
.nav-account-wrap { position: relative; }
.nav-more-wrap .nav-tab,
.nav-profile-wrap .nav-tab,
.nav-account-wrap .nav-tab { gap: 4px; }

.nav-account-guest {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-account-link {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 0.9rem;
}
.nav-account-btn {
  background: linear-gradient(180deg, #8B33FF 0%, #532096 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 0.9rem;
}
.nav-signup-btn {
  padding: 7px 12px;
  font-size: 12px;
}
.nav-account-user { display: flex; align-items: center; }
.nav-more-wrap:hover .nav-dropdown,
.nav-profile-wrap:hover .nav-dropdown,
.nav-account-wrap:hover .nav-dropdown,
.nav-more-wrap.open .nav-dropdown,
.nav-profile-wrap.open .nav-dropdown,
.nav-account-wrap.open .nav-dropdown { display: block; }

.pagination-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 1.5rem 0 0;
}
.pagination-btn {
  min-width: 44px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text2);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pagination-btn:hover {
  background: var(--nav-hover);
}
.pagination-btn.active {
  background: var(--purple);
  color: var(--button-text);
  border-color: transparent;
}
.pagination-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--nav-dropdown);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  min-width: 170px;
  box-shadow: 0 8px 32px var(--shadow);
  z-index: 300;
  overflow: hidden;
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.nav-dropdown a:hover { background: var(--bg3); color: var(--text); }
.nav-dropdown a .dd-icon { font-size: 14px; }

/* Profile Stats button */
.btn-profile {
  background: linear-gradient(180deg, #8B33FF 0%, #532096 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: filter 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-profile:hover { filter: brightness(1.05); }

.nav-dark-btn {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}

/* ── PAGE WRAPPER ── */
.page { display: none; }
.page.active { display: block; }

/* ── HOME ── */
.home-wrap {
  max-width: 93%;
  margin: 0 auto;
  padding: 2.5rem 0.1rem 4rem;
}

/* ── NEWS ── */
.news-wrap {
  max-width: 93%;
  margin: 0 auto;
  padding: 2.5rem 0.1rem 4rem;
}

/* Hero update card */
.hero-update {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}
.hero-update h1 {
  font-family: 'Lilita One', cursive;
  font-size: 22px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.15;
}
.hero-update p { color: var(--text2); font-size: 13.5px; line-height: 1.6; }
.hero-update-btns { display: flex; gap: 10px; margin-top: 1rem; align-items: center; }

.btn-update {
  background: var(--button-bg);
  border: 1.5px solid var(--border2);
  color: var(--button-text);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.btn-update:hover { border-color: var(--text); color: var(--text); }

.btn-ghost {
  background: none;
  border: none;
  color: var(--text2);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 4px;
  text-decoration: none;
}
.btn-ghost:hover { color: var(--text); }

/* Section headings */
.section-title {
  font-family: 'Lilita One', cursive;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 6px;
}
.section-sub {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   Countdowns & Categories on news page
   ═══════════════════════════════════════════════ */

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 3rem;
}

.countdown-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cd-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.cd-subtitle { font-size: 11.5px; font-weight: 700; color: var(--text2); }
.cd-desc     { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.5; flex: 1; }
.cd-time     { font-family: 'Lilita One', cursive; font-size: 26px; color: var(--text); letter-spacing: 1px; margin-top: 4px; }
.cd-time.ended { color: var(--text3); font-size: 20px; }
.cd-footer   { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text3); margin-top: 2px; }

/* ── CATEGORIES ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 3rem;
}

.category-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.category-card:hover { border-color: var(--border2); background: var(--bg3); }
.category-card.disabled {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
  filter: grayscale(0.4);
}

.category-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.cat-divider {
  width: 3px;
  height: 34px;
  background: var(--purple);
  border-radius: 4px;
  flex-shrink: 0;
}

.category-name { font-size: 14px; font-weight: 800; color: var(--purple3); margin-bottom: 4px; }
.category-desc { font-size: 12px; color: var(--text2); line-height: 1.5; }

/* ── INNER PAGE WRAPPER ── */
.inner-page {
  max-width: 940px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.inner-page.leaderboard-page {
  max-width: 96.4%;
  width: 96.4%;
}

#page-trios .inner-page {
  max-width: 92%;
  width: 92%;
}

/* ── SHARED CARD ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}

h2 { font-family: 'Lilita One', cursive; font-size: 24px; color: var(--text); margin-bottom: 4px; }
.sub { font-size: 13px; color: var(--text2); margin-bottom: 1.5rem; }

/* ── INPUTS ── */
.input-group { display: flex; flex-direction: column; gap: 5px; }
.input-group label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

input[type=text], select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  width: 100%;
  font-family: 'Nunito', sans-serif;
  transition: border-color 0.15s;
}
input[type=text]:focus, select:focus { outline: none; border-color: var(--purple2); }
select option { background: var(--bg2); }

/* ── BUTTONS ── */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--purple);
  color: var(--button-text);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover { background: var(--purple2); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-full { width: 100%; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: var(--button-text);
}
.btn-gold:hover { opacity: 0.9; }

/* ── FEEDBACK ── */
.error {
  background: #1e0808;
  color: #f87171;
  border: 1px solid #5a1212;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 1rem;
  display: none;
}
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text2);
  font-size: 14px;
  display: none;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border2);
  border-top-color: var(--purple2);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── COMPARE ── */
.inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; margin-bottom: 1.25rem; }
.vs { font-family: 'Lilita One', cursive; font-size: 22px; color: var(--gold2); text-align: center; padding-bottom: 8px; }
.results { display: none; margin-top: 1.5rem; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1rem; }

.player-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  position: relative;
}
.player-card.winner { border-color: var(--gold); border-width: 2px; }
.winner-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #1a0a00; font-size: 10px; font-weight: 800;
  padding: 2px 12px; border-radius: 20px; white-space: nowrap; font-family: 'Lilita One', cursive;
}
.player-name { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-tag  { font-size: 11px; color: var(--text3); margin-bottom: 12px; }

.stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--text2); }
.stat-val { font-weight: 700; color: var(--text); }
.stat-val.best { color: var(--gold); }

.verdict { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.verdict-title  { font-family: 'Lilita One', cursive; font-size: 15px; color: var(--text2); margin-bottom: 4px; }
.verdict-name   { font-size: 24px; font-family: 'Lilita One', cursive; color: var(--gold); -webkit-text-stroke: 0.5px var(--gold2); }
.verdict-reason { font-size: 13px; color: var(--text2); margin-top: 6px; }

/* ── Leaderboard ───────────────────────── */

.rankings-controls {
  background: var(--bg2); 
  border: 1px solid var(--border); 
  border-radius: var(--radius);
  padding: 1.5rem; 
  margin-bottom: 1.5rem;
  display: grid; 
  grid-template-columns: 1fr 1fr auto; gap: 12px; 
  align-items: end;
}

.rankings-table { background: var(--bg2); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  overflow: hidden; }
.rankings-table table { 
  width: 100%; border-collapse: collapse; 
  font-size: 13px; }
.rankings-table th {
  background: var(--bg); 
  padding: 10px 16px; 
  text-align: left;
  font-size: 11px; 
  text-transform: uppercase; 
  letter-spacing: 0.6px; 
  color: var(--text3); 
  font-weight: 800;
}

.rankings-table td { padding: 10px 16px; 
  border-bottom: 1px solid var(--border); 
  color: var(--text); }
.rankings-table tr:last-child td { border-bottom: none; }
.rankings-table tr:hover td { background: var(--bg3); }
.rank-num  { font-family: 'Lilita One', cursive; color: var(--text); font-size: 15px; }
.rank-1 { color: var(--gold1); }
.rank-2 { color: #C0C0C0; }
.rank-3 { color: #CD7F32; }
.trophy-val { color: var(--gold1); font-weight: 700; }
.brawler-select-wrap { grid-column: 1 / -1; display: none; }

/* ── Brawlers ───────────────────────── */

.brawlers-controls { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 1.5rem; }
.brawlers-controls .input-group { flex: 1; }

.legend      { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.5rem; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); }
.legend-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.brawler-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }

.brawler-pill {
  border-radius: 4px; 
  padding: 8px 10px; 
  text-align: center;
  border: 2px solid transparent; 
  cursor: default;
  transition: transform 0.2s, 
  box-shadow 0.12s; position: relative;
}
.brawler-pill:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.5); }

.tier-grey   { background: #141420; border-color: #3a3a55; }
.tier-green  { background: #0a1f12; border-color: #22c55e; }
.tier-yellow { background: #1e1800; border-color: #eab308; }
.tier-red    { background: #1e0808; border-color: #ef4444; }
.tier-purple { background: #160826; border-color: #a855f7; }

.brawler-pill-name {
  font-size: 10.5px; 
  font-weight: 700; 
  letter-spacing: 0.1px;
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  margin-bottom: 4px;
}
.tier-grey   .brawler-pill-name { color: #7070a0; }
.tier-green  .brawler-pill-name { color: #4ade80; }
.tier-yellow .brawler-pill-name { color: #fde047; }
.tier-red    .brawler-pill-name { color: #f87171; }
.tier-purple .brawler-pill-name { color: #d8b4fe; }

.brawler-pill-power { font-size: 19px; font-family: 'Lilita One', cursive; line-height: 1; }
.tier-grey   .brawler-pill-power { color: #55558a; }
.tier-green  .brawler-pill-power { color: #22c55e; }
.tier-yellow .brawler-pill-power { color: #eab308; }
.tier-red    .brawler-pill-power { color: #ef4444; }
.tier-purple .brawler-pill-power { color: #a855f7; }

.brawler-pill-trophy { font-size: 10.5px; color: var(--text2); margin-top: 3px; }

.pill-dots   { display: flex; justify-content: center; gap: 3px; margin-top: 5px; }
.dot         { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot-gadget  { background: #38bdf8; }
.dot-starpow { background: #fbbf24; }
.dot-empty   { background: var(--border); }

.hc-badge{
  position: absolute;
  top: -10px;
  right: -10px;

  width: 17px;
  height: 17px;

  filter: drop-shadow(0 0 4px #a855f7);
}

.tier-summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tier-chip    { padding: 4px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 800; border: 1.5px solid; }
.chip-grey   { background: #141420; border-color: #3a3a55; color: #7070a0; }
.chip-green  { background: #0a1f12; border-color: #22c55e; color: #4ade80; }
.chip-yellow { background: #1e1800; border-color: #eab308; color: #fde047; }
.chip-red    { background: #1e0808; border-color: #ef4444; color: #f87171; }
.chip-purple { background: #160826; border-color: #a855f7; color: #d8b4fe; }

.player-header      { margin-bottom: 1.25rem; }
.player-header-name { font-family: 'Lilita One', cursive; font-size: 20px; color: var(--text); }
.player-header-tag  { font-size: 12px; color: var(--text3); margin-top: 2px; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filter-btn {
  padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--border); background: transparent; color: var(--text2);
  cursor: pointer; font-family: 'Nunito', sans-serif; transition: all 0.12s;
}
.filter-btn:hover  { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); color: #1a0a00; border-color: var(--gold); }

/* ══════════════════════════════════════════════════
   Changelog page
   ══════════════════════════════════════════════════ */

.cl-wrap {
  max-width: 95%;
  margin: 0 auto;
  padding: 2rem 1rem 5rem;
}

/* Header */
.cl-header {
  margin-bottom: 2rem;
}

.cl-header h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem;
  letter-spacing: -0.2px;
}

.cl-header p {
  font-size: 13px;
  color: var(--text3);
  margin: 0;
}

/* Timeline */
.cl-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Entry */
.cl-entry {
  position: relative;

  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1.5rem;

  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;

  padding: 1.25rem;

  overflow: hidden;
  transition: 0.18s ease;
}

.cl-entry:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

/* left */
.cl-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* version */
.cl-version {
  display: inline-flex;
  align-items: center;
  width: fit-content;

  padding: 4px 10px;

  border-radius: 999px;

  background: var(--purple);
  color: var(--button-text);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.2px;
}

/* date */
.cl-date {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
}

.cl-date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.cl-date-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
}

.cl-date-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text3);
}

/* content */
.cl-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

/* TOP SECTION = title + image side-by-side */
.cl-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
}

/* text side */
.cl-text {
  flex: 1;
  min-width: 0;
}

/* title */
.cl-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0 0 0.65rem;
}

/* desc */
.cl-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin: 0;
}

/* image */
.cl-image {
  width: 680px;
  max-width: 50%;
  height: auto;

  object-fit: contain;

  border-radius: 14px;
  border: 1px solid var(--border);

  background: var(--bg);

  flex-shrink: 0;
}

/* items */
.cl-items {
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 0.65rem;

  margin: 0;
  padding: 0;
}

.cl-items li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;

  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

.cl-items li::before {
  content: '';

  width: 6px;
  height: 6px;

  border-radius: 50%;
  background: var(--purple);

  margin-top: 8px;

  flex-shrink: 0;
}

/* tags */
.cl-tag {
  display: inline-flex;
  align-items: center;

  padding: 3px 8px;

  border-radius: 999px;

  font-size: 10px;
  font-weight: 700;

  border: 1px solid;

  margin-right: 0.35rem;

  letter-spacing: 0.2px;
}

.cl-tag.new {
  background: #102216;
  border-color: #22c55e;
  color: #4ade80;
}

.cl-tag.fix {
  background: #251010;
  border-color: #ef4444;
  color: #f87171;
}

.cl-tag.impr {
  background: #1b1028;
  border-color: #a855f7;
  color: #d8b4fe;
}

.cl-tag.perf {
  background: #2a240f;
  border-color: #eab308;
  color: #fde047;
}

/* types */
.cl-entry.major {
  border-left: 4px solid var(--gold);
}

.cl-entry.fix {
  border-left: 4px solid #22c55e;
}

.cl-entry.normal {
  border-left: 4px solid var(--purple);
}

/* divider */
.cl-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* empty */
.cl-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text3);
}

.cl-empty h3 {
  color: var(--text2);
  margin-bottom: 0.5rem;
}

/* scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 999px;
}

/*TABLET*/

@media (max-width: 900px) {

  .cl-entry {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cl-left {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cl-image {
    width: 260px;
    max-width: 45%;
  }
}

/*MOBILE*/

@media (max-width: 700px) {

  .cl-wrap {
    padding-inline: 0.8rem;
  }

  .cl-entry {
    padding: 1rem;
    border-radius: 16px;
  }

  .cl-top {
    flex-direction: column;
  }

  .cl-image {
    width: 100%;
    max-width: 100%;
  }

  .cl-title {
    font-size: 1rem;
  }

  .cl-desc,
  .cl-items li {
    font-size: 13px;
  }
}

/* ══════════════════════════════════════════════════
   Trios card
   ══════════════════════════════════════════════════ */

.page#page-trios {
  background: #0e0b1a;
  min-height: calc(100vh - 60px);
  padding: 32px 0;
}

#page-trios h2 {
  color: var(--text);
  font-family: 'Lilita One', cursive;
  font-size: 26px;
  margin-bottom: 4px;
}
#page-trios .sub {
  color: #a89ec8;
  font-size: 13px;
  margin-bottom: 14px;
}

.trios-incomplete {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  color: #d4c8ff;
  margin-bottom: 6px;
}
.trios-incomplete b { color: var(--text2); }

.trios-updated {
  font-size: 11px;
  color: #6b6080;
  margin-bottom: 20px;
}

/* ── Grid ── */
.trios-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* ── Card ── */
.trio-card {
  border-radius: 14px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.trio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.trio-card.enabled {
  background: linear-gradient(135deg, #2a1f4e 0%, #1a1233 100%);
  border: 1px solid rgba(120,90,200,0.3);
}
.trio-card.disabled {
  background: linear-gradient(135deg, #1c1c2e 0%, #141420 100%);
  border: 1px dashed rgba(120,90,200,0.35);
  opacity: 0.72;
}
.trio-card.featured { border: 2px dashed #7b5ce6 !important; }

/* ── Top row: avatars + badge ── */
.trio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.brawler-avatars { display: flex; }

.brawler-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-left: -8px;
  overflow: hidden;
}
.brawler-avatar:first-child { margin-left: 0; }
.brawler-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Status badges ── */
.status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 20px;
  white-space: nowrap;
}
.status-active   { background: rgba(30,200,120,0.15); color: #3dffa0; border: 1px solid rgba(30,200,120,0.3); }
.status-pending  { background: rgba(100,80,220,0.15); color: #b09ef8; border: 1px solid rgba(100,80,220,0.3); }
.status-disabled { background: rgba(120,120,160,0.12); color: #8880aa; border: 1px solid rgba(120,120,160,0.2); }

/* ── Card text ── */
.trio-name {
  color: #e8e0ff;
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 4px;
}
.trio-days {
  font-size: 13px;
  font-weight: 700;
  color: #3dffa0;
  margin-bottom: 10px;
}
.trio-days.grey { color: #6b6080; }

/* ── Brawler name tags ── */
.brawler-names { display: flex; gap: 6px; flex-wrap: wrap; }
.brawler-name-tag {
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: #b0a0d8;
  font-weight: 700;
}

/* ── Buffies ── */
.buffies-row { display: flex; gap: 5px; margin-top: 8px; }
.buffi {
  font-size: 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 3px 7px;
}

/* ── Description ── */
.trio-desc {
  font-size: 12px;
  color: #7a6a9a;
  margin-top: 10px;
  line-height: 1.5;
}

.empty-msg { color: #6b6080; font-size: 13px; padding: 1rem 0; }

/* ══════════════════════════════════════════════════
   Profile page
   ══════════════════════════════════════════════════ */

.profile-inner {
  max-width: 93%;
  width: 93%;
}

/* Tag search card */
.profile-tag-card {
  margin-bottom: 1.5rem;
}
.profile-tag-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

/* Header bar: name/tag left, tabs right */
.profile-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 12px;
}
.profile-header-name {
  font-family: 'Lilita One', cursive;
  font-size: 22px;
  color: var(--text);
}
.profile-header-tag {
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px;
}

/* Tabs */
.profile-tabs {
  display: flex;
  gap: 6px;
}
.profile-tab-btn {
  background: transparent;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  cursor: pointer;
  transition: all 0.15s;
}
.profile-tab-btn:hover { border-color: var(--purple2); color: var(--text); }
.profile-tab-btn.active { background: var(--purple); border-color: var(--purple); color: var(--button-text); }

/* Tab content panels */
.profile-content { display: none; }
.profile-content.active { display: block; }

/* Stats grid */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

/* ══════════════════════════════════════════════════
News page
══════════════════════════════════════════════════ */

.news-wrap {
  max-width: 93%;
  margin: 0 auto;
  padding: 2.5rem 0.1rem 4rem;
}

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.news-header h1 {
  font-family: 'Lilita One', cursive;
  font-size: 2rem;
  color: var(--text);
  letter-spacing: 0.5px;
}

/* ── Category filter pills ── */
.category-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 1.75rem;
}

.category-dropdown {
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
  width: 160px;
  flex-shrink: 0;
}
  .category-dropdown:focus { border-color: var(--purple2); }

/* ── Search tab ── */

.search-input {
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 15px;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 24px;
  padding: 8px 36px 8px 36px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.search-input:focus {
  border-color: var(--purple2);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
    
.search-input::placeholder { color: var(--text3); }

  .search-wrapper {
  position: relative;
  width: 230px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.search-icon svg {
  display: block;
  stroke: var(--text3);
  fill: none;
}
    
.search-icon {
  position: absolute;
  left: 11px;
  pointer-events: none;
  display: flex;
  align-items: center;
  width: 14px;
  height: 14px;
}
    
.search-clear {
  position: absolute;
  right: 8px;
  background: var(--bg3);
  border: none;
  color: var(--text3);
  cursor: pointer;
  padding: 2px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-size: 13px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
  .search-clear:hover { background: var(--border2); color: var(--text); }
  .search-clear.visible { display: flex; }

/* ── News grid ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1200px) {
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
}

.news-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
  .news-card:hover { border-color: var(--border2); transform: translateY(-2px); }

    .news-card-banner {
      width: 100%;
      aspect-ratio: 3 / 2;
      object-fit: cover;
      display: block;
      background: var(--bg3);
    }
    .news-card-banner-placeholder {
      width: 100%;
      aspect-ratio: 3 / 2;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3rem;
    }

    .news-card-body { padding: 1.1rem 1.25rem 1.25rem; }

    .news-card-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 0.5rem;
      font-size: 12px;
      color: var(--text3);
      font-weight: 600;
    }

    .news-card-category {
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.4px;
      text-transform: uppercase;
    }
    .cat-news         { background: #1e3a5f; color: #60a5fa; }
    .cat-maintenance  { background: #3b2200; color: #fb923c; }
    .cat-cosmetics    { background: #2d1b4e; color: #c084fc; }
    .cat-brawlpass    { background: #1a3320; color: #4ade80; }
    .cat-hypercharge  { background: #2d1b4e; color: #c084fc; }
    .cat-ranked       { background: #1e3a5f; color: #60f0fa; }
    .cat-balance      { background: #3b2200; color: #fb923c; }
    .cat-brawltalk    { background: #3a1a1a; color: #fbbf24; }
    .cat-leaks        { background: #2d1b4e; color: #c084fc; }
    .cat-brawler      { background: #3a1a1a; color: #fbbf24; }
    .cat-event        { background: #1a3320; color: #24fb36; }
    .cat-countdown    { background: #1a2b3a; color: #38bdf8; }

    .news-card-title {
      font-size: 15px;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 0.35rem;
      line-height: 1.3;
    }
    .news-card-excerpt {
      font-size: 13px;
      color: var(--text2);
      line-height: 1.55;
    }

    /* ── Empty state ── */
    .news-empty {
      text-align: center;
      padding: 4rem 1rem;
      color: var(--text3);
      grid-column: 1/-1;
    }
    .news-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
    .news-empty h3 { font-size: 1.1rem; color: var(--text2); margin-bottom: 0.4rem; }

    /* ── Admin toggle button ── */
    .admin-toggle {
      display: none;
      padding: 7px 16px;
      background: rgba(124,58,237,0.15);
      border: 1.5px solid var(--purple);
      border-radius: 8px;
      color: var(--text2);
      font-family: 'Nunito', sans-serif;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.15s;
    }
    .admin-toggle:hover { background: rgba(124,58,237,0.3); }

    /* ── Modal overlay ── */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.75);
      z-index: 1000;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }
    .modal-overlay.open { display: flex; }

    .modal {
      background: var(--bg2);
      border: 1px solid var(--border2);
      border-radius: 16px;
      padding: 2rem;
      width: 100%;
      max-width: 560px;
      max-height: 90vh;
      overflow-y: auto;
    }

    .modal h2 {
      font-family: 'Lilita One', cursive;
      font-size: 1.4rem;
      color: var(--text);
      margin-bottom: 1.5rem;
    }

    .form-group { margin-bottom: 1rem; }
    .form-group label {
      display: block;
      font-size: 12px;
      font-weight: 700;
      color: var(--text2);
      margin-bottom: 5px;
      letter-spacing: 0.4px;
      text-transform: uppercase;
    }
    .form-group input,
    .form-group textarea,
    .form-group select {
      width: 100%;
      background: var(--bg3);
      border: 1.5px solid var(--border);
      border-radius: 8px;
      color: var(--text);
      font-family: 'Nunito', sans-serif;
      font-size: 14px;
      padding: 9px 12px;
      outline: none;
      transition: border-color 0.15s;
    }
    .form-group textarea { min-height: 90px; resize: vertical; }
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus { border-color: var(--purple2); }
    .form-group select option { background: var(--bg3); }

    .modal-actions {
      display: flex;
      gap: 10px;
      margin-top: 1.5rem;
      justify-content: flex-end;
    }

    .btn-cancel {
      padding: 8px 18px;
      background: transparent;
      border: 1.5px solid var(--border2);
      border-radius: 8px;
      color: var(--text2);
      font-family: 'Nunito', sans-serif;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
    }
    .btn-publish {
      padding: 8px 18px;
      background: var(--purple);
      border: none;
      border-radius: 8px;
      color: var(--button-text);
      font-family: 'Nunito', sans-serif;
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
      transition: background 0.15s;
    }
    .btn-publish:hover { background: var(--purple2); }

    /* ── Auth gate ── */
    .auth-hint { font-size: 12px; color: var(--text3); margin-top: 6px; }
    .auth-error { color: #f87171; font-size: 13px; margin-top: 6px; }
    .hidden { display: none !important; }

    .auth-modal { max-width: 400px; }
    .auth-modal-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 1.25rem;
    }
    .auth-tab-btn {
      flex: 1;
      padding: 8px 12px;
      background: transparent;
      border: 1.5px solid var(--border2);
      border-radius: 8px;
      color: var(--text2);
      font-family: 'Nunito', sans-serif;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.15s;
    }
    .auth-tab-btn.active {
      background: var(--purple);
      border-color: var(--purple);
      color: var(--button-text);
    }

    /* ── Account page ── */
    .account-wrap {
      max-width: 720px;
      margin: 0 auto;
      padding: 2.5rem 1.5rem 4rem;
    }
    .account-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.5rem;
      margin-bottom: 1.25rem;
    }
    .account-card h2 {
      font-family: 'Lilita One', cursive;
      font-size: 1.35rem;
      color: var(--text);
      margin-bottom: 0.75rem;
    }
    .account-field {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid var(--border);
      font-size: 14px;
    }
    .account-field:last-child { border-bottom: none; }
    .account-field span:first-child { 
      color: #ffffff;
      font-weight: 700; }
    .account-badge {
      font-size: 11px;
      font-weight: 800;
      padding: 2px 8px;
      border-radius: 20px;
      background: var(--purple);
      color: var(--button-text);
    }
    .admin-user-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
    }
    .admin-user-row:last-child { border-bottom: none; }
    .admin-toggle-btn {
      padding: 5px 12px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 800;
      font-family: 'Nunito', sans-serif;
      cursor: pointer;
      border: 1.5px solid var(--border2);
      background: transparent;
      color: var(--text2);
      transition: all 0.15s;
    }
    .admin-toggle-btn.is-admin {
      background: rgba(124, 58, 237, 0.2);
      border-color: var(--purple2);
      color: var(--purple3);
    }

    .post-author-preview {
      font-size: 14px;
      font-weight: 800;
      color: var(--text);
      margin: 0;
      padding: 8px 12px;
      background: var(--bg3);
      border-radius: 8px;
      border: 1px solid var(--border);
    }
    .owner-author-settings {
      background: var(--bg3);
      border: 1px solid var(--border2);
      border-radius: var(--radius-sm);
      padding: 0 12px 4px;
    }

    /* ── Admin post list in modal ── */
    .admin-post-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 12px;
      background: var(--bg3);
      border-radius: 8px;
      margin-bottom: 8px;
      gap: 10px;
    }
    .admin-post-item-title { font-size: 13px; font-weight: 700; color: var(--text); flex: 1; }
    .btn-delete {
      padding: 4px 10px;
      background: rgba(239,68,68,0.15);
      border: 1px solid #ef4444;
      border-radius: 6px;
      color: #f87171;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      font-family: 'Nunito', sans-serif;
      white-space: nowrap;
    }

    /* ── Article / Single Post Page ── */
    .post-page {
      display: none;
    }
    .post-page.active {
      display: block;
    }
    .post-page-wrap {
      max-width: 1630px;
      margin: 0 auto;
      padding: 2rem 1.5rem 5rem;
    }

    /* Top bar: back link + copy URL */
    .post-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
      gap: 10px;
    }
    .post-back {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 700;
      color: var(--text2);
      cursor: pointer;
      background: none;
      border: none;
      font-family: 'Nunito', sans-serif;
      padding: 0;
      transition: color 0.15s;
      text-decoration: none;
    }
    .post-back:hover { color: var(--text); }

    .post-copy-url {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 13px;
      font-weight: 700;
      color: var(--text3);
      cursor: pointer;
      background: none;
      border: none;
      font-family: 'Nunito', sans-serif;
      padding: 6px 12px;
      border-radius: 8px;
      transition: background 0.15s, color 0.15s;
    }
    .post-copy-url:hover { background: var(--bg3); color: var(--text2); }
    .post-copy-url svg { flex-shrink: 0; }

    /* Two-column header layout */
    .post-header-grid {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 2rem;
      align-items: start;
      margin-bottom: 1.75rem;
      padding-bottom: 1.75rem;
      border-bottom: 1px solid var(--border);
    }
    .post-header-left { min-width: 0; }

    .post-title {
      font-family: 'Lilita One', cursive;
      font-size: 2.2rem;
      color: var(--text);
      margin-bottom: 0.4rem;
      line-height: 1.2;
    }
    .post-subtitle {
      font-size: 13.5px;
      color: var(--text3);
      font-weight: 600;
      margin-bottom: 1rem;
      line-height: 1.5;
    }

    /* Prev / Next navigation */
    .post-nav {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-bottom: 1rem;
    }
    .post-nav-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 13px;
      font-weight: 700;
      color: var(--text2);
      background: none;
      border: none;
      font-family: 'Nunito', sans-serif;
      padding: 4px 2px;
      cursor: pointer;
      transition: color 0.15s;
      text-decoration: none;
    }
    .post-nav-btn:hover { color: var(--text); }
    .post-nav-btn.disabled { opacity: 0.3; pointer-events: none; }
    .post-nav-sep {
      color: var(--border2);
      font-size: 14px;
      padding: 0 4px;
      user-select: none;
    }

    /* Author row */
    .post-meta {
      font-size: 13px;
      color: var(--text3);
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .post-meta-avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--bg3);
      border: 1.5px solid var(--border2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      flex-shrink: 0;
      overflow: hidden;
    }
    .post-meta-avatar img { width: 100%; height: 100%; object-fit: cover; }

    /* Banner thumbnail (right side) */
    .post-header-thumb {
      width: 340px;
      height: 210px;
      object-fit: cover;
      border-radius: 10px;
      display: block;
      flex-shrink: 0;
    }
    .post-header-thumb-placeholder {
      width: 340px;
      height: 210px;
      border-radius: 10px;
      background: var(--bg3);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3rem;
      flex-shrink: 0;
    }

    /* Body */
    .post-body {
      font-size: 15px;
      color: var(--text2);
      line-height: 1.85;
      white-space: pre-wrap;
    }
    .post-body a {
      color: cyan;
      text-decoration: underline;
    }
    .post-body img {
      max-width: 100%;
      border-radius: 8px;
      margin: 0.5rem 0;
    }
    .post-body h1 { font-size: 1.5em; font-weight: 800; color: var(--text); margin: 1.25rem 0 0.4rem; }
    .post-body h2 { font-size: 1.2em; font-weight: 800; color: var(--text); margin: 1rem 0 0.3rem; }
    .post-body strong { color: var(--text); }

    @media (max-width: 700px) {
      .post-header-grid { grid-template-columns: 1fr; }
      .post-header-thumb,
      .post-header-thumb-placeholder { width: 100%; height: 180px; }
      .post-title { font-size: 1.6rem; }
    }

    /* ── Countdowns section on news page ── */
    .countdowns-section { margin-bottom: 2.5rem; }
    .countdowns-section .section-title { font-size: 18px; margin-bottom: 4px; }
    .countdowns-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 12px;
      margin-top: 1rem;
    }
    .cd-news-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.1rem 1.2rem;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    .cd-news-card .cd-label {
      display: flex; align-items: center; gap: 6px;
      font-size: 10.5px; font-weight: 800; color: var(--text2);
      text-transform: uppercase; letter-spacing: 0.7px;
    }
    .cd-news-card .cd-title { font-size: 14px; font-weight: 800; color: var(--text); }
    .cd-news-card .cd-desc  { font-size: 12.5px; color: var(--text2); line-height: 1.5; }
    .cd-news-card .cd-time  { font-family: 'Lilita One', cursive; font-size: 24px; color: var(--text); letter-spacing: 1px; margin-top: 4px; }
    .cd-news-card .cd-time.ended { color: var(--text3); font-size: 16px; }
    .cd-news-card .cd-footer { font-size: 11px; color: var(--text3); margin-top: 2px; }
    .btn-cd-delete {
      align-self: flex-end;
      padding: 3px 9px;
      background: rgba(239,68,68,0.12);
      border: 1px solid #ef4444;
      border-radius: 6px;
      color: #f87171;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      font-family: 'Nunito', sans-serif;
    }

    /* ── Admin tabs ── */
    .admin-tabs {
      display: flex; gap: 6px; margin-bottom: 1.5rem;
    }
    .admin-tab-btn {
      background: transparent;
      border: 1.5px solid var(--border2);
      border-radius: var(--radius-sm);
      color: var(--text2);
      font-family: 'Nunito', sans-serif;
      font-size: 12px;
      font-weight: 700;
      padding: 5px 14px;
      cursor: pointer;
      transition: all 0.15s;
    }
    .admin-tab-btn:hover  { border-color: var(--purple2); color: var(--text); }
    .admin-tab-btn.active { background: var(--purple); border-color: var(--purple); color: var(--button-text); }
    .admin-tab-panel { display: none; }
    .admin-tab-panel.active { display: block; }

/* ══════════════════════════════
   SITE FOOTER
══════════════════════════════ */
.site-footer {
  background: #000;
  background-image: linear-gradient(180deg, rgba(124, 58, 237, 0.28) 0%, transparent 140px);
  border-top: 1px solid var(--nav-border);
  margin: 0;
  padding: 3rem 0 2.5rem;
}
.footer-inner {
  max-width: 96%;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(200px, 2fr) 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-logo-brawl { color: #38bdf8; }
.footer-logo-map { color: #fff; }
.footer-logo-star {
  color: #facc15;
  font-size: 0.85em;
  margin-left: 0.1em;
}
.footer-copy {
  font-size: 13px;
  color: var(--text2);
  margin: 0;
}
.footer-disclaimer {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.65;
  margin: 0;
  max-width: 380px;
}
.footer-disclaimer a {
  color: #38bdf8;
  text-decoration: none;
}
.footer-disclaimer a:hover { text-decoration: underline; }
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text2);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
.footer-link {
  font-size: 13.5px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.15s;
  width: fit-content;
}
.footer-link:hover { color: #fff; }
.footer-link-active {
  color: #38bdf8 !important;
}
html[data-theme="light"] .site-footer {
  background: var(--bg2);
  background-image: linear-gradient(180deg, rgba(124, 58, 237, 0.12) 0%, transparent 120px);
}
html[data-theme="light"] .footer-logo-map { color: var(--text); }
html[data-theme="light"] .footer-link-active { color: var(--purple) !important; }

/* Main content grows so footer stays at viewport bottom on short pages */
.static-page,
.cl-wrap,
body > main,
body > .page.active {
  flex: 1 0 auto;
  width: 100%;
}

.static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 1rem;
}
.static-page h1 {
  font-family: 'Lilita One', cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text2);
}
.static-page p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 15px;
}
.static-page a { color: #38bdf8; }