/* ============================================================
   FLB Wiki — Design System  (v3 — Premium)
   ============================================================ */

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

:root {
  /* Layout constants (shared across all themes) */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 32px;
  --topbar-h: 62px;
  --page-max: 1100px;
}

/* ── Dark (default) ─────────────────────────────────────────── */
:root,
[data-theme="dark"] {
  --bg: #050913;
  --bg-2: #09112a;
  --bg-3: #0d1838;
  --panel-flat: #0d1838;
  --panel-2: #111e40;
  --panel-hover: #172650;
  --input-bg: rgba(9, 17, 42, .7);
  --input-bg-focus: rgba(13, 24, 64, .7);
  --border: rgba(80, 130, 220, .11);
  --border-2: rgba(80, 130, 220, .22);
  --border-focus: #6366f1;
  --border-card: rgba(80, 130, 220, .15);
  --line: rgba(80, 130, 220, .13);
  --text: #e8eeff;
  --text-muted: #6b88c0;
  --text-dim: #2d4070;
  --brand: #f5a623;
  --brand-2: #ffbe55;
  --brand-dim: rgba(245, 166, 35, .12);
  --accent: #6366f1;
  --accent-2: #818cf8;
  --accent-dim: rgba(99, 102, 241, .12);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6, 182, 212, .12);
  --ok: #10b981;
  --ok-dim: rgba(16, 185, 129, .12);
  --danger: #ef4444;
  --danger-dim: rgba(239, 68, 68, .1);
  --warn: #f59e0b;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .55);
  --shadow-md: 0 8px 36px rgba(0, 0, 0, .60);
  --shadow-lg: 0 24px 72px rgba(0, 0, 0, .70);
  --shadow-brand: 0 4px 24px rgba(245, 166, 35, .22);
  --shadow-accent: 0 4px 24px rgba(99, 102, 241, .24);
  --topbar-bg: rgba(5, 9, 19, .82);
  --topbar-border: rgba(255, 255, 255, .05);
  --body-gradient: radial-gradient(ellipse 80% 50% at 10% -10%, rgba(99, 102, 241, .13) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(245, 166, 35, .08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(6, 182, 212, .04) 0%, transparent 70%);
  --surface-1: rgba(13, 24, 56, .6);
  --surface-2: rgba(9, 17, 42, .7);
  --surface-3: rgba(5, 9, 19, .6);
  --surface-panel: rgba(13, 24, 56, .85);
  --surface-overlay: rgba(5, 9, 19, .75);
  --tint: rgba(255, 255, 255, .06);
  color-scheme: dark;
}

/* ── Light ──────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg: #f4f5f8;
  --bg-2: #e9ebf0;
  --bg-3: #dde0e8;
  --panel-flat: #ffffff;
  --panel-2: #f0f1f5;
  --panel-hover: #e4e6ee;
  --input-bg: #fff;
  --input-bg-focus: #fff;
  --border: rgba(40, 50, 80, .12);
  --border-2: rgba(40, 50, 80, .20);
  --border-focus: #6366f1;
  --border-card: rgba(40, 50, 80, .10);
  --line: rgba(40, 50, 80, .10);
  --text: #1a1f2e;
  --text-muted: #5a6380;
  --text-dim: #9ca3b8;
  --brand: #d48b0a;
  --brand-2: #b87a07;
  --brand-dim: rgba(212, 139, 10, .10);
  --accent: #4f46e5;
  --accent-2: #6366f1;
  --accent-dim: rgba(79, 70, 229, .08);
  --cyan: #0891b2;
  --cyan-dim: rgba(8, 145, 178, .08);
  --ok: #059669;
  --ok-dim: rgba(5, 150, 105, .08);
  --danger: #dc2626;
  --danger-dim: rgba(220, 38, 38, .06);
  --warn: #d97706;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);
  --shadow-brand: 0 4px 24px rgba(212, 139, 10, .12);
  --shadow-accent: 0 4px 24px rgba(79, 70, 229, .12);
  --topbar-bg: rgba(255, 255, 255, .88);
  --topbar-border: rgba(0, 0, 0, .06);
  --body-gradient: radial-gradient(ellipse 80% 50% at 10% -10%, rgba(79, 70, 229, .05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(212, 139, 10, .04) 0%, transparent 55%);
  --surface-1: rgba(0, 0, 0, .03);
  --surface-2: rgba(0, 0, 0, .02);
  --surface-3: rgba(0, 0, 0, .04);
  --surface-panel: rgba(255, 255, 255, .95);
  --surface-overlay: rgba(0, 0, 0, .06);
  --tint: rgba(0, 0, 0, .05);
  color-scheme: light;
}

/* ── Midnight (high contrast dark) ──────────────────────────── */
[data-theme="midnight"] {
  --bg: #000000;
  --bg-2: #0a0a0e;
  --bg-3: #111118;
  --panel-flat: #111118;
  --panel-2: #18181f;
  --panel-hover: #222230;
  --input-bg: rgba(10, 10, 14, .8);
  --input-bg-focus: rgba(18, 18, 24, .8);
  --border: rgba(160, 170, 200, .14);
  --border-2: rgba(160, 170, 200, .24);
  --border-focus: #818cf8;
  --border-card: rgba(160, 170, 200, .12);
  --line: rgba(160, 170, 200, .14);
  --text: #f0f0f5;
  --text-muted: #9399b0;
  --text-dim: #50556a;
  --brand: #f5a623;
  --brand-2: #ffbe55;
  --brand-dim: rgba(245, 166, 35, .14);
  --accent: #818cf8;
  --accent-2: #a5b4fc;
  --accent-dim: rgba(129, 140, 248, .14);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, .12);
  --ok: #34d399;
  --ok-dim: rgba(52, 211, 153, .12);
  --danger: #f87171;
  --danger-dim: rgba(248, 113, 113, .12);
  --warn: #fbbf24;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .7);
  --shadow-md: 0 8px 36px rgba(0, 0, 0, .75);
  --shadow-lg: 0 24px 72px rgba(0, 0, 0, .85);
  --shadow-brand: 0 4px 24px rgba(245, 166, 35, .25);
  --shadow-accent: 0 4px 24px rgba(129, 140, 248, .28);
  --topbar-bg: rgba(0, 0, 0, .88);
  --topbar-border: rgba(255, 255, 255, .08);
  --body-gradient: none;
  --surface-1: rgba(24, 24, 31, .7);
  --surface-2: rgba(10, 10, 14, .8);
  --surface-3: rgba(0, 0, 0, .5);
  --surface-panel: rgba(18, 18, 24, .9);
  --surface-overlay: rgba(0, 0, 0, .7);
  --tint: rgba(255, 255, 255, .07);
  color-scheme: dark;
}

/* ── Rose ───────────────────────────────────────────────────── */
[data-theme="rose"] {
  --bg: #0f0a12;
  --bg-2: #170e1e;
  --bg-3: #1e1228;
  --panel-flat: #1e1228;
  --panel-2: #261832;
  --panel-hover: #30203e;
  --input-bg: rgba(23, 14, 30, .7);
  --input-bg-focus: rgba(30, 18, 40, .7);
  --border: rgba(200, 120, 200, .11);
  --border-2: rgba(200, 120, 200, .22);
  --border-focus: #e879f9;
  --border-card: rgba(200, 120, 200, .13);
  --line: rgba(200, 120, 200, .12);
  --text: #f0e4f8;
  --text-muted: #a87cbb;
  --text-dim: #503868;
  --brand: #f5a623;
  --brand-2: #ffbe55;
  --brand-dim: rgba(245, 166, 35, .12);
  --accent: #d946ef;
  --accent-2: #e879f9;
  --accent-dim: rgba(217, 70, 239, .12);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6, 182, 212, .12);
  --ok: #10b981;
  --ok-dim: rgba(16, 185, 129, .12);
  --danger: #f43f5e;
  --danger-dim: rgba(244, 63, 94, .1);
  --warn: #f59e0b;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .55);
  --shadow-md: 0 8px 36px rgba(0, 0, 0, .60);
  --shadow-lg: 0 24px 72px rgba(0, 0, 0, .70);
  --shadow-brand: 0 4px 24px rgba(245, 166, 35, .22);
  --shadow-accent: 0 4px 24px rgba(217, 70, 239, .24);
  --topbar-bg: rgba(15, 10, 18, .82);
  --topbar-border: rgba(255, 255, 255, .05);
  --body-gradient: radial-gradient(ellipse 80% 50% at 10% -10%, rgba(217, 70, 239, .12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(245, 166, 35, .07) 0%, transparent 55%);
  --surface-1: rgba(30, 18, 40, .6);
  --surface-2: rgba(23, 14, 30, .7);
  --surface-3: rgba(15, 10, 18, .5);
  --surface-panel: rgba(30, 18, 40, .85);
  --surface-overlay: rgba(15, 10, 18, .7);
  color-scheme: dark;
}

/* ── Forest (dark green) ────────────────────────────────────── */
[data-theme="forest"] {
  --bg: #040d08;
  --bg-2: #071410;
  --bg-3: #0a1e16;
  --panel-flat: #0a1e16;
  --panel-2: #0f2a1e;
  --panel-hover: #163826;
  --input-bg: rgba(7, 20, 16, .7);
  --input-bg-focus: rgba(10, 30, 22, .7);
  --border: rgba(50, 180, 100, .11);
  --border-2: rgba(50, 180, 100, .22);
  --border-focus: #22c55e;
  --border-card: rgba(50, 180, 100, .13);
  --line: rgba(50, 180, 100, .12);
  --text: #dff5e8;
  --text-muted: #5a9e72;
  --text-dim: #1e4a30;
  --brand: #f5a623;
  --brand-2: #ffbe55;
  --brand-dim: rgba(245, 166, 35, .12);
  --accent: #22c55e;
  --accent-2: #4ade80;
  --accent-dim: rgba(34, 197, 94, .12);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6, 182, 212, .12);
  --ok: #10b981;
  --ok-dim: rgba(16, 185, 129, .12);
  --danger: #ef4444;
  --danger-dim: rgba(239, 68, 68, .1);
  --warn: #f59e0b;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .55);
  --shadow-md: 0 8px 36px rgba(0, 0, 0, .60);
  --shadow-lg: 0 24px 72px rgba(0, 0, 0, .70);
  --shadow-brand: 0 4px 24px rgba(245, 166, 35, .22);
  --shadow-accent: 0 4px 24px rgba(34, 197, 94, .24);
  --topbar-bg: rgba(4, 13, 8, .82);
  --topbar-border: rgba(255, 255, 255, .05);
  --body-gradient: radial-gradient(ellipse 80% 50% at 10% -10%, rgba(34, 197, 94, .10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(245, 166, 35, .06) 0%, transparent 55%);
  --surface-1: rgba(10, 30, 22, .6);
  --surface-2: rgba(7, 20, 16, .7);
  --surface-3: rgba(4, 13, 8, .6);
  --surface-panel: rgba(10, 30, 22, .85);
  --surface-overlay: rgba(4, 13, 8, .75);
  --tint: rgba(255, 255, 255, .06);
  color-scheme: dark;
}

/* ── Ocean (teal) ───────────────────────────────────────────── */
[data-theme="ocean"] {
  --bg: #030d14;
  --bg-2: #05131e;
  --bg-3: #081c2a;
  --panel-flat: #081c2a;
  --panel-2: #0c2436;
  --panel-hover: #113044;
  --input-bg: rgba(5, 19, 30, .7);
  --input-bg-focus: rgba(8, 28, 42, .7);
  --border: rgba(6, 182, 212, .12);
  --border-2: rgba(6, 182, 212, .24);
  --border-focus: #06b6d4;
  --border-card: rgba(6, 182, 212, .14);
  --line: rgba(6, 182, 212, .12);
  --text: #daf4fb;
  --text-muted: #4a8fa8;
  --text-dim: #1a4a5e;
  --brand: #f5a623;
  --brand-2: #ffbe55;
  --brand-dim: rgba(245, 166, 35, .12);
  --accent: #06b6d4;
  --accent-2: #22d3ee;
  --accent-dim: rgba(6, 182, 212, .12);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6, 182, 212, .12);
  --ok: #10b981;
  --ok-dim: rgba(16, 185, 129, .12);
  --danger: #ef4444;
  --danger-dim: rgba(239, 68, 68, .1);
  --warn: #f59e0b;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .55);
  --shadow-md: 0 8px 36px rgba(0, 0, 0, .60);
  --shadow-lg: 0 24px 72px rgba(0, 0, 0, .70);
  --shadow-brand: 0 4px 24px rgba(245, 166, 35, .22);
  --shadow-accent: 0 4px 24px rgba(6, 182, 212, .28);
  --topbar-bg: rgba(3, 13, 20, .82);
  --topbar-border: rgba(255, 255, 255, .05);
  --body-gradient: radial-gradient(ellipse 80% 50% at 10% -10%, rgba(6, 182, 212, .12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(245, 166, 35, .06) 0%, transparent 55%);
  --surface-1: rgba(8, 28, 42, .6);
  --surface-2: rgba(5, 19, 30, .7);
  --surface-3: rgba(3, 13, 20, .6);
  --surface-panel: rgba(8, 28, 42, .85);
  --surface-overlay: rgba(3, 13, 20, .75);
  --tint: rgba(255, 255, 255, .06);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  background-image: var(--body-gradient);
  background-attachment: fixed;
}

::-webkit-scrollbar {
  width: 5px
}

::-webkit-scrollbar-track {
  background: transparent
}

::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 10px
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(80, 130, 220, .4)
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 18px;
}

.topbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, .35) 30%, rgba(245, 166, 35, .3) 60%, transparent);
  pointer-events: none;
}

.brand {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: filter .2s;
  filter: drop-shadow(0 0 8px rgba(245, 166, 35, .2));
}

.brand:hover {
  filter: drop-shadow(0 0 18px rgba(245, 166, 35, .45))
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain
}

.brand-text {
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.4px;
  background: linear-gradient(125deg, var(--brand) 0%, var(--brand-2) 40%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topnav {
  display: flex;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.topnav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  white-space: nowrap;
  position: relative;
}

.topnav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06)
}

.topnav a.active {
  color: var(--brand-2);
  background: rgba(245, 166, 35, .1);
}

.user-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto
}

.user-menu-wrap {
  position: relative
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  cursor: pointer;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  transition: background .15s, border-color .15s, box-shadow .15s;
  line-height: 1;
}

.user-btn:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(99, 102, 241, .4);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .08)
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .08);
}

.user-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .08), var(--shadow-brand);
  overflow: hidden;
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--card);
  transition: background .15s;
}

.avatar-edit-btn:hover {
  background: var(--brand-2);
}

