/* ===========================================================
   LOMBA DEBAT NASIONAL 2026 — Ekonomi Pembangunan Undana
   Design system: forest green + gold + lime accent
   =========================================================== */

:root {
  --green:        #16603a;
  --green-deep:   #0f3f27;
  --green-darker: #0b2e1c;
  --green-soft:   #e8f3ec;
  --gold:         #c9a94a;
  --gold-soft:    #f3ecd6;
  --lime:         #d7e600;
  --lime-bright:  #e9f80c;
  --ink:          #16231c;
  --muted:        #5a6b61;
  --line:         #e3e9e4;
  --bg:           #ffffff;
  --bg-alt:       #f6f9f6;
  --white:        #ffffff;

  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 18px 48px -20px rgba(15, 63, 39, .28);
  --shadow-sm:0 8px 24px -12px rgba(15, 63, 39, .25);
  --max:      1160px;
  --font:     'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { max-width: 100%; }
[hidden] { display: none !important; }
/* prevent grid/flex children from overflowing their track (esp. on mobile) */
.about-grid > *, .reg-grid > *, .hero-inner > *, .foot-grid > *,
.reg-contact, .reg-contact > div, .field, .field input, .field select { min-width: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }

/* wider container on large monitors so content fills the screen */
@media (min-width: 1440px) { :root { --max: 1300px; } }
@media (min-width: 1720px) { :root { --max: 1400px; } }

section { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px;
}
.eyebrow.light { color: var(--lime); }
.eyebrow.light::before { background: var(--lime); }

h1, h2, h3 { line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
h2.title { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--green-deep); }
.accent { color: var(--gold); }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 620px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: .22s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-lime { background: var(--lime); color: var(--green-darker); }
.btn-lime:hover { background: var(--lime-bright); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(215,230,0,.7); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }

/* ============ NAVBAR ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: .3s ease;
  padding: 16px 0;
}
.nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px -18px rgba(0,0,0,.4);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 34px; width: auto; display: block; transition: height .3s ease; }
.nav.scrolled .brand-logo { height: 30px; }
.foot-logo { height: 42px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  display: grid; place-items: center; color: var(--lime);
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-txt { line-height: 1.1; color: #fff; transition: color .3s; }
.nav.scrolled .brand-txt { color: var(--green-deep); }
.brand-txt b { display: block; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.brand-txt span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.9);
  transition: color .2s; position: relative;
}
.nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--lime); }
.nav.scrolled .nav-links a:hover { color: var(--green); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: #fff; border-radius: 3px; margin: 5px 0; transition: .25s; }
.nav.scrolled .hamburger span { background: var(--green-deep); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background-color: var(--green-deep);
  background-image:
    linear-gradient(90deg, rgba(11,46,28,.94) 0%, rgba(15,63,39,.82) 34%, rgba(15,63,39,.5) 68%, rgba(15,63,39,.62) 100%),
    linear-gradient(180deg, rgba(11,46,28,.30) 0%, rgba(11,46,28,.15) 45%, rgba(11,46,28,.55) 100%),
    url('assets/hero-bg.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center 30%;
  background-repeat: no-repeat;
}
/* hide decorative blobs over the photo for a cleaner look */
.hero .hero-blob { display: none; }
.hero-blob { position: absolute; z-index: 0; opacity: .9; pointer-events: none; }
.hero-blob.b1 { top: -120px; right: -80px; width: 520px; color: var(--gold); opacity: .18; }
.hero-blob.b2 { bottom: -140px; left: -120px; width: 560px; color: var(--lime); opacity: .10; }
.hero-waves { position: absolute; bottom: 0; left: 0; width: 100%; z-index: 0; opacity: .5; }
.hero-inner { position: relative; z-index: 2; padding-block: 130px 90px; }
.hero-art { display: none; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(215,230,0,.14); border: 1px solid rgba(215,230,0,.4);
  color: var(--lime); padding: 8px 16px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(215,230,0,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(215,230,0,.6)} 70%{box-shadow:0 0 0 10px rgba(215,230,0,0)} 100%{box-shadow:0 0 0 0 rgba(215,230,0,0)} }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 15ch; margin-bottom: 18px; }
.hero h1 .hl { color: var(--lime); }
.hero-theme {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem); font-weight: 700; color: var(--gold);
  font-style: italic; max-width: 26ch; margin-bottom: 14px;
}
.hero-sub { color: rgba(255,255,255,.82); max-width: 52ch; font-size: 1.05rem; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 34px; }
.hero-fact b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--lime); line-height: 1; }
.hero-fact span { font-size: .82rem; color: rgba(255,255,255,.72); }

