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

:root {
  --radius: 16px;
  --background: #121220;
  --background-deep: #0c0c16;
  --foreground: #fbfcff;
  --card: rgba(31, 31, 48, 0.82);
  --card-solid: #1c1c2d;
  --muted: #a8abc0;
  --border: rgba(96, 244, 147, 0.18);
  --input: rgba(255, 255, 255, 0.06);
  --primary: #77ff9a;
  --primary-foreground: #11121d;
  --secondary: #ff38ad;
  --accent: #61d6ff;
  --danger: #ff4d5d;
  --warning: #ffd166;
  --gradient-primary: linear-gradient(135deg, #77ff9a 0%, #61d6ff 100%);
  --gradient-accent: linear-gradient(135deg, #ff38ad 0%, #61d6ff 100%);
  --gradient-hero: radial-gradient(ellipse at top, rgba(255, 56, 173, 0.25), transparent 58%), radial-gradient(ellipse at bottom right, rgba(97, 214, 255, 0.22), transparent 60%), linear-gradient(180deg, #141323 0%, #0b0b14 100%);
  --shadow-neon: 0 0 28px rgba(119, 255, 154, 0.45), 0 0 60px rgba(119, 255, 154, 0.18);
  --shadow-magenta: 0 0 28px rgba(255, 56, 173, 0.45), 0 0 60px rgba(255, 56, 173, 0.18);
  --shadow-elevated: 0 24px 90px rgba(0, 0, 0, 0.45);
  --grid-color: rgba(119, 255, 154, 0.08);
  --font-display: 'Orbitron', 'Rajdhani', system-ui, sans-serif;
  --font-sans: 'Rajdhani', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(119,255,154,.035), transparent);
  transform: translateY(-100%);
  animation: scanline 8s linear infinite;
  z-index: 1000;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
strong, b { color: #fff; }
img { max-width: 100%; display: block; }

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}
.container.narrow { width: min(820px, calc(100% - 32px)); }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(14, 14, 26, 0.76);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.brand > span:last-child > span { color: transparent; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; }
.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-neon);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.nav-links a:hover { color: var(--primary); }

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.055);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 19px;
  border-radius: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(119,255,154,.6); }