.user-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.chevron {
  font-size: 10px;
  color: var(--text-dim)
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  background: var(--surface-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(99, 102, 241, .08);
  opacity: 0;
  transform: translateY(-6px) scale(.97);
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 200;
  overflow: hidden;
  padding: 5px 0;
}

.dropdown.open {
  opacity: 1;
  transform: none;
  pointer-events: all
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: background .1s, color .1s;
}

.dropdown-item:hover {
  background: rgba(99, 102, 241, .08);
  color: var(--accent-2)
}

.danger-item {
  color: var(--danger) !important
}

.danger-item:hover {
  background: var(--danger-dim)
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all .18s cubic-bezier(.4, 0, .2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: -100%;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .15) 50%, transparent 65%);
  transition: inset .5s;
}

.btn-primary:hover:not(:disabled)::after {
  inset: -20% -20% -20% 110%
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #e8900a 100%);
  color: #120c02;
  border-color: rgba(245, 166, 35, .4);
  box-shadow: 0 2px 10px rgba(245, 166, 35, .2)
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 100%);
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px)
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
  color: #fff;
  border-color: rgba(99, 102, 241, .4);
  box-shadow: 0 2px 10px rgba(99, 102, 241, .2)
}

.btn-accent:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px)
}

.btn-outline {
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  border-color: var(--border-2)
}

.btn-outline:hover:not(:disabled) {
  border-color: rgba(99, 102, 241, .5);
  background: rgba(99, 102, 241, .06);
  color: var(--accent-2)
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, .05)
}

.btn-danger {
  background: var(--danger-dim);
  color: var(--danger);
  border-color: rgba(239, 68, 68, .25)
}

.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, .18);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .1)
}

.btn-sm {
  padding: 6px 13px;
  font-size: 13px
}

.btn-lg {
  padding: 14px 30px;
  font-size: 15px;
  border-radius: var(--radius-lg)
}

.btn-full {
  width: 100%
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .5px;
  text-transform: uppercase
}

.form-group input,
.form-group select,
.form-group textarea,
.input-field {
  background: var(--input-bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.input-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .15), 0 2px 8px rgba(99, 102, 241, .1);
  background: var(--input-bg-focus);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim)
}

.form-hint {
  font-size: 12px;
  color: var(--text-dim)
}

.form-error {
  font-size: 13px;
  color: var(--danger);
  padding: 10px 14px;
  background: var(--danger-dim);
  border: 1px solid rgba(239, 68, 68, .22);
  border-radius: var(--radius-sm)
}

.form-success {
  font-size: 13px;
  color: var(--ok);
  padding: 10px 14px;
  background: var(--ok-dim);
  border: 1px solid rgba(16, 185, 129, .22);
  border-radius: var(--radius-sm)
}

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--topbar-h));
  padding: 40px 16px;
  position: relative;
}

.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 20% 30%, rgba(99, 102, 241, .08), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(245, 166, 35, .05), transparent 60%);
}

.auth-card {
  background: var(--surface-panel);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99, 102, 241, .1);
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, .6), rgba(245, 166, 35, .4), transparent);
}

.auth-card-head {
  text-align: center;
  margin-bottom: 32px
}

.auth-logo {
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(125deg, var(--brand), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  letter-spacing: -.3px;
  display: block;
}

.auth-card-head h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -.3px
}

.auth-card-head p {
  color: var(--text-muted);
  font-size: 14px
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted)
}

.auth-switch a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600
}

.auth-switch a:hover {
  color: var(--brand-2)
}

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 30px 22px 80px;
  flex: 1;
  width: 100%;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 48px 40px 44px;
}

.hero-banner {
  padding: 0;
  overflow: hidden;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 100%);
  z-index: 2;
  opacity: 0;
  transition: opacity .3s ease;
}

.hero-banner:hover .hero-banner-overlay {
  opacity: 1;
}

.hero-banner .kicker,
.hero-banner h1,
.hero-banner .subtitle {
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

.hero-banner .subtitle {
  margin-bottom: 0;
}

.hero-banner::before,
.hero-banner::after {
  display: none;
}

.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(99, 102, 241, .09), transparent 65%),
    radial-gradient(ellipse 40% 60% at 15% 80%, rgba(245, 166, 35, .06), transparent 65%),
    radial-gradient(ellipse 30% 30% at 60% 10%, rgba(6, 182, 212, .06), transparent 55%);
  pointer-events: none;
}

.hero::after,
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .016) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent-2), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  display: block;
  position: relative;
  z-index: 1;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.5px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.subtitle {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin-bottom: 28px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ── Tool tabs (Random Build / Suggest Guide combined page) ─── */
.tool-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 4px;
  position: relative;
  z-index: 1;
}

.tool-tab {
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-2);
  background: var(--panel-flat);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.tool-tab:hover {
  border-color: var(--brand);
  color: var(--text);
}

.tool-tab.active {
  background: var(--brand-dim);
  border-color: var(--brand);
  color: var(--brand-2);
}

#tab-random,
#tab-suggest {
  padding-top: 4px;
}

.search-wrap,
.hero-search {
  position: relative;
  max-width: 520px;
  z-index: 1
}

.search-wrap input,
.hero-search input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  background: var(--surface-overlay);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  backdrop-filter: blur(8px);
  transition: border-color .15s, box-shadow .15s;
}

.search-wrap input:focus,
.hero-search input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, .6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .12), 0 4px 20px rgba(0, 0, 0, .4);
}

.search-wrap input::placeholder,
.hero-search input::placeholder {
  color: var(--text-dim)
}

.hero-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--text-dim);
  pointer-events: none;
}

.status-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  align-items: center;
  position: relative;
  z-index: 1
}

.panel {
  background: linear-gradient(160deg, var(--panel-2) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 18px;
  position: relative;
  transition: border-color .2s;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .065), transparent);
  pointer-events: none;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px
}

.panel-head h2,
.panel-head-text h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -.2px
}

.panel-head p,
.panel-head-text p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 0
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 6px
}

.guide-card {
  background: linear-gradient(160deg, rgba(18, 30, 66, .9) 0%, rgba(11, 20, 48, .9) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color .2s, transform .2s cubic-bezier(.4, 0, .2, 1), box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--brand), var(--cyan));
  opacity: 0;
  transition: opacity .2s;
}

.guide-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, .07), transparent 70%);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}

.guide-card:hover {
  border-color: rgba(99, 102, 241, .3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(99, 102, 241, .12)
}

.guide-card:hover::before,
.guide-card:hover::after {
  opacity: 1
}

.guide-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -.15px
}

.card-link {
  color: var(--text);
  text-decoration: none
}

.card-link:hover h3 {
  color: var(--brand-2)
}

.guide-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  gap: 6px
}

.card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap
}

.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent-2);
  border: 1px solid rgba(99, 102, 241, .2)
}

.tag-lane {
  background: var(--brand-dim);
  color: var(--brand-2);
  border-color: rgba(245, 166, 35, .22)
}

.tag-draft {
  background: rgba(107, 136, 192, .06);
  color: var(--text-muted);
  border-color: var(--border)
}

.card-score {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  flex-shrink: 0
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, .025)
}

.badge.soft {
  color: var(--text-muted)
}

.badge.ok {
  color: var(--ok);
  border-color: rgba(16, 185, 129, .3);
  background: var(--ok-dim)
}

.badge.warn {
  color: var(--warn);
  border-color: rgba(245, 158, 11, .3);
  background: rgba(245, 158, 11, .08)
}

.badge.err {
  color: var(--danger);
  border-color: rgba(239, 68, 68, .25);
  background: var(--danger-dim)
}

.meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface-1);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: all .15s
}

.pill:hover,
.pill.active {
  border-color: rgba(99, 102, 241, .45);
  background: rgba(99, 102, 241, .1);
  color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .06)
}

.champion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  color: var(--accent-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500
}

.btn-link:hover {
  color: var(--brand-2);
  text-decoration: underline
}

.back-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px
}

.back-link:hover {
  color: var(--text)
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px
}

.page-head h1 {
  font-size: 26px;
  font-weight: 900;
  margin: 0;
  letter-spacing: -.4px
}

.page-head-actions {
  display: flex;
  gap: 8px;
  align-items: center
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center
}

.filter-bar input,
.filter-bar select {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: var(--radius);
  padding: 9px 13px;
  font-size: 14px;
  font-family: inherit;
  flex: 1;
  min-width: 140px;
  transition: border-color .15s
}

.filter-bar input:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .12)
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 0 0 16px
}

.filters input,
.filters select {
  width: 100%;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius);
  padding: 10px 13px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s
}

.filters input:focus,
.filters select:focus {
  outline: none;
  border-color: var(--accent)
}

.auth-box {
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-muted)
}

.vote-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border-2);
  background: rgba(17, 30, 64, .8);
  color: var(--text);
  transition: all .15s
}

.vote-btn:hover {
  border-color: rgba(99, 102, 241, .4);
  background: rgba(99, 102, 241, .08);
  color: var(--accent-2)
}

.vote-btn:disabled {
  opacity: .45;
  cursor: not-allowed
}

.vote-btn-down {
  border-color: rgba(239, 68, 68, .2)
}

.vote-btn-down:hover {
  border-color: var(--danger);
  background: var(--danger-dim);
  color: var(--danger)
}

.vote-btn-report {
  border-color: rgba(239, 68, 68, .12);
  background: var(--danger-dim);
  color: var(--danger);
  opacity: .75
}

.vote-btn-report:hover {
  opacity: 1;
  border-color: var(--danger)
}

.vote-btn-bookmark-active {
  border-color: #f5a623 !important;
  background: rgba(245, 166, 35, .12) !important;
  color: #f5a623 !important;
}

.vote-btn-active {
  border-color: #34d399 !important;
  background: rgba(52, 211, 153, .12) !important;
  color: #34d399 !important;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, .15);
}

.vote-btn-down-active {
  border-color: var(--danger) !important;
  background: var(--danger-dim) !important;
  color: var(--danger) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .15);
}

/* ── Vote Widget (upvote / score / downvote) ── */
.vote-widget {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(17, 30, 64, .9);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  overflow: hidden;
}

.vote-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--text-muted, #888);
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
  padding: 0;
  font-size: 0;
}

.vote-arrow:hover {
  background: rgba(99, 102, 241, .1);
  color: var(--accent-2, #818cf8);
}

.vote-arrow-down:hover {
  background: rgba(239, 68, 68, .08);
  color: var(--danger, #ef4444);
}

.vote-arrow:active {
  transform: scale(0.9);
}

.vote-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

.vote-arrow svg {
  flex-shrink: 0;
}

.vote-arrow-up.vote-arrow-active {
  color: #34d399;
  background: rgba(52, 211, 153, .12);
}

.vote-arrow-down.vote-arrow-active {
  color: var(--danger, #ef4444);
  background: rgba(239, 68, 68, .1);
}

.vote-score {
  min-width: 40px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--text, #fff);
  padding: 0 4px;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--border-2);
  border-right: 1px solid var(--border-2);
  height: 42px;
  line-height: 42px;
  user-select: none;
}

/* Compact vote widget for list rows */
.vote-widget-sm {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-3, #23243a);
  border: 1px solid var(--border-2, #2d2e4a);
}

.vote-widget-sm .vote-arrow {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted, #888);
  cursor: pointer;
  transition: background .15s, color .15s;
  padding: 0;
  font-size: 0;
}

.vote-widget-sm .vote-arrow svg {
  width: 14px;
  height: 14px;
}

.vote-widget-sm .vote-score {
  min-width: 24px;
  font-size: 12px;
  font-weight: 700;
  height: 28px;
  line-height: 28px;
  padding: 0 2px;
}

.vote-widget-sm .vote-arrow-up.vote-arrow-active {
  color: #34d399;
  background: rgba(52, 211, 153, .12);
}

.vote-widget-sm .vote-arrow-down.vote-arrow-active {
  color: var(--danger, #ef4444);
  background: rgba(239, 68, 68, .1);
}

.follow-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 22px;
  border-radius: 20px;
  background: var(--brand);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .3px;
  transition: background .15s, transform .1s;
}

.follow-cta-btn:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
}

.follow-cta-btn.vote-btn-active {
  background: rgba(52, 211, 153, .12) !important;
  border: 1px solid #34d399 !important;
  color: #34d399 !important;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, .15);
}

.comment-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-flat);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color .15s
}

.comment-card:hover {
  border-color: var(--border-2)
}

.comment-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px
}

.comment-text {
  font-size: 14px;
  line-height: 1.65
}

.guide-body {
  line-height: 1.8;
  font-size: 15px
}

/* ── Visual Guide Blocks ──────────────────────────────────────── */
.vg-visual {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px
}

/* Header */
.vg-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(18, 30, 70, .95) 0%, rgba(8, 15, 42, .95) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--border-card);
  border-bottom: none;
  position: relative;
  overflow: hidden
}

.vg-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 0% 50%, rgba(99, 102, 241, .09), transparent 65%);
  pointer-events: none
}

.vg-champ-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  border: 2px solid rgba(245, 166, 35, .4);
  box-shadow: 0 0 24px rgba(245, 166, 35, .18);
  object-fit: cover;
  flex-shrink: 0
}

/* Multi-champion header (duo/team) */
.vg-header-multi {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px
}

.vg-multi-champs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap
}

.vg-multi-champ {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px
}

.vg-multi-champ-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #fff);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.vg-multi-champ-lanes {
  display: flex;
  gap: 4px;
  align-items: center;
}

.vg-multi-champ-lanes .vg-lane-icon-main {
  width: 22px;
  height: 22px;
}

.vg-multi-champ-lanes .vg-lane-icon-alt {
  width: 14px;
  height: 14px;
}

.vg-multi-champ-lanes .vg-lane-alts {
  padding-left: 4px;
  margin-left: 0;
}

.vg-multi-champ-sep {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand, #6366f1);
  line-height: 1;
  align-self: center;
  margin: 0 4px;
  opacity: .7
}

/* Guide type badge */
.vg-guide-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase
}

.vg-guide-type-duo {
  background: rgba(99, 102, 241, .15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, .3)
}

.vg-guide-type-team {
  background: rgba(16, 185, 129, .15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, .3)
}

/* Champion build tabs (duo/team) */
.vg-champ-tabs-bar {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-card, #262640);
  border-top: none;
  background: var(--surface, #151520);
  overflow-x: auto
}

.vg-champ-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted, #999);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap
}

.vg-champ-tab img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm, 6px);
  border: 2px solid transparent;
  object-fit: cover
}

