/* ═══════════════════════════════════════════════════════════════════
   F1 SYSTEM — ULTRA PREMIUM DESIGN SYSTEM v3.0
   Aurora · Glassmorphism · Depth · Motion · Precision
   ═══════════════════════════════════════════════════════════════════ */

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

/* ── Token System ────────────────────────────────────────────────── */
:root {
  /* Backgrounds — Rich Deep Void */
  --bg-void:       #05060A;
  --bg-deep:       #080912;
  --bg-base:       #0C0E1B;
  --bg-raised:     #111428;
  --bg-float:      #171B34;
  --bg-glass:      rgba(17, 20, 40, 0.82);
  --bg-glass-light:rgba(255, 255, 255, 0.07);

  /* Accents — Vivid Saturated Neon */
  --blue:          #38BDF8;
  --blue-bright:   #60A5FA;
  --blue-glow:     rgba(56, 189, 248, 0.55);
  --purple:        #A855F7;
  --purple-bright: #C084FC;
  --purple-glow:   rgba(168, 85, 247, 0.55);
  --cyan:          #22D3EE;
  --cyan-bright:   #38BDF8;
  --cyan-glow:     rgba(34, 211, 238, 0.55);
  --violet:        #8B5CF6;
  --indigo:        #6366F1;
  --emerald:       #10B981;
  --amber:         #FBBF24;
  --rose:          #F43F5E;

  /* Text — High Contrast Clarity */
  --text-primary:  #FFFFFF;
  --text-secondary:#CBD5E1;
  --text-muted:    #94A3B8;
  --text-dim:      #64748B;

  /* Borders — Glowing & Defined */
  --border:        rgba(255, 255, 255, 0.12);
  --border-md:     rgba(255, 255, 255, 0.18);
  --border-strong: rgba(255, 255, 255, 0.28);
  --border-blue:   rgba(56, 189, 248, 0.55);
  --border-purple: rgba(168, 85, 247, 0.55);
  --border-cyan:   rgba(34, 211, 238, 0.50);

  /* Gradients — Vivid Saturated Aurora */
  --grad-blue:     linear-gradient(135deg, #38BDF8, #A855F7);
  --grad-cyan:     linear-gradient(135deg, #22D3EE, #38BDF8);
  --grad-aurora:   linear-gradient(135deg, #00F2FE, #4FACFE, #A855F7, #FF2E93);
  --grad-card:     linear-gradient(135deg, rgba(56,189,248,0.14), rgba(168,85,247,0.10));

  /* Shadows — Deep Vibrant Glows */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:     0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg:     0 16px 48px rgba(0,0,0,0.6);
  --shadow-xl:     0 24px 64px rgba(0,0,0,0.7);
  --shadow-blue:   0 8px 32px rgba(56,189,248,0.35);
  --shadow-purple: 0 8px 32px rgba(168,85,247,0.35);
  --shadow-glow:   0 0 50px rgba(56,189,248,0.25);

  /* Radii */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  20px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --r-full:9999px;

  /* Sidebar */
  --sidebar-w: 72px;
  --sidebar-expanded: 260px;

  /* Transitions */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:  0.15s;
  --t-base:  0.25s;
  --t-slow:  0.4s;
  --t-slower:0.65s;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Cairo', 'Inter', 'Manrope', system-ui, sans-serif;
  background: var(--bg-void);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}

/* ── Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--blue), var(--purple));
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--blue-bright); }

/* ── Aurora Background ───────────────────────────────────────────── */
.aurora-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora-bg::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 75%;
  height: 75%;
  background: radial-gradient(ellipse, rgba(56,189,248,0.28) 0%, rgba(168,85,247,0.18) 40%, transparent 70%);
  animation: auroraFloat1 12s ease-in-out infinite;
  filter: blur(70px);
}
.aurora-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(34,211,238,0.24) 0%, rgba(255,46,147,0.14) 40%, transparent 70%);
  animation: auroraFloat2 15s ease-in-out infinite;
  filter: blur(85px);
}
.aurora-orb-3 {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(168,85,247,0.18) 0%, transparent 70%);
  animation: auroraFloat3 18s ease-in-out infinite;
  filter: blur(110px);
}

@keyframes auroraFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-3%, 5%) scale(1.05); }
  66%       { transform: translate(4%, -3%) scale(0.97); }
}
@keyframes auroraFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(5%, -4%) scale(1.07); }
  66%       { transform: translate(-3%, 3%) scale(0.95); }
}
@keyframes auroraFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50%       { transform: translate(-48%, -52%) scale(1.1); opacity: 1; }
}

/* ── Noise Texture Overlay ────────────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── Particle Canvas ─────────────────────────────────────────────── */
#particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* ── App Layout ──────────────────────────────────────────────────── */
.app-layout {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 100vh;
}