.btn.primary {
  border-color: transparent;
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn.glow { box-shadow: var(--shadow-neon); }
.btn.ghost { background: rgba(31,31,48,.64); backdrop-filter: blur(10px); }
.btn.danger { border-color: rgba(255, 77, 93, .42); color: #fff; background: rgba(255, 77, 93, .12); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn:disabled { opacity: .56; cursor: wait; transform: none; }

.text-gradient-primary, .brand-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(119,255,154,.35);
  background: rgba(119,255,154,.08);
  color: var(--primary);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.eyebrow.secondary { border-color: rgba(255,56,173,.38); background: rgba(255,56,173,.1); color: var(--secondary); }
.eyebrow.accent { border-color: rgba(97,214,255,.38); background: rgba(97,214,255,.1); color: var(--accent); }

.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}
.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}
.orb { position: absolute; width: 390px; height: 390px; border-radius: 999px; filter: blur(64px); opacity: .75; pointer-events: none; }
.orb-magenta { background: rgba(255,56,173,.26); top: -140px; left: -120px; }
.orb-cyan { background: rgba(97,214,255,.22); bottom: -140px; right: -120px; }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  min-height: 760px;
  padding: 80px 0 110px;
}
.hero-copy h1, .section-heading h2, .free-card h2, .cta-card h2, .dashboard-hero h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.035em;
  margin: 0;
}
.hero-copy h1 {
  margin-top: 26px;
  font-size: clamp(50px, 7vw, 90px);
  line-height: .94;
  font-weight: 950;
}
.lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.52;
}
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
}
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 27px;
  color: var(--primary);
}
.hero-stats div:nth-of-type(2) strong { color: var(--secondary); }
.hero-stats div:nth-of-type(3) strong { color: var(--accent); }
.hero-stats span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.hero-stats i { width: 1px; height: 44px; background: var(--border); }
.hero-visual { position: relative; }
.visual-glow { position: absolute; inset: -34px; background: linear-gradient(135deg, rgba(119,255,154,.28), rgba(255,56,173,.20), rgba(97,214,255,.28)); filter: blur(44px); }
.visual-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(119,255,154,.3);
  box-shadow: var(--shadow-elevated);
  min-height: 480px;
  background: var(--card-solid);
}
.visual-card img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.visual-fade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,12,22,.86), transparent 64%); }
.live-pill, .viewer-pill {
  position: absolute;
  bottom: 18px;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.live-pill { left: 18px; background: rgba(255,77,93,.92); color: #fff; display: flex; align-items: center; gap: 8px; }
.live-pill span { width: 8px; height: 8px; border-radius: 999px; background: #fff; animation: blink 1s ease-in-out infinite; }
.viewer-pill { right: 18px; background: rgba(12,12,22,.82); border: 1px solid var(--border); backdrop-filter: blur(12px); }
.float-slow { animation: float-slow 6s ease-in-out infinite; }

.section { position: relative; padding: 110px 0; }
.section-band { overflow: hidden; background: rgba(31,31,48,.32); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-heading { margin-bottom: 54px; }
.section-heading.left { max-width: 760px; }
.section-heading.center { text-align: center; max-width: 780px; margin-inline: auto; }
.section-heading h2, .free-card h2, .cta-card h2 { margin-top: 18px; font-size: clamp(38px, 5.5vw, 64px); line-height: 1.02; font-weight: 950; }
.section-heading p, .free-card p, .cta-card p { color: var(--muted); line-height: 1.6; font-size: 19px; }

.feature-grid, .steps-grid, .donation-grid, .dashboard-grid {
  display: grid;
  gap: 22px;
}
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card, .steps-grid article, .donation-grid article, .panel, .free-card, .cta-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
}
.feature-card { padding: 28px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(119,255,154,.58); box-shadow: var(--shadow-neon); }
.feature-card span, .donation-grid span, .panel-title > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0,0,0,.24);
  font-size: 24px;
  margin-bottom: 20px;
}
.feature-card .feature-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.feature-card h3, .steps-grid h3, .donation-grid h3, .panel h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0;
}
.feature-card p, .steps-grid p, .donation-grid p, .panel p, .dashboard-hero p { color: var(--muted); line-height: 1.55; }

.spin-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(119,255,154,.1); border-radius: 999px; transform: translate(-50%, -50%); animation: spin-slow 18s linear infinite; }
.ring-one { width: 620px; height: 620px; }
.ring-two { width: 420px; height: 420px; border-color: rgba(255,56,173,.1); animation-direction: reverse; }
.steps-grid { grid-template-columns: repeat(3, 1fr); position: relative; }
.steps-grid article { padding: 32px; background: rgba(12,12,22,.78); }
.steps-grid strong { font-family: var(--font-display); font-size: 74px; line-height: .85; color: transparent; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; opacity: .85; }
.steps-grid h3 { margin-top: 26px; font-size: 25px; }

.free-card, .cta-card { max-width: 920px; margin: 0 auto; padding: clamp(34px, 7vw, 72px); text-align: center; overflow: hidden; background: linear-gradient(135deg, rgba(119,255,154,.13), rgba(31,31,48,.9), rgba(97,214,255,.13)); }
.free-card > *, .cta-card > * { position: relative; }
.free-card p, .cta-card p { max-width: 680px; margin: 22px auto 30px; }
.orb-card { position: absolute; width: 270px; height: 270px; border-radius: 999px; filter: blur(58px); }
.orb-card-one { background: rgba(119,255,154,.25); right: -70px; top: -90px; }
.orb-card-two { background: rgba(255,56,173,.22); left: -70px; bottom: -90px; }
.donation-grid { grid-template-columns: repeat(3, 1fr); max-width: 940px; margin: 0 auto; }
.donation-grid article { padding: 30px; }
.donation-grid article.highlight { border-color: rgba(255,56,173,.66); box-shadow: var(--shadow-magenta); transform: scale(1.02); background: linear-gradient(180deg, rgba(255,56,173,.14), rgba(31,31,48,.86)); }
.donation-grid em { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--secondary); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: 10px; font-style: normal; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; }
.donation-grid strong { display: block; font-family: var(--font-display); font-size: 42px; margin-bottom: 4px; }
.donation-grid h3 { color: var(--primary); font-size: 15px; letter-spacing: .14em; }