.vg-champ-tab:hover {
  background: rgba(99, 102, 241, .06);
  color: var(--text, #fff)
}

.vg-champ-tab-active {
  color: var(--text, #fff);
  border-bottom-color: var(--brand, #6366f1);
  background: rgba(99, 102, 241, .08)
}

.vg-champ-tab-active img {
  border-color: var(--brand, #6366f1);
  box-shadow: 0 0 12px rgba(99, 102, 241, .3)
}

.vg-champ-panel {
  border: 1px solid var(--border-card, #262640);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg)
}

/* Inline ratings section for multi-champ panels */
.vg-section-ratings-inline {
  padding: 16px 20px;
  background: rgba(18, 30, 70, .3);
  border-bottom: 1px solid var(--border-card, #262640)
}

.vg-header-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.vg-guide-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: .01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vg-guide-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 2px;
}

.vg-guide-meta-by {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vg-author-link {
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 600;
}

.vg-author-link:hover {
  text-decoration: underline;
}

.vg-header-multi .vg-guide-title {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.vg-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px
}

.vg-spells-lane {
  display: flex;
  align-items: center;
  gap: 8px
}

.vg-spell-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-2);
  object-fit: cover
}

.vg-lane-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: .85;
  margin-left: 4px
}

.vg-lane-icon-main {
  width: 42px;
  height: 42px;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(245, 166, 35, .7));
  margin-left: 0;
}

.vg-lane-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vg-lane-alts {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-left: 1px solid var(--border-2);
  padding-left: 6px;
  margin-left: 2px;
  opacity: .6;
}

.vg-lane-alts .vg-lane-icon-alt {
  width: 26px;
  height: 26px;
  margin-left: 0;
}

.vg-difficulty-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, .12);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, .25);
  letter-spacing: .5px
}

.vg-ratings {
  display: flex;
  flex-direction: column;
  gap: 5px
}

.vg-rating-row {
  display: flex;
  align-items: center;
  gap: 8px
}

.vg-rating-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 64px;
  text-transform: uppercase;
  letter-spacing: .4px
}

.vg-rating-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  overflow: hidden;
  max-width: 160px
}

.vg-rating-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--brand));
  border-radius: 999px;
  transition: width .4s ease
}

.vg-rating-val {
  font-size: 11px;
  color: var(--text-dim);
  min-width: 30px;
  text-align: right
}

/* Section wrapper */
.vg-section {
  padding: 18px 22px;
  background: rgba(10, 18, 48, .65);
  border: 1px solid var(--border-card);
  border-top: none
}

.vg-summary {
  padding: 14px 22px;
  background: rgba(10, 18, 48, .45);
  border: 1px solid var(--border-card);
  border-bottom: none;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6
}

.vg-section-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text)
}

.vg-section-body p {
  margin: 0 0 10px
}

.vg-section-body p:last-child {
  margin-bottom: 0
}

.vg-section-body ul,
.vg-section-body ol {
  margin: 0 0 10px;
  padding-left: 20px
}

.vg-section-body li {
  margin-bottom: 4px
}

.vg-section-body strong {
  color: var(--brand-light, #a5b4fc)
}

.vg-section-body h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text)
}

.vg-section-body h4 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted)
}

.vg-section-last {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg)
}

.vg-section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--brand-2, #f5a623);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245, 166, 35, 0.25);
  display: flex;
  align-items: center;
  gap: 8px
}

.vg-section-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0;
  text-transform: none
}

/* Pros & Cons */
.vg-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.vg-pc-head {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px
}

.vg-pc-pro-head {
  background: var(--ok-dim);
  color: var(--ok)
}

.vg-pc-con-head {
  background: var(--danger-dim);
  color: var(--danger)
}

.vg-pc-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  line-height: 1.45;
  border-bottom: 1px solid rgba(255, 255, 255, .03)
}

.vg-pc-row:last-child {
  border-bottom: none
}

.vg-pc-icon {
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  margin-top: 1px
}

.vg-pro-icon {
  color: var(--ok)
}

.vg-con-icon {
  color: var(--danger)
}

/* Abilities */
.vg-abilities {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.vg-ability {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-3);
  border: 1px solid var(--border);
  transition: border-color .15s
}

.vg-ability:hover {
  border-color: var(--border-2)
}

.vg-ability-key {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4)
}

.vg-ability-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4)
}

.vg-ability-info {
  flex: 1;
  min-width: 0
}

.vg-ability-info strong {
  font-size: 13.5px;
  font-weight: 700;
  display: block;
  margin-bottom: 3px
}

.vg-ability-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5
}

/* Skill Order */
.vg-skill-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 4px
}

.vg-skill-row {
  display: flex;
  align-items: center;
  gap: 3px
}

.vg-skill-header-row {
  margin-bottom: 2px
}

.vg-skill-key-cell {
  width: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center
}

.vg-skill-level-num {
  width: 26px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 600
}

.vg-skill-key-badge {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff
}

.vg-skill-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.vg-skill-cell {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  font-weight: 700;
  transition: transform .1s
}

.vg-skill-cell-active {
  border-color: transparent;
  box-shadow: 0 0 6px rgba(0, 0, 0, .4)
}

.vg-skill-cell-active:hover {
  transform: scale(1.12)
}

/* Runes */
.vg-runes {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start
}

.vg-rune-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px
}

.vg-rune-col-secondary {
  opacity: .85
}

.vg-rune-tree-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .5px
}

.vg-rune-row {
  display: flex;
  gap: 6px;
  align-items: center
}

.vg-rune-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, .25);
  background: var(--surface-3);
  object-fit: contain;
  padding: 2px;
  transition: transform .15s, border-color .15s
}

.vg-rune-icon:hover {
  transform: scale(1.12);
  border-color: var(--accent)
}

.vg-keystone {
  width: 54px;
  height: 54px;
  border-color: rgba(245, 166, 35, .4);
  box-shadow: 0 0 16px rgba(245, 166, 35, .14)
}

.vg-shard {
  width: 26px;
  height: 26px;
  opacity: .7;
  border-color: var(--border)
}

/* Items */
.vg-item-block {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap
}

.vg-item-block:last-child {
  margin-bottom: 0
}

.vg-item-block-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  min-width: 72px;
  padding-top: 12px
}

.vg-item-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap
}

.vg-item-row-wrap {
  flex-wrap: wrap
}

.vg-item-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative
}

.vg-item-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-2);
  object-fit: cover;
  transition: transform .15s, border-color .15s, box-shadow .15s
}

.vg-item-icon:hover {
  transform: scale(1.1);
  border-color: var(--brand);
  box-shadow: 0 0 14px rgba(245, 166, 35, .28)
}

.vg-item-name {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  max-width: 58px;
  line-height: 1.2;
  word-break: break-word
}

.vg-item-note {
  font-size: 10px;
  color: var(--accent-2);
  text-align: center;
  max-width: 58px;
  line-height: 1.2;
  word-break: break-word
}

.vg-item-recommended .vg-item-icon {
  border-color: rgba(245, 166, 35, .5);
  box-shadow: 0 0 10px rgba(245, 166, 35, .15)
}

.vg-item-rec-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--brand);
  color: #120c02;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 4px
}

.vg-arrow {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 2px;
  align-self: flex-start;
  padding-top: 15px
}

/* Matchups */
.vg-matchup-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px
}

.vg-matchup-filter {
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-card);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s
}

.vg-matchup-filter:hover {
  border-color: var(--border-2);
  color: var(--text)
}

.vg-matchup-filter-active {
  background: var(--accent-dim, rgba(99,102,241,.12));
  color: var(--accent, #818cf8);
  border-color: var(--accent, #818cf8)
}

.vg-matchups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px
}

.vg-matchup {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-card);
  background: var(--surface-2);
  transition: border-color .15s
}

.vg-matchup-easy {
  border-left: 3px solid var(--ok)
}

.vg-matchup-medium {
  border-left: 3px solid var(--warn)
}

.vg-matchup-hard {
  border-left: 3px solid var(--danger)
}

.vg-matchup:hover {
  border-color: var(--border-2)
}

.vg-matchup-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-2)
}

.vg-matchup-info {
  flex: 1;
  min-width: 0
}

.vg-matchup-info strong {
  font-size: 14px;
  font-weight: 700;
  display: block
}

.vg-matchup-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.45
}

.vg-matchup-diff {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 3px
}

.vg-diff-easy {
  background: var(--ok-dim);
  color: var(--ok)
}

.vg-diff-medium {
  background: rgba(245, 158, 11, .08);
  color: var(--warn)
}

.vg-diff-hard {
  background: var(--danger-dim);
  color: var(--danger)
}

/* Synergy strength colors */
.vg-synergy-good {
  border-left: 3px solid #3b82f6
}

.vg-synergy-great {
  border-left: 3px solid #8b5cf6
}

.vg-synergy-perfect {
  border-left: 3px solid #f59e0b
}

.vg-syn-good {
  background: rgba(59, 130, 246, .08);
  color: #3b82f6
}

.vg-syn-great {
  background: rgba(139, 92, 246, .08);
  color: #8b5cf6
}

.vg-syn-perfect {
  background: rgba(245, 158, 11, .08);
  color: #f59e0b
}

@media(max-width:600px) {
  .vg-header {
    flex-direction: column;
    gap: 12px
  }

  .vg-champ-icon {
    width: 60px;
    height: 60px
  }

  .vg-proscons {
    grid-template-columns: 1fr
  }

  .vg-skill-grid {
    font-size: 10px
  }

  .vg-matchups {
    grid-template-columns: 1fr
  }

  .vg-item-block {
    flex-direction: column;
    gap: 6px
  }

  .vg-item-block-label {
    padding-top: 0
  }

  .vg-champ-tab {
    padding: 8px 10px;
    font-size: 12px
  }

  .vg-champ-tab img {
    width: 26px;
    height: 26px
  }

  .vg-multi-champ-sep {
    font-size: 20px
  }

  .vg-multi-champ .vg-champ-icon {
    width: 52px;
    height: 52px
  }
}

.guide-body h2.guide-title-h {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.3px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin: 28px 0 14px
}

.guide-body h3.guide-section-h {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-2);
  margin: 22px 0 10px;
  letter-spacing: -.15px
}

.guide-body h4.guide-sub-h {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 8px
}

.guide-body p {
  margin: 0 0 12px
}

.guide-body ul,
.guide-body ol {
  margin: 0 0 14px 22px
}

.guide-body li {
  margin-bottom: 6px
}

.guide-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0
}

.guide-body code {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 13px;
  font-family: 'Consolas', 'Fira Code', monospace;
  color: var(--accent-2)
}

pre.guide-code-block {
  background: rgba(6, 12, 30, .9);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 12px 0;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  font-family: 'Consolas', 'Fira Code', monospace;
  color: var(--text);
  white-space: pre;
}

pre.guide-code-block code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.comment-text-body pre.guide-code-block {
  margin: 8px 0;
}

.mention-tag {
  color: var(--accent, #818cf8);
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 4px;
  padding: 0 3px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 30px;
  background: linear-gradient(160deg, rgba(18, 30, 66, .95) 0%, rgba(11, 20, 48, .95) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden
}

.profile-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 0% 50%, rgba(99, 102, 241, .07), transparent 65%);
  pointer-events: none
}

.profile-info h2 {
  font-size: 22px;
  margin: 0 0 4px;
  font-weight: 800;
  letter-spacing: -.3px
}

.profile-info .username {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0
}

.profile-info .bio {
  font-size: 14px;
  color: var(--text-muted);
  margin: 8px 0 0;
  max-width: 420px
}

.patch-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0
}

.patch-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted)
}

.patch-list li:last-child {
  border-bottom: none
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-3);
  backdrop-filter: blur(12px);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px
}

.footer-copy {
  color: var(--text-dim)
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .15s
}

.footer-links a:hover {
  color: var(--text-muted)
}

/* ── Cookie Consent banner ──────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  background: rgba(10, 18, 42, .97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(99, 102, 241, .2);
  z-index: 200;
  font-size: .84rem;
  color: var(--text-muted);
  padding: 0 24px
}

.cookie-banner-inner-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  width: 100%;
  max-width: 1100px
}

.cookie-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  width: 100%
}

.cookie-banner-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: rgba(99, 102, 241, .7)
}

.cookie-banner-title {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px
}

.cookie-banner-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim)
}

.cookie-banner-desc a {
  color: var(--brand-2);
  text-decoration: none
}

.cookie-banner-desc a:hover {
  text-decoration: underline
}

.cookie-banner-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0
}

.cookie-toggles {
  display: flex;
  gap: 20px;
  align-items: center
}

.cookie-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px
}

.cookie-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 1px
}

.cookie-toggle-label span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text)
}

.cookie-toggle-label small {
  font-size: 10px;
  color: var(--text-dim)
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  cursor: pointer;
  transition: background .2s, border-color .2s;
  flex-shrink: 0
}

.cookie-switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0
}

.cookie-switch-thumb {
  position: absolute;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3)
}

.cookie-switch-input:checked~.cookie-switch-thumb {
  transform: translateX(16px)
}

.cookie-switch:has(.cookie-switch-input:checked) {
  background: rgba(99, 102, 241, .55);
  border-color: rgba(99, 102, 241, .7)
}

.cookie-switch-locked {
  cursor: not-allowed;
  background: rgba(99, 102, 241, .55);
  border-color: rgba(99, 102, 241, .7);
  opacity: .75
}

.cookie-switch-locked .cookie-switch-thumb {
  transform: translateX(16px)
}

.cookie-banner-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0
}

.cookie-btn {
  padding: 7px 14px;
  border-radius: 7px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap
}

.cookie-btn:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  border-color: rgba(255, 255, 255, .25)
}

.cookie-btn-primary {
  border-color: rgba(99, 102, 241, .45);
  color: #a5b4fc
}

.cookie-btn-primary:hover {
  background: rgba(99, 102, 241, .18);
  border-color: rgba(99, 102, 241, .65);
  color: #c4b5fd
}

hr,
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

@media (max-width:700px) {
  .topbar {
    padding: 0 16px;
    gap: 10px
  }

  .topnav {
    display: none
  }

  .user-widget {
    margin-left: auto
  }

  .page {
    padding: 18px 16px 64px
  }

  .panel {
    padding: 16px
  }

  .hero,
  .page-hero {
    padding: 28px 20px
  }

  .hero h1,
  .page-hero h1 {
    font-size: 26px
  }

  .auth-card {
    padding: 32px 22px;
    margin: 0 4px
  }

  .grid-2 {
    grid-template-columns: 1fr
  }

  .guide-grid {
    grid-template-columns: 1fr
  }

  .page-head {
    flex-wrap: wrap
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 22px 16px
  }

  .footer-inner {
    flex-direction: column;
    text-align: center
  }

  .footer-links {
    justify-content: center
  }

  .cookie-banner {
    padding: 0 16px
  }

  .cookie-banner-inner-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 0
  }

  .cookie-banner-right {
    flex-direction: column;
    align-items: stretch;
    gap: 14px
  }

  .cookie-toggles {
    justify-content: space-around
  }

  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px
  }

  .cookie-btn {
    text-align: center
  }
}

/* ── Email verification banner ──────────────────────────────────────────────── */
.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: linear-gradient(90deg, rgba(79, 70, 229, .18), rgba(124, 58, 237, .18));
  border-bottom: 1px solid rgba(167, 139, 250, .25);
  font-size: 13px;
  color: #c4b5fd;
  line-height: 1.5
}