/* ── Floating Sidebar ────────────────────────────────────────────── */
.f1-sidebar {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: var(--sidebar-w);
  background: rgba(9, 10, 15, 0.85);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  z-index: 200;
  transition: width var(--t-slow) var(--ease-out), border-color var(--t-base);
  overflow: hidden;
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,0.05);
}
.f1-sidebar:hover,
.f1-sidebar.expanded {
  width: var(--sidebar-expanded);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  margin-bottom: 20px;
  width: 100%;
  overflow: hidden;
  text-decoration: none;
  flex-shrink: 0;
}
.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--grad-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255,255,255,0.2);
  font-size: 1.1rem;
  color: #fff;
  font-weight: 900;
}
.sidebar-logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.f1-sidebar:hover .sidebar-logo-text,
.f1-sidebar.expanded .sidebar-logo-text {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-divider {
  width: 32px;
  height: 1px;
  background: var(--border-md);
  margin: 8px auto 16px;
  transition: width var(--t-slow) var(--ease-out);
  border-radius: 1px;
}
.f1-sidebar:hover .sidebar-divider,
.f1-sidebar.expanded .sidebar-divider {
  width: calc(100% - 32px);
}

.sidebar-nav { flex: 1; width: 100%; display: flex; flex-direction: column; gap: 4px; padding: 0 8px; overflow-y: auto; overflow-x: hidden; }
.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  padding: 12px 8px 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-out);
}
.f1-sidebar:hover .sidebar-section-label,
.f1-sidebar.expanded .sidebar-section-label {
  opacity: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: var(--r-md);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--t-base) var(--ease-out);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-link .s-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  font-size: 1rem;
  transition: all var(--t-base) var(--ease-out);
  background: transparent;
}
.sidebar-link .s-label {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.f1-sidebar:hover .sidebar-link .s-label,
.f1-sidebar.expanded .sidebar-link .s-label {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: var(--bg-glass-light);
}
.sidebar-link:hover .s-icon {
  background: rgba(59,130,246,0.15);
  color: var(--blue-bright);
}
.sidebar-link.active {
  color: var(--blue-bright);
  background: rgba(59,130,246,0.12);
}
.sidebar-link.active .s-icon {
  background: rgba(59,130,246,0.2);
  color: var(--blue);
  box-shadow: 0 0 16px rgba(59,130,246,0.3);
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--grad-blue);
  border-radius: 2px 0 0 2px;
}

.sidebar-footer {
  width: 100%;
  padding: 8px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.sidebar-user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-base);
  overflow: hidden;
}
.sidebar-user-mini:hover { background: var(--bg-glass-light); }
.sidebar-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border-blue);
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-user-info {
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-out);
  overflow: hidden;
}
.f1-sidebar:hover .sidebar-user-info,
.f1-sidebar.expanded .sidebar-user-info {
  opacity: 1;
}
.sidebar-username { font-size: 0.8rem; font-weight: 700; color: var(--text-primary); }
.sidebar-user-tag { font-size: 0.7rem; color: var(--text-muted); }

/* ── Main Content Wrapper ─────────────────────────────────────────── */
.main-wrap {
  flex: 1;
  margin-right: calc(var(--sidebar-w) + 32px);
  padding: 24px 24px 24px 0;
  min-width: 0;
  transition: margin-right var(--t-slow) var(--ease-out);
}

/* ── Top Bar ─────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 28px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  padding: 12px 20px;
  box-shadow: var(--shadow-md);
}
.topbar-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.topbar-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.topbar-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-top: 1px; }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  max-width: 280px;
  flex: 1;
  transition: all var(--t-base);
}
.search-box:focus-within {
  border-color: var(--border-blue);
  background: rgba(59,130,246,0.05);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}
.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  width: 100%;
}
.search-box input::placeholder { color: var(--text-dim); }
.search-icon { color: var(--text-dim); font-size: 0.85rem; flex-shrink: 0; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  text-decoration: none;
  font-size: 0.9rem;
}
.icon-btn:hover {
  background: rgba(59,130,246,0.1);
  border-color: var(--border-blue);
  color: var(--blue-bright);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  transition: all var(--t-base);
  text-decoration: none;
  color: inherit;
}
.topbar-user:hover { border-color: var(--border-blue); background: rgba(59,130,246,0.06); }
.topbar-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-blue);
  object-fit: cover;
}
.topbar-username { font-size: 0.8rem; font-weight: 700; }

.bot-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: var(--emerald);
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 6px var(--emerald); }
  50% { box-shadow: 0 0 12px var(--emerald), 0 0 20px rgba(16,185,129,0.3); }
}

/* ── Glass Card ──────────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out);
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-card);
  pointer-events: none;
  opacity: 0.5;
}
.glass-card:hover {
  border-color: var(--border-blue);
  box-shadow: var(--shadow-blue), var(--shadow-lg);
}

.glass-card.hoverable {
  cursor: pointer;
  transform-style: preserve-3d;
}
.glass-card.hoverable:hover {
  transform: translateY(-4px);
}

.card-glow-blue  { box-shadow: 0 0 0 1px rgba(59,130,246,0.2), 0 8px 24px rgba(59,130,246,0.1); }
.card-glow-purple { box-shadow: 0 0 0 1px rgba(139,92,246,0.2), 0 8px 24px rgba(139,92,246,0.1); }
.card-glow-cyan  { box-shadow: 0 0 0 1px rgba(6,182,212,0.2), 0 8px 24px rgba(6,182,212,0.1); }

/* ── Gradient Border ─────────────────────────────────────────────── */
.grad-border {
  position: relative;
  border-radius: var(--r-xl);
  background-clip: padding-box;
}
.grad-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--grad-aurora);
  z-index: -1;
  opacity: 0.4;
  transition: opacity var(--t-base);
}
.grad-border:hover::after { opacity: 0.8; }

