/* ============================================================
   SajiloHost — Design System
   Palette: Himalayan dusk — deep indigo sky, marigold accent,
   pine green secondary, warm paper surface.
   ============================================================ */

:root {
  --ink:        #1B1F3B;   /* deep indigo-navy background */
  --ink-soft:   #262C4F;   /* raised panels on dark */
  --paper:      #F5F6FA;   /* cool off-white surface */
  --paper-dim:  #ECEEF5;
  --marigold:   #FF6F59;   /* primary accent — coral */
  --marigold-dark: #E85A45;
  --pine:       #2EC4B6;   /* secondary accent — teal */
  --sky:        #3D6BB3;   /* tertiary accent, links on light */
  --gold:       #FFC857;   /* rare highlight accent, used sparingly */
  --slate:      #2B2F44;   /* body text on light */
  --slate-dim:  #6B7280;
  --white:      #FFFFFF;
  --danger:     #D64550;
  --success:    #2EC4B6;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-soft: 0 8px 30px rgba(16, 20, 31, 0.08);
  --shadow-card: 0 2px 10px rgba(16, 20, 31, 0.06);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.btn-primary { background: var(--marigold); color: var(--ink); }
.btn-primary:hover { background: var(--marigold-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--paper); border: 1.5px solid rgba(250,247,240,0.4); }
.btn-outline:hover { border-color: var(--marigold); color: var(--marigold); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #232a3d; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* -------------------- Navbar -------------------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--paper);
  display: flex; align-items: center; gap: 8px;
}
.brand .dot { color: var(--marigold); }
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 0.95rem; font-weight: 500;
  color: rgba(250,247,240,0.8);
}
.nav-links a:hover { color: var(--marigold); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* -------------------- Account dropdown (desktop hover) -------------------- */
.account-menu { position: relative; }
.account-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); min-width: 220px;
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}
.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.account-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--slate); font-size: 0.9rem; font-weight: 500;
}
.account-dropdown a .menu-icon { width: 18px; text-align: center; flex-shrink: 0; }
.account-dropdown a:hover { background: var(--paper-dim); color: var(--ink); }
.account-dropdown a.danger { color: var(--danger); }
.account-dropdown .dropdown-divider { height: 1px; background: rgba(43,47,68,0.08); margin: 6px 4px; }

/* -------------------- Account section layout (sidebar) -------------------- */
.account-layout { display: flex; align-items: flex-start; min-height: 60vh; }
.account-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--ink);
  padding: 20px 14px; position: sticky; top: 73px;
  align-self: stretch;
}
.account-sidebar a {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; font-size: 0.95rem; font-weight: 600; color: rgba(250,247,240,0.7);
  border-radius: var(--radius);
  margin-bottom: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.account-sidebar a:hover { background: rgba(255,255,255,0.06); color: var(--paper); }
.account-sidebar a.active { background: var(--pine); color: var(--white); }
.account-sidebar .menu-icon { width: 20px; text-align: center; flex-shrink: 0; opacity: 0.8; }
.account-sidebar a.active .menu-icon { opacity: 1; }
.account-content { flex: 1; min-width: 0; padding: 32px; background: var(--paper-dim); align-self: stretch; }

@media (max-width: 780px) {
  .account-layout { flex-direction: column; }
  .account-sidebar {
    width: 100%; position: static;
    display: flex; overflow-x: auto; padding: 14px 16px; gap: 8px;
  }
  .account-sidebar a {
    flex-shrink: 0; padding: 9px 16px; border-radius: 20px; margin-bottom: 0;
    background: rgba(255,255,255,0.08); color: rgba(250,247,240,0.85); white-space: nowrap;
  }
  .account-sidebar a.active { background: var(--pine); color: var(--white); }
  .account-content { padding: 24px 20px; }
}

/* -------------------- Minimal checkout layout (no nav, logo only) -------------------- */
.checkout-header {
  background: var(--white);
  padding: 20px 0;
  position: relative;
  box-shadow: 0 2px 14px rgba(16,20,31,0.06);
}
.checkout-header::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--marigold), var(--gold), var(--pine), var(--sky));
}
.checkout-header .container { display: flex; align-items: center; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }
.checkout-header .brand { font-size: 1.35rem; }
.checkout-header .checkout-badge {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--pine); background: rgba(46,196,182,0.1);
  padding: 5px 12px; border-radius: 20px;
}
.checkout-footer {
  padding: 28px 0 44px; text-align: center; color: var(--slate-dim); font-size: 0.82rem;
}
.nav-toggle {
  display: none; background: none; border: none; color: var(--paper); font-size: 1.5rem; cursor: pointer;
  position: relative; z-index: 201;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 82%;
  max-width: 320px;
  height: 100%;
  height: 100dvh;
  background: var(--ink);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 12px 0 40px rgba(0,0,0,0.35);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu-header .brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--paper); }