.verify-banner-resend {
  margin-left: 10px;
  padding: 3px 10px;
  border: 1px solid rgba(167, 139, 250, .4);
  border-radius: 4px;
  background: transparent;
  color: #a78bfa;
  cursor: pointer;
  font-size: 12px;
  transition: background .15s
}

.verify-banner-resend:hover {
  background: rgba(167, 139, 250, .12)
}

.verify-banner-resend:disabled {
  opacity: .5;
  cursor: default
}

.verify-banner-close {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0
}

.verify-banner-close:hover {
  color: #d1d5db
}

/* ── View-as-role banner ────────────────────────────────────────────────────── */
.view-as-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 20px;
  background: linear-gradient(90deg, rgba(245, 166, 35, .15), rgba(245, 166, 35, .08));
  border-bottom: 1px solid rgba(245, 166, 35, .35);
  font-size: 13px;
  color: var(--brand);
  flex-wrap: wrap;
}

.view-as-banner strong {
  color: #fbbf24;
}

.view-as-manage {
  padding: 3px 10px;
  border: 1px solid rgba(245, 166, 35, .4);
  border-radius: 4px;
  color: var(--brand);
  font-size: 12px;
  text-decoration: none;
  transition: background .15s;
}

.view-as-manage:hover {
  background: rgba(245, 166, 35, .12);
}

.view-as-exit {
  background: none;
  border: 1px solid rgba(245, 166, 35, .4);
  border-radius: 4px;
  color: var(--brand);
  cursor: pointer;
  font-size: 12px;
  padding: 3px 10px;
  transition: background .15s;
}

.view-as-exit:hover {
  background: rgba(245, 166, 35, .12);
}

/* ── Admin panel ────────────────────────────────────────────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-2);
}

.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, .02);
}

.admin-role-select {
  padding: 5px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface-3);
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}

.admin-role-select:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-status-active,
.admin-status-inactive {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid;
  font-family: inherit;
  transition: opacity .15s;
}

.admin-status-active {
  background: rgba(52, 211, 153, .12);
  border-color: rgba(52, 211, 153, .4);
  color: #34d399;
}

.admin-status-inactive {
  background: rgba(239, 68, 68, .1);
  border-color: rgba(239, 68, 68, .35);
  color: var(--danger);
}

.admin-status-active:hover {
  opacity: .75;
}

.admin-status-inactive:hover {
  opacity: .75;
}

.admin-view-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}

.admin-view-btn:hover {
  border-color: rgba(99, 102, 241, .5);
  color: var(--text);
}

.admin-view-btn-active {
  border-color: var(--brand) !important;
  background: rgba(245, 166, 35, .12) !important;
  color: var(--brand) !important;
}

.admin-page-btn {
  padding: 5px 11px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  min-width: 34px;
}

.admin-page-btn:hover {
  border-color: rgba(99, 102, 241, .5);
}

.admin-page-active {
  border-color: var(--accent) !important;
  background: rgba(99, 102, 241, .18) !important;
  color: var(--accent-2) !important;
}

/* Toast */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: var(--surface-panel);
  border: 1px solid rgba(52, 211, 153, .4);
  border-radius: var(--radius);
  color: #34d399;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all .25s;
  pointer-events: none;
}

.admin-toast-show {
  transform: translateY(0);
  opacity: 1;
}

/* ── Patch Preview Tree Cards ─────────────────────────────────────────────── */
.pd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 8px;
}

.pd-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  opacity: .45;
  transition: opacity .2s, box-shadow .2s;
}

.pd-card.pd-changed {
  opacity: 1;
  border-color: rgba(245, 166, 35, .35);
  box-shadow: 0 0 12px rgba(245, 166, 35, .1);
}

.pd-card-hdr {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--border);
}

.pd-card.pd-changed .pd-card-hdr {
  border-bottom-color: color-mix(in srgb, var(--tc, var(--border)) 40%, transparent);
}

.pd-card-hdr img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: contain;
}

.pd-card-hdr-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  flex: 1;
  color: var(--text-muted);
}

.pd-card.pd-changed .pd-card-hdr-name {
  color: var(--tc, var(--text));
}

.pd-ok-badge {
  font-size: 11px;
  color: var(--text-muted);
}

.pd-changed-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(245, 166, 35, .18);
  color: var(--brand-2);
  letter-spacing: .3px;
  text-transform: uppercase;
}

.pd-card-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-row {
  display: flex;
  gap: 3px;
  align-items: center;
}

.pd-row-ks {
  gap: 4px;
}

.pd-rune {
  position: relative;
  flex-shrink: 0;
}

.pd-rune img {
  display: block;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: var(--surface-3);
  object-fit: contain;
  padding: 1px;
}

.pd-rune-lg img {
  width: 32px;
  height: 32px;
}

.pd-rune-sm img {
  width: 24px;
  height: 24px;
}

.pd-rune-new img {
  border-color: #22c55e;
  box-shadow: 0 0 7px rgba(34, 197, 94, .55);
}

.pd-rune-missing::after {
  content: '!';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 11px;
  height: 11px;
  background: #f59e0b;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 900;
  color: #000;
  line-height: 11px;
  text-align: center;
  pointer-events: none;
}

.pd-row-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

.pd-icons-warning {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(245, 158, 11, .07);
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.pd-icons-warning strong {
  color: #f59e0b;
}

.admin-pending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Guide Editor
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Layout ── */
.editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px
}

.editor-header h1 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.4px;
  margin: 0
}

.editor-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.editor-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  align-items: start
}

@media(max-width:860px) {
  .editor-layout {
    grid-template-columns: 1fr
  }
}

.editor-sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + 18px);
  display: flex;
  flex-direction: column;
  gap: 14px
}

@media(max-width:860px) {
  .editor-sidebar {
    position: static
  }
}

.editor-panel {
  background: linear-gradient(160deg, var(--panel-2) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px
}

.editor-panel-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px
}

/* ── Champion picker ── */
.champ-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  max-height: 200px;
  overflow-y: auto;
  padding: 2px;
  margin-top: 10px
}

/* Larger grid for primary champion (full-width step 1) */
.champ-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  max-height: 260px;
}

/* Smaller grid for co-champion slots */
.champ-grid-mini {
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  max-height: 180px;
  max-width: 340px;
}

.champ-grid::-webkit-scrollbar {
  width: 4px
}

.champ-grid::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 4px
}

.champ-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 2px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .12s;
  background: transparent;
  font-family: inherit;
  width: 100%
}

.champ-chip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.champ-chip:hover {
  background: rgba(99, 102, 241, .08);
  border-color: rgba(99, 102, 241, .2)
}

.champ-chip.selected,
.champ-chip-active {
  background: var(--accent-dim);
  border-color: var(--accent)
}

.champ-chip span {
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%
}

.champ-chip.selected span {
  color: var(--accent-2)
}

/* ── Lane picker ── */
.lane-picker {
  display: flex;
  gap: 5px;
  flex-wrap: wrap
}

.lane-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.lane-row-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  min-width: 72px;
  flex-shrink: 0;
}

.lane-row-btns {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.lane-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .12s;
  font-family: inherit;
  white-space: nowrap
}

.lane-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.lane-btn:hover {
  border-color: rgba(245, 166, 35, .35);
  color: var(--text);
  background: rgba(245, 166, 35, .05)
}

.lane-btn.selected,
.lane-btn-active,
.lane-btn-main {
  background: var(--brand-dim);
  border-color: rgba(245, 166, 35, .5);
  color: var(--brand-2);
  box-shadow: 0 0 0 1px rgba(245, 166, 35, .3);
}

.lane-btn-active img,
.lane-btn-main img {
  filter: brightness(1.25);
}

.lane-btn-alt {
  background: rgba(99, 102, 241, .1);
  border-color: rgba(99, 102, 241, .35);
  color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, .2);
}

.lane-btn-alt img {
  filter: brightness(1.1);
  opacity: .75;
}

/* ── Tag pills ── */
.tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  cursor: text;
  min-height: 42px;
  align-items: center;
  transition: border-color .15s, box-shadow .15s
}

.tag-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .15)
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px 2px 9px;
  background: var(--accent-dim);
  color: var(--accent-2);
  border: 1px solid rgba(99, 102, 241, .2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap
}

.tag-pill-x {
  background: none;
  border: none;
  color: rgba(99, 102, 241, .5);
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: color .12s
}

.tag-pill-x:hover {
  color: var(--danger)
}

.tag-input-raw {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  flex: 1;
  min-width: 80px;
  padding: 2px 0
}

.tag-input-raw::placeholder {
  color: var(--text-dim)
}

/* ── Markdown editor ── */
.md-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  align-items: stretch
}

.md-tab {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  transition: color .12s, background .12s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap
}

.md-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent)
}

.md-tab:hover:not(.active) {
  color: var(--text);
  background: rgba(255, 255, 255, .03)
}

.md-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 9, 25, .45);
  flex-wrap: wrap
}

.md-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .1s;
  flex-shrink: 0
}

.md-toolbar-btn:hover {
  color: var(--text);
  background: rgba(99, 102, 241, .1);
  border-color: rgba(99, 102, 241, .25)
}

.md-toolbar-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 3px;
  flex-shrink: 0
}

.md-textarea {
  display: block;
  width: 100%;
  padding: 16px 18px;
  background: rgba(5, 9, 22, .6);
  border: none;
  color: var(--text);
  font-size: 14px;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  line-height: 1.75;
  resize: vertical;
  min-height: 360px;
  outline: none;
  tab-size: 2
}

.md-preview {
  padding: 18px;
  min-height: 360px;
  background: rgba(5, 9, 22, .6);
  font-size: 14.5px;
  line-height: 1.8;
  display: none
}

/* ── Autosave badge ── */
.autosave-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  transition: all .3s;
  white-space: nowrap
}

.autosave-badge.saving {
  color: var(--brand-2);
  background: var(--brand-dim);
  border-color: rgba(245, 166, 35, .25)
}

.autosave-badge.saved {
  color: var(--ok);
  background: var(--ok-dim);
  border-color: rgba(16, 185, 129, .25)
}

.autosave-badge.error {
  color: var(--danger);
  background: var(--danger-dim);
  border-color: rgba(239, 68, 68, .25)
}

/* ── Publish confirm ── */
.publish-confirm {
  display: none;
  padding: 18px;
  background: rgba(245, 166, 35, .05);
  border: 1px solid rgba(245, 166, 35, .18);
  border-radius: var(--radius)
}

.publish-confirm.active {
  display: block
}

/* ── My Guides list rows ── */
.guide-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .018);
  transition: border-color .15s, background .15s
}

.guide-row:hover {
  border-color: var(--border-2);
  background: rgba(99, 102, 241, .04)
}

.guide-row+.guide-row {
  margin-top: 8px
}

.guide-row-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0
}

.guide-row-icon-placeholder {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px
}

.guide-row-info {
  flex: 1;
  min-width: 0
}

.guide-row-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.guide-row-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px
}

.guide-row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0
}

.status-draft {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(107, 136, 192, .08);
  color: var(--text-muted);
  border: 1px solid var(--border)
}

.status-published {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ok-dim);
  color: var(--ok);
  border: 1px solid rgba(16, 185, 129, .22)
}


/* ───── Visual Guide Editor ───────────────────────────────────────────────── */
.ve-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

/* Single-column layout — no sidebar */
#mainEditor {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

/* Guide info card grid */
.ve-guide-grid {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 24px;
  align-items: start;
}

@media(max-width:740px) {
  .ve-guide-grid {
    grid-template-columns: 1fr;
  }
}

.ve-guide-text-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ve-title-input {
  padding: 10px 14px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}

.ve-meta-fields {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.ve-meta-fields .form-group {
  flex: 1;
  min-width: 120px;
}

.ve-guide-champ-group {
  min-width: 0;
}

/* ── Step badge (numbered circle on accordion headers) ── */
.ve-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Guide type selector ── */
.guide-type-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.guide-type-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 140px;
  padding: 14px 16px;
  background: var(--surface-2, var(--surface));
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s;
}

.guide-type-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.guide-type-btn-active {
  border-color: var(--accent) !important;
  background: var(--accent-dim) !important;
}

.guide-type-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.guide-type-desc {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
}

.beta-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(245, 158, 11, .15);
  color: #f59e0b;
  vertical-align: middle;
  margin-left: 4px;
}

/* ── Co-champion section divider ── */
.co-champs-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
}

/* ── Co-champion slots grid ── */
.co-champ-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.co-champ-slot {
  background: var(--surface-2, rgba(255, 255, 255, .03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

/* ── Smaller lane picker for co-champ slots ── */
.lane-picker-sm {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.lane-picker-sm .lane-btn {
  padding: 4px 7px;
  font-size: 11px;
}

.lane-picker-sm .lane-btn img {
  width: 16px;
  height: 16px;
}

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

/* ─── Guide Quality Meter ──────────────────────────────────────────────────── */
.gqm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}

.gqm-header:hover {
  background: var(--accent-dim);
}

.gqm-left {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.gqm-tier-icon {
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
}

.gqm-tier-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
  transition: color .4s ease;
}

.gqm-label-text {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.gqm-progress-outer {
  flex: 1;
  height: 7px;
  background: rgba(255, 255, 255, .07);
  border-radius: 4px;
  overflow: hidden;
  min-width: 60px;
}

.gqm-progress-inner {
  height: 100%;
  border-radius: 4px;
  transition: width .55s cubic-bezier(.4, 0, .2, 1), background .4s ease;
  width: 0%;
}

.gqm-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.gqm-pts {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
}

.gqm-toggle-btn {
  background: none;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}

.gqm-toggle-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.gqm-tips-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 12px 16px 14px;
  margin-bottom: 16px;
}

.gqm-tips-panel.open {
  display: block;
}

.gqm-next-tier-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 9px;
}

.gqm-tips-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gqm-tip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.gqm-tip-arrow {
  color: var(--brand);
  flex-shrink: 0;
  font-size: 11px;
  margin-top: 2px;
  font-weight: 700;
}

.gqm-cap-notice {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .35);
  border-radius: 6px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
  padding: 7px 10px;
  margin-bottom: 10px;
}

.gqm-ladder-wrap {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.gqm-ladder-toggle {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  padding: 0;
  text-transform: uppercase;
}

.gqm-ladder-toggle:hover {
  color: var(--text);
}

.gqm-ladder {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}

.gqm-ladder-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.gqm-ladder-pts {
  color: var(--text-dim);
  font-size: 11px;
}

.gqm-ladder-note {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

/* Visual editor sections */
.ve-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ve-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
}

.ve-section-head:hover {
  background: var(--accent-dim);
}

.ve-section-icon {
  font-size: 17px;
  flex-shrink: 0;
  line-height: 1;
}

.ve-section-chevron {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-dim);
}

.ve-section-body {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.ve-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ve-field-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.ve-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 5px 12px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-dim);
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, border-color .15s;
}