/* ── Stat Cards ──────────────────────────────────────────────────── */
.stat-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
}
.stat-icon-wrap.blue  { background: rgba(59,130,246,0.15); color: var(--blue-bright); }
.stat-icon-wrap.purple{ background: rgba(139,92,246,0.15); color: var(--purple-bright); }
.stat-icon-wrap.cyan  { background: rgba(6,182,212,0.15); color: var(--cyan-bright); }
.stat-icon-wrap.emerald { background: rgba(16,185,129,0.15); color: var(--emerald); }
.stat-icon-wrap.amber { background: rgba(245,158,11,0.15); color: var(--amber); }

.stat-content { flex: 1; min-width: 0; }
.stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-value.purple-grad { background: var(--grad-blue); background: linear-gradient(135deg, var(--purple), var(--blue)); -webkit-background-clip: text; }
.stat-value.cyan-grad { background: var(--grad-cyan); -webkit-background-clip: text; }
.stat-value.green-grad { background: linear-gradient(135deg, var(--emerald), var(--cyan)); -webkit-background-clip: text; }
.stat-value.amber-grad { background: linear-gradient(135deg, var(--amber), var(--rose)); -webkit-background-clip: text; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--r-full);
  margin-top: 4px;
}
.stat-delta.up { background: rgba(16,185,129,0.1); color: var(--emerald); }
.stat-delta.down { background: rgba(244,63,94,0.1); color: var(--rose); }

/* ── Section Header ──────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: rgba(59,130,246,0.12);
  color: var(--blue-bright);
}
.section-badge {
  background: rgba(59,130,246,0.1);
  border: 1px solid var(--border-blue);
  color: var(--blue-bright);
  padding: 2px 10px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ── Server / Guild Cards ────────────────────────────────────────── */
.server-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.server-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 2px solid var(--border-md);
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 900;
  color: var(--blue-bright);
  transition: border-color var(--t-base);
}
.server-card:hover .server-icon-wrap {
  border-color: var(--border-blue);
  box-shadow: 0 0 16px rgba(59,130,246,0.25);
}
.server-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.server-info { flex: 1; min-width: 0; }
.server-name { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.server-meta-item { font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

.online-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 4px var(--emerald); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--t-base) var(--ease-spring);
  position: relative;
  overflow: hidden;
  font-family: inherit;
  white-space: nowrap;
  user-select: none;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}
.btn:active::after { background: rgba(255,255,255,0.1); }

.btn-primary {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(59,130,246,0.1);
  border: 1px solid var(--border-blue);
  color: var(--blue-bright);
}
.btn-secondary:hover {
  background: rgba(59,130,246,0.18);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(244,63,94,0.15);
  border: 1px solid rgba(244,63,94,0.3);
  color: #FB7185;
}
.btn-danger:hover {
  background: rgba(244,63,94,0.25);
  transform: translateY(-1px);
}

.btn-sm { padding: 7px 14px; font-size: 0.8rem; border-radius: var(--r-sm); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--r-md); }
.btn-xl { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--r-lg); }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; }

/* Ripple */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: scale(0);
  animation: rippleAnim 0.5s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ── Forms ───────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}
.form-label .label-icon { font-size: 0.8rem; opacity: 0.7; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 16px;
  background: rgba(9,10,15,0.6);
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  transition: all var(--t-base) var(--ease-out);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(9,10,15,0.9);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.form-input::placeholder { color: var(--text-dim); }
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236B7090'%3E%3Cpath d='M4.427 6.427a.75.75 0 011.146-.02L8 9.165l2.427-2.758a.75.75 0 111.146.97l-3 3.41a.75.75 0 01-1.146 0l-3-3.41a.75.75 0 01.02-0.95z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 14px;
  padding-left: 34px;
  cursor: pointer;
}

