/* ============================================================
   NAIJA DIMES HUB — Premium Design System (Part 1: Core)
   Dark • Glassmorphism • Glowing diamonds • Mobile-first
   ============================================================ */
:root {
  --bg: #060913;
  --bg-2: #0a1120;
  --card: rgba(255,255,255,.06);
  --card-2: rgba(255,255,255,.09);
  --border: rgba(255,255,255,.12);
  --primary: #00d4ff;
  --primary-2: #00a8ff;
  --accent: #00ff88;
  --gold: #ffc107;
  --danger: #ff4757;
  --warning: #ff9f43;
  --text: #eef2f8;
  --muted: #8b98ab;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0,0,0,.5);
  --glow: 0 0 24px rgba(0,212,255,.35);
  --font: 'Inter','Segoe UI',system-ui,-apple-system,sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(0,212,255,.14), transparent 60%),
              radial-gradient(900px 500px at -10% 20%, rgba(0,255,136,.08), transparent 55%),
              linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 55%, #05070d 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
::selection { background: rgba(0,212,255,.35); }

/* ============ Layout ============ */
.container { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: 4rem 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 2rem; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.75rem; border-radius: 12px; border: none; cursor: pointer;
  font-weight: 700; font-size: .95rem; font-family: var(--font);
  text-decoration: none; transition: all .25s ease; position: relative;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #04121a; box-shadow: 0 4px 18px rgba(0,212,255,.35);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,212,255,.5); }
.btn:active { transform: translateY(-1px); }
.btn-block { width: 100%; display: flex; }
.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.05rem; }
.btn-accent { background: linear-gradient(135deg, var(--accent), #00cc6a); color: #04160c; box-shadow: 0 4px 18px rgba(0,255,136,.3); }
.btn-accent:hover { box-shadow: 0 8px 28px rgba(0,255,136,.45); }
.btn-danger { background: linear-gradient(135deg, var(--danger), #d32f45); color: #fff; box-shadow: 0 4px 18px rgba(255,71,87,.3); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #ff9800); color: #1a1200; box-shadow: 0 4px 18px rgba(255,193,7,.3); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.btn-sm { padding: .5rem 1rem; font-size: .82rem; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ============ Glass cards ============ */
.glass {
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 14px 44px rgba(0,212,255,.18); }
.glow { box-shadow: var(--glow); }

/* ============ Badges ============ */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
}
.badge-popular { background: linear-gradient(135deg, #ffb800, #ff8a00); color: #1a1200; box-shadow: 0 0 14px rgba(255,184,0,.4); }
.badge-best { background: linear-gradient(135deg, var(--accent), #00cc6a); color: #04160c; box-shadow: 0 0 14px rgba(0,255,136,.4); }
.badge-promo { background: linear-gradient(135deg, #ff006e, #c4005d); color: #fff; box-shadow: 0 0 14px rgba(255,0,110,.4); }

/* ============ Headings ============ */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.02em; color: #fff; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.grad-text {
  background: linear-gradient(120deg, var(--primary), #7df9ff 50%, var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ============ Forms ============ */
input, select, textarea {
  width: 100%; padding: .85rem 1rem; margin-bottom: .75rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: rgba(0,0,0,.35); color: var(--text); font-family: var(--font); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,212,255,.15);
}
label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .35rem; }
.checkbox { width: auto; transform: scale(1.25); margin-right: .5rem; }

/* ============ Package cards ============ */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.pkg-card {
  position: relative; text-align: center; padding: 2rem 1.25rem;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .3s ease; overflow: hidden;
}
.pkg-card:hover { transform: translateY(-8px) scale(1.02); border-color: rgba(0,212,255,.5); box-shadow: 0 16px 50px rgba(0,212,255,.2); }
.pkg-card.featured { border-color: rgba(0,212,255,.55); background: linear-gradient(160deg, rgba(0,212,255,.12), rgba(0,212,255,.03)); }
.pkg-card .dimes { font-size: 2rem; font-weight: 800; color: #fff; }
.pkg-card .dimes span { background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pkg-card .price { font-size: 1.35rem; font-weight: 800; color: var(--accent); margin: .5rem 0; }
.pkg-card .old-price { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.pkg-card .buy-btn { margin-top: 1rem; }
.pkg-card .pkg-badge { position: absolute; top: 12px; right: 12px; }

/* ============ Navbar ============ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(6,9,19,.8); border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding: .9rem 4%; }
.nav-logo { font-size: 1.25rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: .5rem; }
.nav-logo .logo-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); font-size: 1.1rem; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .92rem; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ============ Hero ============ */
.hero { position: relative; text-align: center; padding: 5.5rem 1rem 5rem; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(500px 300px at 20% 30%, rgba(0,212,255,.15), transparent 60%),
    radial-gradient(500px 300px at 80% 40%, rgba(0,255,136,.12), transparent 60%),
    radial-gradient(300px 200px at 50% 10%, rgba(255,255,255,.08), transparent 60%);
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 1rem; position: relative; }
.hero .hero-desc { font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--muted); max-width: 620px; margin: 0 auto 2.2rem; position: relative; }
.hero .hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.hero .hero-diamonds { position: absolute; inset: 0; pointer-events: none; opacity: .35; }

/* floating diamonds animation */
@keyframes floatDiamond {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .5; }
  50% { transform: translateY(-24px) rotate(18deg); opacity: 1; }
}
.float-d { position: absolute; animation: floatDiamond 5s ease-in-out infinite; }

/* ============ Announcement bar ============ */
.announce-bar {
  background: linear-gradient(90deg, rgba(0,212,255,.15), rgba(0,255,136,.12), rgba(0,212,255,.15));
  border-bottom: 1px solid var(--border); padding: .7rem 1rem; text-align: center;
  font-weight: 600; font-size: .9rem; color: #cfefff;
}

/* ============ Timeline (order tracking) ============ */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--primary), var(--accent)); opacity: .35; }
.step { position: relative; margin-bottom: 1.1rem; padding: .4rem 0; }
.step::before {
  content: ''; position: absolute; left: -2.2rem; top: .5rem; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg-2); border: 2px solid var(--muted); transition: all .3s;
}
.step.done::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px rgba(0,255,136,.6); }
.step.active::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 12px rgba(0,212,255,.6); }
.step .check { color: var(--accent); font-weight: 800; margin-right: .4rem; }
.step .label { font-weight: 600; }
.step.done .label { color: var(--muted); }
.step.active .label { color: var(--primary); }
.step.rejected .label { color: var(--danger); }
.step.rejected::before { background: var(--danger); border-color: var(--danger); box-shadow: 0 0 12px rgba(255,71,87,.6); }

/* ============ Status badges ============ */
.status-badge { display: inline-block; padding: .35rem .8rem; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .03em; }
.st-pending { background: rgba(255,159,67,.15); color: var(--warning); border: 1px solid rgba(255,159,67,.4); }
.st-review { background: rgba(255,193,7,.12); color: var(--gold); border: 1px solid rgba(255,193,7,.4); }
.st-confirmed { background: rgba(0,212,255,.12); color: var(--primary); border: 1px solid rgba(0,212,255,.4); }
.st-processing { background: rgba(0,168,255,.12); color: #4db8ff; border: 1px solid rgba(0,168,255,.4); }
.st-completed { background: rgba(0,255,136,.12); color: var(--accent); border: 1px solid rgba(0,255,136,.4); }
.st-rejected { background: rgba(255,71,87,.12); color: var(--danger); border: 1px solid rgba(255,71,87,.4); }
.st-cancelled { background: rgba(139,152,171,.12); color: var(--muted); border: 1px solid rgba(139,152,171,.4); }

/* ============ Tables ============ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: rgba(0,0,0,.2); }
th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; white-space: nowrap; }
th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.03); }
tr:hover td { background: rgba(0,212,255,.04); }
tr:last-child td { border-bottom: none; }

/* ============ Flex / grid helpers ============ */
.flex { display: flex; flex-wrap: wrap; gap: 1rem; }
.flex-center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }

/* ============ FAQ accordion ============ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .8rem; overflow: hidden; background: rgba(255,255,255,.03); }
.faq-q { padding: 1rem 1.25rem; cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q:hover { background: rgba(0,212,255,.05); }
.faq-q .ic { transition: transform .3s; color: var(--primary); }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--muted); }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 1.25rem 1.1rem; }

/* ============ Steps (how it works) ============ */
.step-num {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 800; margin-bottom: .8rem;
  background: linear-gradient(135deg, rgba(0,212,255,.2), rgba(0,255,136,.15));
  border: 1px solid rgba(0,212,255,.35); color: var(--primary);
}

/* ============ Copy button ============ */
.copy-row { display: flex; align-items: center; gap: .6rem; background: rgba(0,0,0,.3); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: .75rem; }
.copy-row .val { flex: 1; font-weight: 700; color: #fff; word-break: break-all; }
.copy-btn { flex-shrink: 0; }

/* ============ Announcement cards ============ */
.ann-card { padding: 1.5rem; border-left: 3px solid var(--primary); }
.ann-card .ann-title { font-size: 1.1rem; font-weight: 800; color: #fff; }
.ann-card .ann-body { color: var(--muted); margin-top: .4rem; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 1rem; margin-top: 3rem; text-align: center; background: rgba(0,0,0,.25); }
.footer .ft-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.footer a { color: var(--muted); font-size: .9rem; }
.footer a:hover { color: var(--primary); }
.footer .copy { color: var(--muted); font-size: .82rem; }

/* ============ Toast / flash ============ */
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-120%); z-index: 999; padding: .9rem 1.6rem; border-radius: 12px; font-weight: 700; box-shadow: var(--shadow); transition: transform .35s ease; max-width: 90%; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-ok { background: linear-gradient(135deg, rgba(0,255,136,.2), rgba(0,255,136,.1)); border: 1px solid rgba(0,255,136,.5); color: var(--accent); }
.toast-err { background: linear-gradient(135deg, rgba(255,71,87,.2), rgba(255,71,87,.1)); border: 1px solid rgba(255,71,87,.5); color: var(--danger); }

/* ============ Loading screen ============ */
#loader {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: var(--bg); transition: opacity .5s ease, visibility .5s;
}
#loader.hide { opacity: 0; visibility: hidden; }
.loader-diamond { font-size: 3rem; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .6; } }
.loader-text { color: var(--muted); margin-top: 1rem; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; }

/* ============ Empty state ============ */
.empty { text-align: center; padding: 3.5rem 1.5rem; color: var(--muted); }
.empty .empty-ic { font-size: 3.5rem; margin-bottom: 1rem; opacity: .6; }

/* ============ Responsive ============ */
/* Mobile bottom nav — iOS-style tab bar, only on small screens */
.bottom-nav {
  display: none;
}
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(6,9,19,.97); padding: 1rem 4%; border-bottom: 1px solid var(--border); gap: 1rem; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .section { padding: 2.5rem 0; }
  .card { padding: 1.25rem; }
  /* bottom tab bar */
  body { padding-bottom: 68px; }
  .bottom-nav {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
    background: rgba(8,12,24,.92);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 30px rgba(0,0,0,.45);
    padding: .4rem 0 calc(.4rem + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
  }
  .bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--muted); font-size: .66rem; font-weight: 700;
    padding: .45rem .6rem; min-width: 58px; border-radius: 12px;
    letter-spacing: .02em;
  }
  .bottom-nav a .bn-ic { font-size: 1.3rem; line-height: 1; }
  .bottom-nav a.active { color: var(--primary); }
  .bottom-nav a.active .bn-ic { filter: drop-shadow(0 0 8px rgba(0,212,255,.8)); }
  .bottom-nav a:active { background: rgba(0,212,255,.1); }
  /* hero buttons full width on mobile */
  .hero .hero-btns { flex-direction: column; align-items: center; gap: .75rem; max-width: 340px; margin: 0 auto; }
  .hero .hero-btns .btn { width: 100%; }
}
@media (max-width: 480px) {
  .btn-lg { padding: .95rem 1.6rem; }
  .pkg-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
  .pkg-card .dimes { font-size: 1.35rem; }
  .pkg-card { padding: 1.25rem .75rem; }
  .pkg-card .price { font-size: 1.1rem; }
  .pkg-card .pkg-badge { top: 8px; right: 8px; font-size: .62rem; padding: .22rem .5rem; }
  .bottom-nav a { font-size: .6rem; min-width: 52px; }
  .bottom-nav a .bn-ic { font-size: 1.2rem; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero .hero-desc { font-size: .95rem; }
}
/* small phones */
@media (max-width: 360px) {
  .pkg-grid { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .pkg-card .dimes { font-size: 1.2rem; }
  .nav-logo { font-size: 1.05rem; }
}