.ve-add-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
}

/* Bulk AI action button (Correct All …) shown next to section add buttons */
.ai-btn-bulk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 6px;
  font-size: 12px;
  color: var(--accent, #a855f7);
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  margin-top: 10px;
}

.ai-btn-bulk:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--accent, #a855f7);
}

.ai-btn-bulk:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Difficulty radios */
.diff-radio-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.diff-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg);
  color: var(--text-muted);
  transition: background .15s, border-color .15s;
}

.diff-btn:has(input:checked) {
  background: var(--accent-dim);
  border-color: var(--brand);
  color: var(--brand);
}

.diff-btn input {
  display: none;
}

/* Rating sliders */
.rating-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-label {
  font-size: 12px;
  font-weight: 600;
  width: 72px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.rating-slider-row input[type=range] {
  flex: 1;
  accent-color: var(--brand);
}

.rating-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  width: 24px;
  text-align: right;
  flex-shrink: 0;
}

/* Summoner spell slots */
.spell-slot {
  width: 60px;
  height: 60px;
  border: 2px dashed var(--border);
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
}

.spell-slot:hover {
  border-color: var(--brand);
  background: rgba(99, 102, 241, .08);
}

.spell-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  gap: 4px;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}

.spell-pick-btn:hover {
  border-color: var(--brand);
  background: var(--accent-dim);
}

.spell-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
}

/* Pros/Cons */
.pc-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pc-input {
  flex: 1;
  padding: 7px 10px !important;
  font-size: 13px !important;
}

.pc-del-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.pc-del-btn:hover {
  background: rgba(239, 68, 68, .1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, .3);
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--surface-3, #444);
  border-radius: 10px;
  transition: background .2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--brand, #6366f1);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(16px);
}

/* Abilities */
.ab-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ab-key-badge {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ab-key-badge-sm {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  font-size: 11px;
  flex-shrink: 0;
}

.ab-icon {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
}

.ab-color-input {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  background: none;
}

.ab-desc {
  width: 100%;
}

/* Skill Order grid */
.so-grid {
  overflow-x: auto;
  padding-bottom: 4px;
}

.so-header-row,
.so-row {
  display: grid;
  grid-template-columns: 40px repeat(18, 32px);
  gap: 2px;
  margin-bottom: 2px;
}

.so-key-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.so-key-badge {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.so-level-num {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
}

.so-cell {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, border-color .12s;
}

.so-cell:hover {
  border-color: var(--brand);
  background: var(--accent-dim);
}

.so-cell-active {
  color: #fff !important;
}

/* Team Combo Builder */
.tc-lane-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--panel-flat);
  border: 1px solid var(--border-card);
  flex-wrap: wrap;
}

.tc-lane-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 90px;
}

.tc-lane-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.tc-lane-label {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.tc-selected-guide {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.tc-champ-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.tc-guide-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.tc-guide-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-guide-author {
  font-size: 11px;
  color: var(--text-muted);
}

.tc-clear-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 4px;
  line-height: 1;
  flex-shrink: 0;
}

.tc-clear-btn:hover {
  color: var(--danger);
  background: var(--danger-dim, rgba(239, 68, 68, .1));
}

/* Guide picker modal list */
.modal-cat-tab {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  transition: background .15s, color .15s;
}

.modal-cat-tab:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.modal-cat-tab-active {
  background: var(--accent-dim);
  border-color: var(--brand);
  color: var(--brand);
}

.tc-guide-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel-flat);
  border: 1px solid var(--border-card);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  transition: background .12s, border-color .12s;
}

.tc-guide-card:hover {
  background: var(--accent-dim);
  border-color: var(--brand);
}

.tc-guide-card-active {
  border-color: var(--ok);
  background: var(--ok-dim);
}

.tc-guide-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.tc-guide-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.tc-guide-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-guide-card-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.tc-guide-card-check {
  font-size: 16px;
  color: var(--ok);
  flex-shrink: 0;
}

/* Runes */
.rune-tree-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rune-tree-btn {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}

.rune-tree-btn:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.rune-tree-btn-active {
  background: var(--accent-dim);
  color: var(--text);
}

.rune-row-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.rune-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  min-width: 60px;
  transition: border-color .15s, background .15s;
}

.rune-icon-btn img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.rune-icon-btn span {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  max-width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rune-icon-btn:hover {
  border-color: var(--brand);
  background: var(--accent-dim);
}

.rune-icon-btn-active {
  border-color: var(--brand) !important;
  background: rgba(99, 102, 241, .12) !important;
}

@media(max-width:900px) {
  #runesEditor {
    grid-template-columns: 1fr !important;
  }
}

/* Items */
.item-row-group {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.item-row-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.item-slots-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.item-slots-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.item-slot {
  position: relative;
  width: 52px;
  flex-shrink: 0;
}

.item-slot img {
  width: 52px;
  height: 52px;
  border-radius: 7px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
}

.item-slot-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  display: none;
}

.item-slot:hover .item-slot-del {
  display: flex;
}

.item-note-input {
  width: 100%;
  margin-top: 4px;
  font-size: 11px;
  padding: 3px 6px !important;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

.item-add-btn {
  width: 52px;
  height: 52px;
  border: 2px dashed var(--border);
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
  font-family: inherit;
}

.item-add-btn:hover {
  border-color: var(--brand);
  background: rgba(99, 102, 241, .08);
  color: var(--brand);
}

/* Item picker modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--surface-overlay);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.modal-close:hover {
  background: var(--accent-dim);
}

.modal-search {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-search input {
  width: 100%;
}

.modal-cat-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cat-tab {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  transition: background .15s, color .15s;
}

.cat-tab:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.cat-tab-active {
  background: var(--accent-dim);
  border-color: var(--brand);
  color: var(--brand);
}

.modal-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 5px;
  padding: 12px 16px;
  overflow-y: auto;
  max-height: 420px;
}

.item-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, background .15s;
  width: 100%;
  min-width: 0;
}

.item-pick-btn img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.item-pick-btn span {
  display: none;
}

.item-pick-btn:hover {
  border-color: var(--brand);
  background: var(--accent-dim);
}

.item-pick-btn.item-pick-used {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: transparent;
}

.item-pick-btn.item-pick-used img {
  filter: grayscale(80%);
}

/* Matchups */
.matchup-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: flex-start;
}

.matchup-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  align-items: center;
}

.matchup-move-btn {
  width: 26px;
  height: 22px;
  border: 1px solid var(--border);
  background: var(--surface2, #1e1e2e);
  color: var(--text-muted, #999);
  border-radius: 5px;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}

.matchup-move-btn:hover:not(:disabled) {
  background: var(--brand, #6366f1);
  color: #fff;
}

.matchup-move-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.matchup-champ-picker {
  width: 180px;
  flex-shrink: 0;
}

.matchup-champ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
  gap: 3px;
  margin-top: 6px;
  max-height: 120px;
  overflow-y: auto;
}

/* ── Small champion chip for matchup picker ── */
.champ-chip-xs {
  padding: 2px 1px;
}

.champ-chip-xs img {
  width: 28px !important;
  height: 28px !important;
}

/* ── Inner sections (nested ve-section within champBuildsSection) ── */
.ve-section-inner {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.ve-section-inner:last-child {
  border-bottom: none;
}

.champ-build-sections-wrap {
  display: flex;
  flex-direction: column;
}

/* ── Champion build tab bar ── */
.champ-build-tabs-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 0;
  background: var(--surface);
}

.champ-build-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: var(--bg);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-dim);
  transition: all .12s;
}

.champ-build-tab img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
}

.champ-build-tab:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.champ-build-tab-active {
  background: var(--surface) !important;
  color: var(--accent) !important;
  border-color: var(--accent);
  border-bottom-color: var(--surface);
}

/* ── Lane-specific toggle ── */
.lane-specific-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: border-color .15s;
}

.lane-specific-toggle:hover {
  border-color: var(--accent);
}

.lane-specific-toggle input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.lane-specific-hint {
  font-weight: 400;
  font-size: 11px;
  color: var(--text-dim);
}

/* ── Lane build tabs (editor) ── */
.lane-build-tabs-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 0;
  background: var(--surface);
  border-radius: 10px 10px 0 0;
  margin-bottom: -1px;
}

.lane-build-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: var(--bg);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-dim);
  transition: all .12s;
}

.lane-build-tab img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  filter: brightness(0.9);
}

.lane-build-tab:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.lane-build-tab-active {
  background: var(--surface) !important;
  color: var(--accent) !important;
  border-color: var(--accent);
  border-bottom-color: var(--surface);
}

.lane-build-tab-active img {
  filter: brightness(1.1);
}

/* ── Lane tabs (viewer) ── */
.vg-lane-tabs-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 12px 0 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}

.vg-lane-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-dim);
  margin-bottom: -2px;
  transition: all .15s;
}

.vg-lane-tab img {
  width: 22px;
  height: 22px;
}

.vg-lane-tab:hover {
  color: var(--text);
}

.vg-lane-tab-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.vg-lane-panel {
  min-height: 100px;
}

/* ── Selected champions bar ── */
.selected-champs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sel-champ-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  flex-wrap: wrap;
}

.sel-champ-row-active {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.sel-champ-icon-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
  flex-shrink: 0;
}

.sel-champ-icon-name img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
}

.sel-champ-icon-name span {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex: 1;
}

.sel-champ-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 13px;
  padding: 2px 4px;
  font-family: inherit;
  flex-shrink: 0;
}

.sel-champ-remove:hover {
  color: var(--danger);
}

/* ── Tag preset buttons ── */
.tag-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}

.tag-preset-btn {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: none;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  color: var(--text-dim);
  transition: all .12s;
}

.tag-preset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag-preset-active {
  border-color: var(--accent) !important;
  background: var(--accent-dim) !important;
  color: var(--accent) !important;
  font-weight: 600;
}

/* ── Body sections editor ── */
.body-section-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--surface);
}

.body-section-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.body-section-heading {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
}

.body-section-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.body-sec-btn {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: none;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  color: var(--text-dim);
}

.body-sec-btn:hover {
  background: var(--accent-dim);
}

.matchup-del-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  margin-top: 2px;
}

.matchup-del-btn:hover {
  background: rgba(239, 68, 68, .1);
  color: var(--danger);
}

/* Guide card in my-guides list */
/* ── My Guides cards ────────────────────────────────────────────────────────── */
.my-guides-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-2);
}

.my-guides-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
}

.my-guides-tab:hover {
  color: var(--text);
}

.my-guides-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.my-guide-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.my-guide-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.my-guide-card-left {
  flex-shrink: 0;
}

.my-guide-champ-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--border);
}

.my-guide-champ-placeholder {
  background: var(--border);
}

.my-guide-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.my-guide-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-guide-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.my-guide-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.badge-published {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.badge-draft {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
}

.my-guide-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.my-guide-card-time {
  font-size: 11px;
  color: var(--text-dim);
}

.my-guide-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.my-guide-delete-btn {
  color: var(--danger) !important;
  opacity: 0.7;
}

.my-guide-delete-btn:hover {
  opacity: 1;
}

/* legacy selectors kept for other pages */
.guide-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.guide-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.guide-champ-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}

.guide-champ-badge img {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
}

.guide-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.guide-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Publish confirm strip */
.publish-confirm {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

/* Autosave badge */
.autosave-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-dim);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* ── Rune tree icons ───────────────────────────────────────────────────────── */
.rune-tree-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 4px;
}

.rune-tree-btn {
  display: inline-flex;
  align-items: center;
}

/* ── Skill order ability icon (main — replaces text badge) ─────────────────── */
.so-ability-icon-main {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  object-fit: cover;
  display: block;
}

/* ── Skill order ability icon (legacy small) ──────────────────────────────── */
.so-ability-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
  margin-bottom: 2px;
}

/* ── Ability toggle / collapsible ──────────────────────────────────────────── */
.ab-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}

.ab-toggle-btn:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.ab-desc-wrap {
  padding: 4px 0 0 0;
  transition: max-height .25s ease;
}

.ab-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Set/page tabs (runes + items) ─────────────────────────────────────────── */
.set-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.set-tab {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  transition: background .15s, color .15s, border-color .15s;
}

.set-tab:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.set-tab-active {
  background: var(--accent-dim);
  border-color: var(--brand);
  color: var(--brand);
}

.set-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.set-name-input {
  flex: 1;
  font-size: 13px;
}

.set-lane-select {
  width: auto;
  min-width: 100px;
  font-size: 12px;
  padding: 4px 8px;
  flex-shrink: 0;
}

.del-set-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  color: var(--danger);
  font-family: inherit;
}

.del-set-btn:hover {
  background: rgba(239, 68, 68, .1);
}

/* ── Drag reorder ──────────────────────────────────────────────────────────── */
.item-slot-filled {
  cursor: grab;
}

.item-slot-filled.dragging {
  opacity: .45;
}

.item-slot-filled.drag-over {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ── Viewer: multi rune-page / item-set names ──────────────────────────────── */
.vg-rune-page {
  margin-bottom: 16px;
}

.vg-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.vg-tab {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-muted);
  transition: all .15s;
  font-family: inherit;
}

.vg-tab:hover {
  background: rgba(99, 102, 241, .08);
  color: var(--text);
  border-color: var(--border);
}

.vg-tab-active {
  background: rgba(99, 102, 241, .15);
  color: var(--accent-2);
  border-color: rgba(99, 102, 241, .4);
}

.vg-tab-hidden {
  display: none;
}

.vg-rune-page-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
  letter-spacing: .3px;
}

.vg-rune-tree-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 3px;
}

.vg-item-set {
  margin-bottom: 16px;
}

.vg-start-boots-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  align-items: flex-start;
}

.vg-item-set-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
  letter-spacing: .3px;
}

/* ── Enhanced body text area ───────────────────────────────────────────────── */
.body-editor-wrapper {
  position: relative;
}

.body-editor-wrapper textarea {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: .01em;
  color: var(--text);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color .2s;
  min-height: 220px;
}

.body-editor-wrapper textarea:focus {
  border-color: var(--brand);
  outline: none;
}

.body-editor-wrapper textarea::placeholder {
  color: var(--text-dim);
  font-style: italic;
}

.md-toolbar {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.md-toolbar-btn {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface);
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  transition: background .15s, color .15s, border-color .15s;
}

.md-toolbar-btn:hover {
  background: var(--accent-dim);
  color: var(--text);
  border-color: var(--brand);
}

.char-count {
  font-size: 11px;
  color: var(--text-dim);
  text-align: right;
  margin-top: 4px;
}

/* ─── AI Assist toolbar buttons ──────────────────────────────────────────── */
.ai-toolbar-row {
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(139, 92, 246, .04);
  border-bottom: 1px solid rgba(139, 92, 246, .15);
}