/* ── Toggle Switch ───────────────────────────────────────────────── */
.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-wrap:last-child { border-bottom: none; }
.toggle-info h4 { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.toggle-info p { font-size: 0.75rem; color: var(--text-muted); }

.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-md);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
}
.toggle-track::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  right: 3px;
  top: 3px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: all var(--t-base) var(--ease-spring);
  box-shadow: var(--shadow-sm);
}
.toggle input:checked + .toggle-track {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 16px rgba(59,130,246,0.3);
}
.toggle input:checked + .toggle-track::before {
  transform: translateX(-22px);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ── Tab Navigation ──────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 4px;
  background: rgba(9,10,15,0.5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--r-md);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  font-family: inherit;
  position: relative;
}
.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.tab-btn.active {
  background: var(--bg-raised);
  color: var(--blue-bright);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-blue);
}
.tab-panel { display: none; animation: tabFadeIn var(--t-base) var(--ease-out); }
.tab-panel.active { display: block; }
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Guild Header ────────────────────────────────────────────────── */
.guild-hero {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  margin-bottom: 24px;
}
.guild-hero-banner {
  height: 120px;
  background: linear-gradient(135deg, rgba(59,130,246,0.3) 0%, rgba(139,92,246,0.2) 50%, rgba(6,182,212,0.2) 100%);
  position: relative;
}
.guild-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(4px);
}
.guild-hero-content {
  padding: 0 28px 24px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: -32px;
  position: relative;
}
.guild-icon-large {
  width: 72px;
  height: 72px;
  border-radius: var(--r-lg);
  border: 3px solid var(--bg-base);
  overflow: hidden;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--blue-bright);
  flex-shrink: 0;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border-blue);
}
.guild-icon-large img { width: 100%; height: 100%; object-fit: cover; }
.guild-hero-info { flex: 1; min-width: 0; padding-top: 36px; }
.guild-hero-name { font-size: 1.4rem; font-weight: 900; color: var(--text-primary); margin-bottom: 6px; }
.guild-hero-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.guild-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-online { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); color: var(--emerald); }
.badge-members { background: rgba(59,130,246,0.1); border: 1px solid var(--border-blue); color: var(--blue-bright); }
.badge-boost { background: rgba(139,92,246,0.1); border: 1px solid var(--border-purple); color: var(--purple-bright); }
.badge-id { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-muted); }

/* ── Progress Bar ─────────────────────────────────────────────────── */
.progress-bar-wrap {
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-full);
  height: 6px;
  overflow: hidden;
  margin-top: 6px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--grad-blue);
  transition: width 1.2s var(--ease-out);
  position: relative;
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.4));
  border-radius: var(--r-full);
  animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* ── Utility Grid Layouts ─────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; }

/* ── Animate-on-scroll ────────────────────────────────────────────── */
.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.anim-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-delay-1 { transition-delay: 0.08s; }
.anim-delay-2 { transition-delay: 0.16s; }
.anim-delay-3 { transition-delay: 0.24s; }
.anim-delay-4 { transition-delay: 0.32s; }
.anim-delay-5 { transition-delay: 0.40s; }

/* ── Floating Notification / Toast ───────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  min-width: 280px;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  animation: toastIn var(--t-slow) var(--ease-spring) forwards;
}
.toast.success { border-color: rgba(16,185,129,0.3); }
.toast.error   { border-color: rgba(244,63,94,0.3); }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast.success .toast-icon { color: var(--emerald); }
.toast.error   .toast-icon { color: var(--rose); }
.toast-msg { flex: 1; font-size: 0.875rem; font-weight: 600; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Profile Hero ────────────────────────────────────────────────── */
.profile-banner {
  width: 100%;
  height: 180px;
  position: relative;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(59,130,246,0.4), rgba(139,92,246,0.3), rgba(6,182,212,0.25));
}
.profile-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,10,15,0.7), transparent);
}
.profile-header {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 0 28px 24px;
  margin-top: -50px;
  position: relative;
}
.profile-avatar-xl {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--bg-base);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--border-blue), var(--shadow-blue);
}
.profile-name { font-size: 1.5rem; font-weight: 900; color: var(--text-primary); margin-bottom: 4px; }
.profile-tag { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

/* ── Empty State ─────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-title { font-size: 1.1rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.empty-desc { font-size: 0.875rem; max-width: 320px; margin: 0 auto; line-height: 1.6; }

/* ── Landing (no-sidebar) pages ──────────────────────────────────── */
.landing-wrap { position: relative; z-index: 10; }

/* Landing Nav */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(6,7,11,0.75);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--grad-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow-blue);
}
.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 900;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--t-base);
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--blue-bright); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border-blue); object-fit: cover; }

