/* ==========================================================================
   Ngabantu Global Stylesheet
   - Dark/light glassmorphism theme
   - Shared layout for home, products, announcements, and detail pages
   ========================================================================== */

/* Reset & base ----------------------------------------------------------- */

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

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui,
    -system-ui, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Background is handled by the theme rules below */
  color: #f5f7ff;
}


a {
  color: inherit;
  text-decoration: none;
}

/* Theming --------------------------------------------------------------- */

body[data-theme="dark"] {
  --nb-bg: #05050a;
  --nb-bg-soft: #0a0a11;
  --nb-surface: rgba(30, 30, 46, 0.94);
  --nb-surface-strong: rgba(22, 33, 62, 0.98);
  --nb-border: rgba(255, 255, 255, 0.18);
  --nb-border-soft: rgba(255, 255, 255, 0.08);
  --nb-primary: #667eea;
  --nb-primary-soft: rgba(102, 126, 234, 0.25);
  --nb-secondary: #764ba2;
  --nb-accent: #ff6b9d;
  --nb-text: #f5f7ff;
  --nb-text-soft: #e5e7ff;
  --nb-text-muted: #9ca3c7;
  --nb-chip-bg: rgba(15, 23, 42, 0.7);
}

body[data-theme="light"] {
  --nb-bg: #f4f5fb;
  --nb-bg-soft: #eaedf7;
  --nb-surface: rgba(255, 255, 255, 0.98);
  --nb-surface-strong: rgba(255, 255, 255, 1);
  --nb-border: rgba(15, 23, 42, 0.08);
  --nb-border-soft: rgba(15, 23, 42, 0.04);
  --nb-primary: #667eea;
  --nb-primary-soft: rgba(102, 126, 234, 0.16);
  --nb-secondary: #764ba2;
  --nb-accent: #ff6b9d;
  --nb-text: #0f172a;
  --nb-text-soft: #1e293b;
  --nb-text-muted: #6b7280;
  --nb-chip-bg: rgba(248, 250, 252, 0.9);

  background: radial-gradient(circle at top left, #e0e7ff 0, #e5e7eb 40%, #f9fafb 100%);
  color: var(--nb-text);
}

body:not([data-theme]),
body[data-theme="dark"] {
  background: radial-gradient(circle at top left, #23263b 0, #0a0a0f 45%, #000000 100%);
}

body[data-theme="light"] .nb-root {
  background: radial-gradient(circle at top left,
      rgba(148, 163, 255, 0.32) 0,
      transparent 52%),
    radial-gradient(circle at bottom right,
      rgba(251, 191, 36, 0.22) 0,
      transparent 55%),
    linear-gradient(135deg, #f9fafb, #e5e7eb);
}

/* Layout shell ---------------------------------------------------------- */

.nb-root {
  min-height: 100vh;
  padding: 32px 16px 40px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: radial-gradient(circle at top left,
      rgba(102, 126, 234, 0.32) 0,
      transparent 52%),
    radial-gradient(circle at bottom right,
      rgba(255, 107, 157, 0.18) 0,
      transparent 55%),
    linear-gradient(135deg, rgba(10, 10, 15, 0.98), rgba(10, 14, 30, 0.98));
}

.nb-shell {
  width: 100%;
  max-width: 1120px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Orbits / glow blobs --------------------------------------------------- */

.nb-orbit {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.9;
  pointer-events: none;
}

.nb-orbit--primary {
  width: 260px;
  height: 260px;
  top: -80px;
  right: -40px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.9), transparent 65%);
}

.nb-orbit--secondary {
  width: 220px;
  height: 220px;
  bottom: -80px;
  left: -40px;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.85), transparent 65%);
}

.nb-orbit--accent {
  width: 140px;
  height: 140px;
  top: 55%;
  left: 60%;
  transform: translate(-50%, -10%);
  background: radial-gradient(circle, rgba(255, 107, 157, 0.75), transparent 70%);
}

/* App bar --------------------------------------------------------------- */