.ai-btn {
  background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(168, 85, 247, .12)) !important;
  border-color: rgba(139, 92, 246, .3) !important;
  color: #a78bfa !important;
  font-size: 11px !important;
  white-space: nowrap;
  padding: 3px 8px !important;
  width: auto !important;
  height: auto !important;
}

.ai-btn:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, .25), rgba(168, 85, 247, .25)) !important;
  border-color: rgba(139, 92, 246, .5) !important;
  color: #c4b5fd !important;
}

.ai-btn:disabled,
.ai-btn.ai-loading {
  opacity: .5;
  pointer-events: none;
}

.ai-btn.ai-loading::after {
  content: '…';
  animation: ai-dots 1s steps(3) infinite;
}

@keyframes ai-dots {
  0% {
    content: '.';
  }

  33% {
    content: '..';
  }

  66% {
    content: '...';
  }
}

/* ─── Bulk AI button (section-level) ─────────────────────────────────────── */
.ai-bulk-btn {
  padding: 5px 14px;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, .3);
  background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(168, 85, 247, .12));
  color: #a78bfa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}

.ai-bulk-btn:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, .25), rgba(168, 85, 247, .25));
  border-color: rgba(139, 92, 246, .5);
  color: #c4b5fd;
}

.ai-bulk-btn:disabled {
  opacity: .5;
  pointer-events: none;
}

/* ─── Inline note rewrite button (matchups / synergies) ─────────────────── */
.ai-note-rewrite-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.08);
  color: #c084fc;
  cursor: pointer;
  line-height: 1.5;
  width: auto !important;
  height: auto !important;
  transition: background 0.15s;
}

.ai-note-rewrite-btn:hover {
  background: rgba(168, 85, 247, 0.2);
}

.ai-note-rewrite-btn:disabled {
  opacity: .5;
  pointer-events: none;
}