/* ── Hero Section ────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--blue-bright);
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  max-width: 900px;
}
.hero-title .gradient-text {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
  background-size: 200% auto;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50%       { background-position: 100% center; }
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 48px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ── Stats Row ───────────────────────────────────────────────────── */
.stats-row { display: flex; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.stat-item {
  flex: 1;
  padding: 24px;
  text-align: center;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  transition: background var(--t-base);
}
.stat-item:hover { background: rgba(59,130,246,0.05); }
.stat-num { font-size: 2rem; font-weight: 900; background: var(--grad-aurora); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-desc { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; margin-top: 4px; }

/* ── Feature Bento Grid ──────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.bento-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--t-base) var(--ease-out);
}
.bento-card:hover { transform: translateY(-4px); border-color: var(--border-blue); box-shadow: var(--shadow-blue); }
.bento-card.col-3 { grid-column: span 3; }
.bento-card.col-2 { grid-column: span 2; }
.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-6 { grid-column: span 6; }

.bento-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.bento-icon.blue   { background: rgba(59,130,246,0.15); color: var(--blue-bright); }
.bento-icon.purple { background: rgba(139,92,246,0.15); color: var(--purple-bright); }
.bento-icon.cyan   { background: rgba(6,182,212,0.15); color: var(--cyan-bright); }
.bento-icon.emerald{ background: rgba(16,185,129,0.15); color: var(--emerald); }
.bento-icon.amber  { background: rgba(245,158,11,0.15); color: var(--amber); }
.bento-icon.rose   { background: rgba(244,63,94,0.15); color: var(--rose); }

.bento-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); font-weight: 700; margin-bottom: 8px; }
.bento-title { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; }
.bento-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* Glow accent behind bento cards */
.bento-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.15;
}
.bento-glow.blue   { background: var(--blue); }
.bento-glow.purple { background: var(--purple); }
.bento-glow.cyan   { background: var(--cyan); }

/* ── Divider ─────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.divider-gradient { height: 1px; background: linear-gradient(90deg, transparent, var(--border-blue), transparent); margin: 24px 0; }

/* ── Code / Command Style ────────────────────────────────────────── */
.cmd-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan-bright);
  font-family: 'JetBrains Mono', monospace;
}

/* ── Sticky Save Bar ─────────────────────────────────────────────── */
.save-bar {
  position: sticky;
  bottom: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(11,13,22,0.92);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-blue);
  border-radius: var(--r-xl);
  padding: 14px 24px;
  box-shadow: var(--shadow-blue), var(--shadow-xl);
  transform: translateY(0);
  transition: all var(--t-base) var(--ease-out);
  margin-top: 24px;
}
.save-bar-text { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }

/* ── Footer ──────────────────────────────────────────────────────── */
.landing-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  background: rgba(6,7,11,0.5);
}
.footer-logo { font-size: 1.2rem; font-weight: 900; background: var(--grad-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }
.footer-text { font-size: 0.8rem; color: var(--text-dim); }

/* ── Daily Reward ────────────────────────────────────────────────── */
.reward-card {
  text-align: center;
  padding: 48px 32px;
}
.reward-icon-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(245,158,11,0.1);
  border: 2px solid rgba(245,158,11,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 24px;
  animation: floatReward 3s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(245,158,11,0.2);
}
@keyframes floatReward {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-10px) rotate(5deg); }
}

.streak-track {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0;
}
.streak-day {
  flex: 1;
  min-width: 60px;
  max-width: 90px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 8px;
  text-align: center;
  transition: all var(--t-base);
}
.streak-day.done {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
  color: var(--emerald);
}
.streak-day.today {
  background: rgba(59,130,246,0.12);
  border-color: var(--border-blue);
  box-shadow: 0 0 20px rgba(59,130,246,0.2);
}
.streak-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; margin-bottom: 6px; }
.streak-reward { font-size: 1.1rem; margin-bottom: 4px; }
.streak-coins { font-size: 0.7rem; font-weight: 700; }

