:root {
  --bg: #0d0d0d;
  --card: #171717;
  --primary: #8b0000;
  --primary-light: #b31212;
  --text: #fff;
  --muted: #bdbdbd;
  --border: rgba(255,255,255,.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: Poppins, sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

.navbar { position: fixed; top: 0; left: 0; width: 100%; height: 82px; padding: 0 44px; display: flex; align-items: center; justify-content: space-between; z-index: 1000; background: rgba(13,13,13,.35); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: .3s; }
.navbar.scrolled { height: 72px; background: rgba(13,13,13,.96); border-bottom-color: var(--border); }
.logo { display: flex; align-items: center; gap: 13px; font-weight: 800; letter-spacing: 3px; line-height: 1.05; }
.logo img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-light); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; }
.nav-links a, .dropbtn { opacity: .92; transition: .25s; cursor: pointer; }
.nav-links a:hover, .dropbtn:hover { color: var(--primary-light); opacity: 1; }
.dropdown { position: relative; }
.dropdown:after { content: ""; position: absolute; left: -20px; top: 18px; width: 185px; height: 18px; }
.dropdown-menu { position: absolute; top: 34px; left: -20px; z-index: 1100; width: 185px; background: #f4f4f4; color: #111; display: none; flex-direction: column; box-shadow: 0 15px 35px rgba(0,0,0,.35); }
.dropdown:hover .dropdown-menu { display: flex; }
.dropdown.open .dropdown-menu { display: flex; }
.dropdown-menu a { position: relative; z-index: 1; display: block; padding: 14px 18px; font-weight: 500; color: #111; }
.dropdown-menu a:hover { background: #e9e9e9; color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 104px; padding: 11px 22px; border-radius: 8px; border: 1px solid var(--primary-light); font-weight: 600; font-size: 14px; transition: .25s; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-color: transparent; color: white; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(179,18,18,.25); }
.menu-toggle { display: none; font-size: 28px; cursor: pointer; }
.mobile-menu { display: none; }

.hero { min-height: 100vh; position: relative; display: flex; align-items: center; padding: 120px 12vw 80px; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.35), rgba(0,0,0,.75)); background-size: cover; background-position: center; }
.hero:after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(139,0,0,.42), transparent 36%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.eyebrow { color: var(--primary-light); font-weight: 700; letter-spacing: 5px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(58px, 8vw, 118px); line-height: .94; font-weight: 800; letter-spacing: 0; margin-bottom: 24px; }
.hero p { font-size: clamp(20px, 2.5vw, 34px); color: #f2f2f2; font-weight: 600; margin-bottom: 34px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.countdown-card { width: min(620px, 100%); margin-top: 30px; padding: 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(12,12,12,.72); box-shadow: 0 20px 60px rgba(0,0,0,.28); backdrop-filter: blur(12px); }
.countdown-card h2 { font-size: 22px; margin-bottom: 16px; }
.countdown-card p { font-size: 14px; color: var(--muted); font-weight: 500; margin: 14px 0 0; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown-grid div { padding: 14px 10px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.05); text-align: center; }
.countdown-grid strong { display: block; font-size: 28px; color: #fff; }
.countdown-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }

section { padding: 92px 8vw; }
.section-title { text-align: center; font-size: clamp(30px, 4vw, 48px); margin-bottom: 18px; }
.section-subtitle { text-align: center; max-width: 760px; margin: 0 auto 54px; color: var(--muted); font-size: 17px; }
.stats { background: #fff; color: #111; padding-top: 70px; padding-bottom: 70px; }
.quote { text-align: center; color: var(--primary-light); font-size: clamp(26px, 4vw, 44px); font-weight: 800; margin-bottom: 46px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat-card { background: #f4f5f7; padding: 32px 20px; text-align: center; border-radius: 8px; border: 1px solid #d9dde2; box-shadow: 0 18px 38px rgba(0,0,0,.08); }
.stat-card h3 { font-size: 38px; color: var(--primary); margin-bottom: 8px; }
.stat-card p { font-weight: 700; font-size: 17px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-card, .feature, .card, .discord-panel, .admin-card { background: linear-gradient(180deg, #191919, #101010); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 16px 44px rgba(0,0,0,.18); }
.about-card { padding: 38px; }
.about-card h2 { font-size: 38px; margin-bottom: 18px; }
.about-card p, .feature p, .card-body p, .discord-panel p { color: var(--muted); line-height: 1.7; }
.about-card p { margin-bottom: 18px; }
.feature-list { display: grid; gap: 18px; }
.feature { padding: 22px; }
.feature h3 { color: var(--primary-light); margin-bottom: 8px; }

.events-grid, .team-grid, .news-grid, .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { overflow: hidden; transition: .25s; }
.card:hover { transform: translateY(-7px); border-color: rgba(179,18,18,.65); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.card-img { height: 190px; background: linear-gradient(135deg, #260000, #111); display: grid; place-items: center; color: var(--primary-light); font-weight: 800; font-size: 34px; }
.card-img img, .gallery-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery-card { cursor: zoom-in; }
.card-body { padding: 26px; }
.card-body h3 { font-size: 22px; margin-bottom: 12px; }
.card-body p { margin-bottom: 20px; }
.tag { display: inline-block; padding: 7px 13px; border-radius: 999px; background: rgba(139,0,0,.18); color: #ffb1b1; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.team-member { text-align: center; padding: 32px 24px; }
.avatar { width: 94px; height: 94px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #242424); display: grid; place-items: center; font-size: 34px; font-weight: 800; border: 3px solid rgba(255,255,255,.1); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.role { color: var(--primary-light); font-weight: 700; margin-top: 6px; }
.team-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: -24px 0 38px; }
.team-tabs button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: #111; color: var(--text); font-weight: 700; cursor: pointer; transition: .25s; }
.team-tabs button.active, .team-tabs button:hover { background: var(--primary); border-color: var(--primary-light); }
.empty-card { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--border); border-radius: 8px; text-align: center; color: var(--muted); background: rgba(255,255,255,.03); }

.discord-panel { display: grid; grid-template-columns: 1fr 350px; gap: 30px; align-items: center; max-width: 1040px; margin: auto; padding: 28px; }
.discord-panel h3 { font-size: 34px; margin-bottom: 14px; }
.discord-panel p { margin-bottom: 22px; }
.discord-panel iframe { width: 100%; border: 0; border-radius: 8px; background: #111; }
.discord-widget-fallback { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 24px; border: 1px dashed var(--border); border-radius: 8px; background: #111; color: var(--muted); text-align: center; }
.discord-widget-fallback strong { color: #fff; font-size: 22px; }
.discord-widget-fallback .btn { margin-top: 8px; width: auto; }

.cta { background: linear-gradient(135deg, rgba(139,0,0,.9), rgba(13,13,13,1)); text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta h2 { font-size: clamp(34px, 5vw, 58px); margin-bottom: 18px; }
.cta p { color: #e8e8e8; max-width: 780px; margin: 0 auto 30px; line-height: 1.8; }
footer { padding: 46px 8vw; background: #080808; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); }
footer strong { color: white; }
.footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #ffb1b1; font-weight: 700; }
.footer-links a:hover { color: #fff; }

.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 28px; background: rgba(0,0,0,.88); }
.lightbox.active { display: flex; }
.lightbox img { max-width: min(980px, 100%); max-height: 78vh; border-radius: 8px; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.lightbox p { position: absolute; left: 28px; bottom: 24px; color: #fff; font-weight: 700; }
.lightbox-close { position: absolute; top: 22px; right: 22px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: #111; color: #fff; font-size: 22px; cursor: pointer; }
.consent-banner { position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 2100; display: none; grid-template-columns: 1fr auto; gap: 20px; align-items: center; max-width: 1080px; margin: auto; padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: rgba(16,16,16,.96); box-shadow: 0 24px 80px rgba(0,0,0,.45); backdrop-filter: blur(14px); }
.consent-banner.active { display: grid; }
.consent-banner strong { display: block; margin-bottom: 6px; font-size: 18px; }
.consent-banner p { color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.consent-links { display: flex; gap: 14px; flex-wrap: wrap; }
.consent-links a { color: #ffb1b1; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; align-items: center; }

.admin-body { min-height: 100vh; padding: 30px; background: radial-gradient(circle at top right, rgba(139,0,0,.2), transparent 32%), #0d0d0d; }
.admin-wrap { max-width: 1360px; margin: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; padding: 18px 0; }
.admin-header h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1; }
.admin-header-actions { display: flex; gap: 12px; align-items: center; }
.admin-eyebrow { display: inline-block; margin-bottom: 8px; color: #ffb1b1; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.admin-metric { padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: linear-gradient(180deg, #1a1a1a, #101010); box-shadow: 0 14px 38px rgba(0,0,0,.18); }
.admin-metric span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.admin-metric strong { display: block; font-size: 34px; line-height: 1; }
.admin-metric.highlight { border-color: rgba(179,18,18,.7); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); gap: 22px; align-items: start; }
.admin-card { padding: 22px; margin-bottom: 0; }
.admin-card.span-2 { grid-column: 1 / -1; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.admin-card h2 { margin-bottom: 16px; }
.admin-card-head h2 { margin-bottom: 0; }
.admin-form { display: grid; gap: 12px; }
.stats-form { grid-template-columns: repeat(2, 1fr); }
.stats-form .btn { grid-column: 1 / -1; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; padding: 13px; border-radius: 8px; border: 1px solid var(--border); background: #0b0b0b; color: #fff; }
.admin-form textarea { min-height: 110px; resize: vertical; }
.admin-list { display: grid; gap: 12px; margin-top: 18px; }
.submissions-list { margin-top: 0; }
.compact-list { max-height: 420px; overflow: auto; padding-right: 4px; }
.admin-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: #101010; }
.admin-item-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.admin-item strong, .admin-item span, .admin-item small { display: block; }
.admin-item span, .admin-item small { color: var(--muted); }
.admin-item small { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-item-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.admin-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.admin-empty { padding: 18px; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); text-align: center; background: rgba(255,255,255,.03); }
.submission-card { padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: #101010; }
.submission-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.submission-head small { display: block; color: var(--muted); }
.submission-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.submission-field { padding: 12px; border-radius: 8px; background: #0b0b0b; border: 1px solid rgba(255,255,255,.08); }
.submission-field span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.submission-field strong { display: block; color: #fff; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.danger { border-color: #ff4444; color: #ff7777; background: transparent; }

.form-page { min-height: 100vh; background: radial-gradient(circle at top left, rgba(139,0,0,.28), transparent 34%), #0d0d0d; }
.form-shell { min-height: 100vh; display: grid; place-items: center; padding: 36px 18px; }
.form-logo { position: fixed; top: 24px; left: 28px; display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 1px; }
.form-logo img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--primary-light); object-fit: cover; }
.form-card { width: min(720px, 100%); padding: 34px; border: 1px solid var(--border); border-radius: 8px; background: linear-gradient(180deg, #191919, #101010); box-shadow: 0 24px 70px rgba(0,0,0,.36); }
.form-card h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 12px; }
.form-card p { color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.public-form { display: grid; gap: 14px; }
.public-form input, .public-form select, .public-form textarea { width: 100%; padding: 14px; border-radius: 8px; border: 1px solid var(--border); background: #0b0b0b; color: #fff; font: inherit; }
.public-form textarea { min-height: 150px; resize: vertical; }
.check-row { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); line-height: 1.5; }
.check-row input { width: auto; margin-top: 5px; }
.check-row a { color: #ffb1b1; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.form-status { min-height: 22px; color: var(--muted); font-weight: 600; }
.form-status.success { color: #76e39a; }
.form-status.error { color: #ff7777; }
.public-form button:disabled { opacity: .65; cursor: wait; }
.policy-page { min-height: 100vh; background: radial-gradient(circle at top left, rgba(139,0,0,.24), transparent 34%), #0d0d0d; }
.policy-shell { min-height: 100vh; padding: 96px 18px 42px; display: grid; justify-items: center; }
.policy-card { width: min(920px, 100%); padding: 38px; border: 1px solid var(--border); border-radius: 8px; background: linear-gradient(180deg, #191919, #101010); box-shadow: 0 24px 70px rgba(0,0,0,.36); }
.policy-card h1 { font-size: clamp(36px, 5vw, 58px); margin-bottom: 8px; }
.policy-card h2 { margin: 28px 0 10px; font-size: 22px; }
.policy-card p { color: var(--muted); line-height: 1.8; }
.policy-date { margin-bottom: 20px; }

@media (max-width: 980px) {
  .navbar { padding: 0 22px; }
  .menu-toggle { display: block; }
  .nav-links, .nav-actions { display: none; }
  .mobile-menu { position: fixed; top: 82px; left: 0; width: 100%; background: rgba(13,13,13,.98); border-bottom: 1px solid var(--border); display: none; flex-direction: column; padding: 24px; gap: 20px; z-index: 999; }
  .mobile-menu.active { display: flex; }
  .stats-grid, .events-grid, .team-grid, .news-grid, .gallery-grid, .about-grid { grid-template-columns: 1fr 1fr; }
  .discord-panel { grid-template-columns: 1fr; }
  .discord-panel iframe { height: 430px; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .admin-header-actions { width: 100%; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .consent-banner { grid-template-columns: 1fr; }
  .admin-item { align-items: flex-start; flex-direction: column; }
  .admin-item > div:last-child { display: flex; gap: 10px; flex-wrap: wrap; }
  .submission-fields { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .navbar { height: 74px; }
  .mobile-menu { top: 74px; }
  .hero { padding: 108px 18px 58px; min-height: auto; }
  section { padding: 64px 18px; }
  .stats-grid, .events-grid, .team-grid, .news-grid, .gallery-grid, .about-grid, .stats-form { grid-template-columns: 1fr; }
  .hero h1 { font-size: 54px; }
  .hero-buttons .btn, .btn { width: 100%; min-width: 0; }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .discord-panel { padding: 20px; }
  .discord-panel h3 { font-size: 26px; }
  .discord-panel iframe { height: 360px; }
  .team-tabs { justify-content: flex-start; }
  .admin-body { padding: 18px; }
  .admin-metrics { grid-template-columns: 1fr; }
  .admin-header-actions, .admin-card-head { align-items: stretch; flex-direction: column; }
  .admin-card { padding: 18px; }
  .form-logo { position: static; justify-self: start; margin-bottom: 24px; }
  .form-shell { place-items: start; }
  .form-card { padding: 24px; }
  .policy-shell { padding: 24px 18px; justify-items: stretch; }
  .policy-card { padding: 24px; }
  .consent-banner { left: 12px; right: 12px; bottom: 12px; }
  .consent-actions { flex-direction: column; align-items: stretch; }
  footer { flex-direction: column; align-items: flex-start; }
}
