/* ===== Web Dynamix Academy – Airtime Giveaway ===== */
:root {
  --navy: #071A3D;
  --navy-2: #0D2A5E;
  --blue: #1D5BFF;
  --sky: #4CC3FF;
  --ink: #0B1324;
  --text: #43506A;
  --line: #E3E9F4;
  --bg: #F2F5FB;
  --white: #FFFFFF;
  --ok: #12A150;
  --bad: #E0393E;
  --radius: 22px;
  --shadow: 0 10px 30px -12px rgba(7, 26, 61, .18);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.muted { color: var(--text); margin: 0; }
.foot { text-align: center; font-size: .8rem; color: #8A96AD; margin: 28px 0 0; }

/* ---------- Shared card + buttons ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.btn {
  display: block; width: 100%;
  padding: 16px; border: 0; border-radius: 16px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: transform .12s ease, opacity .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #0B3FD0);
  box-shadow: 0 12px 24px -10px rgba(29, 91, 255, .7);
}
.btn-ghost { background: var(--bg); color: var(--ink); }
.btn.loading { position: relative; color: rgba(255,255,255,.85); }
.btn.loading::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== LOGIN ========== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, var(--navy-2) 0%, var(--navy) 60%);
  color: var(--white);
  padding: 44px 20px 92px;
  text-align: center;
}
.glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.g1 { width: 260px; height: 260px; background: var(--blue); top: -90px; right: -70px; }
.g2 { width: 200px; height: 200px; background: var(--sky); bottom: -110px; left: -60px; opacity: .35; }
.hero-inner { position: relative; max-width: 440px; margin: 0 auto; }
.logo-ring {
  width: 96px; height: 96px; margin: 0 auto 18px;
  border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 0 0 6px rgba(76, 195, 255, .25), 0 14px 30px -8px rgba(0,0,0,.5);
  background: var(--white);
}
.logo-ring img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eyebrow { margin: 0 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.hero h1 { margin: 0 0 12px; font-size: clamp(1.9rem, 8vw, 2.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.hero h1 span {
  background: linear-gradient(90deg, var(--sky), #9BE3FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { margin: 0 auto; max-width: 340px; color: rgba(255,255,255,.75); }

.sheet { position: relative; max-width: 440px; margin: -62px auto 0; padding: 0 16px 40px; }
label { display: block; font-weight: 700; margin: 0 0 10px; }
.phone-field {
  display: flex; align-items: center;
  border: 2px solid var(--line); border-radius: 16px; background: var(--bg);
  transition: border-color .2s ease, background .2s ease;
}
.phone-field:focus-within { border-color: var(--blue); background: var(--white); }
.prefix { padding: 0 6px 0 14px; font-weight: 700; color: var(--text); white-space: nowrap; font-size: .95rem; }
.phone-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  padding: 16px 14px 16px 6px; font: 700 1.2rem 'Plus Jakarta Sans', sans-serif; letter-spacing: .03em; color: var(--ink);
}
.error { color: var(--bad); font-weight: 600; margin: 10px 0 0; font-size: .92rem; }
.sheet .btn { margin-top: 16px; }
.hint { margin: 14px 0 0; font-size: .85rem; color: var(--text); text-align: center; }

.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.steps li {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 10px; text-align: center; font-size: .8rem; font-weight: 600; color: var(--text);
}
.steps b {
  display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 8px;
  border-radius: 50%; background: #E8EFFF; color: var(--blue); font-size: .85rem;
}

/* ========== DASHBOARD ========== */
.dash { background: linear-gradient(180deg, var(--navy) 0, var(--navy) 230px, var(--bg) 230px); min-height: 100vh; }
.topbar {
  max-width: 480px; margin: 0 auto; padding: 18px 18px 8px;
  display: flex; align-items: center; justify-content: space-between; color: var(--white);
}
.who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none;
  border: 2px solid rgba(255,255,255,.85); background: var(--white);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.greet { margin: 0; font-size: .82rem; color: rgba(255,255,255,.7); }
.num { margin: 0; font-weight: 700; letter-spacing: .03em; }
.logout {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: rgba(255,255,255,.1); color: var(--white);
}
.logout:hover { background: rgba(255,255,255,.18); }

.dash-wrap { max-width: 480px; margin: 0 auto; padding: 10px 16px 40px; }

/* Gift card */
.gift {
  position: relative; overflow: hidden;
  border-radius: 26px; padding: 20px 22px 22px; margin: 6px 0 18px;
  color: var(--white);
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(76,195,255,.55) 0%, transparent 55%),
    linear-gradient(135deg, var(--blue) 0%, #0B3FD0 45%, #08245F 100%);
  box-shadow: 0 24px 40px -18px rgba(29, 91, 255, .75);
}
.gift-shine {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.gift-top { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.gift-brand { font-size: .72rem; font-weight: 800; letter-spacing: .2em; opacity: .8; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #5CF29A; box-shadow: 0 0 0 0 rgba(92,242,154,.7); animation: pulse 1.8s infinite; }
.pill-off i { background: #FFB4B4; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(92,242,154,0); } 100% { box-shadow: 0 0 0 0 rgba(92,242,154,0); } }
.gift-label { position: relative; margin: 0; font-size: .85rem; opacity: .8; }
.gift-amount { position: relative; margin: 2px 0 20px; font-size: 3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.gift-amount small { font-size: 1.3rem; opacity: .7; }
.gift-bottom { position: relative; display: flex; justify-content: space-between; gap: 12px; }
.gift-bottom .right { text-align: right; }
.gift-k { margin: 0; font-size: .72rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }
.gift-v { margin: 2px 0 0; font-weight: 700; letter-spacing: .02em; }
.meter { position: relative; height: 6px; margin-top: 16px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9BE3FF, #fff); }

/* Steps in claim card */
.step-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1rem; }
.step-title b {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #E8EFFF; color: var(--blue); font-size: .8rem;
}
.nets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.net {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 4px 12px; border-radius: 18px; cursor: pointer;
  border: 2px solid var(--line); background: var(--white);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.net:hover { transform: translateY(-2px); }
.net .dot {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  font-weight: 800; font-size: 1.05rem; color: #fff;
}
.net-name { font-size: .78rem; font-weight: 700; color: var(--ink); }
.net-mtn .dot { background: #FFCC00; color: #1A1A1A; }
.net-glo .dot { background: #3BB143; }
.net-nine .dot { background: #006E53; }
.net-airtel .dot { background: #E40000; }
.net[aria-checked=true] { border-color: var(--blue); box-shadow: 0 10px 22px -12px rgba(29,91,255,.8); background: #F4F7FF; }
.net[aria-checked=true] .net-name { color: var(--blue); }

.reward {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px; margin-bottom: 18px; border-radius: 18px; cursor: pointer;
  border: 2px solid var(--line); background: var(--white);
  transition: border-color .15s ease, background .15s ease;
}
.reward:disabled { opacity: .45; cursor: not-allowed; }
.reward-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: #E8EFFF; color: var(--blue);
}
.reward-text { flex: 1; display: flex; flex-direction: column; }
.reward-amt { font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.reward-sub { font-size: .8rem; color: var(--text); }
.tick {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); color: transparent; font-weight: 800; font-size: .85rem;
}
.reward[aria-pressed=true] { border-color: var(--blue); background: #F4F7FF; }
.reward[aria-pressed=true] .tick { background: var(--blue); border-color: var(--blue); color: #fff; }

.result { min-height: 1.4em; margin: 14px 0 0; font-weight: 600; font-size: .92rem; text-align: center; }
.result.ok { color: var(--ok); }
.result.bad { color: var(--bad); background: #FDECEC; padding: 12px 14px; border-radius: 14px; text-align: left; }

/* Receipt */
.receipt { text-align: center; }
.check { width: 72px; height: 72px; margin: 4px auto 14px; }
.check svg { width: 100%; height: 100%; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.check circle { fill: #E7F7EE; stroke: var(--ok); }
.check path { stroke: var(--ok); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .2s ease forwards; }
.check.wait circle { fill: #FFF6E0; stroke: #E8A100; }
.check.wait path { stroke: #E8A100; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.receipt h2 { margin: 0 0 6px; font-size: 1.4rem; }
.rows { margin: 18px 0 0; padding: 0; text-align: left; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.rows div:last-child { border-bottom: 0; }
.rows dt { color: var(--text); font-size: .9rem; }
.rows dd { margin: 0; font-weight: 700; }
.note { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #F4F7FF; color: var(--navy-2); font-size: .85rem; font-weight: 600; text-align: left; }
.love { margin: 16px 0 0; font-weight: 700; color: var(--blue); }

/* Closed state */
.closed-card { text-align: center; }
.closed-icon { font-size: 2.6rem; margin-bottom: 6px; }
.closed-card h2 { margin: 0 0 6px; font-size: 1.3rem; }

/* Confirm sheet */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(7, 26, 61, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal-box {
  width: 100%; max-width: 440px; background: var(--white); border-radius: 26px; padding: 24px 20px 20px;
  animation: up .25s ease;
}
.modal-box h3 { margin: 0 0 4px; font-size: 1.2rem; }
.modal-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 20px; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 600px) { .modal { align-items: center; } }

/* ========== ADMIN ========== */
.admin-wrap { max-width: 1000px; margin: 0 auto; padding: 28px 16px 48px; }
.admin-wrap h1 { margin: 0; font-size: 1.6rem; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.admin-head a { color: var(--blue); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.stat b { display: block; font-size: 1.7rem; color: var(--navy); }
.stat span { font-size: .85rem; color: var(--text); font-weight: 600; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.tag { padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.tag-success { background: #E7F7EE; color: var(--ok); }
.tag-review { background: #FFF6E0; color: #B37A00; }
.tag-processing { background: #E8EFFF; color: var(--blue); }
td form { margin: 0; }
td button { font-weight: 700; font-size: .8rem; color: var(--bad); background: none; border: 1px solid var(--bad); border-radius: 10px; padding: 5px 10px; cursor: pointer; }
.admin-login { max-width: 400px; margin: 60px auto; padding: 0 16px; }
.admin-login input {
  width: 100%; padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg);
  font: 600 1rem 'Plus Jakarta Sans', sans-serif;
}
.admin-login .btn { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::after { animation: none !important; transition: none !important; }
  .check path { stroke-dashoffset: 0; }
}
/* Reward card is auto-selected: show it as info, not a button */
.reward { cursor: default; }
.reward:disabled { opacity: .45; cursor: default; }
.reward[aria-pressed=true]:disabled { opacity: 1; }