/* ── Settings Split ──────────────────────────────────────────────── */
.split-panel {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}
.preview-panel {
  position: sticky;
  top: 24px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--border-md);
}
.preview-label {
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-area { padding: 20px; }
.preview-area img { width: 100%; border-radius: var(--r-md); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
  .bento-card.col-3, .bento-card.col-4 { grid-column: span 3; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .main-wrap { margin-right: calc(var(--sidebar-w) + 24px); padding: 16px 16px 16px 0; }
  .split-panel { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .settings-grid { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; }
  .stats-row .stat-item { min-width: 50%; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.col-2, .bento-card.col-3, .bento-card.col-4, .bento-card.col-6 { grid-column: span 1; }
  .f1-sidebar { top: auto; right: 0; bottom: 0; left: 0; width: 100% !important; height: 64px; flex-direction: row; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 0 12px; }
  .f1-sidebar:hover { width: 100% !important; height: 64px; }
  .sidebar-nav { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 8px 4px; gap: 2px; }
  .sidebar-brand, .sidebar-section-label, .sidebar-footer { display: none; }
  .sidebar-link { padding: 8px 10px; }
  .sidebar-link .s-label { display: none; }
  .f1-sidebar:hover .sidebar-link .s-label { display: none; }
  .main-wrap { margin-right: 0; margin-bottom: 80px; padding: 16px; }
  .topbar { border-radius: var(--r-lg); }
  .tab-nav { overflow-x: auto; flex-wrap: nowrap; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; letter-spacing: -1px; }
  .bento-icon { width: 40px; height: 40px; font-size: 1.1rem; }
}

/* ── Selection Color ────────────────────────────────────────────── */
::selection { background: rgba(59,130,246,0.3); color: #fff; }

/* ══════════════════════════════════════════════════════════════
   LAYOUT COMPONENTS
   ══════════════════════════════════════════════════════════════ */

/* ── Main Content Wrap ───────────────────────────────────────── */
.main-wrap {
  flex: 1;
  margin-right: calc(var(--sidebar-w) + 32px);
  padding: 24px 28px 24px 28px;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

/* ── Guild Full-Height Layout ─────────────────────────────── */
.guild-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-right: calc(var(--sidebar-w) + 16px);
  height: 100vh;
}
.guild-inner {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.guild-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.guild-tabs-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-md);
  overflow-y: auto;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.gt-section {
  font-size: 0.62rem; font-weight: 800; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.8px; padding: 12px 10px 4px;
}
.gt-tab {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 10px;
  cursor: pointer; font-size: 0.8rem; font-weight: 700;
  color: var(--text-secondary); border: 1px solid transparent;
  transition: all 0.15s; background: transparent; font-family: inherit;
  width: 100%; text-align: right; text-decoration: none;
}
.gt-tab:hover  { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.gt-tab.active { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: var(--blue-bright); }
.gt-tab i { width: 16px; text-align: center; flex-shrink: 0; }
.guild-topbar {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-md);
  padding: 14px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  flex-shrink: 0;
}
.guild-icon {
  width: 48px; height: 48px; border-radius: 12px;
  border: 2px solid rgba(59,130,246,0.4); object-fit: cover;
  box-shadow: 0 0 18px rgba(59,130,246,0.2); flex-shrink: 0;
}
.guild-name { font-size: 1.1rem; font-weight: 900; color: var(--text-primary); margin-bottom: 2px; }
.guild-meta { font-size: 0.73rem; color: var(--text-dim); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }



/* ── Topbar ──────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  padding: 14px 22px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.topbar-left  { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-title    { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); }
.topbar-subtitle { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }
.topbar-user { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border-blue); }
.topbar-username { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }

/* ── Bot Status Pill ─────────────────────────────────────────── */
.bot-status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.25);
  color: var(--emerald); padding: 5px 14px; border-radius: var(--r-full);
  font-size: 0.78rem; font-weight: 700;
}
.online-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--emerald);
  animation: onlinePulse 2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  70%       { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

/* ── Sidebar extras ──────────────────────────────────────────── */
.sidebar-nav {
  display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 0 8px; flex: 1;
}
.sidebar-section-label {
  font-size: 0.62rem; font-weight: 800; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.8px;
  padding: 10px 10px 4px; white-space: nowrap; overflow: hidden;
}
.sidebar-divider { height: 1px; background: var(--border); margin: 4px 16px 8px; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: var(--r-sm);
  color: var(--text-muted); text-decoration: none;
  font-size: 0.82rem; font-weight: 600;
  border: 1px solid transparent;
  transition: all var(--t-fast); white-space: nowrap; overflow: hidden;
}
.sidebar-link:hover { background: var(--bg-glass-light); color: var(--text-primary); }
.sidebar-link.active {
  background: rgba(59,130,246,0.1); color: var(--blue-bright);
  border-color: rgba(59,130,246,0.25);
}
.s-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); flex-shrink: 0; color: inherit;
}
.sidebar-link.active .s-icon { background: rgba(59,130,246,0.15); }
.s-label { opacity: 0; white-space: nowrap; transition: opacity var(--t-base); }
.f1-sidebar:hover .s-label,
.f1-sidebar.expanded .s-label { opacity: 1; }

.sidebar-footer {
  padding: 10px 8px; width: 100%; border-top: 1px solid var(--border); margin-top: 8px;
}
.sidebar-user-mini { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.sidebar-avatar-sm { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border-blue); flex-shrink: 0; object-fit: cover; }
.sidebar-user-info { overflow: hidden; opacity: 0; transition: opacity var(--t-base); }
.sidebar-username { font-size: 0.78rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.f1-sidebar:hover .sidebar-user-info,
.f1-sidebar.expanded .sidebar-user-info { opacity: 1; }

/* ── Icon Button ─────────────────────────────────────────────── */
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-glass-light); border: 1px solid var(--border);
  color: var(--text-muted); text-decoration: none; cursor: pointer;
  transition: all var(--t-fast);
}
.icon-btn:hover { background: rgba(59,130,246,0.1); color: var(--blue-bright); border-color: var(--border-blue); }

/* ══════════════════════════════════════════════════════════════
   LANDING PAGE COMPONENTS
   ══════════════════════════════════════════════════════════════ */
.landing-wrap { position: relative; z-index: 10; }

/* Navigation */
.landing-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,10,15,0.8); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-md);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad-blue); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.95rem; font-weight: 900; box-shadow: var(--shadow-blue);
}
.nav-logo-text {
  font-size: 1rem; font-weight: 900;
  background: var(--grad-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav-link {
  padding: 6px 14px; border-radius: var(--r-sm); font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted); text-decoration: none; transition: all var(--t-fast);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-glass-light); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border-blue); }