.nb-app-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg,
      rgba(15, 23, 42, 0.9),
      rgba(17, 24, 47, 0.86)),
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 3;
}

body[data-theme="light"] .nb-app-bar {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.98),
      rgba(248, 250, 252, 0.98));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(148, 163, 255, 0.25);
  border-color: rgba(148, 163, 255, 0.45);
}

.nb-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nb-logo-orb {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: conic-gradient(from 210deg, #ff6b9d, #667eea, #764ba2, #ff6b9d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 10px 30px rgba(0, 0, 0, 0.7);
}

.nb-logo-orb-inner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;

  /* Logo as background */
  background:
    url("../img/ngabantu_logo.png") center center / 90% no-repeat,
    radial-gradient(circle at 30% 0, #ffffff, #d1d5ff);
}

.nb-logo-mark {
  display: block;
  width: 85%;
  height: 85%;
  object-fit: contain;
  /* Scale neatly inside the orb */
}

.nb-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nb-brand-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nb-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nb-brand-subtitle {
  font-size: 13px;
  color: var(--nb-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nb-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--nb-border);
  background: radial-gradient(circle at top left,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.03));
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--nb-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.nb-theme-toggle-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, #ffffff, #e5e7ff);
  color: #111827;
  font-size: 13px;
}

.nb-app-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nb-chip-link {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 255, 0.4);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nb-text-soft);
  background: rgba(15, 23, 42, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Main card ------------------------------------------------------------- */

.nb-main-card {
  position: relative;
  margin-top: 8px;
  border-radius: 30px;
  padding: 28px 28px 26px;
  background: linear-gradient(145deg,
      rgba(15, 23, 42, 0.9),
      rgba(10, 11, 20, 0.96)),
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.01));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.82),
    0 0 0 1px var(--nb-border-soft);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid var(--nb-border);
  color: var(--nb-text);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: flex-start;
}

body[data-theme="light"] .nb-main-card {
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.99),
      rgba(248, 250, 252, 0.99)),
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9));
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(148, 163, 255, 0.16);
  border-color: rgba(148, 163, 255, 0.28);
}

/* Hero ------------------------------------------------------------------ */

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nb-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--nb-text-soft);
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: var(--nb-text-muted);
  max-width: 520px;
  margin-bottom: 16px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--nb-chip-bg);
  color: var(--nb-text-soft);
  font-size: 12px;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-footnote {
  font-size: 12px;
  color: var(--nb-text-muted);
  margin-bottom: 1.2rem;
  /* extra breathing room before next section */
}

/* Buttons --------------------------------------------------------------- */

.btn-primary {
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.55);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(102, 126, 234, 0.7);
}

.btn-secondary {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--nb-border-soft);
  background: rgba(15, 23, 42, 0.7);
  font-size: 13px;
  color: var(--nb-text-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

body[data-theme="light"] .btn-secondary {
  background: rgba(248, 250, 252, 0.9);
}

/* Sections / content blocks -------------------------------------------- */

.section {
  margin-top: 18px;
}

.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--nb-text-muted);
  margin-bottom: 8px;
}

.section-heading {
  font-size: 18px;
  font-weight: 600;
  color: var(--nb-text-soft);
  margin-bottom: 10px;
}

.section-body {
  font-size: 14px;
  color: var(--nb-text-muted);
  line-height: 1.7;
}

.section-list {
  margin-top: 10px;
  padding-left: 1.2rem;
  font-size: 14px;
  color: var(--nb-text-muted);
  line-height: 1.7;
}

.section-list li {
  margin-bottom: 4px;
}

/* Pills ----------------------------------------------------------------- */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--nb-border-soft);
  font-size: 12px;
  color: var(--nb-text-soft);
  background: rgba(15, 23, 42, 0.7);
}

body[data-theme="light"] .pill {
  background: rgba(248, 250, 252, 0.96);
}

/* Domains grid --------------------------------------------------------- */