/* ─── AI Note Button Row ─────────────────────────────────────────────────── */
.ai-note-btn-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ─── AI Confirm Dialog ──────────────────────────────────────────────────── */
.ai-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ai-confirm-dialog {
  background: var(--surface2, #1e1e2e);
  border: 1px solid var(--border, #333);
  border-radius: 16px;
  padding: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-confirm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-confirm-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim, #888);
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s;
}

.ai-confirm-close:hover {
  color: var(--text, #fff);
}

.ai-confirm-dialog h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #fff);
}

.ai-confirm-edit-ta {
  flex: 1;
  min-height: 180px;
  padding: 12px;
  background: var(--surface, #151520);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text, #fff);
  resize: vertical;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.ai-confirm-edit-ta:focus {
  border-color: var(--accent, #a855f7);
}

.ai-confirm-cols {
  display: flex;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.ai-confirm-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ai-confirm-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim, #888);
  margin-bottom: 8px;
}

.ai-confirm-text {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: var(--surface, #151520);
  border: 1px solid var(--border, #333);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted, #ccc);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 50vh;
}

.ai-confirm-result {
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--text, #fff);
}

.ai-confirm-diff {
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--text, #fff);
  white-space: pre-wrap;
}

.ai-diff-del {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  text-decoration: line-through;
  border-radius: 2px;
  padding: 0 1px;
}

.ai-diff-ins {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  text-decoration: none;
  border-radius: 2px;
  padding: 0 1px;
}

/* Clickable change unit in interactive diff */
.ai-diff-change {
  cursor: pointer;
  border-radius: 3px;
  padding: 0 1px;
  transition: opacity 0.1s;
}

.ai-diff-change:hover {
  opacity: 0.8;
}

/* Rejected change: shows original text highlighted in amber */
.ai-diff-rejected {
  background: rgba(217, 119, 6, 0.2);
  border-radius: 3px;
  padding: 0 2px;
}

.ai-diff-rejected .ai-diff-rejected-text {
  color: #fcd34d;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

/* Badge in legend for rejected state */
.ai-diff-rejected-badge {
  display: inline-block;
  background: rgba(217, 119, 6, 0.2);
  color: #fcd34d;
  border-radius: 2px;
  padding: 0 3px;
  font-size: 11px;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

.ai-diff-hint {
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-dim, #888);
  margin-left: 4px;
}

.ai-diff-legend {
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-dim, #888);
}

.ai-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 600px) {
  .ai-confirm-cols {
    flex-direction: column;
  }

  .ai-confirm-text {
    max-height: 30vh;
  }
}

/* ─── Draft changes badge ────────────────────────────────────────────────── */
.draft-changes-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin-bottom: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
}

/* ─── AI Bulk Dialog ─────────────────────────────────────────────────────── */
.ai-bulk-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.ai-bulk-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border, #333);
  background: var(--bg, #121218);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.ai-bulk-option:hover {
  border-color: rgba(139, 92, 246, .4);
  background: rgba(139, 92, 246, .06);
}

.ai-bulk-option input[type="checkbox"] {
  accent-color: #8b5cf6;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ai-bulk-option-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #fff);
}

.ai-bulk-option-count {
  font-size: 11px;
  color: var(--text-dim, #888);
  margin-left: auto;
}

.ai-bulk-option.disabled {
  opacity: .35;
  pointer-events: none;
}

.ai-bulk-mode-row {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.ai-mode-chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border, #333);
  background: var(--bg, #121218);
  color: var(--text-muted, #999);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}

.ai-mode-chip.active {
  border-color: rgba(139, 92, 246, .5);
  background: rgba(139, 92, 246, .15);
  color: #a78bfa;
}

.ai-mode-chip:hover {
  border-color: rgba(139, 92, 246, .4);
}

.ai-bulk-progress {
  font-size: 12px;
  color: var(--text-dim, #888);
  margin-bottom: 12px;
  min-height: 18px;
}

/* ─── AI Prompt Dialog ───────────────────────────────────────────────────── */
.ai-prompt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.ai-prompt-dialog {
  background: var(--surface, #1e1e2e);
  border: 1px solid var(--border, #333);
  border-radius: 14px;
  padding: 28px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.ai-prompt-dialog h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--text, #fff);
}

.ai-prompt-hint {
  font-size: 13px;
  color: var(--text-dim, #888);
  margin: 0 0 16px;
  line-height: 1.4;
}

.ai-prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.ai-suggestion-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, .3);
  background: rgba(139, 92, 246, .1);
  color: #a78bfa;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s;
}

.ai-suggestion-chip:hover {
  background: rgba(139, 92, 246, .2);
  border-color: rgba(139, 92, 246, .5);
}

.ai-prompt-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border, #333);
  border-radius: 10px;
  background: var(--bg, #121218);
  color: var(--text, #fff);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.ai-prompt-input:focus {
  border-color: var(--brand, #8b5cf6);
  outline: none;
}

.ai-prompt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ai-prompt-cancel {
  background: transparent;
  color: var(--text-muted, #999);
}

.ai-prompt-submit {
  background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
  color: #fff !important;
  border: none;
}

.ai-prompt-submit:disabled {
  opacity: .5;
  pointer-events: none;
}

/* ─── Augment editor ──────────────────────────────────────── */
.augment-tier-block {
  margin-bottom: 14px;
}

.augment-slots-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.augment-slot {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  background: var(--surface);
  transition: border-color .15s;
}

.augment-slot:hover {
  border-color: var(--brand);
}

.augment-slot-filled img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
}

.augment-slot-empty {
  font-size: 22px;
  color: var(--text-dim);
}

.augment-slot-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  border: none;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.augment-inline-picker {
  max-height: 220px;
  overflow-y: auto;
}

.augment-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 4px;
}

.augment-pick-btn {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  padding: 3px;
  transition: border-color .15s;
}

.augment-pick-btn:hover {
  border-color: var(--brand);
}

.augment-pick-btn img {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  display: block;
}

/* ─── Summoner verification ───────────────────────────────── */
.form-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.4;
}

.summoner-verify-result {
  margin-top: 10px;
}

.verify-error {
  color: #ef4444;
  font-size: 12px;
  font-weight: 600;
}

.verify-loading {
  color: var(--text-dim);
  font-size: 12px;
}

.verify-success {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.verify-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.verify-profile-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.verify-name-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.verify-riotid {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verify-tag {
  font-weight: 500;
  color: var(--text-dim);
  font-size: 13px;
}

.verify-level {
  font-size: 11px;
  color: var(--text-muted);
}

.verify-badge {
  font-size: 12px;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .3);
  border-radius: 6px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.verify-ranks {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.verify-rank-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 100px;
}

.verify-rank-tier {
  font-size: 14px;
  font-weight: 800;
}

.verify-rank-lp {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.verify-rank-queue {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.verify-rank-wr {
  font-size: 10px;
  color: var(--text-muted);
}

.verify-unranked {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
}

/* ── Guide List — Engaging Design ───────────────────────────────────────────── */
.gl-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.gl-search {
  flex: 1 1 240px;
  padding: 11px 16px 11px 42px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface-3);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  backdrop-filter: blur(8px);
  transition: border-color .15s, box-shadow .15s;
}

.gl-search:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .12), 0 4px 20px rgba(0, 0, 0, .3);
}

.gl-search-wrap {
  position: relative;
  flex: 1 1 240px;
}

.gl-search-wrap::before {
  content: '🔍';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.gl-search-wrap .gl-search {
  flex: unset;
  width: 100%;
}

.gl-select {
  padding: 11px 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface-3);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(8px);
  transition: border-color .15s;
  min-width: 140px;
}

.gl-select:focus {
  border-color: var(--accent);
}

/* ── Filter rows ─────────────────────────────────────────────── */
.gl-filters-top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.gl-filters-top .gl-search-wrap {
  flex: 1 1 260px;
}

.gl-filters-top .gl-select {
  min-width: 130px;
  flex: 0 0 auto;
}

/* ── Custom Champion Picker ──────────────────────────────────── */
.champ-picker {
  position: relative;
  flex: 0 0 auto;
}

.champ-picker-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface-3);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  min-width: 220px;
  white-space: nowrap;
  transition: border-color .15s;
  backdrop-filter: blur(8px);
}

.champ-picker-btn:hover,
.champ-picker .open~.champ-picker-btn {
  border-color: var(--accent);
}

.champ-picker-btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.champ-picker-icon-wrap {
  display: flex;
  align-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.champ-picker-chevron {
  margin-left: auto;
  color: var(--text-dim);
  flex-shrink: 0;
}

.champ-picker-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 200;
  background: var(--bg-3);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0, 0, 0, .35));
  width: 350px;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.champ-picker-dropdown.open {
  display: flex;
}

.champ-picker-search-wrap {
  padding: 8px 10px 6px;
  border-bottom: 1px solid var(--border);
}

.champ-picker-search {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2, var(--bg-2));
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.champ-picker-search:focus {
  border-color: var(--accent);
}

.champ-picker-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 6px 0;
}

.champ-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 14px;
  border: none;
  background: none;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background .1s;
}

.champ-picker-item:hover {
  background: var(--panel-flat);
}

.champ-picker-item.active {
  background: var(--accent-dim);
  color: var(--accent-2);
}

.champ-picker-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--bg-2);
}

.gl-filters-mid {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.gl-lane-pills {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gl-lane-pills::-webkit-scrollbar {
  display: none;
}

.gl-lane-pill {
  padding: 7px 13px;
  border: 1px solid var(--border-2);
  border-radius: 20px;
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gl-lane-pill img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0.7);
  transition: filter .15s;
}

.gl-lane-pill:hover img,
.gl-lane-pill-active img {
  filter: brightness(1);
}

.gl-lane-pill:hover {
  border-color: rgba(99, 102, 241, .5);
  color: var(--text);
  background: rgba(99, 102, 241, .08);
}

.gl-lane-pill-active {
  border-color: var(--brand) !important;
  background: rgba(245, 166, 35, .12) !important;
  color: var(--brand) !important;
}

.gl-sort-group {
  display: flex;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.gl-sort-btn {
  padding: 7px 13px;
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-right: 1px solid var(--border-2);
  transition: all .15s;
  white-space: nowrap;
}

.gl-sort-btn:last-child {
  border-right: none;
}

.gl-sort-btn:hover {
  background: rgba(99, 102, 241, .1);
  color: var(--text);
}

.gl-sort-active {
  background: rgba(99, 102, 241, .18) !important;
  color: var(--accent-2) !important;
}

.gl-filters-tags {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-direction: column;
}

.gl-tags-toggle {
  padding: 6px 12px;
  border: 1px solid var(--border-2);
  border-radius: 20px;
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .04em;
}

.gl-tags-toggle:hover {
  border-color: rgba(99, 102, 241, .5);
  color: var(--text);
}

.gl-tag-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gl-tag-filter-btn {
  padding: 5px 11px;
  border: 1px solid var(--border-2);
  border-radius: 20px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}

.gl-tag-filter-btn:hover {
  border-color: rgba(99, 102, 241, .5);
  color: var(--text);
}

.gl-tag-active {
  border-color: var(--accent) !important;
  background: rgba(99, 102, 241, .15) !important;
  color: var(--accent-2) !important;
}

.gl-tag-meta {
  background: rgba(99, 102, 241, .08);
  border-color: rgba(99, 102, 241, .2);
  color: var(--accent-2);
  opacity: .8;
}

.gl-tag-approved {
  background: rgba(245, 166, 35, .12);
  border-color: rgba(245, 166, 35, .4);
  color: var(--brand);
  font-weight: 700;
}

/* FLB Approved badge on guide detail */
.flb-approved-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 20px;
  background: rgba(245, 166, 35, .12);
  border: 1px solid rgba(245, 166, 35, .45);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}

/* Approved toggle button in sort group */
.gl-sort-btn-approved {
  border-left: 1px solid var(--border-2);
}

.gl-sort-approved-active {
  background: rgba(245, 166, 35, .15) !important;
  color: var(--brand) !important;
}

/* ── Creator badge ──────────────────────────────────────────────────────── */
.creator-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, .15), rgba(236, 72, 153, .15));
  border: 1px solid rgba(139, 92, 246, .4);
  color: #a78bfa;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  vertical-align: middle;
  margin-left: 10px;
}

.creator-badge-sm {
  font-size: 11px;
  padding: 2px 10px;
  margin-left: 6px;
}

/* ── Creator social links bar (profile page) ──────────────────────────── */
.creator-social-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.creator-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  cursor: pointer;
}

.creator-social-link:hover {
  background: color-mix(in srgb, var(--social-color, #a78bfa) 15%, transparent);
  border-color: color-mix(in srgb, var(--social-color, #a78bfa) 40%, transparent);
  color: var(--social-color, #a78bfa);
}

.creator-social-icon {
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.creator-social-icon svg {
  display: block;
}

/* ── Admin creator toggle ──────────────────────────────────────────────── */
.admin-creator-toggle {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.admin-creator-toggle:hover {
  background: rgba(139, 92, 246, .1);
  border-color: rgba(139, 92, 246, .3);
}

.admin-creator-active {
  background: rgba(139, 92, 246, .15);
  border-color: rgba(139, 92, 246, .4);
  color: #a78bfa;
  font-weight: 600;
}

/* Team action buttons */
.vote-btn-approve {
  border-color: rgba(52, 211, 153, .5);
  color: #34d399;
}

.vote-btn-approve:hover {
  background: rgba(52, 211, 153, .1);
}

.vote-btn-approve.vote-btn-approve-active {
  background: rgba(52, 211, 153, .12);
  border-color: #34d399;
}

.vote-btn-extend {
  border-color: rgba(99, 102, 241, .5);
  color: var(--accent-2);
}

.vote-btn-extend:hover {
  background: rgba(99, 102, 241, .1);
}

.gl-results {
  margin-top: 24px;
}

.gl-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(13, 24, 56, .5);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}

.gl-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
}

.gl-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.gl-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: rgba(9, 17, 42, .35);
  transition: background .15s, transform .1s;
  cursor: pointer;
}

.gl-row:last-child {
  border-bottom: none;
}

.gl-row:hover {
  background: rgba(99, 102, 241, .08);
}

.gl-cell {
  flex-shrink: 0;
}

.gl-cell-champ {
  width: 44px;
  position: relative;
}

.gl-champ-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(99, 102, 241, .2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  transition: border-color .15s, box-shadow .15s;
}

.gl-row:hover .gl-champ-icon {
  border-color: var(--brand);
  box-shadow: 0 0 12px rgba(245, 166, 35, .25);
}

.gl-lane-icon {
  position: absolute;
  bottom: -2px;
  right: -4px;
  width: 18px;
  height: 18px;
  object-fit: contain;
  background: var(--surface);
  border-radius: 4px;
  padding: 1px;
  border: 1px solid var(--border-2);
}

.gl-champ-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(99, 102, 241, .08);
  border: 2px solid rgba(99, 102, 241, .12);
}

.gl-cell-main {
  flex: 1;
  min-width: 0;
}

.gl-title {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s;
}

.gl-row:hover .gl-title {
  color: var(--brand-2);
}

.gl-meta {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.gl-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(99, 102, 241, .1);
  color: var(--accent-2);
  border: 1px solid rgba(99, 102, 241, .15);
  font-weight: 600;
}

.gl-tag-lane {
  background: rgba(16, 185, 129, .08);
  color: #34d399;
  border-color: rgba(16, 185, 129, .15);
}

.gl-tag-patch {
  background: rgba(6, 182, 212, .07);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, .12);
}

.gl-cell-author {
  width: 110px;
  text-align: right;
}

.gl-author {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.gl-author-link {
  cursor: pointer;
  transition: color .15s;
}

.gl-author-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.gl-cell-updated {
  width: 85px;
  text-align: right;
}

.gl-time {
  font-size: 11px;
  color: var(--text-dim);
}

.gl-cell-views {
  width: 60px;
  text-align: center;
}

.gl-views {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

.gl-cell-score {
  width: 100px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-score {
  font-weight: 800;
  font-size: 14px;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.gl-score-pos {
  color: #34d399;
  background: rgba(16, 185, 129, .1);
}

.gl-score-neg {
  color: #f87171;
  background: rgba(239, 68, 68, .1);
}

.gl-score-zero {
  color: var(--text-dim);
}

.gl-empty {
  padding: 60px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  background: rgba(9, 17, 42, .35);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.gl-empty a {
  color: var(--brand-2);
  font-weight: 600;
}

.gl-cta {
  margin-top: 24px;
  text-align: center;
}

.gl-cta .btn {
  font-size: 14px;
  padding: 12px 28px;
}

/* ── Pagination ────────────────────────────────────────────────────────────── */
.gl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.gl-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: rgba(9, 17, 42, .45);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.gl-page-btn:hover:not(:disabled) {
  background: rgba(80, 130, 220, .12);
  color: var(--brand-2);
  border-color: var(--brand);
}

.gl-page-btn.gl-page-active {
  background: var(--brand);
  color: #0a0f1e;
  border-color: var(--brand);
  font-weight: 700;
  cursor: default;
}

.gl-page-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.gl-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 36px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ── Rune Path Viewer Layout ──────────────────────────────────────────────── */
.vp-rune-layout {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: flex-start;
  flex-wrap: wrap;
}

.vp-rune-bottom-row {
  display: contents;
}

.vp-rune-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 0 20px;
  border-left: 1px solid var(--border);
}

.vp-rune-col:first-child {
  padding-left: 0;
  border-left: none;
}

.vp-rune-col-secondary {
  /* secondary is now in bottom-row, no border from primary needed */
}

.vp-rune-col-shards {
  border-left: 1px solid var(--border);
  padding-left: 20px;
}

.vp-rune-tree-hdr {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--tc, var(--text-muted));
  margin-bottom: 2px;
}

.vp-rune-tree-hdr img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
}

.vp-rune-tree-hdr-shards {
  color: var(--text-muted);
}

.vp-rune-row {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.vp-rune-row-keystones {
  gap: 6px;
}

.vp-rune-row-shards {
  gap: 5px;
  align-items: center;
  /* shards have no names so centering is fine */
}

.vp-shard-label {
  font-size: 10px;
  color: var(--text-dim);
  width: 46px;
  flex-shrink: 0;
}

.vp-rune-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.vp-rune-slot img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--surface-3);
  object-fit: contain;
  padding: 2px;
  filter: grayscale(60%) opacity(0.35) brightness(0.7);
  transition: filter .15s, border-color .15s, box-shadow .15s;
}

.vp-rune-slot.vp-rune-sel img {
  filter: none;
  border-color: rgba(245, 166, 35, .45);
  box-shadow: 0 0 10px rgba(245, 166, 35, .18);
}

.vp-rune-slot-ks img {
  width: 68px;
  height: 68px;
}

.vp-rune-slot.vp-rune-sel.vp-rune-slot-ks img {
  border-color: rgba(245, 166, 35, .7);
  box-shadow: 0 0 18px rgba(245, 166, 35, .32);
}

.vp-rune-name {
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  max-width: 52px;
  line-height: 1.2;
  word-break: break-word;
}

.vp-rune-slot-ks .vp-rune-name {
  max-width: 68px;
}

.vp-shard-slot img {
  width: 36px;
  height: 36px;
  padding: 1px;
}

/* ── Champions Grid ────────────────────────────────────────────────────────── */
/* Scoped to champions page only — guide editor keeps its own .champ-grid rules */
.champ-grid-panel .champ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  align-content: start;
  max-height: none;
  overflow-y: visible;
  padding: 0;
  margin-top: 0;
}

.champ-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.champ-cell:hover {
  background: rgba(99, 102, 241, .08);
  border-color: rgba(99, 102, 241, .18);
  transform: translateY(-2px);
  color: var(--text);
}

.champ-cell.champ-active {
  background: rgba(245, 166, 35, .1);
  border-color: rgba(245, 166, 35, .25);
  color: var(--brand-2);
}

.champ-cell-icon {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .06);
  transition: border-color .15s, box-shadow .15s;
}

.champ-cell:hover .champ-cell-icon {
  border-color: rgba(99, 102, 241, .3);
  box-shadow: 0 2px 12px rgba(99, 102, 241, .15);
}

.champ-cell.champ-active .champ-cell-icon {
  border-color: var(--brand);
  box-shadow: 0 0 14px rgba(245, 166, 35, .2);
}

.champ-cell-name {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Champions page: grid panel stretches to fill remaining page height */
.page-champions .page {
  display: flex;
  flex-direction: column;
}

.champ-grid-panel {
  flex: 1;
  min-height: 0;
}

.champ-detail-panel {
  margin-top: 20px;
}

.champ-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.champ-detail-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 2px solid var(--brand);
  box-shadow: 0 0 20px rgba(245, 166, 35, .15);
}

.champ-detail-name {
  font-size: 24px;
  font-weight: 900;
}

.champ-detail-stats {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.champ-guide-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: background .12s;
  border: 1px solid transparent;
}

.champ-guide-row:hover {
  background: rgba(99, 102, 241, .06);
  border-color: var(--border);
}

.champ-guide-row .gl-tag {
  font-size: 10px;
}

@media (max-width: 640px) {

  .gl-cell-author,
  .gl-cell-updated,
  .gl-cell-views,
  .gl-cell-score {
    display: none;
  }

  .gl-cell-main {
    flex: 1;
    min-width: 0;
  }

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

  .champ-cell-icon {
    width: 54px;
    height: 54px;
  }

  .gl-search {
    padding: 8px 12px 8px 36px;
    font-size: 13px;
  }

  .gl-search-wrap::before {
    left: 11px;
    font-size: 12px;
  }

  .gl-filters-top {
    flex-direction: column;
  }

  .gl-filters-top .gl-search-wrap,
  .gl-filters-top .gl-select {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* ── User Profile ─────────────────────────────────────────────────────── */
.user-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #000;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(245, 166, 35, .2);
}

/* ── Profile stats bar ────────────────────────────────────────────────── */
.profile-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 12px 0 0;
  padding: 0;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  flex: 1 1 100px;
  min-width: 90px;
}

.profile-stat:first-child {
  border-radius: 10px 0 0 10px;
}

.profile-stat:last-child {
  border-radius: 0 10px 10px 0;
}

.profile-stat:only-child {
  border-radius: 10px;
}

.profile-stat-icon {
  font-size: 18px;
  line-height: 1;
}

.profile-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.profile-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Champion page: guide badge & loading ─────────────────────────────── */
.champ-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.champ-search-wrap {
  max-width: 340px;
}

.champ-lane-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.champ-cell-img-wrap {
  position: relative;
  display: inline-flex;
}

.champ-guide-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--brand);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
  min-width: 16px;
  text-align: center;
  pointer-events: none;
  border: 1px solid rgba(0, 0, 0, .3);
}

.champ-has-guides .champ-cell-icon {
  border-color: rgba(245, 166, 35, .35);
}

.champ-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  padding: 12px 0;
}

/* ── My Guides stats row ──────────────────────────────────────────────── */
.my-guide-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.my-guide-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

.my-guide-stat-up {
  color: #34d399;
}

.my-guide-stat-down {
  color: #f87171;
}

.my-guide-stat-score {
  font-weight: 700;
}

/* ── Analytics Dashboard ──────────────────────────────────────────────── */
.analytics-range-btns {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.range-btn {
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}

.range-btn:hover {
  background: rgba(99, 102, 241, .08);
  border-color: rgba(99, 102, 241, .3);
  color: var(--text);
}

.range-btn.active {
  background: rgba(99, 102, 241, .15);
  border-color: rgba(99, 102, 241, .4);
  color: #a5b4fc;
}

.analytics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.analytics-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.analytics-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.analytics-card-value {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
}

.analytics-card-change {
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
  min-height: 16px;
}

.analytics-card-up {
  color: #34d399;
}

.analytics-card-down {
  color: #f87171;
}

.analytics-card-neutral {
  color: var(--text-dim);
}

.analytics-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.analytics-chart-legend {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}

.analytics-chart-wrap {
  position: relative;
  width: 100%;
  min-height: 60px;
}

.analytics-chart-wrap canvas {
  display: block;
  width: 100%;
}

.analytics-chart-empty {
  color: var(--text-dim);
  font-size: 13px;
  padding: 24px 0;
  text-align: center;
}

.analytics-tables-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.analytics-table-panel {
  min-width: 0;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}

.analytics-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--border);
}

.analytics-table td {
  padding: 7px 8px;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.analytics-table tr:last-child td {
  border-bottom: none;
}

.analytics-table .num {
  text-align: right;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.analytics-page-link {
  color: #818cf8;
  text-decoration: none;
}

.analytics-page-link:hover {
  text-decoration: underline;
}

.loading-cell {
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  padding: 14px 0 !important;
}

@media (max-width: 640px) {
  .analytics-tables-row {
    grid-template-columns: 1fr;
  }

  .analytics-cards {
    grid-template-columns: 1fr 1fr;
  }

  .analytics-card-value {
    font-size: 24px;
  }
}

/* ── Guide list action buttons (share/save on cards) ──────────── */
.gl-cell-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.gl-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all .15s ease;
  padding: 0;
  font-family: inherit;
}

.gl-action-btn:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  border-color: var(--border);
}

.gl-action-save-active {
  color: #facc15;
  border-color: rgba(250, 204, 21, .3);
}

.gl-action-save-active:hover {
  color: #fde047;
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ── Kebab (three-dot) menu on guide cards ─────────────────────── */
.gl-kebab-wrap {
  position: relative;
}

.gl-kebab-menu {
  position: fixed;
  z-index: 9999;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px;
  min-width: 190px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gl-kebab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  transition: background .12s, color .12s;
  white-space: nowrap;
  line-height: 1.4;
}

.gl-kebab-item:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.gl-kebab-divider {
  height: 1px;
  background: var(--border);
  margin: 3px 0;
}

/* ── Admin nav links inside topnav (visible for admins on all pages) ── */
.topnav a.admin-nav-link {
  color: #facc15;
  border-left: 1px solid rgba(250, 204, 21, .18);
  margin-left: 4px;
}

.topnav a.admin-nav-link:first-of-type {
  margin-left: 8px;
}

.topnav a.admin-nav-link:hover {
  background: rgba(250, 204, 21, .1);
  color: #fde047;
}

.topnav a.admin-nav-link.active {
  color: #facc15;
  background: rgba(250, 204, 21, .12);
}

/* ── Guide top action bar ─────────────────────────────────────── */
.guide-top-actions {
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE NAVIGATION DRAWER
   ═══════════════════════════════════════════════════════════════════ */

.hamburger-btn {
  display: none;
  /* shown via media query */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: background .15s;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, .09);
  border-color: var(--border);
}

.hamburger-btn:hover span {
  background: var(--brand);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--surface-overlay);
  backdrop-filter: blur(4px);
  visibility: hidden;
  opacity: 0;
  transition: opacity .22s, visibility .22s;
}

.mobile-nav-overlay.open {
  visibility: visible;
  opacity: 1;
}

.mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 88vw;
  height: 100%;
  background: var(--panel-2);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}