.mobile-menu-header .brand-name .dot { color: var(--marigold); }
.mobile-menu-header .brand-sub {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--marigold);
  text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px;
}
.mobile-menu-close {
  background: none; border: none; color: var(--paper); font-size: 1.3rem;
  cursor: pointer; line-height: 1; padding: 4px;
}

.mobile-menu-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.mobile-menu-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 20px;
  font-size: 0.98rem; font-weight: 600;
  color: rgba(250,247,240,0.85);
  border-left: 3px solid transparent;
}
.mobile-menu-list a .menu-icon { font-size: 1.1rem; width: 22px; text-align: center; flex-shrink: 0; }
.mobile-menu-list a:hover {
  background: rgba(255,255,255,0.06);
  border-left-color: var(--marigold);
  color: var(--paper);
}
.mobile-menu-list a.menu-divider-top { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 8px; padding-top: 15px; }
.mobile-menu-list a.danger { color: var(--marigold); }
.mobile-menu-list a.danger:hover { background: rgba(255,111,89,0.1); }

/* Lock background scroll while the drawer is open */
body.mobile-menu-open { overflow: hidden; }

/* -------------------- Hero + Domain Search -------------------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-inner { text-align: center; max-width: 780px; margin: 0 auto; position: relative; z-index: 2; }
.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--marigold);
  margin-bottom: 14px;
  display: inline-block;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--paper); }
.hero p.lede { color: rgba(250,247,240,0.72); font-size: 1.05rem; max-width: 560px; margin: 0 auto 34px; }

.search-panel {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.search-panel input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
}
.search-panel input[type="text"]::placeholder { color: var(--slate-dim); }
.search-panel .btn { flex-shrink: 0; }

/* Mountain-ridge signature divider */
.ridge {
  width: 100%;
  height: 90px;
  display: block;
  margin-top: 56px;
}
.ridge path { fill: var(--paper); }

/* Search results */
#search-results { max-width: 640px; margin: 28px auto 0; text-align: left; position: relative; z-index: 2; }
.result-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink-soft);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}
.result-row .name { font-family: var(--font-mono); font-size: 1rem; }
.result-row .status-available { color: var(--marigold); font-weight: 600; font-size: 0.85rem; }
.result-row .status-taken { color: var(--slate-dim); font-weight: 600; font-size: 0.85rem; }
.result-row .price { font-family: var(--font-mono); color: rgba(250,247,240,0.65); font-size: 0.9rem; margin-right: 14px; }
.result-row .right { display: flex; align-items: center; gap: 14px; }

/* -------------------- Sections -------------------- */
.section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--pine);
}
.section-head p { color: var(--slate-dim); }
.section-alt { background: var(--paper-dim); }

