/* ============================================
   DARA REACH — Design System v3.0
   Light + Dark hybrid theme
   ============================================ */
:root {
  /* Light base */
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-muted: #eef2f7;
  
  /* Dark (hero, footer, accents) */
  --bg-dark: #0a0f18;
  --bg-dark-2: #05070b;
  
  /* Cards */
  --card: #ffffff;
  --card-soft: #f8fafc;
  --card-hover: #f1f5f9;
  
  /* Text */
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --text-on-dark: #ffffff;
  --text-on-dark-soft: #c8d4e4;
  --muted-on-dark: #94a3b8;
  
  /* Borders */
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.15);
  --line-dark: rgba(255, 255, 255, 0.1);
  
  /* Brand */
  --blue: #0ea5e9;
  --blue-2: #2563eb;
  --blue-strong: #0284c7;
  --blue-soft: rgba(14, 165, 233, 0.1);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.12);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.1);
  --yellow: #f59e0b;
  
  /* Radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-2xl: 32px;
  --r-pill: 999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --glow: 0 12px 30px rgba(14, 165, 233, 0.3);
  
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.22s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 15% 8%, rgba(14, 165, 233, 0.05), transparent 40%);
  pointer-events: none;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: 72px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 36px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  letter-spacing: -0.03em; font-weight: 800; line-height: 1.15;
  color: var(--text);
}
.section-head p { color: var(--muted); font-weight: 500; margin-top: 6px; line-height: 1.7; }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  height: 76px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.15rem; flex-shrink: 0;
  color: var(--text);
}
.brand img {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  object-fit: cover; border: 1px solid var(--line);
}
.brand span b { color: var(--blue-strong); }
.nav {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.92rem;
}
.nav a {
  padding: 10px 14px; border-radius: var(--r-sm);
  color: var(--text-soft); transition: all var(--dur) var(--ease);
}
.nav a:hover, .nav a.active { color: var(--blue-strong); background: var(--blue-soft); }

/* Search */
.search { flex: 1; max-width: 340px; position: relative; }
.search i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 0.9rem; pointer-events: none;
}
.search input {
  width: 100%; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--bg-soft);
  color: var(--text); padding: 0 16px 0 44px; outline: none;
  font-weight: 500; font-size: 0.9rem; transition: all var(--dur) var(--ease);
}
.search input::placeholder { color: var(--muted); }
.search input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* Mobile toggle */
.nav-toggle {
  display: none; width: 44px; height: 44px;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text);
  font-size: 1.15rem; cursor: pointer;
  align-items: center; justify-content: center;
  transition: all var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--line-strong); background: var(--card-hover); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 20px; border-radius: var(--r-md);
  font-weight: 700; font-size: 0.92rem;
  border: 1px solid var(--line); background: var(--card);
  color: var(--text); cursor: pointer; transition: all var(--dur) var(--ease);
  white-space: nowrap; text-decoration: none; line-height: 1;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--card-hover);
  box-shadow: var(--shadow-sm);
}
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff; border: 0; box-shadow: var(--glow);
}
.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.4);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}
.btn-danger {
  border-color: rgba(239, 68, 68, 0.3);
  color: #b91c1c;
  background: var(--red-soft);
}
.btn-danger:hover {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.16);
}
.btn-success {
  border-color: rgba(34, 197, 94, 0.3);
  color: #15803d;
  background: var(--green-soft);
}
.cart-btn {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff !important; padding: 12px 18px !important;
  border-radius: var(--r-md) !important; font-weight: 800 !important;
  box-shadow: var(--glow);
  display: inline-flex; align-items: center; gap: 8px;
}
.cart-btn b {
  background: rgba(255, 255, 255, 0.25); padding: 2px 8px;
  border-radius: var(--r-pill); font-size: 0.8rem;
}

/* ============ Inputs ============ */
.input, textarea, select {
  width: 100%; border: 1px solid var(--line);
  background: var(--card); color: var(--text);
  border-radius: var(--r-sm); padding: 13px 16px;
  font-weight: 500; font-size: 0.92rem; outline: none;
  font-family: inherit; transition: all var(--dur) var(--ease);
}
.input::placeholder, textarea::placeholder { color: var(--muted); }
.input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}
textarea { min-height: 100px; resize: vertical; }

/* ============ Cards ============ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r-xl); padding: 24px;
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}
.card::after {
  content: ""; position: absolute;
  width: 180px; height: 180px; right: -70px; bottom: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08), transparent 70%);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: var(--shadow-md);
}
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.platform {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; margin-bottom: 18px;
}
.fb { color: #1877f2; }
.ig { color: #d6318c; }
.tk { color: #0f172a; }
.yt { color: #ff0033; }
.price { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.old { text-decoration: line-through; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.tag {
  position: absolute; right: 16px; top: 16px;
  background: var(--green-soft); border: 1px solid rgba(34, 197, 94, 0.35);
  color: #15803d; border-radius: var(--r-pill);
  padding: 6px 12px; font-size: 0.72rem; font-weight: 700; z-index: 2;
}
.actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  position: relative; z-index: 2; margin-top: 14px;
}

/* ============ Box ============ */
.box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl); padding: 28px;
}
.hero-mini { padding: 52px 0 20px; }

