:root {
  --navy-950: #03111f;
  --navy-900: #071d33;
  --navy-800: #0b2d4e;
  --navy-700: #12446f;
  --red-700: #a90d16;
  --red-600: #ca1520;
  --gold: #e6b748;
  --gold-light: #f8d875;
  --silver: #d7dde3;
  --paper: #f4f6f8;
  --ink: #16212c;
  --muted: #66717e;
  --line: #d7dee5;
  --green: #177245;
  --shadow: 0 12px 30px rgba(2, 17, 31, .16);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #edf1f4, #fff 34rem);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--navy-700); }
img, video { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .72rem 1rem;
  border: 2px solid transparent;
  border-radius: 6px;
  color: #fff;
  background: var(--red-600);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--red-700); }
.button.secondary { background: var(--navy-700); }
.button.secondary:hover { background: var(--navy-900); }
.button.gold { color: var(--navy-950); background: var(--gold); }
.button.ghost { color: var(--navy-800); background: #fff; border-color: var(--line); }
.button.danger { background: #7f1720; }
.button.small { min-height: 36px; padding: .42rem .7rem; font-size: .9rem; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  color: #fff;
  background: rgba(3,17,31,.97);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 18px rgba(0,0,0,.26);
}
.header-inner { display: flex; align-items: center; max-width: 1240px; min-height: 84px; margin: auto; padding: .5rem 1.25rem; }
.brand { display: block; width: 230px; margin-right: auto; line-height: 0; }
.brand img { width: 100%; max-height: 68px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: .2rem; }
.main-nav a { padding: .75rem .72rem; color: #fff; border-radius: 5px; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav a.active { color: var(--navy-950); background: var(--gold); }
.nav-toggle { display: none; background: var(--navy-700); }

.page-shell { width: min(1180px, calc(100% - 2rem)); min-height: 64vh; margin: 0 auto; padding: 2.2rem 0 4rem; }
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: white;
  background: radial-gradient(circle at 85% 20%, rgba(230,183,72,.22), transparent 22rem), linear-gradient(135deg, var(--navy-950), var(--navy-800));
  border-bottom: 6px solid var(--gold);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.hero::after { content: ''; position: absolute; right: -4rem; bottom: -6rem; width: 30rem; height: 12rem; border: 10px solid rgba(230,183,72,.2); border-radius: 50%; transform: rotate(-8deg); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 14ch; margin: 0 0 .8rem; color: #fff; font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: .98; text-transform: uppercase; }
.hero p { max-width: 650px; margin: 0; color: #e2eaf1; font-size: 1.15rem; }
.hero-logo { filter: drop-shadow(0 18px 18px rgba(0,0,0,.4)); }

.eyebrow { margin: 0 0 .45rem; color: var(--red-600); font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy-900); font-family: Arial Black, Arial, sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.section-head { display: flex; gap: 1rem; align-items: end; justify-content: space-between; margin: 3rem 0 1rem; }
.section-head h2, .section-head p { margin: 0; }
.section-head p { color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 7px 18px rgba(3,17,31,.08); }
.card-body { padding: 1.25rem; }
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: .5rem 0; color: var(--muted); font-size: .9rem; }
.tag { display: inline-block; padding: .22rem .55rem; color: #fff; background: var(--navy-700); border-radius: 999px; font-size: .82rem; font-weight: 800; }
.news-card { border-top: 5px solid var(--red-600); }
.video-card { display: flex; flex-direction: column; }
.video-card .card-body { display: flex; flex: 1; flex-direction: column; }
.video-card .button { margin-top: auto; align-self: flex-start; }
.video-thumb { aspect-ratio: 16/9; display: grid; place-items: center; color: white; background: radial-gradient(circle, #174c76, #06192b); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-icon { width: 4.3rem; height: 4.3rem; display: grid; place-items: center; padding-left: .3rem; border: 3px solid var(--gold); border-radius: 50%; font-size: 2rem; }

.panel { margin-bottom: 1.5rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(3,17,31,.07); }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }
.feature-band { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; margin: 3rem 0 0; padding: 1.6rem 2rem; color: white; background: var(--navy-900); border-left: 7px solid var(--gold); border-radius: 7px; }
.feature-band h2, .feature-band p { margin: 0; color: white; }

.search-bar { display: grid; grid-template-columns: 1fr auto; gap: .7rem; margin: 1.4rem 0 2rem; padding: 1rem; background: var(--navy-900); border-radius: 8px; }
.search-bar input { min-width: 0; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: .7rem .8rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aeb8c2;
  border-radius: 5px;
}
textarea { min-height: 130px; resize: vertical; }
label { display: block; margin-bottom: .35rem; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.form-row { margin-bottom: 1rem; }
.form-row.full { grid-column: 1 / -1; }
.help { display: block; margin-top: .3rem; color: var(--muted); font-size: .88rem; }
.honeypot { position: absolute !important; left: -10000px !important; }

.upload-progress {
  grid-column: 1 / -1;
  margin: .35rem 0 1.1rem;
  padding: 1rem;
  background: #edf4fa;
  border: 2px solid var(--navy-700);
  border-radius: 7px;
}
.upload-progress[hidden] { display: none; }
.upload-progress-head, .upload-progress-details { display: flex; justify-content: space-between; gap: 1rem; }
.upload-progress-head { margin-bottom: .55rem; color: var(--navy-900); }
.upload-progress-head span { font-size: 1.15rem; font-weight: 900; }
.upload-progress progress { width: 100%; height: 1.4rem; display: block; overflow: hidden; accent-color: var(--red-600); }
.upload-progress-details { margin-top: .4rem; color: var(--muted); font-size: .9rem; }
.upload-progress.upload-complete { background: #e6f6ed; border-color: var(--green); }
.upload-progress.upload-complete progress { accent-color: var(--green); }
.upload-progress.upload-error { background: #fee9ea; border-color: var(--red-600); }

.video-player { overflow: hidden; background: #000; border: 5px solid var(--navy-900); border-radius: 8px; box-shadow: var(--shadow); }
.video-player video { display: block; width: 100%; max-height: 70vh; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr); gap: 1.5rem; align-items: start; }
.comment { padding: 1rem 0; border-top: 1px solid var(--line); }
.comment:first-of-type { border-top: 0; }
.comment strong { color: var(--navy-800); }
.comment time { color: var(--muted); font-size: .86rem; }

.intro-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; color: #fff; background: radial-gradient(circle at 50% 10%, #184b76 0, #071d33 45%, #020c15 100%); }
.intro-box { width: min(920px, 100%); text-align: center; }
.intro-logo { width: min(680px, 94%); margin-bottom: 1rem; filter: drop-shadow(0 20px 30px rgba(0,0,0,.48)); }
.intro-box h1 { margin: 0; color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); }
.intro-box > p { max-width: 700px; margin: .7rem auto 2rem; color: #dce7f0; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; text-align: left; }
.choice { display: flex; gap: 1rem; align-items: center; padding: 1.4rem; color: var(--ink); background: rgba(255,255,255,.96); border: 2px solid transparent; border-radius: 10px; text-decoration: none; transition: transform .15s, border-color .15s; }
.choice:hover { transform: translateY(-3px); border-color: var(--gold); }
.choice-icon { flex: none; width: 4rem; height: 4rem; display: grid; place-items: center; color: white; background: var(--red-600); border-radius: 50%; font-size: 1.8rem; font-weight: 900; }
.choice.facebook .choice-icon { background: #1877f2; }
.choice h2 { margin: 0 0 .2rem; font-size: 1.35rem; }
.choice p { margin: 0; color: var(--muted); }

.donate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.donate-card { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donate-card .donate-logo { font-size: 2rem; font-weight: 900; }

.empty { padding: 2.5rem; color: var(--muted); text-align: center; background: #fff; border: 2px dashed var(--line); border-radius: 8px; }
.flash { margin-bottom: 1.3rem; padding: .9rem 1rem; border-left: 5px solid var(--green); background: #e6f6ed; border-radius: 4px; font-weight: 700; }
.flash.error { border-color: var(--red-600); background: #fee9ea; }

footer { display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding: 2rem max(1rem, calc((100% - 1180px)/2)); color: #dfe7ee; background: var(--navy-950); border-top: 4px solid var(--gold); }
footer strong, footer span { display: block; }
footer a { color: var(--gold-light); }

/* Admin */
.admin-body { background: #e8edf1; }
.admin-header { color: white; background: var(--navy-950); border-bottom: 4px solid var(--gold); }
.admin-header-inner { display: flex; gap: 1rem; align-items: center; max-width: 1280px; margin: auto; padding: .7rem 1rem; }
.admin-header img { width: 190px; max-height: 62px; object-fit: contain; }
.admin-header h1 { margin: 0 auto 0 0; color: white; font-size: 1.3rem; }
.admin-header a { color: var(--gold-light); }
.admin-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); min-height: calc(100vh - 84px); }
.admin-nav { padding: 1.2rem; background: var(--navy-900); }
.admin-nav a { display: block; margin-bottom: .35rem; padding: .72rem .8rem; color: white; border-radius: 5px; font-weight: 700; text-decoration: none; }
.admin-nav a:hover, .admin-nav a.active { color: var(--navy-950); background: var(--gold); }
.admin-main { min-width: 0; padding: 2rem; }
.admin-main h1 { margin-top: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { padding: 1.2rem; background: #fff; border-top: 5px solid var(--red-600); border-radius: 6px; box-shadow: 0 5px 15px rgba(3,17,31,.08); }
.stat strong { display: block; color: var(--navy-900); font-size: 2rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: white; background: var(--navy-800); }
.actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.status { display: inline-block; padding: .18rem .5rem; border-radius: 99px; font-size: .82rem; font-weight: 800; }
.status.pending { color: #704f00; background: #fff0b9; }
.status.approved { color: #0c5935; background: #d9f4e5; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.3rem; background: radial-gradient(circle, var(--navy-700), var(--navy-950)); }
.login-card { width: min(480px, 100%); padding: 2rem; background: #fff; border-top: 7px solid var(--gold); border-radius: 9px; box-shadow: var(--shadow); }
.login-card img { display: block; width: min(320px, 90%); margin: 0 auto 1.2rem; }

@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; padding: .8rem; background: var(--navy-950); border-bottom: 3px solid var(--gold); }
  .main-nav.open { display: grid; }
  .nav-toggle { display: inline-flex; }
  .hero, .watch-layout { grid-template-columns: 1fr; }
  .hero-logo { width: min(430px, 80%); order: -1; justify-self: center; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { display: flex; gap: .4rem; overflow-x: auto; }
  .admin-nav a { flex: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-inner { min-height: 70px; padding: .4rem .8rem; }
  .brand { width: 170px; }
  .page-shell { width: min(100% - 1.1rem, 1180px); padding-top: 1.2rem; }
  .hero { padding: 1.5rem; }
  .card-grid, .choice-grid, .donate-grid, .form-grid { grid-template-columns: 1fr; }
  .feature-band, .search-bar { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .intro-page { padding: 1rem; }
  .admin-main { padding: 1rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-header h1 { display: none; }
  footer { align-items: start; flex-direction: column; }
}


/* Private admin visitor statistics */
.stats-privacy { margin: -.35rem 0 1.25rem; padding: .7rem .9rem; color: #33485a; background: #f3f7fa; border-left: 4px solid var(--navy-700); border-radius: 4px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1.5rem; }
.stats-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stats-columns .panel { min-width: 0; }
.device-summary { display: flex; flex-wrap: wrap; gap: .55rem; }
.device-summary span { padding: .45rem .65rem; background: #edf4fa; border-radius: 5px; }
.admin-section-head { margin: 0 0 1rem; }
.visitor-log { font-size: .9rem; }
.visitor-log code { white-space: nowrap; }
.visitor-log td:nth-child(4) { max-width: 380px; overflow-wrap: anywhere; }
.check-line { display: flex; gap: .55rem; align-items: center; margin: 0 0 1rem; font-weight: 700; }
.check-line input { width: auto; min-height: auto; }
.danger-zone { border-left: 5px solid var(--red-600); }
@media (max-width: 1050px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stats-columns { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