/* TLD price grid */
.tld-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.tld-card {
  background: var(--white);
  border: 1px solid rgba(16,20,31,0.06);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tld-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.tld-card .ext { font-family: var(--font-mono); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.tld-card .price { color: var(--pine); font-weight: 600; margin-top: 6px; font-size: 0.95rem; }
.tld-card .sub { color: var(--slate-dim); font-size: 0.78rem; margin-top: 2px; }

/* Hosting plan cards */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.plan-card {
  background: var(--white);
  border: 1px solid rgba(16,20,31,0.07);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  position: relative;
  z-index: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.plan-card:hover {
  transform: scale(1.045);
  box-shadow: 0 20px 40px rgba(16,20,31,0.22);
  border-color: var(--ink);
  background: var(--ink);
  z-index: 2;
}

/* Text and icon colors flip to stay readable once the card goes dark on hover */
.plan-card:hover .plan-name,
.plan-card:hover .plan-price { color: var(--paper); }
.plan-card:hover .plan-price small { color: rgba(250,247,240,0.65); }
.plan-card:hover ul li { color: rgba(250,247,240,0.85); border-top-color: rgba(255,255,255,0.1); }
.plan-card:hover ul li::before { color: var(--gold); }

.plan-card.featured { border: 2px solid var(--marigold); position: relative; }
.plan-card.featured::before {
  content: "MOST POPULAR";
  position: absolute; top: -12px; left: 26px;
  background: var(--marigold); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; letter-spacing: 0.04em;
  z-index: 2;
}

.plan-card .plan-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; transition: color 0.35s ease; }
.plan-card .plan-price { font-family: var(--font-mono); font-size: 2rem; color: var(--ink); margin: 10px 0 2px; transition: color 0.35s ease; }
.plan-card .plan-price small { font-size: 0.9rem; color: var(--slate-dim); font-family: var(--font-body); transition: color 0.35s ease; }

.plan-card ul { list-style: none; padding: 0; margin: 20px 0 26px; flex: 1; }
.plan-card ul li { padding: 7px 0; font-size: 0.92rem; color: var(--slate); border-top: 1px solid rgba(16,20,31,0.05); transition: color 0.35s ease, border-color 0.35s ease; }
.plan-card ul li:first-child { border-top: none; }
.plan-card ul li::before { content: "✓ "; color: var(--pine); font-weight: 700; transition: color 0.35s ease; }

.plan-card .btn-block { transition: background 0.35s ease, color 0.35s ease, transform 0.2s ease; }
.plan-card:hover .btn-block { background: var(--marigold); color: var(--ink); }
.plan-card .btn-block:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .plan-card {
    transition: none !important;
  }
}

/* Trust strip */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 34px; justify-content: center;
  color: var(--slate-dim); font-size: 0.85rem; font-family: var(--font-mono);
}

/* Footer */
.site-footer { background: var(--ink); color: rgba(250,247,240,0.65); padding: 56px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--paper); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; font-size: 0.88rem; }
.footer-grid ul li a:hover { color: var(--marigold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.payment-badges { display: flex; gap: 10px; align-items: center; }
.payment-badges span {
  background: rgba(255,255,255,0.08); padding: 4px 10px; border-radius: 6px; font-size: 0.72rem;
}

/* -------------------- Dashboard / generic list rows -------------------- */
.page-head { padding: 48px 0 8px; }
.page-head h2 { margin-bottom: 4px; }
.page-head p.sub { color: var(--slate-dim); margin-bottom: 40px; }

.list-section { margin-bottom: 44px; }
.list-section h3 { font-size: 1.15rem; margin-bottom: 16px; }
.list-empty {
  color: var(--slate-dim);
  background: var(--white);
  border: 1px dashed rgba(43,47,68,0.18);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.list-empty a { color: var(--sky); font-weight: 600; }

.list-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white);
  border: 1px solid rgba(43,47,68,0.08);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}
.list-row .name-dark { font-family: var(--font-mono); color: var(--ink); font-size: 0.95rem; }
.list-row .right { display: flex; align-items: center; gap: 14px; }
.list-row .meta { font-family: var(--font-mono); color: var(--slate-dim); font-size: 0.85rem; }
.badge-status {
  font-weight: 600; font-size: 0.8rem; padding: 4px 10px; border-radius: 20px;
  background: rgba(46,196,182,0.12); color: var(--pine);
}
.badge-status.badge-pending { background: rgba(255,200,87,0.18); color: #A87A00; }
.badge-status.badge-failed { background: rgba(214,69,80,0.12); color: var(--danger); }

/* Utility accents */
.text-gold { color: var(--gold); }
.eyebrow-alt { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }

/* -------------------- Forms (auth pages etc.) -------------------- */
.auth-wrap {
  min-height: calc(100vh - 300px);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px;
  background: var(--paper-dim);
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px;
  width: 100%; max-width: 420px;
}
.auth-card h2 { text-align: center; }
.auth-card p.sub { text-align: center; color: var(--slate-dim); margin-bottom: 28px; font-size: 0.9rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--slate); }
.form-group input, .form-group select {
  width: 100%; padding: 11px 14px; border-radius: var(--radius);
  border: 1.5px solid rgba(16,20,31,0.12); font-size: 0.95rem; font-family: var(--font-body);
  background: var(--paper);
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--sky); }