.mobile-nav-overlay.open .mobile-nav-drawer {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.mobile-nav-brand-link {
  text-decoration: none;
}

.mobile-nav-brand {
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(125deg, var(--brand) 0%, var(--brand-2) 40%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-nav-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background .12s, color .12s;
}

.mobile-nav-close:hover {
  background: var(--danger-dim);
  color: var(--danger);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 10px 0 0;
}

.mobile-nav-link {
  display: block;
  padding: 13px 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-left: 3px solid transparent;
  border: none;
  border-left: 3px solid transparent;
  background: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
  transition: background .12s, color .12s;
  line-height: 1.4;
}

.mobile-nav-link:hover {
  background: rgba(99, 102, 241, .08);
  color: var(--text);
}

.mobile-nav-link-active {
  color: var(--brand-2) !important;
  background: rgba(245, 166, 35, .08) !important;
  border-left-color: var(--brand) !important;
}

.mobile-nav-link-admin {
  color: #facc15;
}

.mobile-nav-link-admin:hover {
  color: #fde047;
  background: rgba(250, 204, 21, .07);
}

.mobile-nav-signout {
  color: var(--danger) !important;
}

.mobile-nav-signout:hover {
  background: var(--danger-dim) !important;
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.mobile-nav-user {
  padding-bottom: 10px;
}

.mobile-nav-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 14px;
}

.mobile-nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.mobile-nav-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mobile-nav-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.mobile-nav-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mobile-nav-user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.mobile-nav-user-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — ≤ 700px  (existing block extended)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 700px) {
  .hamburger-btn {
    display: flex;
  }

  /* ensure topbar brand stays left, widget right */
  .topbar {
    gap: 8px;
  }

  /* admin nav links hidden on mobile — shown in drawer instead */
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — ≤ 640px  (Guide editor + filters + modals)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {

  /* ── Page / layout ── */
  .page {
    padding: 14px 12px 72px;
  }

  .panel {
    padding: 14px 12px;
  }

  .hero,
  .page-hero {
    padding: 24px 14px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 24px;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-head-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .page-head h1 {
    font-size: 20px;
  }

  /* ── Guide Editor topbar ── */
  .ve-topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0 14px;
    gap: 10px;
  }

  .ve-topbar>div:last-child {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .ve-topbar>div:last-child::-webkit-scrollbar {
    display: none;
  }

  .ve-topbar h1 {
    font-size: 17px !important;
  }

  /* ── Guide type selector ── */
  .guide-type-row {
    flex-direction: column;
    gap: 8px;
  }

  .guide-type-btn {
    width: 100%;
    text-align: left;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  /* ── Ve sections ── */
  .ve-section-body {
    padding: 12px 10px;
  }

  .ve-section-head {
    padding: 11px 12px;
  }

  /* ── Rune builder ── */
  .rune-row-grid {
    gap: 4px;
  }

  .rune-icon-btn {
    min-width: 50px;
    padding: 5px 5px;
  }

  .rune-icon-btn img {
    width: 30px;
    height: 30px;
  }

  .rune-icon-btn span {
    font-size: 9px;
    max-width: 50px;
  }

  /* ── Item slots ── */
  .item-slot {
    width: 46px;
  }

  .item-slot img {
    width: 46px;
    height: 46px;
  }

  .item-slots-row {
    gap: 6px;
  }

  /* ── Matchup editor ── */
  .matchup-row {
    flex-direction: column;
  }

  .matchup-champ-picker {
    width: 100%;
  }

  /* ── Item picker modal → centered sheet ── */
  .modal-backdrop {
    align-items: center;
    padding: 12px;
  }

  .modal-box {
    max-width: 100%;
    max-height: 90svh;
    border-radius: 16px;
  }

  .modal-item-grid {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    max-height: 55svh;
  }

  /* ── Filters (index page) ── */
  .gl-filters-mid {
    flex-direction: column;
    align-items: stretch;
  }

  .gl-sort-group {
    width: 100%;
  }

  .gl-sort-btn {
    flex: 1;
    text-align: center;
    font-size: 11px;
    padding: 7px 8px;
  }

  .gl-filters-top {
    flex-direction: column;
  }

  .gl-filters-top .gl-select {
    min-width: 0;
    width: 100%;
  }

  /* ── My Guides card ── */
  .my-guide-card {
    flex-wrap: wrap;
    gap: 10px;
  }

  .my-guide-card-actions {
    width: 100%;
    justify-content: flex-end;
  }

  /* ── User profile ── */
  .user-profile-header {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .profile-stats-bar {
    gap: 1px;
  }

  .profile-stat {
    padding: 11px 12px;
    min-width: 80px;
    flex: 1 1 80px;
  }

  .profile-stat:first-child {
    border-radius: 10px 0 0 0;
  }

  .profile-stat:last-child {
    border-radius: 0 0 10px 0;
  }

  .profile-stat-value {
    font-size: 17px;
  }

  /* ── Guide viewer ── */
  .vg-header {
    flex-direction: column;
    gap: 12px;
  }

  .vg-champ-icon {
    width: 56px;
    height: 56px;
  }

  .vg-item-block {
    flex-direction: column;
    gap: 6px;
  }

  .vg-item-block-label {
    padding-top: 0;
  }

  /* ── Skill order ── */
  .skill-order-grid {
    overflow-x: auto;
  }

  /* panel head ── */
  .panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* ── Tabs / set tabs scroll ── */
  .set-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .set-tabs::-webkit-scrollbar {
    display: none;
  }

  .vg-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .vg-tabs::-webkit-scrollbar {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — ≤ 480px  (Rune viewer + tightest layouts)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {

  /* Rune viewer secondary + shards stack vertically */
  .vp-rune-bottom-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .vp-rune-col-shards {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    width: 100%;
  }

  /* Smaller rune slot images to fit on narrow screens */
  .vp-rune-slot img {
    width: 34px;
    height: 34px;
  }

  .vp-rune-slot-ks img {
    width: 46px;
    height: 46px;
  }

  .vp-shard-slot img {
    width: 28px;
    height: 28px;
  }

  .vp-rune-name {
    font-size: 8px;
    max-width: 40px;
  }

  /* Smaller item icons in viewer */
  .vg-item-img {
    width: 32px !important;
    height: 32px !important;
  }

  /* Champion grid compact */
  .champ-grid {
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
    gap: 6px;
  }

  .champ-cell-icon {
    width: 46px;
    height: 46px;
  }

  .champ-cell-name {
    font-size: 9px;
  }

  /* Auth pages */
  .auth-card {
    padding: 24px 16px;
  }

  /* Hero */
  .hero h1,
  .page-hero h1 {
    font-size: 20px;
  }

  .hero .subtitle,
  .page-hero .subtitle {
    font-size: 13px;
  }

  /* Editor step badge + section header text */
  .ve-section-head {
    font-size: 13px;
    gap: 8px;
  }

  .ve-step-badge {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  /* ve guide grid (title + champion picker) already stacks at 740px */
}

/* ═══════════════════════════════════════════════════════════════════
   TOUCH — remove hover effects that don't make sense on touch
   ═══════════════════════════════════════════════════════════════════ */

@media (hover: none) {
  .guide-card:hover {
    transform: none;
  }

  .champ-cell:hover {
    transform: none;
  }

  .item-slot:hover .item-slot-del {
    display: none;
  }

  /* Always show delete button on touch devices */
  .item-slot-del {
    display: flex !important;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}
}

/* ── Light-mode overrides for inline rgba backgrounds ────────── */
[data-theme="light"] .topbar::after {
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, .2) 30%, rgba(212, 139, 10, .18) 60%, transparent);
}

[data-theme="light"] .comment-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(245, 247, 252, .9)) !important;
  border-color: var(--border) !important;
}

[data-theme="light"] .hero {
  background: linear-gradient(180deg, rgba(79, 70, 229, .06) 0%, transparent 70%);
}

[data-theme="light"] .panel {
  background: var(--panel-flat);
  border-color: var(--border);
}

[data-theme="light"] .user-avatar {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .08);
}

[data-theme="light"] .dropdown {
  background: #fff !important;
  border-color: var(--border-2) !important;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(40, 50, 80, .18);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(40, 50, 80, .3);
}

/* ── Theme picker panel ─────────────────────────────────────── */
.theme-picker {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  flex-wrap: wrap;
}

.theme-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  cursor: pointer;
  transition: border-color .15s, transform .1s;
  position: relative;
}

.theme-dot:hover {
  transform: scale(1.15);
  border-color: var(--text-muted);
}

.theme-dot.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-dim);
}

.theme-dot[data-theme="dark"] {
  background: #050913;
}

.theme-dot[data-theme="light"] {
  background: #f4f5f8;
}

.theme-dot[data-theme="midnight"] {
  background: #000000;
}

.theme-dot[data-theme="rose"] {
  background: #1e1228;
}

.theme-dot[data-theme="forest"] {
  background: #040d08;
}

.theme-dot[data-theme="ocean"] {
  background: #030d14;
}

/* ── Light-mode: swap white tints to dark tints ─────────────── */
[data-theme="light"] .btn-ghost,
[data-theme="light"] .btn-sm.btn-ghost {
  background: rgba(0, 0, 0, .04);
}

[data-theme="light"] .btn-ghost:hover,
[data-theme="light"] .btn-sm.btn-ghost:hover {
  background: rgba(0, 0, 0, .07);
}

[data-theme="light"] .gl-row:hover {
  background: rgba(0, 0, 0, .03);
}

[data-theme="light"] .topbar::after {
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, .15) 30%, rgba(212, 139, 10, .12) 60%, transparent);
}

[data-theme="light"] .hero::before,
[data-theme="light"] .page-hero::before {
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(79, 70, 229, .05), transparent 65%),
    radial-gradient(ellipse 40% 60% at 15% 80%, rgba(212, 139, 10, .04), transparent 65%);
}

[data-theme="light"] .hero::after,
[data-theme="light"] .page-hero::after {
  display: none;
}

[data-theme="light"] .kicker {
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════════════════════════════════════════════════════════════════════════
   Promo System Styles
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Promo containers ────────────────────────────────────────────────────── */
.flb-promo-wrap {
  position: relative;
  text-align: center;
  max-width: 100%;
}

.flb-promo-badge {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .5px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, .35);
  padding: 1px 4px;
  border-radius: 3px;
  pointer-events: none;
  line-height: 1.4;
  z-index: 1;
}

.flb-promo-link {
  display: block;
  width: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: opacity .15s;
}

.flb-promo-link:hover {
  opacity: .85;
}

.flb-promo-img {
  display: block;
  border-radius: 6px;
}

.flb-promo-desc {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Slot containers ──────────────────────────────────────────────────────── */
.flb-banner {
  max-width: 728px;
  margin: 16px auto;
}

.flb-inline {
  max-width: 100%;
  margin: 8px 0;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.flb-footer-promo {
  max-width: 728px;
  margin: 24px auto 0;
}

.flb-sidebar-promo {
  margin-top: 20px;
}

/* ── Admin: Placement toggle switch ───────────────────────────────────────── */
.ad-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.ad-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ad-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .1);
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s;
}

.ad-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform .2s, background .2s;
}

.ad-toggle input:checked+.ad-toggle-slider {
  background: var(--brand);
}

.ad-toggle input:checked+.ad-toggle-slider::before {
  transform: translateX(18px);
  background: #fff;
}

/* ── Admin: Ad status badges ──────────────────────────────────────────────── */
.ad-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.ad-badge-active {
  background: rgba(52, 211, 153, .12);
  color: #34d399;
}

.ad-badge-paused {
  background: rgba(245, 166, 35, .12);
  color: var(--brand);
}

.ad-badge-archived {
  background: rgba(107, 114, 128, .12);
  color: var(--text-muted);
}

/* ── Admin: Stat cards ────────────────────────────────────────────────────── */
.ad-stat-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  text-align: center;
}

.ad-stat-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.ad-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Guide detail: two-column layout ─────────────────────────────────────── */
/* ── Floating side ads (positioned in viewport margins) ───────────────────── */
.flb-side-panel {
  position: fixed;
  top: 90px;
  z-index: 10;
  /* width set dynamically by ad-loader based on placement dimensions */
}

.flb-side-panel-left {
  /* positioned dynamically by ad-loader */
}

.flb-side-panel-right {
  /* positioned dynamically by ad-loader */
}

.flb-side-panel .flb-promo-img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

@media (max-width: 768px) {
  .flb-banner {
    max-width: 100%;
    padding: 0 12px;
  }
}

/* ── Light theme adjustments ──────────────────────────────────────────────── */
[data-theme="light"] .flb-inline {
  border-top-color: rgba(0, 0, 0, .06);
  border-bottom-color: rgba(0, 0, 0, .06);
}

[data-theme="light"] .ad-toggle-slider {
  background: rgba(0, 0, 0, .12);
}

[data-theme="light"] .ad-stat-card {
  background: rgba(0, 0, 0, .02);
}


/* ══════════════════════════════════════════════════════════════════════════════
   Notifications — Instagram-style bell + dropdown panel
   ══════════════════════════════════════════════════════════════════════════════ */

.notif-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.notif-bell {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-muted);
  transition: color .15s;
  line-height: 1;
}

.notif-bell:hover {
  color: var(--text);
}

.notif-bell-icon {
  width: 22px;
  height: 22px;
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  border-radius: 999px;
  border: 2px solid var(--surface);
  pointer-events: none;
  animation: notif-pop .3s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes notif-pop {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: -40px;
  width: 380px;
  max-height: 480px;
  background: var(--surface-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(99, 102, 241, .08);
  opacity: 0;
  transform: translateY(-6px) scale(.97);
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 300;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notif-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border-2);
}

.notif-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.notif-mark-all {
  background: none;
  border: none;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s;
}

.notif-mark-all:hover {
  background: rgba(99, 102, 241, .1);
}

.notif-list {
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  transition: background .12s;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  position: relative;
}

.notif-item:hover {
  background: rgba(255, 255, 255, .04);
}

.notif-item.unread {
  background: rgba(99, 102, 241, .06);
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand, #6366f1);
}

.notif-avatar {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.notif-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.notif-avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.notif-type-badge {
  position: absolute;
  bottom: -2px;
  right: -4px;
  font-size: 14px;
  line-height: 1;
  background: var(--surface-panel);
  border-radius: 50%;
  padding: 1px;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-text {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  color: var(--text-dim);
}

.notif-text strong {
  color: var(--text);
  font-weight: 600;
}

.notif-guide {
  color: var(--brand);
  font-weight: 500;
}

.notif-preview {
  font-size: 12px;
  color: var(--text-muted);
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  display: inline-block;
}

.notif-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  opacity: 0;
  transition: opacity .15s, color .15s;
  align-self: center;
}

.notif-item:hover .notif-dismiss {
  opacity: 1;
}

.notif-dismiss:hover {
  color: #ef4444;
}

.notif-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.notif-footer {
  border-top: 1px solid var(--border-2);
  padding: 8px 16px;
  text-align: center;
}

.notif-load-more {
  background: none;
  border: none;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .15s;
  width: 100%;
}

.notif-load-more:hover {
  background: rgba(99, 102, 241, .1);
}

/* ── Light theme overrides ── */
[data-theme="light"] .notif-item:hover {
  background: rgba(0, 0, 0, .03);
}

[data-theme="light"] .notif-item.unread {
  background: rgba(99, 102, 241, .05);
}

[data-theme="light"] .notif-item {
  border-bottom-color: rgba(0, 0, 0, .06);
}

/* ── Mobile responsive ── */
@media (max-width: 480px) {
  .notif-panel {
    width: calc(100vw - 20px);
    right: -60px;
    max-height: 70vh;
  }
}