.domains-card {
  border-radius: 20px;
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top left,
      rgba(15, 23, 42, 0.96),
      rgba(15, 23, 42, 0.92));
  border: 1px solid var(--nb-border-soft);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 255, 0.08);
}

body[data-theme="light"] .domains-card {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.98),
      rgba(248, 250, 252, 0.98));
}

.domains-grid,
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.domain-chip,
.domain-card {
  padding: 10px 11px 9px;
  border-radius: 14px;
  border: 1px solid var(--nb-border-soft);
  background: rgba(15, 23, 42, 0.8);
  font-size: 13px;
  color: var(--nb-text-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body[data-theme="light"] .domain-chip,
body[data-theme="light"] .domain-card {
  background: rgba(248, 250, 252, 0.96);
}

.domain-chip-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.domain-chip-list,
.domain-text {
  font-size: 12px;
  color: var(--nb-text-muted);
  line-height: 1.5;
}

.domain-list {
  font-size: 12px;
  color: var(--nb-text-muted);
  line-height: 1.6;
  padding-left: 1.2rem;
}

.domain-list li {
  margin-bottom: 4px;
}

/* Plugins / product tiles ---------------------------------------------- */

.plugins-card {
  border-radius: 20px;
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top left,
      rgba(15, 23, 42, 0.98),
      rgba(10, 10, 18, 0.96));
  border: 1px solid var(--nb-border-soft);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
}

body[data-theme="light"] .plugins-card {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.99),
      rgba(241, 245, 249, 0.99));
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.18);
}

.plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.plugin-tile {
  border-radius: 16px;
  padding: 12px 12px 11px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--nb-border-soft);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  /* keep tiles equal height in grids */
}

body[data-theme="light"] .plugin-tile {
  background: rgba(248, 250, 252, 0.96);
}

.plugin-tile-title {
  font-weight: 600;
  color: var(--nb-text-soft);
}

.plugin-tile-body {
  font-size: 13px;
  color: var(--nb-text-muted);
}

.plugin-tile-list {
  margin-top: 4px;
  padding-left: 1.2rem;
  font-size: 12px;
  color: var(--nb-text-muted);
  line-height: 1.6;
}

.plugin-tile-list li {
  margin-bottom: 3px;
}

.plugin-tagline {
  font-size: 12px;
  color: var(--nb-text-muted);
}

.plugin-meta {
  font-size: 11px;
  color: var(--nb-text-muted);
  margin-top: 2px;
}

.plugin-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--nb-primary);
  text-decoration: none;
}

.nb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--nb-border-soft);
  color: var(--nb-text-soft);
  background: rgba(15, 23, 42, 0.8);
}

body[data-theme="light"] .nb-badge {
  background: rgba(248, 250, 252, 0.96);
}

.plugin-tile-footer {
  margin-top: 10px;
}

/* Right column panels --------------------------------------------------- */

.panel {
  border-radius: 20px;
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top left,
      rgba(15, 23, 42, 0.96),
      rgba(15, 23, 42, 0.92));
  border: 1px solid var(--nb-border-soft);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
  margin-bottom: 18px;
}

body[data-theme="light"] .panel {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.99),
      rgba(248, 250, 252, 0.99));
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14);
}

.panel-header {
  margin-bottom: 10px;
}

.panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--nb-text-soft);
}

.panel-subtitle {
  font-size: 13px;
  color: var(--nb-text-muted);
}

.panel-body {
  margin-top: 4px;
}