.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-dim); border-radius: 6px;
}
.password-toggle:hover { color: var(--slate); background: rgba(16,20,31,0.05); }
.password-toggle:focus-visible { outline: 2px solid var(--sky); outline-offset: 1px; }
.password-toggle svg { width: 19px; height: 19px; display: block; }
.password-toggle .icon-eye-off { display: none; }
.password-toggle.is-visible .icon-eye { display: none; }
.password-toggle.is-visible .icon-eye-off { display: block; }
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 0.88rem; margin-bottom: 18px; }
.alert-error { background: #FBEAE7; color: var(--danger); border: 1px solid #F0C4BC; }
.alert-success { background: #E7F2EE; color: var(--success); border: 1px solid #BFDED3; }
.auth-footer-link { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--slate-dim); }
.auth-footer-link a { color: var(--sky); font-weight: 600; }

/* -------------------- Cart & plan detail -------------------- */
.cart-summary {
  background: var(--white);
  border: 1px solid rgba(43,47,68,0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(43,47,68,0.1);
  margin-top: 14px; padding-top: 14px;
  font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--ink);
}
.remove-link { color: var(--danger); font-size: 0.82rem; font-weight: 600; }

.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.payment-methods form { display: contents; }
.payment-btn {
  font-weight: 700; font-size: 0.98rem;
  padding: 16px;
  min-height: 66px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(43,47,68,0.14);
  background: var(--white);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.payment-btn:hover {
  border-color: var(--marigold);
  box-shadow: 0 8px 18px rgba(16,20,31,0.08);
  transform: translateY(-2px);
}
.payment-logo { max-height: 32px; max-width: 100%; width: auto; object-fit: contain; display: block; }
.payment-bank .menu-icon { font-size: 1.15rem; }

@media (max-width: 520px) {
  .payment-methods { grid-template-columns: 1fr; }
}

.plan-detail-card {
  background: var(--white);
  border: 1px solid rgba(43,47,68,0.08);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-card);
  max-width: 640px;
  margin: 0 auto;
}
.billing-toggle { display: flex; gap: 10px; margin: 18px 0 24px; }
.billing-toggle label {
  flex: 1; text-align: center; padding: 10px; border-radius: var(--radius);
  border: 1.5px solid rgba(43,47,68,0.12); cursor: pointer; font-size: 0.9rem; font-weight: 600;
}
.billing-toggle input { display: none; }
.billing-toggle input:checked + span { color: var(--ink); }
.billing-toggle label:has(input:checked) { border-color: var(--marigold); background: rgba(255,111,89,0.06); }

/* -------------------- Admin Panel -------------------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; flex-shrink: 0; background: var(--ink); color: var(--paper);
  padding: 24px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .brand { padding: 0 24px 24px; font-size: 1.15rem; }
.admin-nav a {
  display: block; padding: 11px 24px; font-size: 0.9rem; font-weight: 500;
  color: rgba(250,247,240,0.72); border-left: 3px solid transparent;
}
.admin-nav a:hover { color: var(--paper); background: rgba(255,255,255,0.04); }
.admin-nav a.active { color: var(--marigold); border-left-color: var(--marigold); background: rgba(255,111,89,0.08); }
.admin-nav .section-label {
  padding: 18px 24px 6px; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-dim);
}

.admin-main { flex: 1; background: var(--paper-dim); min-width: 0; }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid rgba(43,47,68,0.08);
  padding: 18px 32px; display: flex; justify-content: space-between; align-items: center;
}
.admin-content { padding: 32px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 32px; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-card); }
.stat-card .stat-label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.admin-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px; margin-bottom: 24px; }
.admin-card h3 { margin-bottom: 18px; font-size: 1.1rem; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(43,47,68,0.07); }
.admin-table th { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate-dim); }
.admin-table td.mono { font-family: var(--font-mono); font-size: 0.85rem; }
.admin-table-wrap { overflow-x: auto; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.pill-active, .pill-paid, .pill-success { background: rgba(46,196,182,0.12); color: var(--pine); }
.pill-pending, .pill-pending_verification, .pill-not_created, .pill-initiated { background: rgba(255,200,87,0.2); color: #A87A00; }
.pill-failed, .pill-suspended, .pill-cancelled { background: rgba(214,69,80,0.12); color: var(--danger); }

.admin-form-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.admin-form-inline .form-group { margin-bottom: 0; flex: 1; min-width: 120px; }
.admin-actions { display: flex; gap: 8px; }
.admin-actions a, .admin-actions button { font-size: 0.8rem; padding: 6px 12px; }
.link-btn { background: none; border: none; color: var(--sky); font-weight: 600; cursor: pointer; font-size: 0.82rem; padding: 0; }


.admin-hamburger {
  display: none; /* hidden on large screens, shown only below 720px */
  background: none;
  border: none;
  color: #1B1F3B; /* navy blue */
  font-size: 1.4rem;
  cursor: pointer;
  align-items: center;
  padding: 4px;
}