/* Hero */
.hero-section { min-height: 85vh; display: flex; align-items: center; justify-content: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
  background: rgba(59,130,246,0.07); border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--r-full); font-size: 0.78rem; font-weight: 700; color: var(--blue-bright);
  margin-bottom: 24px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--emerald);
  animation: onlinePulse 2s infinite; flex-shrink: 0;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 900; line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 20px; color: var(--text-primary);
}
.gradient-text {
  background: var(--grad-aurora); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.05rem; color: var(--text-secondary); max-width: 640px;
  line-height: 1.75; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Stats Row */
.stats-row {
  display: flex; align-items: center; justify-content: space-around;
  padding: 24px; gap: 16px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 1.8rem; font-weight: 900;
  background: var(--grad-aurora); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.stat-desc { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento-card {
  background: var(--bg-glass); backdrop-filter: blur(20px);
  border: 1px solid var(--border-md); border-radius: var(--r-xl);
  padding: 28px; position: relative; overflow: hidden;
  transition: all var(--t-base);
  transform-style: preserve-3d;
}
.bento-card:hover { border-color: var(--border-blue); transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.bento-card.col-2 { grid-column: span 2; }
.bento-card.col-3 { grid-column: span 3; }
.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-6 { grid-column: span 6; }
.bento-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.bento-icon.blue   { background: rgba(59,130,246,0.12); color: var(--blue-bright); border: 1px solid rgba(59,130,246,0.2); }
.bento-icon.purple { background: rgba(139,92,246,0.12); color: var(--purple-bright); border: 1px solid rgba(139,92,246,0.2); }
.bento-icon.cyan   { background: rgba(6,182,212,0.12); color: var(--cyan-bright); border: 1px solid rgba(6,182,212,0.2); }
.bento-icon.emerald{ background: rgba(16,185,129,0.12); color: var(--emerald); border: 1px solid rgba(16,185,129,0.2); }
.bento-icon.amber  { background: rgba(245,158,11,0.12); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }
.bento-icon.rose   { background: rgba(244,63,94,0.12); color: var(--rose); border: 1px solid rgba(244,63,94,0.2); }
.bento-label { font-size: 0.7rem; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.bento-title { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; }
.bento-desc { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.7; }
.bento-glow {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px);
}
.bento-glow.blue   { background: rgba(59,130,246,0.15); }
.bento-glow.purple { background: rgba(139,92,246,0.12); }
.bento-glow.cyan   { background: rgba(6,182,212,0.10); }

.cmd-tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 0.7rem; font-weight: 700;
  background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); color: var(--blue-bright);
}

/* Footer */
.landing-footer {
  padding: 48px 24px; text-align: center;
  border-top: 1px solid var(--border);
}
.footer-logo { font-size: 1.1rem; font-weight: 900; margin-bottom: 8px; opacity: 0.6; }
.footer-text { font-size: 0.8rem; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════════════
   DASHBOARD PAGE COMPONENTS
   ══════════════════════════════════════════════════════════════ */

/* Glass Card generic */
.glass-card {
  background: var(--bg-glass); backdrop-filter: blur(20px);
  border: 1px solid var(--border-md); border-radius: var(--r-xl);
  padding: 24px; position: relative; overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.glass-card:hover { border-color: var(--border-blue); }

/* Stat Card */
.stat-card {
  display: flex; align-items: center; gap: 16px; padding: 20px;
}
.stat-icon-wrap {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon-wrap.blue   { background: rgba(59,130,246,0.12); color: var(--blue-bright); }
.stat-icon-wrap.purple { background: rgba(139,92,246,0.12); color: var(--purple-bright); }
.stat-icon-wrap.cyan   { background: rgba(6,182,212,0.12); color: var(--cyan-bright); }
.stat-icon-wrap.emerald{ background: rgba(16,185,129,0.12); color: var(--emerald); }
.stat-content { flex: 1; min-width: 0; }
.stat-value { font-size: 1.5rem; font-weight: 900; color: var(--text-primary); margin-bottom: 3px; }
.stat-value.purple-grad { background: var(--grad-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-value.cyan-grad   { background: var(--grad-cyan); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-value.green-grad  { background: linear-gradient(135deg, var(--emerald), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

/* Section Header */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem; font-weight: 800; color: var(--text-primary);
}
.section-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(59,130,246,0.1); color: var(--blue-bright);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.section-badge {
  padding: 3px 12px; border-radius: var(--r-full); font-size: 0.72rem; font-weight: 800;
  background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); color: var(--blue-bright);
}

/* Server Card */
.server-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  cursor: pointer; transition: all var(--t-fast);
}
.server-card:hover .server-name { color: var(--blue-bright); }
.server-icon-wrap {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--bg-raised); border: 1px solid var(--border-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: var(--text-muted);
  flex-shrink: 0; overflow: hidden;
}
.server-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.server-info { flex: 1; min-width: 0; }
.server-name { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--t-fast); }
.server-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.server-meta-item { font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* Empty State */
.empty-state { padding: 48px 24px; text-align: center; }
.empty-icon  { font-size: 3rem; margin-bottom: 14px; }
.empty-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.empty-desc  { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* Search Box */
.search-box {
  position: relative; display: flex; align-items: center;
}
.search-box .search-icon {
  position: absolute; right: 12px; color: var(--text-dim); pointer-events: none;
}
.search-box input {
  width: 100%; padding: 8px 38px 8px 14px;
  background: var(--bg-raised); border: 1px solid var(--border-md);
  border-radius: var(--r-md); color: var(--text-primary); font-size: 0.84rem;
  font-family: inherit; transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.search-box input:focus { border-color: var(--border-blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-md);
  font-weight: 700; font-size: 0.88rem; font-family: inherit;
  cursor: pointer; transition: all var(--t-base);
  border: 1px solid transparent; text-decoration: none;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(59,130,246,0.4); }
.btn-secondary {
  background: var(--bg-glass-light); border-color: var(--border-md); color: var(--text-primary);
}
.btn-secondary:hover { background: rgba(59,130,246,0.1); border-color: var(--border-blue); color: var(--blue-bright); }
.btn-ghost {
  background: transparent; border-color: var(--border-md); color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-glass-light); color: var(--text-primary); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: var(--r-sm); }
.btn-xl { padding: 14px 32px; font-size: 1rem; border-radius: var(--r-lg); }
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.25); transform: scale(0);
  animation: rippleAnim 0.6s linear;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ══════════════════════════════════════════════════════════════
   FORM COMPONENTS
   ══════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 7px; font-weight: 700; font-size: 0.82rem;
  color: var(--text-secondary); letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border-radius: var(--r-md); border: 1px solid var(--border-md);
  background: var(--bg-raised); color: var(--text-primary);
  font-size: 0.88rem; font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none; appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236B7090' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center; background-size: 12px;
  padding-left: 32px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
  background: rgba(15,17,32,0.95);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.helper-text { font-size: 0.75rem; color: var(--text-dim); margin-top: 5px; line-height: 1.5; }
.form-textarea { width: 100%; padding: 10px 14px; background: var(--bg-raised); border: 1px solid var(--border-md); border-radius: var(--r-md); color: var(--text-primary); font-size: 0.88rem; font-family: inherit; outline: none; resize: vertical; min-height: 70px; transition: border-color var(--t-fast); }
.form-textarea:focus { border-color: var(--border-blue); }
code { background: rgba(59,130,246,0.08); padding: 2px 6px; border-radius: 5px; font-size: 0.78rem; color: var(--blue-bright); border: 1px solid rgba(59,130,246,0.2); font-family: 'Fira Code', 'Courier New', monospace; }

/* Toggle */
.toggle { position: relative; width: 52px; height: 27px; display: inline-block; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(255,255,255,0.08); border-radius: 99px;
  border: 1px solid var(--border); transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute; height: 19px; width: 19px;
  left: 3px; bottom: 3px; background: var(--text-dim); border-radius: 50%;
  transition: 0.3s; box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.toggle input:checked + .toggle-slider { background: var(--blue); border-color: rgba(59,130,246,0.4); box-shadow: 0 0 12px rgba(59,130,246,0.35); }
.toggle input:checked + .toggle-slider::before { transform: translateX(25px); background: #fff; }

/* ══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 24px; left: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--r-md);
  background: var(--bg-float); border: 1px solid var(--border-md);
  color: var(--text-primary); font-weight: 700; font-size: 0.85rem;
  box-shadow: var(--shadow-xl); backdrop-filter: blur(20px);
  animation: toastIn 0.3s var(--ease-spring);
  max-width: 320px;
}
@keyframes toastIn { from { transform: translateY(20px) scale(0.95); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.toast.success { border-color: rgba(16,185,129,0.3); }
.toast.success .toast-icon { color: var(--emerald); }
.toast.error   { border-color: rgba(244,63,94,0.3); }
.toast.error   .toast-icon { color: var(--rose); }
.toast.info    { border-color: var(--border-blue); }
.toast.info    .toast-icon { color: var(--blue-bright); }
.toast.warning { border-color: rgba(245,158,11,0.3); }
.toast.warning .toast-icon { color: var(--amber); }
.toast-icon { font-size: 1rem; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   ANIMATION HELPERS
   ══════════════════════════════════════════════════════════════ */
.anim-fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.anim-fade-up.visible { opacity: 1; transform: translateY(0); }
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }
.anim-delay-5 { transition-delay: 0.5s; }

/* Tab System */
.tab-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding-bottom: 10px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 16px; border-radius: var(--r-sm); cursor: pointer;
  background: transparent; border: 1px solid transparent;
  color: var(--text-muted); font-weight: 700; font-size: 0.82rem;
  font-family: inherit; transition: all var(--t-fast); display: flex; align-items: center; gap: 6px;
}
.tab-btn:hover  { background: var(--bg-glass-light); color: var(--text-primary); }
.tab-btn.active { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: var(--blue-bright); }
.tab-panel { display: none; animation: fadeInUp 0.3s var(--ease-out); }
.tab-panel.active { display: block; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Progress Bar */
.progress-bar { height: 6px; background: var(--bg-raised); border-radius: 99px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--grad-blue); border-radius: 99px; width: 0; transition: width 0.8s var(--ease-out); }