.panel-text {
  font-size: 13px;
  color: var(--nb-text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.nb-link-inline {
  color: var(--nb-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* Panel footer used on checkout & plugin cards ------------------------- */

.panel-footer {
  margin-top: 14px;
  font-size: 11px;
  color: var(--nb-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.panel-footer a {
  color: var(--nb-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.panel-footer-text {
  flex-basis: 100%;
}

/* Footer --------------------------------------------------------------- */

.nb-footer {
/*   margin-top: 3rem; */
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px);
}

body[data-theme="light"] .nb-footer {
  border-top-color: rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.92);
}

.nb-footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
}

.nb-footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nb-footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

body[data-theme="light"] .nb-footer-title {
  color: #0f172a;
}

.nb-footer-text {
  font-size: 0.9rem;
  opacity: 0.6;
}

.nb-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nb-footer-link {
  font-size: 0.9rem;
  color: #d0d5e0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

body[data-theme="light"] .nb-footer-link {
  color: #4b5563;
}

.nb-footer-link:hover {
  opacity: 0.7;
}

.nb-footer-copy {
  font-size: 0.85rem;
  opacity: 0.5;
}

/* Responsive tweaks ----------------------------------------------------- */

@media (max-width: 900px) {
  .nb-main-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 18px 22px;
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .nb-app-bar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
  }

  .nb-app-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-title {
    font-size: 26px;
  }

  .nb-main-card {
    margin-top: 10px;
  }

  .nb-footer-content {
    align-items: flex-start;
  }
}

/* -------------------------------------------------------------------------
   Merged styles from `backend/public/checkout.html`
   Source: inline <style> block from checkout.html
   Date: 2025-12-01
   NOTE: These rules were previously inline; keeping them here ensures the
   checkout page loads the complete styling when served from /public.
 ------------------------------------------------------------------------- */

/* Checkout page specific rules (previously inline in checkout.html) */
.checkout-header {
  margin-bottom: 20px;
}

.checkout-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nb-text-soft);
  margin-bottom: 6px;
}

.checkout-subtitle {
  font-size: 14px;
  color: var(--nb-text-muted);
}

.content {
  margin-top: 18px;
}

/* ---- Messages ------------------------------------------------------- */

.error-message {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.6);
  color: #fecaca;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: none;
  font-size: 14px;
}

body[data-theme="light"] .error-message {
  background: #fff5f5;
  border-color: #fc8181;
  color: #c53030;
}

.success-message {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}

body[data-theme="light"] .success-message {
  background: #f0fff4;
  border-color: #48bb78;
  color: #22543d;
}

/* ---- Form Sections -------------------------------------------------- */

.form-section {
  margin-bottom: 26px;
}

.form-section h2 {
  font-size: 16px;
  color: var(--nb-text-soft);
  margin-bottom: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--nb-text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

label .required {
  color: #f97373;
}

input,
select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--nb-border-soft);
  background: rgba(15, 23, 42, 0.8);
  color: var(--nb-text);
  font-size: 15px;
  transition: all 0.25s;
  font-family: inherit;
}

body[data-theme="light"] input,
body[data-theme="light"] select {
  background: rgba(255, 255, 255, 0.94);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--nb-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.28);
}

input::placeholder {
  color: #64748b;
}

/* ---- License Type Cards -------------------------------------------- */

.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-bottom: 6px;
}

.radio-option {
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label {
  display: block;
  padding: 18px 18px 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8));
  border: 1px solid var(--nb-border-soft);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .radio-label {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.radio-option input[type="radio"]:checked+.radio-label {
  border-color: var(--nb-primary);
  background:
    linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.18));
  box-shadow:
    0 8px 24px rgba(102, 126, 234, 0.45),
    0 0 0 1px rgba(148, 163, 255, 0.55);
}

.radio-label .title {
  font-size: 15px;
  font-weight: 600;
  color: var(--nb-text-soft);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.radio-label .price {
  font-size: 22px;
  font-weight: 700;
  color: var(--nb-primary);
  margin: 8px 0;
}

.radio-label .features {
  font-size: 13px;
  color: var(--nb-text-muted);
  margin-top: 6px;
  line-height: 1.6;
}

/* ---- Price Summary -------------------------------------------------- */

.price-summary {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  padding: 18px 18px 14px;
  border-radius: 18px;
  margin-bottom: 26px;
  border: 1px solid var(--nb-border-soft);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 255, 0.1);
}

body[data-theme="light"] .price-summary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--nb-text-muted);
}