@media (max-width: 720px) {
  .admin-hamburger { display: flex; }
  .admin-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 82%;
    max-width: 300px;
    height: 100%;
    height: 100dvh;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 300;
    padding: 20px 12px;
    overflow-y: auto;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { padding: 20px; }
}



.admin-sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 720px) {
  .admin-sidebar-close { display: block; }
}

.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.admin-sidebar-backdrop.open { opacity: 1; pointer-events: auto; }

body.admin-sidebar-open { overflow: hidden; }

/* -------------------- Responsive -------------------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .search-panel { flex-direction: column; }
  .search-panel .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
@media (max-width: 480px) {
  .hero { padding: 52px 0 0; }
  .auth-card { padding: 28px 22px; }
  .result-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .result-row .right {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .result-row .right .btn { width: 100%; }
  .result-row .price { margin-right: 0; }
  .list-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .list-row .right { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* -------------------- Dashboard: recent orders with item names -------------------- */
.order-row {
  background: var(--white);
  border: 1px solid rgba(43,47,68,0.08);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}
.order-row-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.order-row-top .right { display: flex; align-items: center; gap: 14px; }
.order-row-items {
  list-style: none; margin: 10px 0 0; padding: 10px 0 0;
  border-top: 1px solid rgba(43,47,68,0.06);
}
.order-row-items li {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--slate-dim);
  padding: 3px 0;
}
.order-row-items li::before { content: "› "; color: var(--pine); font-weight: 700; }

@media (max-width: 480px) {
  .order-row-top { flex-direction: column; align-items: flex-start; }
  .order-row-top .right { width: 100%; justify-content: space-between; }
}
/* ============================================================
   Reference-inspired enhancements (added on top of the existing
   Himalayan Dusk palette — no existing rules above were removed).
   Covers: theme toggle (day/night), hero atmosphere (glow orbs,
   particles, grid), scroll-reveal, and the login/signup popup
   that replaces the old separate-page nav entry points.
   ============================================================ */

/* -------------------- Theme toggle -------------------- */
.theme-toggle {
  position: fixed; z-index: 500; right: 22px; bottom: 22px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--ink); color: var(--marigold);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.theme-toggle:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 40px rgba(16,20,31,0.28); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* -------------------- Dark ("night") theme -------------------- */
/* Navbar, hero and footer already stay dark by design (Himalayan
   Dusk), so only the light content surfaces flip here. */
