/* ==========================================================================
   Digital Afrinet Solutions — Design System
   Palette: deep navy (#0b2447) + electric blue (#2563eb) + signal green (#16a34a)
   Type: Space Grotesk (display) / Inter (body)
   ========================================================================== */

:root {
  --navy-950: #071730;
  --navy-900: #0b2447;
  --navy-800: #123563;
  --navy-700: #1c4a86;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --cyan-400: #22d3ee;
  --green-500: #16a34a;
  --green-400: #22c55e;
  --amber-400: #f59e0b;
  --red-500: #dc2626;

  --bg: #f6f8fb;
  --surface: #ffffff;
  --border: #e4e9f2;
  --text: #182238;
  --text-muted: #64748b;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 4px 20px rgba(11, 36, 71, 0.07);
  --shadow-hover: 0 12px 32px rgba(11, 36, 71, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.2; margin: 0 0 .5em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.28); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(37,99,235,.38); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-900); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-success { background: var(--green-500); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- Header / Nav ---------- */
.site-header { background: var(--navy-900); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-globe { font-size: 26px; }
.brand-text { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 19px; display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { color: var(--cyan-400); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.main-nav { display: flex; gap: 26px; flex: 1; justify-content: center; }
.main-nav a { color: rgba(255,255,255,.82); font-size: 14.5px; font-weight: 500; }
.main-nav a:hover { color: #fff; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

.cart-icon-link { position: relative; color: #fff; font-size: 20px; padding: 6px 8px; }
.cart-badge { position: absolute; top: -2px; right: -2px; background: var(--red-500); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 6px; line-height: 1.4; }
.mobile-only { display: none; }

@media (max-width: 900px) {
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--navy-900); flex-direction: column; padding: 16px 24px; display: none; gap: 14px; }
  .main-nav.open { display: flex; }
  .header-actions { display: none; }
  .nav-toggle { display: block; }
  .mobile-only { display: inline-block; margin-right: 4px; }
}

/* ---------- Alerts ---------- */
.alert { margin: 16px auto; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; }
.alert-success { background: #e9f9ef; color: #14532d; border: 1px solid #b7ebc6; }
.alert-error { background: #fdecec; color: #7f1d1d; border: 1px solid #f5b8b8; }
.alert-info { background: #eaf2ff; color: #1e3a8a; border: 1px solid #bcd6ff; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(120% 140% at 15% 0%, var(--navy-800), var(--navy-950) 70%); color: #fff; padding: 90px 0 70px; text-align: center; }
.hero .eyebrow { display: inline-block; background: rgba(34,211,238,.12); color: var(--cyan-400); border: 1px solid rgba(34,211,238,.35); padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); max-width: 820px; margin: 0 auto .4em; }
.hero p.lead { color: rgba(255,255,255,.75); max-width: 640px; margin: 0 auto 32px; font-size: 17px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-flags { font-size: 26px; letter-spacing: 8px; opacity: .9; }
.hero-note { color: rgba(255,255,255,.55); font-size: 13.5px; margin-top: 14px; }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--navy-900); color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.stats-grid strong { display: block; font-family: var(--font-display); font-size: 28px; color: var(--cyan-400); }
.stats-grid span { font-size: 13px; color: rgba(255,255,255,.65); }
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--blue-500); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { color: var(--text-muted); }

/* ---------- Feature / service cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-card); transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card .icon { font-size: 30px; margin-bottom: 14px; }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 14px; }
.card .price-tag { font-weight: 700; color: var(--blue-500); font-size: 14.5px; }

/* ---------- Pricing cards ---------- */
.pricing-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.pricing-card.popular { border-color: var(--blue-500); box-shadow: 0 16px 40px rgba(37,99,235,.18); transform: scale(1.03); }
.badge-popular { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 16px; border-radius: 999px; letter-spacing: .04em; }
.pricing-card h3 { font-size: 20px; }
.pricing-card .desc { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.pricing-card .price { font-family: var(--font-display); font-size: 34px; color: var(--navy-900); margin-bottom: 2px; }
.pricing-card .price .strike { text-decoration: line-through; color: var(--text-muted); font-size: 16px; margin-right: 8px; font-family: var(--font-body); }
.pricing-card .cycle { color: var(--text-muted); font-size: 13.5px; margin-bottom: 20px; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.pricing-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 10px; color: var(--text); }
.pricing-card li::before { content: "✓"; color: var(--green-500); font-weight: 700; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-card); max-width: 480px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--navy-900); }
.form-control {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14.5px; background: #fbfcfe; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='M0 0l7 8 7-8z' fill='%2364748b'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-help { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 160px; }

/* ---------- Search box (domains) ---------- */
.search-box { display: flex; max-width: 640px; margin: 0 auto; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.search-box input { flex: 1; border: none; padding: 14px 20px; font-size: 15px; border-radius: 999px; outline: none; }
.search-box button { border-radius: 999px; padding: 12px 26px; }

/* ---------- Inline add-to-cart mini form (domain extension cards) ---------- */
.inline-add-form { display: flex; gap: 8px; margin-top: 14px; }
.inline-add-form input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th { text-align: left; background: #f1f4f9; color: var(--navy-900); padding: 12px 16px; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
table.data-table td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
table.data-table tr:hover td { background: #fafbfe; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-paid, .status-completed, .status-active, .status-success { background: #e6f7ec; color: #166534; }
.status-pending, .status-unpaid { background: #fff4e0; color: #92400e; }
.status-failed, .status-cancelled, .status-void, .status-expired { background: #fdecec; color: #991b1b; }
.status-suspended { background: #f3e8ff; color: #6b21a8; }

/* ---------- Cart / checkout summary ---------- */
.summary-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; align-items: center; }
.summary-row.total { border-bottom: none; font-weight: 700; font-size: 18px; color: var(--navy-900); padding-top: 16px; }

.cart-line { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); gap: 12px; }
.cart-line:last-child { border-bottom: none; }
.cart-line .cart-line-info strong { display: block; font-size: 15px; }
.cart-line .cart-line-info span { font-size: 13px; color: var(--text-muted); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* ---------- Tabs (dashboard) ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tab-link { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; background: #fff; border: 1px solid var(--border); color: var(--navy-900); }
.tab-link.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.tab-link .count { opacity: .7; margin-left: 4px; }

/* ---------- Invoice / receipt ---------- */
.invoice-box { max-width: 720px; margin: 40px auto; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; }
.invoice-head { background: var(--navy-900); color: #fff; padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; }
.invoice-head h2 { color: #fff; margin: 0; }
.invoice-body { padding: 32px; }
.invoice-meta { display: flex; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.invoice-meta div p { margin: 2px 0; font-size: 14px; }
.invoice-pay-box { background: #f1f6ff; border: 1px dashed var(--blue-500); border-radius: var(--radius-md); padding: 22px; margin-top: 24px; }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .invoice-box { box-shadow: none; margin: 0; max-width: 100%; }
}

/* ---------- Admin layout ---------- */
.admin-body { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar { width: 240px; background: var(--navy-950); color: #fff; padding: 24px 0; flex-shrink: 0; }
.admin-sidebar .brand { padding: 0 24px 24px; }
.admin-sidebar nav a { display: block; padding: 12px 24px; color: rgba(255,255,255,.75); font-size: 14.5px; font-weight: 500; border-left: 3px solid transparent; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,.06); color: #fff; border-left-color: var(--cyan-400); }
.admin-main { flex: 1; padding: 32px; max-width: 100%; overflow-x: hidden; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } .admin-sidebar { display: none; } }
.kpi-card { background: #fff; border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-card); }
.kpi-card .label { color: var(--text-muted); font-size: 13px; margin-bottom: 6px; }
.kpi-card .value { font-family: var(--font-display); font-size: 26px; color: var(--navy-900); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding: 60px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-grid .brand-text { color: #fff; }
.footer-brand p { font-size: 13.5px; margin: 14px 0; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.65); font-size: 13.5px; margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; flex-wrap: wrap; gap: 10px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Misc ---------- */
.badge-flag { font-size: 20px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--text-muted); }