.price-row.total {
  border-top: 1px solid rgba(148, 163, 255, 0.3);
  padding-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--nb-text-soft);
}

.price-row .amount {
  font-weight: 600;
  color: var(--nb-primary);
}

/* ---- Payment Method Buttons ----------------------------------------- */

.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 6px;
}

.btn-payment-method {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8));
  border: 1px solid var(--nb-border-soft);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  color: var(--nb-text);
  font-family: inherit;
}

body[data-theme="light"] .btn-payment-method {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.btn-payment-method:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--nb-primary);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.45);
}

.btn-payment-method:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.payment-icon {
  font-size: 32px;
  min-width: 40px;
  text-align: center;
}

.payment-details {
  text-align: left;
  flex: 1;
}

.payment-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--nb-text-soft);
  margin-bottom: 2px;
}

.payment-desc {
  font-size: 13px;
  color: var(--nb-text-muted);
}

.btn-paystack {
  border-color: #00c3ff;
}

.btn-paystack:hover:not(:disabled) {
  border-color: #00c3ff;
  box-shadow: 0 8px 24px rgba(0, 195, 255, 0.35);
}

.btn-paypal {
  border-color: #ffc439;
}

.btn-paypal:hover:not(:disabled) {
  border-color: #ffc439;
  box-shadow: 0 8px 24px rgba(255, 196, 57, 0.35);
}

.btn-stripe {
  border-color: #635bff;
}

.btn-stripe:hover:not(:disabled) {
  border-color: #635bff;
  box-shadow: 0 8px 24px rgba(99, 91, 255, 0.35);
}

.btn-flutterwave {
  border-color: #f5a623;
}

.btn-flutterwave:hover:not(:disabled) {
  border-color: #f5a623;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.35);
}

.btn-razorpay {
  border-color: #3395ff;
}

.btn-razorpay:hover:not(:disabled) {
  border-color: #3395ff;
  box-shadow: 0 8px 24px rgba(51, 149, 255, 0.35);
}

.btn-mollie {
  border-color: #ff6b6b;
}

.btn-mollie:hover:not(:disabled) {
  border-color: #ff6b6b;
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.35);
}

.btn-square {
  border-color: #006aff;
}

.btn-square:hover:not(:disabled) {
  border-color: #006aff;
  box-shadow: 0 8px 24px rgba(0, 106, 255, 0.35);
}

.btn-manual {
  border-color: #6b7280;
}

.btn-manual:hover:not(:disabled) {
  border-color: #9ca3af;
  box-shadow: 0 8px 24px rgba(107, 114, 128, 0.35);
}

/* Loading and error states for payment methods */
.loading-payments,
.no-payments {
  text-align: center;
  padding: 30px 20px;
  color: var(--nb-text-muted);
  font-size: 14px;
}

.loading-payments::before {
  content: "⏳ ";
}

.no-payments {
  color: #f59e0b;
}

#paypal-button-container {
  border-radius: 16px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.98);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Small trust text under payment methods */
.payment-trust {
  margin-top: 12px;
  font-size: 12px;
  color: var(--nb-text-muted);
  line-height: 1.6;
}

.payment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.payment-icon-img {
  display: block;
  height: 24px;
  /* tweak 20–24px to taste */
  width: auto;
}

/* Optional: slightly softer look on dark theme */
body[data-theme="dark"] .payment-icon-img {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}

/* ---- Floating Mobile Summary --------------------------------------- */

.floating-summary {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  padding-right: max(20px, env(safe-area-inset-right, 20px));
  padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  background: var(--nb-surface-strong);
  border-top: 1px solid var(--nb-border);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: visible;
}

.floating-summary-label {
  font-size: 13px;
  color: var(--nb-text-muted);
  margin-right: 6px;
}

.floating-summary-amount {
  font-size: 15px;
  font-weight: 600;
  color: var(--nb-primary);
  margin-right: 12px;
}