.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--border); background: rgba(12,12,22,.76); border-radius: 12px; padding: 22px 24px; }
.faq-list summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-family: var(--font-display); text-transform: uppercase; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--primary); font-size: 28px; transition: transform .18s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { color: var(--muted); margin: 12px 0 0; line-height: 1.55; }

.site-footer { border-top: 1px solid var(--border); background: var(--background-deep); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 48px 0; }
.footer-grid p, .footer-grid a { color: var(--muted); }
.footer-grid h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: 14px; margin: 0 0 14px; }
.footer-grid a { display: block; margin: 8px 0; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); text-align: center; padding: 22px 16px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; }

/* Dashboard */
.dashboard-page {
  background: #0e1116;
  color: #f5f7fb;
  font-family: var(--font-sans);
  font-size: 15px;
}
.dashboard-page::before { display: none; }
.dashboard-page .site-nav { display: none; }
.dashboard-page button,
.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea {
  font-family: var(--font-sans);
}
.dashboard-page h1,
.dashboard-page h2,
.dashboard-page .se-card h3,
.dashboard-page .se-hero-card h2 {
  font-family: var(--font-display);
  letter-spacing: .01em;
}

.se-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  background: #0d1015;
}

.se-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #1f2329;
  border-right: 1px solid #31363d;
  color: #c4ccd7;
}

.se-brand {
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid #31363d;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .04em;
}

.se-brand-mark { display: none; }