[data-theme="dark"] body { background: #14182c; color: #EDEFF7; }
[data-theme="dark"] .section-alt { background: #191d35; }
[data-theme="dark"] .tld-card,
[data-theme="dark"] .plan-card,
[data-theme="dark"] .auth-modal-card,
[data-theme="dark"] .list-row,
[data-theme="dark"] .list-empty,
[data-theme="dark"] .cart-summary,
[data-theme="dark"] .admin-card,
[data-theme="dark"] .stat-card { background: #1e2440; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4,
[data-theme="dark"] .tld-card .ext,
[data-theme="dark"] .plan-card .plan-name, [data-theme="dark"] .plan-card .plan-price,
[data-theme="dark"] .list-row .name-dark { color: #F5F6FA; }
[data-theme="dark"] .tld-card .sub, [data-theme="dark"] .plan-card .sub,
[data-theme="dark"] .section-head p, [data-theme="dark"] .plan-card ul li,
[data-theme="dark"] .list-row .meta, [data-theme="dark"] .auth-modal-card p.sub,
[data-theme="dark"] .trust-strip { color: #A6ACC4; }
[data-theme="dark"] .plan-card ul li { border-top-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .form-group input, [data-theme="dark"] .form-group select {
  background: #262c4f; border-color: rgba(255,255,255,0.14); color: #EDEFF7;
}
[data-theme="dark"] .form-group label { color: #cfd3e6; }
[data-theme="dark"] .auth-tabs { background: #14182c; }
[data-theme="dark"] .auth-tab { color: #9aa0c0; }
[data-theme="dark"] .auth-tab.active { background: #262c4f; color: #F5F6FA; }
[data-theme="dark"] .auth-switch-link { color: #9aa0c0; }

/* -------------------- Hero atmosphere -------------------- */
.hero-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-fx .grid-overlay {
  position: absolute; inset: 0; opacity: 0.05;
  background-image:
    linear-gradient(rgba(245,246,250,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,246,250,0.6) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 25%, black 25%, transparent 75%);
}
.hero-fx .glow-orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.hero-fx .glow-orb.marigold { width: 340px; height: 340px; left: -120px; bottom: -80px; background: rgba(255,111,89,0.18); animation: heroGlow 9s ease-in-out infinite; }
.hero-fx .glow-orb.pine { width: 260px; height: 260px; right: -60px; top: 40px; background: rgba(46,196,182,0.16); animation: heroGlow 11s ease-in-out infinite reverse; }
.hero-fx .glow-orb.gold { width: 200px; height: 200px; left: 55%; top: -70px; background: rgba(255,200,87,0.12); animation: heroGlow 13s ease-in-out infinite 2s; }
@keyframes heroGlow {
  0%, 100% { transform: scale(1) translate(0,0); opacity: 0.7; }
  50% { transform: scale(1.2) translate(20px,-15px); opacity: 1; }
}
.hero-particles span {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(245,246,250,0.4); animation: particleFloat 12s ease-in-out infinite;
}
.hero-particles span:nth-child(1) { left: 8%; top: 20%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 18%; top: 65%; animation-delay: 1.8s; width: 4px; height: 4px; }
.hero-particles span:nth-child(3) { left: 32%; top: 12%; animation-delay: 3.4s; }
.hero-particles span:nth-child(4) { left: 48%; top: 55%; animation-delay: 1s; background: rgba(255,111,89,0.5); }
.hero-particles span:nth-child(5) { left: 63%; top: 22%; animation-delay: 4.2s; }
.hero-particles span:nth-child(6) { left: 76%; top: 60%; animation-delay: 2.4s; width: 4px; height: 4px; background: rgba(46,196,182,0.5); }
.hero-particles span:nth-child(7) { left: 90%; top: 30%; animation-delay: 3s; }
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.25; }
  50% { transform: translateY(-70px) scale(1.6); opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fx .glow-orb, .hero-particles span { animation: none !important; }
}

/* -------------------- Scroll reveal -------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* -------------------- Login / Signup popup -------------------- */
/* Replaces the old separate-page nav entry points; the pages
   themselves (auth/login.php, auth/register.php) still exist and
   still do the real work — these forms just POST to them. */
.auth-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(10,12,24,0.72);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 20px;
}
.auth-modal-overlay.active { display: flex; animation: authFadeIn 0.25s ease; }
@keyframes authFadeIn { from { opacity: 0; } to { opacity: 1; } }

.auth-modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px;
  width: 100%; max-width: 420px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  animation: authPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes authPopIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.auth-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 1.4rem; line-height: 1;
  color: var(--slate-dim); cursor: pointer; padding: 4px;
  transition: transform 0.25s ease, color 0.2s ease;
}
.auth-modal-close:hover { color: var(--ink); transform: rotate(90deg); }
.auth-modal-card h2 { text-align: center; }
.auth-modal-card p.sub { text-align: center; color: var(--slate-dim); margin-bottom: 24px; font-size: 0.9rem; }

.auth-tabs {
  display: flex; gap: 4px; background: var(--paper-dim);
  border-radius: var(--radius); padding: 4px; margin-bottom: 22px;
}
.auth-tab {
  flex: 1; padding: 10px; border-radius: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.85rem;
  text-align: center; cursor: pointer; border: none; background: transparent;
  color: var(--slate-dim); transition: all 0.25s ease;
}
.auth-tab.active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-card); }
.auth-tab:hover:not(.active) { color: var(--ink); }

.auth-form-panel { display: none; flex-direction: column; }
.auth-form-panel.active { display: flex; }
.auth-switch-link { text-align: center; margin-top: 16px; font-size: 0.88rem; color: var(--slate-dim); }
.auth-switch-link a { color: var(--sky); font-weight: 600; cursor: pointer; }

@media (max-width: 480px) {
  .auth-modal-card { padding: 28px 22px; }
}