.floating-summary-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.floating-summary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 768px) {
  .radio-group {
    grid-template-columns: 1fr;
  }

  .floating-summary {
    display: flex;
  }

  .nb-main-card.container {
    padding: 18px 14px 80px;
  }

  .nb-app-bar {
    padding: 12px 14px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .nb-main-card.container {
    padding: 16px 12px 80px;
  }

  .radio-label {
    padding: 14px;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }
}

/* ---- Security + Features ------------------------------------------- */

.security-badge {
  text-align: center;
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--nb-text-muted);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.85));
  border: 1px dashed rgba(148, 163, 255, 0.4);
}

body[data-theme="light"] .security-badge {
  background: #f7fafc;
  border-color: #cbd5e1;
  color: #475569;
}

.security-badge strong {
  color: var(--nb-primary);
}

.features-list {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  padding: 18px;
  border-radius: 14px;
  margin-top: 20px;
  border: 1px solid var(--nb-border-soft);
}

body[data-theme="light"] .features-list {
  background: #f7fafc;
  border-color: #dbe3f0;
}

.features-list h3 {
  font-size: 15px;
  color: var(--nb-text-soft);
  margin-bottom: 12px;
}

.features-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  padding: 7px 0;
  color: var(--nb-text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.features-list li::before {
  content: "✓";
  color: #22c55e;
  font-weight: bold;
  font-size: 18px;
}

/* ---- Checkout left column (SEO summary) ---------------------------- */
.checkout-left {
  padding-right: 28px;
  color: var(--nb-text-muted);
  max-width: 520px;
}

.seo-summary-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--nb-text-soft);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.seo-summary-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--nb-text-muted);
  margin-bottom: 12px;
}

.seo-summary-list {
  margin-bottom: 12px;
  padding-left: 1.2rem;
  color: var(--nb-text-muted);
}

.seo-summary-list li {
  margin-bottom: 6px;
}

.seo-article-toggle {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
  border: 1px solid var(--nb-border-soft);
  color: var(--nb-primary);
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
}

.seo-article-content {
  margin-top: 12px;
  color: var(--nb-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.seo-article-content h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--nb-text);
  font-size: 16px;
  font-weight: 600;
}

.seo-article-content p {
  margin-bottom: 12px;
}

.seo-article-content ul,
.seo-article-content ol {
  margin-left: 24px;
  margin-bottom: 12px;
  padding-left: 4px;
}

.seo-article-content ul li,
.seo-article-content ol li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.seo-article-content ul li {
  list-style-type: disc;
}

.seo-article-content ol li {
  list-style-type: decimal;
}

@media (max-width: 900px) {
  .checkout-left {
    display: none;
  }
}

/* Ensure checkout header spans both columns and children form a 2-column layout */
.nb-main-card .checkout-header {
  grid-column: 1 / -1;
  margin-bottom: 6px;
}

.nb-main-card>.content {
  /* place main form in the right column */
  align-self: start;
  width: 100%;
}

.nb-main-card>.checkout-left {
  align-self: start;
}

/* ========================================================================
   Footer
   ======================================================================== */

.nb-footer {
  margin-top: 60px;
  padding: 32px 20px;
  border-top: 1px solid var(--nb-border-soft);
  background: rgba(0, 0, 0, 0.2);
}

.nb-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.nb-footer-left {
  flex: 1;
  min-width: 200px;
}

.nb-footer-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--nb-primary);
  margin-bottom: 6px;
}

.nb-footer-text {
  font-size: 14px;
  color: var(--nb-text-muted);
  margin: 0;
}

.nb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.nb-footer-link {
  font-size: 14px;
  color: var(--nb-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nb-footer-link:hover {
  color: var(--nb-primary);
}

.nb-footer-right {
  flex: 0 0 auto;
}

.nb-footer-copy {
  font-size: 13px;
  color: var(--nb-text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .nb-footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .nb-footer-left,
  .nb-footer-right {
    flex: 1 1 100%;
  }

  .nb-footer-links {
    justify-content: center;
  }



}