/* ============ Banner (light pages) ============ */
.banner {
  position: relative; overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(37, 99, 235, 0.03));
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.banner h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05; letter-spacing: -0.035em;
  font-weight: 800; margin-bottom: 12px;
  color: var(--text);
}
.banner h1 span {
  background: linear-gradient(135deg, var(--blue-strong), var(--blue-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.banner p { color: var(--muted); }

/* ============ Badge ============ */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid rgba(14, 165, 233, 0.25);
  background: var(--blue-soft);
  border-radius: var(--r-pill);
  color: var(--blue-strong); font-weight: 700; font-size: 0.8rem; margin-bottom: 18px;
}

/* ============ Empty / notice ============ */
.empty, .notice {
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
  padding: 26px; color: var(--muted);
  background: var(--bg-soft);
  font-weight: 600; text-align: center;
}

/* ============ Toast ============ */
.toast {
  position: fixed; right: 20px; bottom: 20px;
  background: var(--text); border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff; border-radius: var(--r-md);
  padding: 14px 20px; font-weight: 700;
  box-shadow: var(--shadow-lg); display: none; z-index: 1000;
}
.toast.show { display: block; animation: slideUp 0.25s var(--ease); }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Modal ============ */
.modal {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  z-index: 500; padding: 20px;
}
.modal.show { display: flex; }
.modal-card {
  width: min(460px, 100%); background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 28px;
  text-align: center; box-shadow: var(--shadow-lg);
  color: var(--text);
  animation: modalIn 0.2s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ============ Offer band (dark accent) ============ */
.offer-band {
  background: linear-gradient(135deg, var(--bg-dark), #0f1724);
  color: var(--text-on-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-2xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.offer-band h2 { color: #fff; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.offer-band p { color: var(--muted-on-dark); font-size: 0.94rem; }
.offer-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pill {
  padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  font-weight: 600; color: var(--text-on-dark-soft); font-size: 0.82rem;
}
.offer-band .btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-dark);
  color: #fff;
}
.offer-band .btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}
.offer-band .btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border: 0;
}

/* ============ Final CTA (dark accent) ============ */
.final-cta {
  text-align: center;
  padding: 56px 32px;
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, var(--bg-dark), #0f1724);
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-lg);
}
.final-cta h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em; margin-bottom: 14px; color: #fff;
}
.final-cta p {
  color: var(--muted-on-dark); max-width: 560px;
  margin: 0 auto 26px; font-size: 1rem; line-height: 1.7;
}
.final-cta .btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-dark); color: #fff;
}
.final-cta .btn:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.2); }
.final-cta .btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border: 0;
}

/* ============ Footer (dark) ============ */
.footer {
  margin-top: 60px; background: var(--bg-dark-2);
  color: var(--text-on-dark);
  border-top: 1px solid var(--line-dark);
  padding: 56px 0 24px;
}
.footer .brand { color: #fff; }
.footer .brand span b { color: var(--blue); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px;
}
.footer h3 {
  font-size: 0.9rem; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 16px; color: #fff;
}
.footer p, .footer a, .footer li {
  color: var(--muted-on-dark); font-size: 0.9rem; line-height: 1.9; list-style: none;
}
.footer a:hover { color: var(--blue); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-dark); transition: all var(--dur) var(--ease);
}
.social a:hover {
  border-color: var(--blue);
  color: var(--blue); transform: translateY(-2px);
}
.copy {
  text-align: center; color: #4a5a70;
  border-top: 1px solid var(--line-dark); margin-top: 40px;
  padding-top: 22px; font-size: 0.84rem;
}

/* ============ Skeleton ============ */
.loading { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skeleton {
  height: 260px; border-radius: var(--r-xl);
  background: linear-gradient(90deg, var(--bg-soft), var(--bg-muted), var(--bg-soft));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============ Responsive ============ */
@media (max-width: 950px) {
  .nav-toggle { display: flex; }
  .search { display: none; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    padding: 16px; gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 16px; border-radius: var(--r-sm); }
  .cart-btn { justify-content: center; }
  .grid, .loading { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .banner { padding: 28px; }
  .box { padding: 20px; }
  .grid, .loading, .footer-grid { grid-template-columns: 1fr; }
  .actions { grid-template-columns: 1fr; }
  .section-head { display: block; margin-bottom: 24px; }
  .card { padding: 20px; }
  .offer-band { grid-template-columns: 1fr; padding: 24px; }
}

/* ============================================
   Legacy overrides
   (for admin.html, loginadmin.html which have
   hardcoded dark styles in their inline <style>)
   ============================================ */
.admin-card { background: #fff !important; }
.stat { background: var(--bg-soft) !important; }
.fieldbox { background: var(--bg-soft) !important; color: var(--text) !important; }
.fieldbox small { color: var(--muted) !important; }
.modal-card { background: #fff !important; color: var(--text) !important; }
.modal-head h3 { color: var(--text); }
.login-card { background: #fff !important; }
.login-card h2 { color: var(--text); }
.status.Pending { color: #b45309 !important; border-color: rgba(251, 191, 36, 0.35) !important; background: rgba(251, 191, 36, 0.12) !important; }
.status.Processing { color: #1d4ed8 !important; border-color: rgba(59, 130, 246, 0.35) !important; background: rgba(59, 130, 246, 0.1) !important; }
.status.Completed { color: #15803d !important; border-color: rgba(34, 197, 94, 0.35) !important; background: rgba(34, 197, 94, 0.1) !important; }
.status.Cancelled { color: #b91c1c !important; border-color: rgba(239, 68, 68, 0.35) !important; background: rgba(239, 68, 68, 0.1) !important; }