.se-nav { padding: 18px 8px; flex: 1; overflow: auto; }
.se-nav-section { margin-bottom: 22px; }
.se-nav-title {
  padding: 0 12px 8px;
  color: #94a0ad;
  font-size: 13px;
  font-weight: 700;
}
.se-nav-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px 0 20px;
  border-radius: 7px;
  color: #c8d0dc;
  font-size: 14px;
  font-weight: 500;
}
.se-nav-item:hover { background: #2b3037; color: #fff; }
.se-nav-item.active { background: #33383f; color: #fff; }

.se-support-card {
  margin: 12px 8px 18px;
  padding: 14px;
  border: 1px solid #3a4049;
  border-radius: 10px;
  background: #252a31;
}
.se-support-card strong { display: block; color: #fff; font-size: 13px; margin-bottom: 4px; }
.se-support-card span { color: #aab3bf; font-size: 12px; line-height: 1.35; }

.se-main { min-width: 0; background: #0d1015; }
.se-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 32px;
  background: rgba(13,16,21,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #252b33;
}
.se-page-kicker {
  color: #7f8b99;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.se-topbar h1 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}
.se-top-actions { display: flex; align-items: center; gap: 16px; }
.se-import-btn,
.se-logout-link,
.se-primary-btn,
.se-secondary-btn,
.se-muted-btn,
.se-row-danger {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.se-import-btn {
  color: #5b86ff;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
}
.se-import-btn:disabled { opacity: .55; cursor: wait; }
.se-logout-link {
  color: #aab3bf;
  background: transparent;
  font-size: 12px;
}
.se-logout-link:hover, .se-import-btn:hover { color: #fff; }
.se-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a4d, #4f7cff);
  border: 2px solid #2e3744;
  color: #fff;
  font-weight: 900;
}

.se-content {
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
  padding: 20px 0 70px;
}

.se-alert {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 9px;
  border: 1px solid rgba(255, 55, 87, .42);
  background: rgba(255, 55, 87, .10);
}
.se-alert strong { display: block; color: #ff4963; font-size: 13px; margin-bottom: 2px; }
.se-alert span { color: #f06b7d; font-size: 13px; }
.se-alert a {
  min-height: 34px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #ff4160;
  border-radius: 999px;
  color: #ff4f69;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.se-alert a:hover { background: rgba(255, 65, 96, .12); color: #fff; }

.se-hero-card {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 28px;
  border: 1px solid #2b3139;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f242b 0%, #171b21 100%);
  box-shadow: none;
}
.se-hero-card h2 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}
.se-hero-card p {
  max-width: 650px;
  margin: 0;
  color: #aab3bf;
  line-height: 1.5;
}
.se-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(79, 124, 255, .14);
  color: #6d90ff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.se-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.se-primary-btn {
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid #5a7dff;
  color: #6d90ff;
  font-size: 13px;
}
.se-primary-btn:hover { background: rgba(79, 124, 255, .12); color: #fff; }
.se-primary-btn:disabled { opacity: .58; cursor: wait; }
.se-secondary-btn,
.se-muted-btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid #5b6572;
  color: #f5f7fb;
  font-size: 13px;
}
.se-secondary-btn:hover,
.se-muted-btn:hover { border-color: #6d90ff; color: #fff; }
.se-muted-btn { color: #c5ceda; font-size: 12px; }

.se-month-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 26px 0 22px;
  align-items: center;
}
.se-month-row span {
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #1b2027;
  color: #d9e0ea;
  font-size: 14px;
}
.se-month-row span.active { background: #557df8; color: #fff; }

.se-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.se-stat-card {
  min-height: 124px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid #303740;
  border-radius: 6px;
  background: #20252b;
  color: #fff;
  text-align: center;
}
.se-stat-card strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}
.se-stat-card span {
  color: #d6dde7;
  font-size: 12px;
  line-height: 1.3;
}
.se-stat-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #5b86ff;
  box-shadow: 0 0 0 3px rgba(91, 134, 255, .12);
}
.se-stat-icon.heart { background: #ff5268; box-shadow: 0 0 0 3px rgba(255, 82, 104, .12); }
.se-stat-icon.command { background: #ffd166; box-shadow: 0 0 0 3px rgba(255, 209, 102, .12); }
.se-stat-icon.leave { background: #77ff9a; box-shadow: 0 0 0 3px rgba(119, 255, 154, .12); }
.se-stat-icon.obs { background: #61d6ff; box-shadow: 0 0 0 3px rgba(97, 214, 255, .12); }

.se-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .9fr);
  gap: 18px;
  margin-bottom: 18px;
}
.se-board-grid.lower { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.se-side-stack { display: grid; gap: 18px; align-content: start; }
.se-panel {
  min-width: 0;
  border: 1px solid #2e343c;
  border-radius: 6px;
  background: #20252b;
  box-shadow: none;
  padding: 18px;
}
.se-panel-wide { min-height: 430px; }
.se-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.se-panel-head.compact { margin-bottom: 14px; }
.se-panel-head h2 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  font-family: inherit;
}
.se-panel-head p {
  margin: 6px 0 0;
  color: #9da7b4;
  font-size: 13px;
  line-height: 1.35;
}
.se-list {
  display: grid;
  gap: 10px;
  max-height: 470px;
  overflow: auto;
  padding-right: 3px;
}
.se-list::-webkit-scrollbar { width: 8px; }
.se-list::-webkit-scrollbar-thumb { background: #3a424d; border-radius: 999px; }
.se-empty {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px dashed #3b4350;
  border-radius: 6px;
  color: #8f9aa8;
  background: #1a1f25;
}
.se-list-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #252b32;
  border: 1px solid #343c46;
}
.se-list-row.inactive { opacity: .52; }
.se-row-main { min-width: 0; display: flex; align-items: center; gap: 12px; }
.se-row-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, #a678d6, #ff5268);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.se-row-avatar.winner { background: linear-gradient(135deg, #ffd166, #77ff9a); color: #111; }
.se-row-title { color: #fff; font-weight: 800; line-height: 1.1; }
.se-row-meta { margin-top: 4px; color: #929eac; font-size: 12px; }
.se-row-danger {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 82, 104, .55);
  background: transparent;
  color: #ff6478;
  font-size: 11px;
}
.se-row-danger:hover { background: rgba(255, 82, 104, .10); color: #fff; }

.se-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 0 12px;
  color: #d8dfe9;
  font-weight: 700;
}
.se-toggle-row input {
  width: 18px;
  min-height: 18px;
  accent-color: #5b86ff;
}
.se-command-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 6px;
  background: #1a1f25;
  border: 1px solid #303740;
}
.se-command-box span { color: #fff; font-weight: 900; }
.se-command-box small { color: #8e9aa8; }
.se-inline-form,
.se-copy-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.se-inline-form input,
.se-copy-row input,
.dashboard-page input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #3a424d;
  color: #f5f7fb;
  background: #161a20;
  border-radius: 6px;
  padding: 0 12px;
  outline: none;
  font-family: inherit;
  font-size: 13px;
}
.se-copy-row input { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.dashboard-page input:focus {
  border-color: #5b86ff;
  box-shadow: 0 0 0 3px rgba(91, 134, 255, .13);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #20252b;
  border: 1px solid rgba(91, 134, 255, .58);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  color: #fff;
  font-weight: 700;
}
.toast[data-type="error"] { border-color: rgba(255,77,93,.72); box-shadow: 0 12px 40px rgba(255,77,93,.18); }
.auth-error { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 40px 16px; }
.auth-error h1 { font-family: var(--font-display); text-transform: uppercase; }

/* Overlay */
.overlay-body { background: transparent; overflow: hidden; }
.overlay-body::before { display: none; }
.overlay-shell { width: 100vw; height: 100vh; display: grid; place-items: center; background: transparent; overflow: hidden; padding: 24px; }
.slot-card { position: relative; width: min(900px, 92vw); padding: clamp(26px, 4vw, 42px); border-radius: 34px; background: linear-gradient(135deg, rgba(12,12,22,.94), rgba(31,31,48,.92)); border: 2px solid rgba(119,255,154,.42); box-shadow: 0 42px 140px rgba(0,0,0,.62), 0 0 80px rgba(119,255,154,.20), inset 0 0 80px rgba(255,56,173,.08); text-align: center; overflow: hidden; }
.slot-card::before { content: ''; position: absolute; inset: -2px; background: linear-gradient(90deg, transparent, rgba(119,255,154,.15), transparent); animation: shine 3.2s linear infinite; }
.slot-card > * { position: relative; z-index: 1; }
.slot-card.is-winning { animation: winnerPulse 1s ease-in-out infinite alternate; }
.slot-frame-lights { position: absolute; inset: 10px; border-radius: 26px; border: 1px dashed rgba(255,255,255,.12); z-index: 0; }
.slot-kicker { color: var(--primary); text-transform: uppercase; letter-spacing: .22em; font-weight: 950; font-size: clamp(15px, 2.2vw, 22px); font-family: var(--font-display); }
.slot-title { margin-top: 12px; color: var(--muted); font-size: clamp(20px, 3vw, 29px); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.slot-window { margin: 30px auto; padding: 28px 22px; min-height: 142px; display: grid; place-items: center; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); border: 2px solid rgba(119,255,154,.32); color: #fff; font-family: var(--font-display); font-size: clamp(42px, 8vw, 92px); font-weight: 950; line-height: 1; letter-spacing: -0.04em; text-shadow: 0 0 26px rgba(255,56,173,.52), 0 0 44px rgba(97,214,255,.28); }
.slot-subtitle { color: var(--muted); font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; }

@keyframes float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin-slow { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes scanline { 0% { transform: translateY(-100%); } 100% { transform: translateY(100vh); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes shine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes winnerPulse { from { transform: scale(1); box-shadow: 0 42px 140px rgba(0,0,0,.62), 0 0 60px rgba(119,255,154,.24); } to { transform: scale(1.025); box-shadow: 0 42px 140px rgba(0,0,0,.62), 0 0 95px rgba(255,56,173,.44), 0 0 120px rgba(119,255,154,.36); } }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding: 58px 0 84px; }
  .visual-card, .visual-card img { min-height: 360px; }
  .feature-grid, .steps-grid, .donation-grid, .dashboard-grid.two, .footer-grid { grid-template-columns: 1fr; }
  .dashboard-hero, .stats-panel { flex-direction: column; align-items: stretch; }
  .dashboard-actions, .copy-row, .inline-form { flex-direction: column; align-items: stretch; }
  .stat { text-align: left; }

  .se-app { grid-template-columns: 1fr; }
  .se-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid #31363d; }
  .se-nav { display: none; }
  .se-support-card { display: none; }
  .se-topbar { padding: 14px 18px; align-items: flex-start; }
  .se-content { width: min(100% - 28px, 1480px); padding-top: 16px; }
  .se-hero-card,
  .se-alert { flex-direction: column; align-items: stretch; }
  .se-hero-actions { justify-content: flex-start; }
  .se-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .se-board-grid,
  .se-board-grid.lower { grid-template-columns: 1fr; }
  .se-copy-row,
  .se-inline-form { flex-direction: column; align-items: stretch; }

}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-nav .btn { display: none; }
  .brand { font-size: 18px; }
  .hero-stats { gap: 14px; flex-wrap: wrap; }
  .hero-stats i { display: none; }
  .section { padding: 78px 0; }
  .panel { padding: 20px; }
  .slot-window { min-height: 110px; }

  .se-brand { height: 58px; }
  .se-topbar { flex-direction: column; }
  .se-top-actions { width: 100%; justify-content: space-between; gap: 10px; }
  .se-alert span { display: block; margin-top: 4px; }
  .se-month-row { grid-template-columns: repeat(2, 1fr); }
  .se-stats-row { grid-template-columns: 1fr; }
  .se-hero-card { padding: 20px; }
  .se-hero-card h2 { font-size: 24px; }
  .se-panel-head { flex-direction: column; }
  .se-list-row { align-items: flex-start; flex-direction: column; }
  .se-row-danger { align-self: flex-start; }

}

/* Dashboard - liens d'affichage stream */
.se-overlay-links {
  display: grid;
  gap: 18px;
}
.se-overlay-links label {
  display: block;
  margin-bottom: 8px;
  color: #dbe3ee;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.se-link-action {
  display: inline-flex;
  margin-top: 8px;
  color: #6d90ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.se-link-action:hover { color: #fff; }

/* Fenêtre stream 16/9 */
.stream-display-body {
  min-height: 100vh;
  overflow: hidden;
  background: #080b10;
}
.stream-display-body::before { display: none; }
.stream-display-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(91,134,255,.20), transparent 32%),
    radial-gradient(circle at 82% 72%, rgba(255,82,104,.18), transparent 34%),
    linear-gradient(135deg, #0d1015 0%, #10151d 42%, #07090d 100%);
}
.stream-bg-grid {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(109,144,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,144,255,.22) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at center, black 34%, transparent 76%);
}
.stream-scene-card {
  position: relative;
  z-index: 1;
  width: min(1160px, 86vw);
  min-height: min(620px, 74vh);
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(34px, 5vw, 72px);
  border-radius: 24px;
  background: rgba(32, 37, 43, .86);
  border: 1px solid rgba(109, 144, 255, .48);
  box-shadow: 0 44px 140px rgba(0,0,0,.56), 0 0 80px rgba(91,134,255,.16);
  text-align: center;
}
.stream-scene-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.07);
  pointer-events: none;
}
.stream-scene-card.is-winning {
  animation: streamWinnerPulse 1s ease-in-out infinite alternate;
}
.stream-scene-topline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(91,134,255,.14);
  border: 1px solid rgba(91,134,255,.42);
  color: #8fadff;
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.stream-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff5268;
  box-shadow: 0 0 18px rgba(255,82,104,.9);
  animation: blink 1s ease-in-out infinite;
}
.stream-scene-title {
  margin-top: clamp(22px, 3vw, 36px);
  color: #fff;
  font-size: clamp(34px, 4.8vw, 78px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.04em;
}
.stream-slot-window {
  width: min(980px, 78vw);
  min-height: clamp(120px, 17vw, 210px);
  margin: clamp(28px, 4vw, 52px) auto clamp(18px, 2.4vw, 30px);
  display: grid;
  place-items: center;
  padding: 20px 34px;
  border-radius: 18px;
  background: #161b22;
  border: 1px solid #343f4d;
  color: #fff;
  font-size: clamp(48px, 7.4vw, 132px);
  line-height: .92;
  font-weight: 950;
  letter-spacing: -.06em;
  text-shadow: 0 0 30px rgba(91,134,255,.62), 0 0 54px rgba(255,82,104,.22);
}
.stream-scene-subtitle {
  color: #c8d1de;
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 800;
}
.stream-scene-footer {
  margin-top: 18px;
  color: #7f8b99;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
}

@keyframes streamWinnerPulse {
  from { transform: scale(1); box-shadow: 0 44px 140px rgba(0,0,0,.56), 0 0 70px rgba(91,134,255,.22); }
  to { transform: scale(1.018); box-shadow: 0 44px 140px rgba(0,0,0,.56), 0 0 115px rgba(255,82,104,.28), 0 0 130px rgba(91,134,255,.34); }
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Donation libre */
.donation-custom-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid rgba(119, 255, 154, .26);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31,31,48,.9), rgba(12,12,22,.82));
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
  display: grid;
  gap: 22px;
}
.donation-custom-copy h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  font-size: 20px;
}
.donation-custom-copy p,
.donation-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.donation-amount-field {
  display: grid;
  gap: 10px;
  color: var(--foreground);
  font-weight: 700;
}
.donation-amount-field > span {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 13px;
  color: var(--muted);
}
.donation-amount-field > div {
  display: flex;
  align-items: center;
  border: 1px solid rgba(97,214,255,.24);
  border-radius: 14px;
  background: rgba(9, 12, 22, .78);
  overflow: hidden;
}
.donation-amount-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--foreground);
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
}
.donation-amount-field input::placeholder { color: rgba(245,247,251,.34); }
.donation-amount-field b {
  padding: 0 20px;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 30px;
}
.donation-custom-card .btn {
  justify-self: start;
}
@media (max-width: 640px) {
  .donation-custom-card .btn { justify-self: stretch; }
  .donation-amount-field input { font-size: 26px; }
}

/* Legal pages */
.legal-body {
  background: var(--gradient-hero);
}
.legal-main {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  padding: 64px 0 96px;
}
.legal-main .bg-grid,
.legal-main .orb {
  position: absolute;
}
.legal-shell {
  position: relative;
  z-index: 1;
}
.legal-hero {
  text-align: center;
  margin-bottom: 32px;
}
.legal-hero h1 {
  margin: 22px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.legal-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.legal-card {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px);
  border-radius: 24px;
  border: 1px solid rgba(119, 255, 154, 0.20);
  background: rgba(24, 25, 40, 0.88);
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(16px);
}
.legal-card h2 {
  margin: 34px 0 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.legal-card h2:first-child {
  margin-top: 0;
}
.legal-card p,
.legal-card li,
.legal-definition-list dd {
  color: var(--muted);
  line-height: 1.65;
  font-size: 18px;
}
.legal-card a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-intro {
  margin-top: 0;
  font-size: 20px !important;
  color: #dfe6ff !important;
}
.legal-warning {
  margin: 24px 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 209, 102, .45);
  background: rgba(255, 209, 102, .10);
  color: #ffe3a0;
  line-height: 1.5;
}
.legal-warning code,
.legal-card code {
  padding: 2px 6px;
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  color: #fff;
}
.legal-definition-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}
.legal-definition-list div {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) 1fr;
  gap: 16px;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.legal-definition-list dt {
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .08em;
}
.legal-definition-list dd {
  margin: 0;
}
.legal-card ul {
  margin: 12px 0 0;
  padding-left: 22px;
}
.legal-card li + li {
  margin-top: 8px;
}
@media (max-width: 700px) {
  .legal-definition-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