/* ---- hero right-side visual (large screens) ---- */
@media (min-width: 1080px) {
  .hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 56px; }
  .hero h1 { max-width: 18ch; }
  .hero-sub { max-width: 46ch; }
  .hero-art { display: block; position: relative; }
}
.art-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  border-radius: 24px; padding: 34px 30px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.art-label {
  display: inline-flex; align-items: center; gap: 8px; color: var(--lime);
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 22px;
}
.art-label::before { content: ""; width: 22px; height: 2px; background: var(--lime); }
.art-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.art-side { text-align: center; }
.art-podium { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 12px; }
.art-podium svg { width: 40px; height: 40px; }
.art-side.gov .art-podium { background: rgba(34,140,80,.28); color: #7ee6a6; border: 1px solid rgba(126,230,166,.35); }
.art-side.opp .art-podium { background: rgba(200,80,80,.26); color: #ffb0b0; border: 1px solid rgba(255,176,176,.35); }
.art-side b { display: block; color: #fff; font-size: 1.02rem; }
.art-side span { color: rgba(255,255,255,.6); font-size: .76rem; }
.art-mid {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: var(--green-darker); font-weight: 800; font-size: .9rem;
  box-shadow: 0 0 0 6px rgba(215,230,0,.14);
}
.art-foot {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: rgba(255,255,255,.82); font-size: .86rem; font-weight: 600;
}
.art-foot .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.art-chip {
  position: absolute; background: #fff; color: var(--green-deep); border-radius: 14px;
  padding: 12px 18px; box-shadow: var(--shadow); line-height: 1.15;
}
.art-chip b { display: block; font-size: 1.05rem; font-weight: 800; }
.art-chip span { font-size: .72rem; color: var(--muted); }
.art-chip.chip-a { top: -22px; right: -14px; }
.art-chip.chip-b { bottom: -24px; left: -18px; background: var(--lime); color: var(--green-darker); }
.art-chip.chip-b span { color: rgba(15,63,39,.7); }

/* ============ COUNTDOWN ============ */
.countdown {
  margin-top: -60px; position: relative; z-index: 5;
}
.count-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 30px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.count-label b { font-size: 1.05rem; color: var(--green-deep); display: block; }
.count-label span { font-size: .86rem; color: var(--muted); }
.count-timer { display: flex; gap: 14px; }
.count-unit { text-align: center; min-width: 66px; }
.count-unit b {
  display: block; font-size: 2rem; font-weight: 800; color: var(--green);
  background: var(--bg-alt); border-radius: 12px; padding: 8px 4px; font-variant-numeric: tabular-nums;
}
.count-unit span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 6px; display: block; }

/* ============ SECTION SHELL ============ */
.sec { padding: 96px 0; }
.sec-alt { background: var(--bg-alt); }
.sec-head { max-width: 680px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { position: relative; max-width: 460px; margin-inline: auto; width: 100%; }
.about-visual {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--green), var(--green-deep));
  box-shadow: var(--shadow); position: relative; display: grid; place-items: center;
}
.about-visual .podium { width: 62%; color: var(--lime); opacity: .95; }
.about-visual .ring { position: absolute; inset: 0; }
.about-badge {
  position: absolute; bottom: -22px; right: -14px; background: var(--lime);
  color: var(--green-darker); border-radius: 16px; padding: 16px 22px; box-shadow: var(--shadow-sm);
  font-weight: 800; line-height: 1.1;
}
.about-badge b { font-size: 1.5rem; display: block; }
.about-badge span { font-size: .74rem; font-weight: 700; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-points { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.about-points .ic { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.about-points .ic svg { width: 14px; height: 14px; }

/* ============ THEME BANNER ============ */
.theme-banner {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(215,230,0,.14), transparent 60%),
    linear-gradient(150deg, var(--green-deep), var(--green-darker));
  color: #fff; border-radius: 26px; padding: 60px; position: relative; overflow: hidden;
}
.theme-banner .qmark { position: absolute; top: -30px; right: 20px; font-size: 14rem; font-weight: 800; color: rgba(215,230,0,.12); line-height: 1; }
.theme-banner .eyebrow { color: var(--lime); }
.theme-banner .eyebrow::before { background: var(--lime); }
.theme-banner h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 20ch; position: relative; }
.theme-banner h2 .hl { color: var(--gold); font-style: italic; }
.theme-banner p { color: rgba(255,255,255,.8); max-width: 60ch; margin-top: 18px; position: relative; }

/* ============ STAGE / FORMAT CARDS ============ */
.teams-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.team-card {
  border-radius: var(--radius); padding: 26px; color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm); min-height: 200px; display: flex; flex-direction: column;
}
.team-card.og { background: linear-gradient(150deg, #1a7a46, #0f4f2c); }
.team-card.oo { background: linear-gradient(150deg, #b23a3a, #7d2626); }
.team-card.cg { background: linear-gradient(150deg, #2f8d57, #14512f); }
.team-card.co { background: linear-gradient(150deg, #c25151, #8a2f2f); }
.team-card .tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; font-weight: 700; }
.team-card h3 { font-size: 1.3rem; margin: 8px 0 14px; }
.team-card ul { list-style: none; display: grid; gap: 8px; margin-top: auto; }
.team-card li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.team-card li .num { width: 24px; height: 24px; border-radius: 7px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; }
.team-card .role-side { position: absolute; top: 20px; right: 22px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; opacity: .7; text-transform: uppercase; }

/* rules mini cards */
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.rule-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; }
.rule-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; }
.rule-card .ic svg { width: 22px; height: 22px; }
.rule-card b { display: block; font-size: 1rem; color: var(--green-deep); margin-bottom: 4px; }
.rule-card p { font-size: .88rem; color: var(--muted); }

/* time table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); margin-top: 30px; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 520px; background: #fff; }
table.tbl th, table.tbl td { padding: 14px 18px; text-align: left; font-size: .92rem; border-bottom: 1px solid var(--line); }
table.tbl thead th { background: var(--green-deep); color: #fff; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
table.tbl tbody tr:nth-child(even) { background: var(--bg-alt); }
table.tbl td:first-child { font-weight: 600; color: var(--green-deep); }
table.tbl .hl { color: var(--gold); font-weight: 700; }

/* ============ FLOW / SKEMA ============ */
.flow {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; margin-top: 8px;
}
.flow-head { display: flex; justify-content: space-between; margin-bottom: 20px; font-weight: 800; }
.flow-head .gov { color: var(--green); }
.flow-head .opp { color: #b23a3a; }
.flow-rows { display: grid; gap: 14px; }
.flow-row { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 16px; }
.flow-box { min-width: 0; border-radius: 12px; padding: 12px 16px; font-size: .88rem; font-weight: 600; overflow-wrap: break-word; }
.flow-box.g { background: var(--green-soft); color: var(--green-deep); text-align: right; }
.flow-box.o { background: #fbe9e9; color: #7d2626; }
.flow-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .85rem; flex: none; }
.flow-num.g { background: var(--green); }
.flow-num.o { background: #b23a3a; }
.flow-mid { display: flex; align-items: center; justify-content: center; gap: 6px; }
.flow-mid svg { width: 20px; height: 20px; color: var(--gold); }

/* ============ TIMELINE ============ */
.timeline { position: relative; margin-top: 20px; }
.tl-line { position: absolute; left: 26px; top: 10px; bottom: 10px; width: 3px; background: linear-gradient(var(--gold), var(--green-soft)); border-radius: 3px; }
.tl-item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 14px 0; position: relative; }
.tl-dot { width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); display: grid; place-items: center; color: var(--green); font-weight: 800; z-index: 2; box-shadow: var(--shadow-sm); }
.tl-dot svg { width: 22px; height: 22px; }
.tl-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; }
.tl-body .date { color: var(--gold); font-weight: 800; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.tl-body b { display: block; font-size: 1.1rem; color: var(--green-deep); margin: 2px 0 4px; }
.tl-body p { font-size: .9rem; color: var(--muted); }
.tl-body .mode { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-top: 8px; }
.mode.online { background: var(--green-soft); color: var(--green); }
.mode.offline { background: var(--gold-soft); color: #8a6d1a; }

/* ============ PRIZE ============ */
.prize-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.prize { border-radius: var(--radius); padding: 30px 26px; text-align: center; border: 1px solid var(--line); background: #fff; position: relative; }
.prize.win { background: linear-gradient(160deg, var(--green-deep), var(--green-darker)); color: #fff; border: 0; transform: translateY(-10px); box-shadow: var(--shadow); }
.prize .rank { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.prize.win .rank { color: var(--lime); }
.prize .medal { font-size: 2.4rem; margin: 10px 0; }
.prize .amt { font-size: 1.7rem; font-weight: 800; color: var(--green-deep); }
.prize.win .amt { color: #fff; }
.prize small { color: var(--muted); }
.prize.win small { color: rgba(255,255,255,.75); }
.best-speaker {
  margin-top: 22px; display: flex; align-items: center; gap: 18px;
  background: linear-gradient(120deg, var(--gold-soft), #fff);
  border: 1px solid var(--gold); border-radius: var(--radius); padding: 20px 26px;
}
.best-speaker .bs-icon { font-size: 2rem; flex: none; }
.best-speaker .bs-text { flex: 1; }
.best-speaker .bs-text .rank { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8a6d1a; }
.best-speaker .bs-text b { color: var(--green-deep); font-size: 1.02rem; }
.best-speaker .bs-amt { font-size: 1.5rem; font-weight: 800; color: var(--green-deep); flex: none; }
.prize-note { text-align: center; margin-top: 24px; color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) {
  .best-speaker { flex-direction: column; text-align: center; gap: 8px; }
}

/* ============ SPONSOR ============ */
.spon-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.spon { border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.spon .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.spon .tier { font-size: 1.15rem; font-weight: 800; }
.spon.platinum .tier { color: #6b7280; }
.spon.gold .tier { color: var(--gold); }
.spon.silver .tier { color: #94a3b8; }
.spon.bronze .tier { color: #b07a45; }
.spon .price { font-size: .82rem; font-weight: 700; color: var(--green-deep); background: var(--green-soft); padding: 5px 10px; border-radius: 999px; }
.spon ul { list-style: none; display: grid; gap: 9px; margin-top: 6px; }
.spon li { display: flex; gap: 9px; font-size: .84rem; color: var(--muted); }
.spon li svg { width: 15px; height: 15px; color: var(--green); flex: none; margin-top: 3px; }
.spon-inkind { margin-top: 22px; background: var(--green-soft); border-radius: var(--radius-sm); padding: 20px 24px; font-size: .9rem; color: var(--green-deep); }
.spon-inkind b { color: var(--green-deep); }

/* ============ CTA / REGISTER ============ */
.register {
  background:
    radial-gradient(600px 300px at 10% 10%, rgba(215,230,0,.14), transparent 60%),
    linear-gradient(150deg, var(--green), var(--green-darker));
  color: #fff; border-radius: 28px; padding: 56px; overflow: hidden; position: relative;
}
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.reg-info h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.reg-info .lead { color: rgba(255,255,255,.82); margin-top: 14px; }
.reg-contacts { margin-top: 28px; display: grid; gap: 14px; }
.reg-contact { display: flex; gap: 14px; align-items: center; }
.reg-contact .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; color: var(--lime); flex: none; }
.reg-contact .ic svg { width: 22px; height: 22px; }
.reg-contact b { display: block; font-size: .95rem; }
.reg-contact span { font-size: .84rem; color: rgba(255,255,255,.72); }

.reg-form { background: #fff; border-radius: var(--radius); padding: 30px; color: var(--ink); box-shadow: var(--shadow); }
.reg-form h3 { color: var(--green-deep); font-size: 1.3rem; margin-bottom: 4px; }
.reg-form .sub { font-size: .86rem; color: var(--muted); margin-bottom: 20px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--green-deep); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: .92rem; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-alt); color: var(--ink);
  transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(22,96,58,.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reg-form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ============ FAQ ============ */
.faq-grid { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--green-deep); }
.faq-q .chev { transition: .25s; color: var(--gold); flex: none; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 18px; color: var(--muted); font-size: .92rem; }

/* ============ FOOTER ============ */
.footer { background: var(--green-darker); color: rgba(255,255,255,.8); padding: 60px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-brand .brand-txt { color: #fff; }
.foot-brand p { margin-top: 16px; font-size: .9rem; max-width: 34ch; }
.foot-col h4 { color: #fff; font-size: .92rem; letter-spacing: .04em; margin-bottom: 16px; text-transform: uppercase; }
.foot-col a, .foot-col p { display: block; font-size: .9rem; margin-bottom: 10px; transition: .2s; }
.foot-col a:hover { color: var(--lime); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: rgba(255,255,255,.6); }

/* ============ FLOAT / TOAST ============ */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; flex-direction: column; gap: 12px; }
.fab a, .fab button { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); border: 0; cursor: pointer; transition: .2s; }
.fab a:hover, .fab button:hover { transform: translateY(-3px); }
.fab .wa { background: #25d366; color: #fff; }
.fab .top { background: #fff; color: var(--green); }
.fab svg { width: 24px; height: 24px; }

.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 140%);
  background: var(--green-deep); color: #fff; padding: 14px 22px; border-radius: 12px;
  box-shadow: var(--shadow); z-index: 200; font-size: .9rem; font-weight: 600;
  display: flex; align-items: center; gap: 10px; transition: transform .35s ease; max-width: 90vw;
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 20px; height: 20px; color: var(--lime); flex: none; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ MOBILE MENU ============ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: var(--green-darker);
  display: flex; flex-direction: column; padding: 80px 30px 40px; gap: 6px;
  transform: translateX(100%); transition: transform .3s ease;
}
.mobile-menu.open { transform: none; }
.mobile-menu a { color: #fff; font-size: 1.2rem; font-weight: 700; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-menu .close { position: absolute; top: 24px; right: 24px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.mobile-menu .btn { margin-top: 22px; justify-content: center; width: 100%; }

/* ============ RESPONSIVE ============ */
@media (max-width: 940px) {
  .nav-links, .nav-cta .btn-text { display: none; }
  .hamburger { display: block; }
  .about-grid, .reg-grid { grid-template-columns: minmax(0, 1fr); }
  .teams-grid { grid-template-columns: minmax(0, 1fr); }
  .rules-grid, .prize-grid { grid-template-columns: minmax(0, 1fr); }
  .spon-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .prize.win { transform: none; }
  .theme-banner, .register { padding: 40px 26px; }
}

/* ---------- TABLET & PHONE ---------- */
@media (max-width: 680px) {
  .sec { padding: 60px 0; }
  .wrap { padding-inline: 16px; }
  .sec-head { margin-bottom: 34px; }

  /* nav: compact so logo + button + burger never crowd */
  .nav { padding: 12px 0; }
  .nav.scrolled { padding: 8px 0; }
  .nav-inner { gap: 12px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-lime { padding: 9px 15px; font-size: .82rem; }
  .brand-logo, .nav.scrolled .brand-logo { height: 26px; }
  .hamburger { padding: 6px; }

  /* hero */
  .hero-inner { padding-block: 100px 60px; }
  .hero-badge { font-size: .72rem; padding: 7px 13px; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(1.95rem, 8.4vw, 2.7rem); }
  .hero-theme { font-size: 1.02rem; margin-bottom: 12px; }
  .hero-sub { font-size: .96rem; margin-bottom: 26px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 34px; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 14px 22px; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .hero-fact b { font-size: 1.4rem; }

  /* countdown */
  .count-card { flex-direction: column; align-items: stretch; padding: 24px 22px; gap: 20px; }
  .count-timer { justify-content: space-between; gap: 8px; }
  .count-unit { min-width: 0; flex: 1; }
  .count-unit b { font-size: 1.5rem; }
  .count-card .btn { width: 100%; justify-content: center; }

  /* about visual: shorter & badge kept inside */
  .about-grid { gap: 30px; }
  .about-media { max-width: 100%; }
  .about-visual { aspect-ratio: 5 / 4; }
  .about-visual .podium { width: 42%; }
  .about-badge { right: 10px; bottom: -16px; padding: 12px 18px; }
  .about-badge b { font-size: 1.25rem; }

  /* theme banner */
  .theme-banner { padding: 34px 22px; }
  .theme-banner .qmark { font-size: 9rem; top: -10px; right: 6px; }

  /* register */
  .register { padding: 32px 20px; }
  .reg-grid { gap: 30px; }
  .reg-info h2 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .reg-form { padding: 24px 20px; }

  /* timeline: tighten */
  .tl-item { grid-template-columns: 44px 1fr; gap: 14px; }
  .tl-dot { width: 44px; height: 44px; }
  .tl-line { left: 21px; }

  /* misc grids single column */
  .spon-grid { grid-template-columns: minmax(0,1fr); }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.85rem; }
  .nav-cta .btn-lime { padding: 8px 13px; font-size: .8rem; }
  .brand-logo, .nav.scrolled .brand-logo { height: 23px; }
  .count-unit b { font-size: 1.3rem; padding: 7px 2px; }
}

/* =========================================================
   GRAB/GOJEK-STYLE UI + ANIMATIONS
   ========================================================= */

/* ---------- Quick menu (service tiles) ---------- */
.quickmenu-wrap { margin-top: 22px; }
.quickmenu {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 20px 14px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.qm-item {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 6px 2px; border-radius: 14px; text-align: center;
  transition: transform .18s ease, background .18s ease;
}
.qm-item:hover { background: var(--bg-alt); transform: translateY(-3px); }
.qm-item:active { transform: scale(.94); }
.qm-ic {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; box-shadow: 0 8px 18px -8px rgba(0,0,0,.3);
}
.qm-ic svg { width: 26px; height: 26px; }
.qm-item span:last-child { font-size: .74rem; font-weight: 600; color: var(--green-deep); line-height: 1.15; }
.ic-green { background: linear-gradient(150deg,#1a7a46,#0f4f2c); }
.ic-gold  { background: linear-gradient(150deg,#d8b74e,#b8912f); }
.ic-amber { background: linear-gradient(150deg,#f0a63c,#d97b1f); }
.ic-teal  { background: linear-gradient(150deg,#2f9e8f,#177567); }
.ic-blue  { background: linear-gradient(150deg,#3d7bd6,#255fb0); }
.ic-wa    { background: linear-gradient(150deg,#37d871,#1fae57); }

/* ---------- Bottom navigation (mobile) ---------- */
.bottomnav { display: none; }
@media (max-width: 680px) {
  /* floating dark pill bar (SITASI-style) */
  .bottomnav {
    display: flex; position: fixed; z-index: 60;
    left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(150deg, #164a30, var(--green-darker));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 26px;
    box-shadow: 0 18px 40px -14px rgba(11,46,28,.65), 0 2px 6px rgba(0,0,0,.2);
    padding: 10px 8px;
    justify-content: space-around; align-items: center;
  }
  .bn-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font-size: .66rem; font-weight: 600; color: rgba(255,255,255,.66);
    padding: 8px 2px; border-radius: 18px;
    transition: color .22s ease, background .22s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .bn-item svg { width: 22px; height: 22px; transition: transform .2s ease; }
  .bn-item:active { transform: scale(.92); }
  /* active item: highlighted pill */
  .bn-item.active {
    color: #fff;
    background: rgba(255,255,255,.14);
  }
  .bn-item.active svg { color: var(--lime); }

  /* room for floating bar + lift the WA fab above it */
  body { padding-bottom: 88px; }
  .fab { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); right: 16px; }
  .fab a, .fab button { width: 46px; height: 46px; }
}

/* ---------- Micro-interactions (press feedback) ---------- */
.btn { transition: background .22s ease, transform .12s ease, box-shadow .22s ease, border-color .22s ease; }
.btn:active { transform: scale(.96); }
.team-card, .rule-card, .prize, .spon, .faq-item, .tl-body, .reg-contact .ic, .about-badge {
  transition: transform .2s ease, box-shadow .2s ease;
}
.rule-card:hover, .spon:hover, .prize:not(.win):hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.count-unit b { transition: transform .2s ease; }

/* ---------- Entrance animations (staggered) ---------- */
@keyframes floatY { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }
.hero-art .art-card { animation: floatY 5s ease-in-out infinite; }
.art-chip.chip-a { animation: floatY 5s ease-in-out infinite .6s; }
.art-chip.chip-b { animation: floatY 6s ease-in-out infinite 1.2s; }

/* hero content rise-in on load */
@keyframes riseIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-copy > * { opacity: 0; animation: riseIn .6s ease forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero-copy > *:nth-child(3) { animation-delay: .25s; }
.hero-copy > *:nth-child(4) { animation-delay: .35s; }
.hero-copy > *:nth-child(5) { animation-delay: .45s; }
.hero-copy > *:nth-child(6) { animation-delay: .55s; }

/* staggered children inside revealed grids */
.reveal.in .team-card, .reveal.in .rule-card, .reveal.in .prize,
.reveal.in .spon, .reveal.in .qm-item, .reveal.in .tl-item {
  animation: riseIn .5s ease both;
}
.quickmenu.reveal.in .qm-item:nth-child(1){animation-delay:.03s}
.quickmenu.reveal.in .qm-item:nth-child(2){animation-delay:.08s}
.quickmenu.reveal.in .qm-item:nth-child(3){animation-delay:.13s}
.quickmenu.reveal.in .qm-item:nth-child(4){animation-delay:.18s}
.quickmenu.reveal.in .qm-item:nth-child(5){animation-delay:.23s}
.quickmenu.reveal.in .qm-item:nth-child(6){animation-delay:.28s}

/* pressable hover lift for quick tiles already set; keep reveal fallback visible */
.reveal { will-change: opacity, transform; }

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-copy > * { opacity: 1; }
}

/* quick menu responsive columns */
@media (max-width: 680px) {
  .quickmenu { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 18px 10px; }
  .qm-ic { width: 48px; height: 48px; border-radius: 15px; }
  .qm-ic svg { width: 24px; height: 24px; }
  .quickmenu-wrap { margin-top: 18px; }
}
@media (max-width: 380px) {
  .qm-ic { width: 44px; height: 44px; }
  .qm-item span:last-child { font-size: .7rem; }
}

/* flow diagram compact on mobile */
@media (max-width: 680px) {
  .flow { padding: 18px 12px; }
  .flow-head { margin-bottom: 14px; font-size: .82rem; }
  .flow-rows { gap: 10px; }
  .flow-row { gap: 8px; }
  .flow-box { padding: 9px 8px; font-size: .74rem; line-height: 1.25; text-align: center; }
  .flow-box.g { text-align: center; }
  .flow-num { width: 28px; height: 28px; font-size: .78rem; }
  .flow-mid { gap: 3px; }
  .flow-mid svg { width: 15px; height: 15px; }
}
@media (max-width: 360px) {
  .flow-box { font-size: .68rem; }
  .flow-num { width: 25px; height: 25px; }
}

/* registration fee highlight */
.reg-fee {
  display: flex; align-items: center; gap: 14px; margin: 22px 0 4px;
  background: rgba(215,230,0,.12); border: 1px solid rgba(215,230,0,.4);
  border-radius: 14px; padding: 14px 18px;
}
.reg-fee .fee-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--lime); color: var(--green-darker); display: grid; place-items: center; flex: none; }
.reg-fee .fee-ic svg { width: 24px; height: 24px; }
.reg-fee b { display: block; color: #fff; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.reg-fee b span { font-size: .9rem; font-weight: 700; color: var(--lime); }
.reg-fee .fee-note { display: block; font-size: .82rem; color: rgba(255,255,255,.75); margin-top: 4px; }

/* =========================================================
   REGISTRATION: payment + declaration + uploads
   ========================================================= */
.form-sec { margin: 22px 0 12px; padding-top: 18px; border-top: 1px dashed var(--line); }
.form-sec-title { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--green-deep); font-size: 1rem; }
.fs-num { width: 24px; height: 24px; border-radius: 8px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .82rem; font-weight: 800; flex: none; }
.req { color: #c0392b; }

.pay-hint { font-size: .86rem; color: var(--muted); margin-bottom: 12px; }
.rek-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.rek { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.rek-bank { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.rek-no { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: space-between; background: none; border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .92rem; color: var(--green-deep); font-variant-numeric: tabular-nums; padding: 0; }
.rek-no svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.rek-no:hover svg { color: var(--green); }
.rek-no:active { transform: scale(.97); }

.upload {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1.5px dashed var(--line); background: var(--bg-alt);
  border-radius: 10px; padding: 14px; transition: .2s; color: var(--muted); font-size: .9rem;
}
.upload:hover { border-color: var(--green); background: #fff; }
.upload svg { width: 22px; height: 22px; color: var(--green); flex: none; }
.upload.has-file { border-style: solid; border-color: var(--green); color: var(--green-deep); font-weight: 600; background: var(--green-soft); }
.upload-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tmpl-dl {
  display: flex; align-items: center; gap: 12px; margin-bottom: 15px;
  background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 12px; padding: 12px 14px;
  transition: .2s;
}
.tmpl-dl:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tmpl-dl svg { width: 26px; height: 26px; color: #8a6d1a; flex: none; }
.tmpl-dl b { display: block; font-size: .9rem; color: var(--green-deep); }
.tmpl-dl small { display: block; font-size: .76rem; color: var(--muted); }

.agree { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 6px; font-size: .84rem; color: var(--muted); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--green); }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
#submitBtn:disabled { opacity: .85; cursor: progress; }

@media (max-width: 420px) { .rek-list { grid-template-columns: 1fr; } }

/* ===== landing: short registration CTA card ===== */
.reg-cta { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); color: var(--ink); align-self: start; }
.reg-cta h3 { color: var(--green-deep); font-size: 1.3rem; margin-bottom: 4px; }
.reg-cta .sub { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.reg-steps { list-style: none; display: grid; gap: 14px; margin: 0 0 24px; }
.reg-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--green-deep); font-weight: 600; }
.reg-steps li span { width: 26px; height: 26px; border-radius: 8px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 800; font-size: .82rem; flex: none; }
.reg-cta-btn { width: 100%; justify-content: center; font-size: 1rem; padding: 16px; }

/* =========================================================
   DEDICATED REGISTRATION PAGE (daftar.html)
   ========================================================= */
.daftar-body { background: var(--bg-alt); }
.daftar-top {
  background: linear-gradient(150deg, var(--green-deep), var(--green-darker));
  color: #fff; padding: 16px 0; position: sticky; top: 0; z-index: 40;
  box-shadow: 0 6px 24px -18px rgba(0,0,0,.5);
}
.daftar-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.daftar-top .brand-logo { height: 30px; }
.daftar-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: rgba(255,255,255,.9); }
.daftar-back svg { width: 18px; height: 18px; }
.daftar-back:hover { color: var(--lime); }

.daftar-head { padding: 40px 0 8px; }
.daftar-head .eyebrow { color: var(--green); }
.daftar-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--green-deep); }
.daftar-head p { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.daftar-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.daftar-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .82rem; font-weight: 700; color: var(--green-deep); }
.daftar-chip svg { width: 16px; height: 16px; color: var(--green); }

.daftar-wrap { max-width: 760px; margin: 26px auto 60px; padding-inline: 16px; }
.daftar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px; }
.daftar-card .reg-form { padding: 0; box-shadow: none; }
.daftar-foot { text-align: center; padding: 26px 16px 40px; color: var(--muted); font-size: .84rem; }
.daftar-foot a { color: var(--green); font-weight: 700; }

@media (max-width: 560px) { .daftar-card { padding: 22px 18px; } .daftar-head { padding-top: 30px; } }

/* =========================================================
   ADMIN DASHBOARD (admin.html)
   ========================================================= */
.admin-body { background: var(--bg-alt); }
.spinner-dark { border-color: rgba(22,96,58,.25); border-top-color: var(--green); }

/* login */
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1000px 500px at 50% -10%, rgba(22,96,58,.12), transparent 60%), var(--bg-alt); }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  padding: 36px 32px; width: 100%; max-width: 400px; text-align: center; }
.login-logo { height: 34px; margin: 0 auto 20px; }
.login-card h1 { font-size: 1.5rem; color: var(--green-deep); }
.login-sub { font-size: .9rem; color: var(--muted); margin: 6px 0 22px; }
.login-card .field { text-align: left; }
.login-card .btn { margin-top: 6px; }
.login-err { color: #c0392b; font-size: .85rem; margin-top: 12px; font-weight: 600; }
.login-foot { margin-top: 18px; font-size: .85rem; }
.login-foot a { color: var(--green); font-weight: 700; }

/* top bar */
.admin-top { background: linear-gradient(150deg, var(--green-deep), var(--green-darker)); color: #fff;
  position: sticky; top: 0; z-index: 40; box-shadow: 0 6px 24px -18px rgba(0,0,0,.5); }
.admin-top .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; gap: 16px; }
.admin-brand { display: flex; align-items: center; gap: 14px; }
.admin-top .brand-logo { height: 28px; }
.admin-tag { font-weight: 800; font-size: .95rem; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.2); }
.admin-user { display: flex; align-items: center; gap: 14px; font-size: .86rem; }
.admin-user #whoami { color: rgba(255,255,255,.85); font-weight: 600; }
.btn-logout { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); color: #fff; font-family: inherit; font-weight: 700; font-size: .82rem;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: .2s; }
.btn-logout:hover { background: rgba(255,255,255,.22); }
.btn-logout svg { width: 16px; height: 16px; }

.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 26px 20px 60px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head h1 { font-size: 1.6rem; color: var(--green-deep); }
.admin-head p { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.admin-actions { display: flex; gap: 10px; }
.admin-actions .btn { padding: 11px 18px; font-size: .88rem; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.astat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.astat .an { display: block; font-size: 2rem; font-weight: 800; color: var(--green-deep); line-height: 1; }
.astat .al { font-size: .84rem; color: var(--muted); font-weight: 600; }
.astat.wait { border-left: 4px solid var(--gold); }
.astat.ok { border-left: 4px solid #2f9e57; }
.astat.no { border-left: 4px solid #c0392b; }
.astat.wait .an { color: #a6802a; }
.astat.ok .an { color: #2f9e57; }
.astat.no .an { color: #c0392b; }

.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; flex: 1; min-width: 240px; max-width: 420px; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { border: 0; outline: none; font-family: inherit; font-size: .92rem; width: 100%; background: none; color: var(--ink); }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fchip { background: #fff; border: 1px solid var(--line); color: var(--muted); font-family: inherit; font-weight: 700;
  font-size: .82rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: .18s; }
.fchip:hover { border-color: var(--green); color: var(--green); }
.fchip.active { background: var(--green); color: #fff; border-color: var(--green); }

.admin-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.admin-table thead th { background: var(--green-soft); color: var(--green-deep); text-align: left;
  font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; padding: 13px 16px; white-space: nowrap; }
.admin-table td { padding: 14px 16px; border-top: 1px solid var(--line); font-size: .9rem; vertical-align: top; }
.admin-table tbody tr:hover { background: var(--bg-alt); }
.admin-table td b { color: var(--green-deep); }
.admin-table td .sub { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.admin-table td.muted { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.files { display: flex; flex-direction: column; gap: 6px; }
.file-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .8rem; color: var(--green);
  background: var(--green-soft); padding: 4px 10px; border-radius: 8px; width: fit-content; }
.file-link:hover { background: var(--green); color: #fff; }
.no-file { color: var(--line); }
.sbadge { display: inline-block; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.sbadge.wait { background: var(--gold-soft); color: #8a6d1a; }
.sbadge.ok { background: #e3f5ea; color: #1f7a45; }
.sbadge.no { background: #fbe4e4; color: #b03030; }
.status-sel { display: block; width: 100%; min-width: 130px; font-family: inherit; font-size: .82rem; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }

.admin-empty, .admin-loading { text-align: center; padding: 50px 20px; color: var(--muted); }
.admin-empty svg { width: 44px; height: 44px; color: var(--line); margin: 0 auto 12px; }
.admin-loading { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; }

@media (max-width: 720px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-head { flex-direction: column; align-items: stretch; }
  .admin-actions { justify-content: stretch; }
  .admin-actions .btn { flex: 1; justify-content: center; }
}

/* ===== Poster section ===== */
.poster-grid { display: grid; grid-template-columns: minmax(0,380px) 1fr; gap: 48px; align-items: center; }
.poster-img { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.poster-img:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -22px rgba(15,63,39,.5); }
.poster-img img { width: 100%; height: auto; display: block; }
.poster-info .lead { margin-bottom: 24px; }
.poster-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) {
  .poster-grid { grid-template-columns: 1fr; gap: 26px; justify-items: center; text-align: center; }
  .poster-img { max-width: 340px; }
  .poster-info .eyebrow { justify-content: center; }
  .poster-info .lead { margin-inline: auto; }
  .poster-actions { justify-content: center; }
}
