/* =========================================================================
   Subscription Doctor — "Storefront" design system (v3)
   Clean, light, professional digital-store look (WooCommerce/Shopify style).
   Same class names as before — only the visual language changed.
   ========================================================================= */

:root{
  --bg:            #050607;
  --bg-soft:       #0D1112;
  --bg-soft-2:     #111516;
  --surface:       #0D1112;
  --surface-hi:    #111516;
  --border:        #20282A;
  --border-hi:     #1f4f3d;
  --text:          #ffffff;
  --text-muted:    #9aa1ac;
  --text-faint:    #656d78;
  --accent:        #16E57F;
  --accent-dark:   #10c46b;
  --accent-2:      #38bdf8;
  --accent-3:      #f5b840;
  --success:       #16E57F;
  --info:          #38bdf8;
  --warn:          #f5b840;
  --danger:        #f9667e;
  --gradient:      linear-gradient(135deg, #16E57F, #38bdf8);
  --gradient-2:    linear-gradient(135deg, #38bdf8, #7c6bff);
  --gradient-gold: linear-gradient(135deg, #f5b840, #f97316);
  --gradient-text: linear-gradient(135deg, #6dffc4, #16E57F 60%, #38bdf8);
  --radius:        16px;
  --radius-sm:     11px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.25);
  --shadow:        0 10px 34px rgba(0,0,0,.45);
  --shadow-lg:     0 24px 60px rgba(0,0,0,.55);
  --glow:          0 0 0 1px rgba(22,229,127,.16), 0 12px 32px rgba(22,229,127,.12);
  --font-display:  'Poppins', 'Inter', sans-serif;
  --font-body:     'Inter', sans-serif;
  --ease:          cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:15.5px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  animation:sdPageIn .45s var(--ease) both;
}
@keyframes sdPageIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:translateY(0); } }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4,h5{ font-family:var(--font-display); margin:0 0 8px; letter-spacing:-.015em; font-weight:700; color:var(--text); }
button{ font-family:inherit; cursor:pointer; }
a, button, .sd-btn, .btn-accent, .btn-outline-sd{ touch-action:manipulation; }
hr.sd{ border:none; border-top:1px solid var(--border); margin:16px 0; }
.mono{ font-family:'JetBrains Mono', ui-monospace, monospace; }
.small-muted{ color:var(--text-muted); font-size:.85rem; }
.text-muted{ color:var(--text-muted) !important; }
.text-center{ text-align:center; }
.w-100{ width:100%; }

/* ---------- Background accent (subtle, not a dark aurora anymore) ---------- */
.sd-aurora{ position:fixed; inset:0; overflow:hidden; z-index:-1; pointer-events:none; }
.sd-aurora span{ position:absolute; width:55vmax; height:55vmax; border-radius:50%; filter:blur(120px); opacity:.10; }
.sd-aurora span:nth-child(1){ background:var(--accent); top:-20%; left:-15%; }
.sd-aurora span:nth-child(2){ background:var(--accent-2); bottom:-25%; right:-10%; }
.sd-aurora span:nth-child(3){ background:var(--accent-3); top:35%; right:25%; opacity:.06; }

/* ---------- Layout helpers ---------- */
.sd-main{ max-width:1180px; margin:0 auto; padding:22px 18px 60px; min-height:60vh; }
.only-mobile{ display:none !important; }
.only-desktop{ display:flex !important; }
@media (max-width: 900px){
  .only-mobile{ display:flex !important; }
  .only-desktop{ display:none !important; }
  .sd-nav-inner{ padding:10px 14px; gap:10px; }
  .sd-brand-word{ font-size:.98rem; }
  .sd-icon-btn{ width:36px; height:36px; }
  .sd-main{ padding:16px 14px 30px; }
  .section-title{ font-size:1.25rem; }
  .hero-section{ padding:22px 0 8px; }
  .checkout-total-banner{ padding:16px 18px; }
  .svc-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .svc-body{ padding:10px 11px 12px; }
  .svc-name{ font-size:.82rem; }
  body{ padding-bottom:64px; }
  .sd-wa-float{ bottom:calc(64px + 16px + env(safe-area-inset-bottom,0px)) !important; }
}
@media (prefers-reduced-motion: reduce){
  .sd-aurora span{ animation:none; }
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

/* ---------- Admin panel additions ---------- */
.kpi-grid, .dash-grid, .stat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:14px; margin-bottom:24px; }
.kpi-card, .stat-card{ position:relative; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); padding:18px 18px 16px; overflow:hidden; transition:.2s var(--ease); }
.kpi-card::before, .stat-card::before{ content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--gradient); opacity:.85; }
.kpi-card:hover, .stat-card:hover{ transform:translateY(-3px); border-color:var(--border-hi); box-shadow:var(--shadow); }
.kpi-value{ font-family:var(--font-display); font-size:1.5rem; font-weight:800; }
.kpi-label{ color:var(--text-muted); font-size:.8rem; font-weight:600; margin-top:2px; }
.kpi-sub{ color:var(--text-faint); font-size:.72rem; margin-top:2px; }
.stat-card .num{ font-family:var(--font-display); font-size:1.55rem; font-weight:800; line-height:1.25; letter-spacing:-.01em; }
.stat-card .lbl{ color:var(--text-muted); font-size:.78rem; font-weight:600; margin-top:4px; }
.form-control-sm, .form-select-sm{ padding:7px 10px; font-size:.82rem; border-radius:9px; border:1.5px solid var(--border); background:var(--bg-soft); color:var(--text); }
.btn, .btn-primary{ display:inline-flex; align-items:center; gap:6px; padding:10px 18px; border-radius:11px; border:none; background:var(--accent); color:#04140f; font-weight:700; font-size:.88rem; }
.btn-danger-sd{ display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:9px; border:1px solid rgba(249,102,126,.35); background:rgba(249,102,126,.08); color:var(--danger); font-weight:700; font-size:.8rem; }
.btn-danger-sd:hover{ background:rgba(249,102,126,.15); }
.col-md-1{ flex:0 0 8.33%; max-width:8.33%; }
.col-md-2{ flex:0 0 16.66%; max-width:16.66%; }
.col-md-3{ flex:0 0 25%; max-width:25%; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width: 700px){ .col-md-1,.col-md-2,.col-md-3{ flex:0 0 50%; max-width:50%; } .grid-3{ grid-template-columns:1fr; } }
.admin-scroll-table{ overflow-x:auto; }
.pill-status, .pill-paid{ display:inline-flex; padding:3px 10px; border-radius:999px; font-size:.72rem; font-weight:800; background:rgba(52,211,153,.14); color:var(--success); }
.icon-thumb{ width:36px; height:36px; border-radius:8px; object-fit:contain; background:var(--bg-soft); padding:3px; }
.rank-row, .link-row, .inline-form{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.hidden-name{ opacity:.55; text-decoration:line-through; }
/* Invoice / print view */
.invoice-box{ max-width:720px; margin:0 auto; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:30px; }
.invoice-head{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid var(--border); }
.invoice-body table{ width:100%; border-collapse:collapse; }
.invoice-body th, .invoice-body td{ padding:10px; border-bottom:1px solid var(--border); text-align:left; }
.invoice-totals{ margin-top:16px; text-align:right; }
@media print{ .no-print{ display:none !important; } body{ background:#fff; color:#000; } }
.profile-avatar{ width:56px; height:56px; border-radius:50%; background:var(--gradient); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:800; font-size:1.4rem; color:#04140f; flex-shrink:0; box-shadow:0 0 0 4px rgba(22,229,127,.12); }
.profile-info-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px 24px; }
.profile-info-grid > div{ display:flex; flex-direction:column; gap:2px; }
.profile-info-grid .k{ font-size:.78rem; color:var(--text-muted); font-weight:600; }
.profile-info-grid .v{ font-weight:700; font-size:.92rem; }
@media (max-width: 560px){ .profile-info-grid{ grid-template-columns:1fr; } }

/* ---------- User Links (redesigned) ---------- */
.user-links-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; }
.user-link-card{ transition:.2s var(--ease); }
.user-link-card:hover{ border-color:var(--border-hi); transform:translateY(-2px); box-shadow:var(--shadow); }
.user-link-head{ display:flex; align-items:center; gap:12px; margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid var(--border); }
.user-link-icon{ width:38px; height:38px; border-radius:10px; background:var(--gradient); display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0; }
.user-link-name{ font-weight:800; font-size:.95rem; }
.user-link-items .row-kv{ flex-wrap:wrap; padding:8px 0; }
.user-link-items .row-kv .v{ flex:1; min-width:120px; }

/* ---------- Compare ---------- */
.svc-compare-check{ display:flex; align-items:center; gap:6px; padding:9px 14px; border-top:1px solid var(--border); font-size:.76rem; font-weight:600; color:var(--text-muted); cursor:pointer; }
.svc-compare-check input{ accent-color:var(--accent); width:14px; height:14px; }
.compare-bar{ position:fixed; left:50%; bottom:20px; transform:translate(-50%,140%); z-index:270; display:flex; align-items:center; gap:14px; background:var(--surface-hi); border:1px solid var(--border-hi); border-radius:999px; padding:10px 10px 10px 20px; box-shadow:var(--shadow-lg); transition:.25s var(--ease); font-size:.85rem; font-weight:700; }
.compare-bar.is-visible{ transform:translate(-50%,0); }
@media (max-width: 900px){ .compare-bar{ bottom:calc(64px + 14px + env(safe-area-inset-bottom,0px)); } }

/* ---------- Why Choose Us ---------- */
.why-us-section{ margin-top:48px; }
.why-us-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
@media (max-width: 900px){ .why-us-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 560px){ .why-us-grid{ grid-template-columns:1fr; } }
.why-us-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px 20px; text-align:center; transition:.2s var(--ease); }
.why-us-card:hover{ transform:translateY(-3px); border-color:var(--border-hi); box-shadow:var(--shadow); }
.why-us-icon{ width:52px; height:52px; margin:0 auto 14px; border-radius:14px; background:rgba(22,229,127,.1); display:flex; align-items:center; justify-content:center; font-size:1.5rem; }
.why-us-card h3{ font-size:1rem; margin-bottom:6px; }
.why-us-card p{ color:var(--text-muted); font-size:.85rem; margin:0; line-height:1.55; }

/* ---------- Reviews ---------- */
.reviews-section{ margin-top:44px; }
.reviews-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
.review-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); padding:18px; }
.star-rating{ color:var(--accent-3); font-size:1rem; letter-spacing:2px; }
.review-comment{ font-size:.88rem; color:var(--text-muted); margin:8px 0 10px; line-height:1.55; }
.review-author{ font-weight:700; font-size:.83rem; }
.star-picker{ display:flex; gap:4px; }
.star-btn{ background:none; border:none; font-size:1.8rem; color:var(--accent-3); padding:2px; line-height:1; }

/* ---------- FAQ section ---------- */
.faq-section{ margin-top:44px; }
.faq-list{ max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:10px; }
.faq-item{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); padding:4px 18px; }
.faq-item summary{ padding:14px 0; font-weight:700; font-size:.94rem; cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:'+'; font-size:1.3rem; color:var(--accent); transition:.2s; flex-shrink:0; margin-left:12px; }
.faq-item[open] summary::after{ transform:rotate(45deg); }
.faq-item p{ margin:0 0 16px; color:var(--text-muted); font-size:.88rem; line-height:1.6; }
html.sd-intro-skip .sd-intro{ display:none !important; }
.sd-intro{
  position:fixed; inset:0; z-index:99999; background:var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
  animation:sdIntroBgFade .1s;
}
.sd-intro-glow{
  position:absolute; width:420px; height:420px; border-radius:50%;
  background:radial-gradient(circle, rgba(22,229,127,.22), transparent 70%);
  animation:sdIntroGlowPulse 1.8s ease-in-out infinite;
}
@keyframes sdIntroGlowPulse{ 0%,100%{ transform:scale(.9); opacity:.7; } 50%{ transform:scale(1.15); opacity:1; } }
.sd-intro-logo{
  position:relative; width:76px; height:76px; border-radius:22px; background:var(--gradient);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display);
  font-size:2rem; font-weight:800; color:#04140f; box-shadow:0 0 60px rgba(22,229,127,.4);
  animation:sdIntroLogoIn .6s var(--ease) both;
}
@keyframes sdIntroLogoIn{ from{ opacity:0; transform:scale(.4) rotate(-15deg); } to{ opacity:1; transform:scale(1) rotate(0); } }
.sd-intro-word{
  position:relative; font-family:var(--font-display); font-size:1.5rem; font-weight:800;
  background:var(--gradient-text); -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:sdIntroTextIn .6s var(--ease) .25s both;
}
.sd-intro-tag{
  position:relative; color:var(--text-muted); font-size:.85rem; font-weight:600;
  animation:sdIntroTextIn .6s var(--ease) .45s both;
}
@keyframes sdIntroTextIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:translateY(0); } }
.sd-intro.sd-intro-out{ animation:sdIntroOut .55s var(--ease) forwards; }
@keyframes sdIntroOut{ from{ opacity:1; } to{ opacity:0; visibility:hidden; } }
@media (prefers-reduced-motion: reduce){ .sd-intro{ display:none !important; } }
/* ---------- Live countdown ---------- */
.sd-countdown{ display:inline-flex; align-items:center; padding:4px 10px; border-radius:999px; font-family:var(--font-display); font-size:.75rem; font-weight:800; background:rgba(52,211,153,.14); color:var(--success); white-space:nowrap; }
.sd-countdown.sd-countdown-soon{ background:rgba(245,184,64,.14); color:var(--warn); }
.sd-countdown.sd-countdown-expired{ background:rgba(249,102,126,.14); color:var(--danger); }

/* ---------- PWA install banner ---------- */
.sd-install-banner{ display:none; align-items:center; gap:12px; padding:10px 16px; background:var(--bg-soft); border-bottom:1px solid var(--border); }
.sd-install-banner.is-visible{ display:flex; }
.sd-install-banner img{ border-radius:9px; flex-shrink:0; }
.sd-install-text{ display:flex; flex-direction:column; flex:1; min-width:0; }
.sd-install-text strong{ font-size:.85rem; }
.sd-install-text span{ font-size:.74rem; color:var(--text-muted); }
.sd-install-close{ background:none; border:none; color:var(--text-faint); font-size:1rem; padding:4px; flex-shrink:0; }

.sd-ticker-strip{ display:flex; align-items:stretch; width:100%; background:var(--bg-soft); border-bottom:1px solid var(--border); }
.sd-ticker-viewport{ position:relative; flex:1; overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent); mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent); }
.sd-ticker-track{ display:flex; align-items:center; width:max-content; animation-name:sdTickerScroll; animation-timing-function:linear; animation-iteration-count:infinite; }
.sd-ticker-strip:hover .sd-ticker-track{ animation-play-state:paused; }
.sd-ticker-set{ display:flex; align-items:center; flex-shrink:0; }
.sd-ticker-item{ color:var(--text-muted); font-weight:600; font-size:.82rem; white-space:nowrap; padding:9px 6px; }
.sd-ticker-sep{ color:var(--accent); font-size:.6rem; margin:0 12px; flex-shrink:0; }
@keyframes sdTickerScroll{ 0%{ transform:translateX(0); } 100%{ transform:translateX(-50%); } }
@media (max-width: 480px){
  .sd-ticker-item{ font-size:.76rem; padding:7px 4px; }
  .sd-ticker-sep{ margin:0 8px; }
}

/* ---------- Categories nav dropdown ---------- */
.sd-nav-dropdown{ position:relative; }
.sd-nav-dropdown-btn{ display:flex; align-items:center; gap:5px; padding:9px 14px; border-radius:10px; font-weight:600; font-size:.87rem; color:var(--text-muted); background:none; border:none; transition:.18s var(--ease); }
.sd-nav-dropdown-btn svg{ width:13px; height:13px; transition:.2s; }
.sd-nav-dropdown-btn:hover, .sd-nav-dropdown-btn.on{ color:var(--text); background:var(--bg-soft); }
.sd-nav-dropdown.is-open .sd-nav-dropdown-btn svg{ transform:rotate(180deg); }
.sd-nav-dropdown-menu{ position:absolute; top:calc(100% + 8px); left:0; min-width:200px; background:var(--surface-hi); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow-lg); padding:6px; opacity:0; visibility:hidden; transform:translateY(-6px); transition:.18s var(--ease); z-index:250; }
.sd-nav-dropdown.is-open .sd-nav-dropdown-menu{ opacity:1; visibility:visible; transform:translateY(0); }
.sd-nav-dropdown-menu a{ display:block; padding:9px 12px; border-radius:8px; font-weight:600; font-size:.86rem; color:var(--text-muted); }
.sd-nav-dropdown-menu a:hover{ background:var(--bg-soft); color:var(--text); }
.sd-nav{ position:sticky; top:0; z-index:200; background:rgba(10,11,13,.85); backdrop-filter:blur(14px) saturate(160%); border-bottom:1px solid var(--border); }
.sd-nav-inner{ max-width:1180px; margin:0 auto; padding:13px 18px; display:flex; align-items:center; gap:16px; }
.sd-brand{ display:flex; align-items:center; gap:9px; font-family:var(--font-display); font-weight:800; font-size:1.08rem; white-space:nowrap; }
.sd-brand-mark{ font-size:1.3rem; }
.sd-brand-word{ background:var(--gradient-text); -webkit-background-clip:text; background-clip:text; color:transparent; }
.sd-nav-links{ display:flex; gap:2px; margin-left:8px; flex:1; }
.sd-nav-links a{ position:relative; padding:9px 14px; border-radius:10px; font-weight:600; font-size:.87rem; color:var(--text-muted); transition:.18s var(--ease); }
.sd-nav-links a::after{ content:''; position:absolute; left:14px; right:14px; bottom:2px; height:2px; border-radius:2px; background:var(--gradient); transform:scaleX(0); transform-origin:left; transition:transform .25s var(--ease); }
.sd-nav-links a:hover{ color:var(--text); background:var(--bg-soft); }
.sd-nav-links a:hover::after{ transform:scaleX(1); }
.sd-nav-links a.on{ color:var(--accent-dark); background:rgba(22,229,127,.08); }
.sd-nav-links a.on::after{ transform:scaleX(1); }
.sd-nav-right{ display:flex; align-items:center; gap:8px; margin-left:auto; }
.sd-icon-btn{ display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:11px; background:var(--bg-soft); border:1px solid var(--border); color:var(--text); position:relative; transition:.15s var(--ease); }
.sd-icon-btn svg{ width:18px; height:18px; }
.sd-search-btn svg{ width:23px; height:23px; }
.sd-icon-btn:hover{ background:var(--bg-soft-2); border-color:var(--border-hi); }
.sd-cart-badge{ position:absolute; top:-5px; right:-5px; background:var(--gradient); color:#fff; font-size:.62rem; font-weight:800; min-width:16px; height:16px; border-radius:50%; display:flex; align-items:center; justify-content:center; padding:0 3px; }
.sd-pill{ display:flex; align-items:center; gap:6px; padding:8px 14px; border-radius:999px; background:var(--bg-soft); border:1px solid var(--border); font-weight:700; font-size:.83rem; white-space:nowrap; }
.sd-pill-dot{ width:7px; height:7px; border-radius:50%; background:var(--success); box-shadow:0 0 0 3px rgba(22,163,74,.16); }
.sd-pill-admin{ background:rgba(245,158,11,.1); border-color:rgba(245,158,11,.3); color:var(--warn); }
.sd-balance{ align-items:center; padding:8px 14px; border-radius:999px; background:rgba(22,229,127,.08); border:1px solid rgba(22,229,127,.24); font-weight:800; font-size:.83rem; color:var(--accent-dark); white-space:nowrap; }

/* ---------- Buttons ---------- */
.sd-btn, .btn-accent, .btn-primary{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:12px 22px; border-radius:12px; border:none; position:relative; overflow:hidden;
  background:var(--accent); color:#04140f; font-weight:800; font-size:.92rem;
  box-shadow:0 6px 18px rgba(22,229,127,.22); transition:transform .16s var(--ease), box-shadow .16s var(--ease), background .16s;
}
.sd-btn::after, .btn-accent::after, .btn-primary::after{
  content:''; position:absolute; inset:0; background:linear-gradient(120deg,transparent 35%,rgba(255,255,255,.25) 50%,transparent 65%);
  transform:translateX(-100%); transition:transform .5s var(--ease);
}
.sd-btn:hover::after, .btn-accent:hover::after, .btn-primary:hover::after{ transform:translateX(100%); }
.sd-btn:hover, .btn-accent:hover, .btn-primary:hover{ background:var(--accent-dark); color:#04140f; transform:translateY(-1px); box-shadow:0 10px 26px rgba(22,229,127,.32); }
.sd-btn:active, .btn-accent:active, .btn-primary:active{ transform:translateY(0) scale(.98); }
.sd-btn:disabled, .btn-accent:disabled{ opacity:.55; cursor:not-allowed; transform:none; }
.sd-btn-sm, .btn-sm{ padding:8px 15px; font-size:.8rem; border-radius:9px; }
.sd-btn-block, .btn-block{ width:100%; }
.btn-outline-sd, .btn-ghost{ display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:12px 22px; border-radius:12px; background:var(--surface); border:1.5px solid var(--border); color:var(--text); font-weight:700; font-size:.9rem; transition:.15s var(--ease); }
.btn-outline-sd:hover{ border-color:var(--accent); color:var(--accent-dark); background:rgba(22,229,127,.05); }
.btn-ghost-sd{ background:none; border:none; color:var(--text-muted); font-weight:700; padding:6px 10px; }
.btn-ghost-sd:hover{ color:var(--text); }
.copy-chip{ display:inline-flex; align-items:center; gap:4px; padding:5px 12px; border-radius:999px; background:var(--bg-soft); border:1px solid var(--border); color:var(--text-muted); font-size:.75rem; font-weight:700; margin:3px 4px 0 0; transition:.15s; }
.copy-chip:hover{ color:var(--accent-dark); border-color:var(--border-hi); background:rgba(22,229,127,.06); }
.sd-quickcopy-row{ display:flex; flex-wrap:wrap; margin:8px 0; }

/* ---------- Cards ---------- */
.card-sd, .card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow-sm); }
.card-glow{ box-shadow:var(--glow); }
.glass{ backdrop-filter:blur(10px); }

/* ---------- Forms — 16px min font-size prevents iOS/Android auto-zoom-on-focus ---------- */
.form-group{ margin-bottom:16px; }
.form-label{ display:block; font-weight:700; font-size:.83rem; margin-bottom:6px; color:var(--text-muted); }
.form-control, .form-select, .input{
  width:100%; padding:12px 14px; border-radius:11px; border:1.5px solid var(--border);
  background:var(--bg-soft); color:var(--text); font-size:16px; font-family:inherit;
  transition:.15s border-color, .15s box-shadow;
}
.form-control:focus, .form-select:focus, .input:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(22,229,127,.14); }
.form-select{ appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%239aa1ac' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; padding-right:34px; }
::placeholder{ color:var(--text-faint); }
select, input, textarea{ font-size:16px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], input[type="search"], input:not([type]), select, textarea{
  font-size:16px !important;
}

/* Bootstrap-ish grid used by a few pages */
.row{ display:flex; flex-wrap:wrap; margin:0 -8px; }
.row.g-2 > *{ padding:0 8px; }
.col-md-4{ flex:0 0 33.33%; max-width:33.33%; }
.col-md-6{ flex:0 0 50%; max-width:50%; }
.mb-3{ margin-bottom:1rem; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width: 700px){
  .col-md-4, .col-md-6{ flex:0 0 100%; max-width:100%; margin-bottom:10px; }
  .grid-2{ grid-template-columns:1fr; }
}

/* ---------- Alerts / badges ---------- */
.alert{ padding:13px 16px; border-radius:11px; margin-bottom:14px; font-size:.88rem; font-weight:600; border:1px solid transparent; }
.alert-success{ background:rgba(52,211,153,.1); color:#4ce0a5; border-color:rgba(52,211,153,.28); }
.alert-danger{ background:rgba(249,102,126,.1); color:#ff8fa3; border-color:rgba(249,102,126,.3); }
.alert-warn, .alert-warning{ background:rgba(245,184,64,.1); color:#f5c25f; border-color:rgba(245,184,64,.3); }
.alert-info{ background:rgba(56,189,248,.1); color:#7dd3fc; border-color:rgba(56,189,248,.3); }

.badge-sd{ display:inline-flex; align-items:center; padding:4px 11px; border-radius:999px; font-size:.75rem; font-weight:800; white-space:nowrap; }
.badge-ok{ background:rgba(52,211,153,.14); color:#4ce0a5; }
.badge-bad{ background:rgba(249,102,126,.14); color:#ff8fa3; }
.badge-warn{ background:rgba(245,184,64,.14); color:#f5c25f; }
.badge-info{ background:rgba(56,189,248,.14); color:#7dd3fc; }
.badge-muted{ background:var(--bg-soft); color:var(--text-muted); }

/* ---------- Section headers ---------- */
.section-title{ font-family:var(--font-display); font-size:1.5rem; font-weight:800; margin-bottom:4px; }
.section-sub{ color:var(--text-muted); margin-bottom:22px; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin:34px 0 14px; }
.section-head h2{ font-size:1.3rem; }
.section-head a{ color:var(--accent-dark); font-weight:700; font-size:.85rem; }

.page-hero-badge{ display:inline-block; position:relative; overflow:hidden; padding:6px 16px; border-radius:999px; background:rgba(22,229,127,.08); border:1px solid rgba(22,229,127,.25); color:var(--accent-dark); font-size:.85rem; font-weight:700; margin-bottom:14px; }
.page-hero-title{ font-family:var(--font-display); font-size:clamp(1.5rem,4vw,2.1rem); font-weight:800; margin:0 0 6px; }
.page-hero-title .hero-name{ background:var(--gradient-text); -webkit-background-clip:text; background-clip:text; color:transparent; }
.page-hero-subtitle{ color:var(--text-muted); margin:0 0 22px; }

/* ---------- Empty state ---------- */
.empty-state{ text-align:center; padding:60px 20px; color:var(--text-muted); border:1.5px dashed var(--border); border-radius:var(--radius); background:var(--surface); }
.empty-state .emoji{ font-size:2.4rem; margin-bottom:10px; }

/* ---------- Hero (index.php) ---------- */
.hero-section{ padding:44px 0 20px; }
.hero-badge{ display:inline-block; position:relative; overflow:hidden; padding:6px 16px; border-radius:999px; background:rgba(22,229,127,.08); border:1px solid rgba(22,229,127,.25); color:var(--accent-dark); font-weight:700; font-size:.83rem; margin-bottom:16px; }
.hero-title{ font-family:var(--font-display); font-size:clamp(1.9rem,5vw,2.9rem); font-weight:800; margin-bottom:14px; }
.hero-name{ background:var(--gradient-text); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-subtitle{ color:var(--text-muted); font-size:1.02rem; max-width:560px; margin-bottom:14px; }
.hero-rotator{ min-height:24px; }
.hero-rotator-text{ font-weight:700; color:var(--accent-dark); transition:opacity .35s; }
.hero-rotator-text.sd-fade{ opacity:0; }
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:center; }
@media (max-width: 900px){ .hero-grid{ grid-template-columns:1fr; gap:0; } }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:8px; }
.hero-trust-points{ display:flex; gap:18px; flex-wrap:wrap; margin-top:18px; }
.hero-trust-points span{ font-size:.83rem; color:var(--text-muted); font-weight:600; }
.hero-visual{ position:relative; height:380px; }
.hero-float-card{ position:absolute; display:flex; flex-direction:column; align-items:center; gap:8px; background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:16px; box-shadow:var(--shadow-lg); animation:sdFloat 5s ease-in-out infinite; }
.hero-float-card img{ width:72px; height:72px; object-fit:contain; background:var(--bg-soft); border-radius:12px; padding:8px; }
.hero-float-name{ font-size:.75rem; font-weight:700; color:var(--text-muted); text-align:center; }
.hero-float-1{ top:0; left:10%; animation-delay:0s; }
.hero-float-2{ top:35%; right:5%; animation-delay:1.2s; z-index:2; box-shadow:0 0 0 1px rgba(22,229,127,.2), var(--shadow-lg); }
.hero-float-3{ bottom:0; left:22%; animation-delay:2.4s; }
@keyframes sdFloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-14px); } }
@media (prefers-reduced-motion: reduce){ .hero-float-card{ animation:none; } }
.hero-search{ display:flex; gap:8px; max-width:460px; margin:6px 0 14px; }
.hero-search .form-control{ background:var(--surface); }
.hero-stats{ display:flex; gap:28px; margin-top:26px; flex-wrap:wrap; }
.hero-stat-value{ display:block; font-family:var(--font-display); font-size:1.5rem; font-weight:800; }
.hero-stat-label{ display:block; color:var(--text-muted); font-size:.8rem; margin-top:2px; }

/* ---------- Logged-in welcome card ---------- */
.welcome-card{ background:var(--surface); border:1px solid var(--border-hi); border-radius:var(--radius); padding:24px; box-shadow:var(--glow); }
.welcome-card-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:20px; }
.welcome-balance{ display:flex; flex-direction:column; align-items:flex-end; background:var(--bg-soft); border:1px solid var(--border); border-radius:14px; padding:14px 18px; min-width:180px; }
.welcome-balance .k{ font-size:.78rem; color:var(--text-muted); font-weight:600; }
.welcome-balance .v{ font-family:var(--font-display); font-size:1.5rem; font-weight:800; color:var(--accent); margin-top:2px; }
.welcome-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.welcome-stat{ display:flex; flex-direction:column; align-items:center; gap:2px; padding:14px 10px; border-radius:12px; background:var(--bg-soft); border:1px solid var(--border); transition:.18s var(--ease); }
.welcome-stat:hover{ border-color:var(--border-hi); transform:translateY(-2px); }
.welcome-stat-value{ font-family:var(--font-display); font-size:1.3rem; font-weight:800; }
.welcome-stat-label{ font-size:.76rem; color:var(--text-muted); font-weight:600; }
.welcome-stat-cta{ background:rgba(22,229,127,.08); border-color:rgba(22,229,127,.25); }
@media (max-width: 560px){ .welcome-card-top{ flex-direction:column; } .welcome-balance{ align-items:flex-start; width:100%; } }
.brand-marquee{ overflow:hidden; margin:8px 0 30px; -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); }
.brand-marquee-track{ display:flex; gap:12px; width:max-content; animation:sdMarquee 60s linear infinite; }
.brand-marquee:hover .brand-marquee-track{ animation-play-state:paused; }
.brand-chip{ display:flex; align-items:center; gap:8px; padding:8px 16px 8px 8px; border-radius:999px; background:var(--surface); border:1px solid var(--border); font-weight:700; font-size:.82rem; white-space:nowrap; }
.brand-chip img{ width:34px; height:34px; border-radius:50%; object-fit:contain; background:var(--bg-soft); padding:2px; }
@keyframes sdMarquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---------- Most sold row ---------- */
.section-head-row{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin:36px 0 16px; flex-wrap:wrap; }
.most-sold-row{ display:flex; gap:14px; overflow-x:auto; padding-bottom:8px; scroll-snap-type:x proximity; }
.most-sold-card{ scroll-snap-align:start; flex:0 0 150px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); padding:16px 14px; text-align:center; transition:.2s var(--ease); }
.most-sold-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--border-hi); }
.most-sold-card img{ width:76px; height:76px; object-fit:contain; margin:0 auto 10px; background:var(--bg-soft); border-radius:12px; padding:8px; }
.ms-name{ font-weight:700; font-size:.85rem; margin-bottom:4px; }
.ms-sold{ font-size:.72rem; color:var(--text-muted); margin-bottom:4px; }
.ms-price{ font-size:.82rem; font-weight:800; color:var(--accent-dark); }

.hero-badge::after, .page-hero-badge::after{
  content:''; position:absolute; inset:0; background:linear-gradient(100deg,transparent 40%,rgba(22,229,127,.18) 50%,transparent 60%);
  transform:translateX(-100%); animation:sdBadgeShine 3.4s ease-in-out infinite;
}
@keyframes sdBadgeShine{ 0%,60%{ transform:translateX(-120%); } 100%{ transform:translateX(120%); } }

/* ---------- Category cards ---------- */
.categories-section{ margin-top:26px; }
.section-header{ text-align:center; margin-bottom:26px; }
.section-tag{ display:inline-block; padding:5px 14px; border-radius:999px; background:var(--bg-soft); border:1px solid var(--border); font-size:.78rem; font-weight:700; color:var(--accent-dark); margin-bottom:10px; }
.section-header .section-title{ font-size:1.7rem; }
.section-subtitle{ color:var(--text-muted); }
.categories-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width: 900px){ .categories-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 560px){ .categories-grid{ grid-template-columns:1fr; } }
.category-card{ position:relative; border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); display:block; background:var(--surface); box-shadow:var(--shadow-sm); transition:.25s var(--ease); }
.category-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--border-hi); }
.category-card-image{ position:relative; aspect-ratio:900/620; background:var(--bg-soft); }
.category-card-image img{ width:100%; height:100%; object-fit:cover; transition:.4s transform; }
.category-card:hover .category-card-image img{ transform:scale(1.06); }
.category-card-overlay{ position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.72)); display:flex; align-items:flex-end; }
.category-card-content{ padding:18px; }
.category-card-icon{ font-size:1.4rem; }
.category-card-title{ font-family:var(--font-display); font-size:1.1rem; margin:4px 0; color:#fff; }
.category-card-description{ color:rgba(255,255,255,.82); font-size:.82rem; margin:0 0 10px; }
.category-card-btn{ display:inline-block; font-weight:800; font-size:.83rem; color:#fff; }
.cat-card{ display:block; padding:20px; border-radius:var(--radius); background:var(--surface); border:1px solid var(--border); box-shadow:var(--shadow-sm); }
.cat-card .em{ font-size:1.6rem; display:block; margin-bottom:8px; }
.grid-cat{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
@media (max-width: 700px){ .grid-cat{ grid-template-columns:repeat(2,1fr); } }

/* ---------- Service grid / product cards (WooCommerce-style) ---------- */
.svc-grid, .grid-svc{ display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:18px; }
@media (max-width: 1024px) and (min-width: 901px){ .svc-grid{ grid-template-columns:repeat(3,1fr); } }
.svc-card{ position:relative; display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; transition:.25s var(--ease); }
.svc-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--border-hi); }
.svc-thumb-wrap{ aspect-ratio:1/1; background:var(--bg-soft); overflow:hidden; padding:6px; position:relative; }
.svc-thumb{ width:100%; height:100%; object-fit:contain; object-position:center; position:relative; z-index:1; }
.svc-body{ padding:14px 15px 16px; border-top:1px solid var(--border); }
.svc-name{ font-weight:700; font-size:.93rem; margin-bottom:6px; color:var(--text); }
.svc-price{ color:var(--accent-dark); font-weight:800; font-size:.95rem; margin-bottom:8px; }
.svc-price::before{ content:'from '; font-weight:500; color:var(--text-faint); font-size:.78rem; }
.svc-tags{ display:flex; gap:6px; flex-wrap:wrap; }
.tag{ display:inline-flex; padding:3px 9px; border-radius:999px; font-size:.68rem; font-weight:800; }
.tag-cat{ background:rgba(22,229,127,.1); color:var(--accent-dark); }
.tag-manual{ background:rgba(245,158,11,.12); color:var(--warn); }
.tag-auto{ background:rgba(8,145,178,.1); color:var(--info); }
.svc-quickadd{ position:absolute; top:10px; right:10px; width:32px; height:32px; border-radius:50%; border:none; background:var(--accent); color:#04140f; font-size:1.1rem; font-weight:900; box-shadow:0 6px 16px rgba(22,229,127,.4); transition:.2s var(--ease); z-index:2; }
.svc-quickadd:hover{ background:var(--accent-dark); transform:scale(1.1); }
.svc-quickadd:active{ transform:scale(.94); }

/* image loading shimmer skeleton */
img[loading="lazy"]{ background:linear-gradient(100deg, var(--bg-soft) 30%, var(--bg-soft-2) 45%, var(--bg-soft) 60%); background-size:200% 100%; animation:sdShimmer 1.5s ease-in-out infinite; }
img[loading="lazy"].sd-loaded{ animation:none; background:none; }
@keyframes sdShimmer{ 0%{ background-position:200% 0; } 100%{ background-position:-200% 0; } }

/* ---------- Product page ---------- */
.product-hero{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.product-image{ width:150px; height:150px; border-radius:16px; object-fit:contain; background:var(--bg-soft); border:1px solid var(--border); padding:10px; }
.product-info h3{ font-size:1.25rem; }
.qty-input-wrap{ display:inline-flex; align-items:center; border:1.5px solid var(--border); border-radius:999px; overflow:hidden; background:var(--surface); }
.qty-input-wrap button{ width:36px; height:36px; border:none; background:var(--bg-soft); color:var(--text); font-size:1.1rem; font-weight:800; }
.qty-input-wrap input{ width:44px; text-align:center; border:none; background:transparent; color:var(--text); font-weight:800; font-size:16px; }

/* ---------- Checkout (redesigned) ---------- */
.checkout-steps{ display:flex; align-items:center; gap:8px; margin-bottom:22px; flex-wrap:wrap; }
.checkout-step{ display:flex; align-items:center; gap:8px; font-size:.83rem; font-weight:700; color:var(--text-muted); }
.checkout-step .num{ width:26px; height:26px; border-radius:50%; background:var(--bg-soft); border:1.5px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:.78rem; }
.checkout-step.done .num{ background:var(--accent); border-color:var(--accent); color:#04140f; }
.checkout-step.done{ color:var(--text); }
.checkout-step-sep{ flex:1; max-width:40px; height:2px; background:var(--border); }

.trust-row{ display:flex; gap:18px; flex-wrap:wrap; margin:16px 0 24px; padding:14px 16px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); }
.trust-item{ display:flex; align-items:center; gap:8px; font-size:.82rem; font-weight:700; color:var(--text-muted); }
.trust-item .ic{ font-size:1.1rem; }

.checkout-total-banner{ display:flex; align-items:center; justify-content:space-between; padding:20px 22px; border-radius:var(--radius); background:var(--gradient); color:#04140f; margin-bottom:22px; flex-wrap:wrap; gap:10px; box-shadow:0 12px 28px rgba(22,229,127,.28); }
.checkout-total-banner .amt{ font-family:var(--font-display); font-size:2rem; font-weight:800; }
.checkout-grid{ display:grid; grid-template-columns:1.4fr 1fr; gap:22px; align-items:start; }
@media (max-width: 900px){ .checkout-grid{ grid-template-columns:1fr; } }
.checkout-grid > .cart-summary, .checkout-summary-sticky{ position:sticky; top:86px; }
@media (max-width: 900px){ .checkout-grid > .cart-summary, .checkout-summary-sticky{ position:static; } }
.pay-box{ background:var(--bg-soft); border:1px solid var(--border); border-radius:var(--radius-sm); padding:14px 16px; }
.row-kv{ display:flex; justify-content:space-between; align-items:center; padding:6px 0; gap:10px; }
.row-kv .k{ color:var(--text-muted); font-size:.85rem; }
.row-kv .v{ font-weight:700; text-align:right; }
.verify-note{ display:flex; gap:8px; align-items:flex-start; background:rgba(245,184,64,.1); border:1px solid rgba(245,184,64,.3); border-radius:11px; padding:11px 13px; font-size:.83rem; color:#f5c25f; margin-top:12px; }
.cart-summary .line{ display:flex; justify-content:space-between; padding:7px 0; font-size:.9rem; }
.cart-summary .line.total{ font-weight:800; font-size:1.15rem; padding-top:12px; border-top:1px solid var(--border); margin-top:6px; color:var(--accent-dark); }
.pill-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.pill-tabs a{ padding:8px 16px; border-radius:999px; font-weight:700; font-size:.85rem; background:var(--bg-soft); color:var(--text-muted); border:1px solid var(--border); }
.pill-tabs a.active{ background:rgba(22,229,127,.1); color:var(--accent-dark); border-color:rgba(22,229,127,.3); }
.status-filter-pills{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.status-filter-pills a{ padding:6px 14px; border-radius:999px; font-size:.85rem; font-weight:700; background:var(--bg-soft); color:var(--text-muted); }
.status-filter-pills a.active{ background:rgba(22,229,127,.1); color:var(--accent-dark); border:1px solid rgba(22,229,127,.3); }

/* ---------- Cart page ---------- */
.cart-list{ display:flex; flex-direction:column; gap:10px; }
.cart-row{ display:flex; align-items:center; gap:14px; padding:14px; }
.cart-row-thumb img{ width:68px; height:68px; border-radius:12px; object-fit:contain; background:var(--bg-soft); border:1px solid var(--border); padding:6px; }
.cart-row-info{ flex:1; min-width:0; }
.cart-row-name{ font-weight:700; font-size:.9rem; }
.cart-row-price{ font-weight:800; min-width:90px; text-align:right; color:var(--accent-dark); }
.cart-row-remove{ width:32px; height:32px; border-radius:50%; border:1px solid var(--border); background:var(--surface); color:var(--text-muted); }
.cart-row-remove:hover{ color:var(--danger); border-color:var(--danger); background:#fef2f2; }
@media (max-width: 640px){ .cart-row{ flex-wrap:wrap; } .cart-row-price{ text-align:left; } }

/* ---------- Table ---------- */
.table-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius-sm); }
.table-sd{ border-collapse:collapse; width:100%; font-size:.86rem; background:var(--surface); }
.table-sd th, .table-sd td{ padding:11px 14px; border-bottom:1px solid var(--border); text-align:left; white-space:nowrap; }
.table-sd th{ color:var(--text-muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; background:var(--bg-soft); }
.table-sd tr:last-child td{ border-bottom:none; }

/* ---------- Auth ---------- */
.auth-wrap{ display:flex; justify-content:center; padding:40px 0; }
.auth-wrap .card-sd{ width:100%; max-width:420px; }
.auth-logo{ text-align:center; margin-bottom:8px; }
.auth-logo img{ width:52px; height:52px; margin:0 auto; border-radius:12px; }

/* ---------- Upload widget (add-funds) ---------- */
.sd-upload{ border:1.5px dashed var(--border-hi); border-radius:var(--radius-sm); padding:22px; text-align:center; cursor:pointer; background:var(--bg-soft); transition:.15s; }
.sd-upload:hover{ border-color:var(--accent); background:rgba(22,229,127,.04); }
.sd-upload-empty{ display:flex; flex-direction:column; align-items:center; gap:6px; color:var(--text-muted); font-weight:600; font-size:.85rem; }
.sd-upload-icon{ font-size:1.8rem; }
.sd-upload img{ max-height:220px; margin:0 auto; border-radius:10px; }

/* ---------- Mobile drawer / bottom nav ---------- */
.sd-drawer-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.65); backdrop-filter:blur(4px); z-index:299; opacity:0; pointer-events:none; transition:.25s; }
.sd-drawer-overlay.is-visible{ opacity:1; pointer-events:auto; }
.sd-drawer{ position:fixed; top:0; left:0; bottom:0; width:84%; max-width:320px; background:var(--bg-soft); border-right:1px solid var(--border); z-index:300; transform:translateX(-100%); transition:.3s var(--ease); padding:16px; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; touch-action:pan-y; box-shadow:0 0 80px rgba(22,229,127,.08), var(--shadow-lg); }
.sd-drawer::before{ content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--gradient); }
.sd-drawer.is-visible{ transform:translateX(0); }
.sd-drawer-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; padding-bottom:14px; border-bottom:1px solid var(--border); }
.sd-drawer-user{ display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--border-hi); border-radius:14px; padding:13px 14px; margin-bottom:18px; box-shadow:0 8px 20px rgba(0,0,0,.25); }
.sd-drawer-user-avatar{ width:42px; height:42px; border-radius:50%; background:var(--gradient); display:flex; align-items:center; justify-content:center; font-weight:800; color:#04140f; font-size:1.05rem; flex-shrink:0; box-shadow:0 0 0 3px rgba(22,229,127,.15), 0 6px 16px rgba(22,229,127,.3); }
.sd-drawer-user-name{ font-weight:800; font-size:.92rem; }
.sd-drawer-user-balance{ color:var(--accent); font-weight:700; font-size:.83rem; margin-top:2px; }
.sd-drawer-user-balance span{ color:var(--text-muted); font-weight:500; }
.sd-drawer-links{ display:flex; flex-direction:column; gap:2px; }
.sd-drawer-links small{ color:var(--text-faint); font-weight:800; text-transform:uppercase; font-size:.66rem; letter-spacing:.07em; margin:14px 0 8px; display:block; }
.sd-drawer-links a{ display:flex; align-items:center; gap:11px; padding:10px 10px; border-radius:10px; font-weight:600; font-size:.9rem; color:var(--text); transition:.15s; touch-action:manipulation; }
.sd-drawer-links a:hover{ background:var(--surface); transform:translateX(2px); }
.sd-drawer-danger{ color:var(--danger) !important; }
.sd-drawer-sep{ height:1px; background:var(--border); margin:14px 0; }

.sd-tabbar{ position:fixed; left:0; right:0; bottom:0; z-index:250; justify-content:space-around; background:rgba(10,11,13,.94); backdrop-filter:blur(14px); border-top:1px solid var(--border); padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px)); box-shadow:0 -6px 20px rgba(0,0,0,.35); }
.sd-tab{ flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; padding:6px 2px; color:var(--text-muted); font-size:.64rem; font-weight:700; border-radius:12px; position:relative; }
.sd-tab svg{ width:20px; height:20px; }
.sd-tab.on{ color:var(--accent-dark); }
.sd-tab.on::before{ content:''; position:absolute; top:0; left:50%; transform:translateX(-50%); width:22px; height:3px; border-radius:0 0 4px 4px; background:var(--gradient); }
.sd-tab-cart-wrap{ position:relative; }
.sd-tab-badge{ position:absolute; top:-6px; right:-10px; background:var(--gradient); color:#fff; font-size:.58rem; font-weight:800; min-width:15px; height:15px; border-radius:50%; display:flex; align-items:center; justify-content:center; }

/* ---------- Footer ---------- */
.sd-footer{ position:relative; margin-top:60px; padding:46px 18px 34px; border-top:1px solid var(--border); background:var(--bg-soft); overflow:hidden; }
.sd-footer::before{ content:''; position:absolute; top:0; left:0; right:0; height:2px; background:var(--gradient); opacity:.7; }
.sd-footer-inner{ position:relative; max-width:1180px; margin:0 auto; text-align:left; }
.sd-footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:28px; padding-bottom:28px; border-bottom:1px solid var(--border); margin-bottom:20px; }
@media (max-width: 800px){ .sd-footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 480px){ .sd-footer-grid{ grid-template-columns:1fr; } }
.sd-footer-col h5{ font-family:var(--font-display); font-size:.8rem; text-transform:uppercase; letter-spacing:.06em; color:var(--text-faint); margin-bottom:12px; }
.sd-footer-col{ display:flex; flex-direction:column; gap:9px; }
.sd-footer-col a{ position:relative; width:fit-content; color:var(--text-muted); font-weight:600; font-size:.87rem; transition:.15s var(--ease); }
.sd-footer-col a:hover{ color:var(--accent); transform:translateX(2px); }
.sd-footer-brand{ display:inline-flex; align-items:center; gap:8px; font-family:var(--font-display); font-weight:800; font-size:1.05rem; margin-bottom:10px; }
.sd-footer-about p{ margin:0 0 14px; max-width:280px; line-height:1.6; }
.sd-footer-social{ display:flex; gap:10px; flex-wrap:wrap; }
.sd-footer-social a{ display:inline-flex; align-items:center; gap:6px; padding:7px 13px; border-radius:999px; background:var(--surface); border:1px solid var(--border); font-weight:700; font-size:.8rem; color:var(--text); transition:.15s var(--ease); }
.sd-footer-social a:hover{ border-color:var(--border-hi); background:rgba(22,229,127,.08); transform:translateY(-1px); }
.sd-footer-bottom{ display:flex; flex-direction:column; gap:8px; color:var(--text-faint); font-size:.8rem; text-align:center; }
.sd-footer-dev a{ font-weight:700; color:var(--accent); }
.sd-footer-pay{ display:flex; justify-content:center; gap:8px; margin:16px 0; flex-wrap:wrap; }
.sd-footer-pay span{ padding:6px 13px; border-radius:999px; background:var(--surface); border:1px solid var(--border); font-size:.74rem; font-weight:700; color:var(--text-muted); }

.sd-wa-float{ position:fixed; right:20px; bottom:24px; width:54px; height:54px; border-radius:50%; background:#25d366; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 26px rgba(37,211,102,.35); z-index:260; animation:sdWaPulse 2.6s ease-out infinite; }
.sd-wa-float svg{ width:28px; height:28px; }
@keyframes sdWaPulse{
  0%{ box-shadow:0 10px 26px rgba(37,211,102,.35), 0 0 0 0 rgba(37,211,102,.5); }
  70%{ box-shadow:0 10px 26px rgba(37,211,102,.35), 0 0 0 14px rgba(37,211,102,0); }
  100%{ box-shadow:0 10px 26px rgba(37,211,102,.35), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Toast (light card style) ---------- */
#sdToastHost{ position:fixed; left:50%; bottom:88px; transform:translateX(-50%); z-index:9999; display:flex; flex-direction:column; gap:8px; align-items:center; }
.sd-toast{ background:var(--surface); border:1px solid var(--border); border-left:4px solid var(--accent); color:var(--text); padding:11px 18px; border-radius:11px; font-size:.85rem; font-weight:700; box-shadow:var(--shadow-lg); animation:sdToastIn .2s ease; }
.sd-toast.error{ border-left-color:var(--danger); color:#ff8fa3; }
.sd-toast.success{ border-left-color:var(--success); color:#4ce0a5; }
@keyframes sdToastIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:translateY(0); } }
@media (min-width: 901px){ #sdToastHost{ bottom:28px; } }

/* ---------- Loading bar ---------- */
#sdLoadingBar{ position:fixed; top:0; left:0; height:3px; width:0; background:var(--gradient); z-index:9998; transition:width .3s ease, opacity .3s ease; }

/* ---------- Fade-up / staggered reveal ---------- */
.fade-up{ animation:sdFadeUp .5s var(--ease) both; }
@keyframes sdFadeUp{ from{ opacity:0; transform:translateY(12px) scale(.98); } to{ opacity:1; transform:translateY(0) scale(1); } }
.svc-grid > .fade-up:nth-child(1),.categories-grid > .fade-up:nth-child(1){ animation-delay:.02s; }
.svc-grid > .fade-up:nth-child(2),.categories-grid > .fade-up:nth-child(2){ animation-delay:.06s; }
.svc-grid > .fade-up:nth-child(3),.categories-grid > .fade-up:nth-child(3){ animation-delay:.10s; }
.svc-grid > .fade-up:nth-child(4),.categories-grid > .fade-up:nth-child(4){ animation-delay:.14s; }
.svc-grid > .fade-up:nth-child(5){ animation-delay:.18s; }
.svc-grid > .fade-up:nth-child(6){ animation-delay:.22s; }
.svc-grid > .fade-up:nth-child(n+7){ animation-delay:.26s; }

/* ---------- Hero carousel ---------- */
.hc-wrap{ margin-top:6px; }
.hc-carousel{ position:relative; border-radius:var(--radius); overflow:hidden; aspect-ratio:16/7; background:var(--bg-soft); box-shadow:var(--shadow); }
@media (max-width: 700px){ .hc-carousel{ aspect-ratio:4/3; } }
.hc-track{ position:relative; width:100%; height:100%; }
.hc-slide{ position:absolute; inset:0; opacity:0; transition:opacity .5s ease; }
.hc-slide.hc-active{ opacity:1; }
.hc-slide-link{ position:relative; display:block; width:100%; height:100%; }
.hc-slide-bg{ position:absolute; inset:0; background-size:cover; background-position:center; filter:blur(18px) brightness(.7); transform:scale(1.1); }
.hc-slide-img{ position:relative; width:100%; height:100%; object-fit:cover; }
.hc-slide-overlay{ position:absolute; inset:0; background:linear-gradient(0deg,rgba(0,0,0,.75),rgba(0,0,0,.05) 60%); }
.hc-slide-content{ position:absolute; left:0; right:0; bottom:0; padding:24px; color:#fff; }
.hc-title{ font-family:var(--font-display); font-size:clamp(1.2rem,3.4vw,1.8rem); font-weight:800; margin-bottom:4px; }
.hc-subtitle{ color:rgba(255,255,255,.85); margin-bottom:10px; max-width:460px; }
.hc-btn{ display:inline-block; padding:9px 18px; border-radius:999px; background:var(--accent); color:#04140f; font-weight:800; font-size:.83rem; }
.hc-arrow{ position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; border-radius:50%; border:none; background:rgba(0,0,0,.5); color:#fff; font-size:1.3rem; backdrop-filter:blur(6px); }
.hc-arrow-prev{ left:12px; } .hc-arrow-next{ right:12px; }
.hc-dots{ position:absolute; bottom:10px; right:16px; display:flex; gap:6px; }

/* Legacy carousel markup used by the old catalog-array index.php variant */
.carousel{ position:relative; border-radius:var(--radius); overflow:hidden; aspect-ratio:16/7; box-shadow:var(--shadow); }
.carousel .slides{ position:relative; width:100%; height:100%; }
.carousel .slide{ position:absolute; inset:0; opacity:0; transition:opacity .5s; }
.carousel .slide:first-child{ opacity:1; }
.carousel .slide img{ width:100%; height:100%; object-fit:cover; }
.carousel .veil{ position:absolute; inset:0; background:linear-gradient(0deg,rgba(0,0,0,.75),transparent 60%); }
.carousel .copy{ position:absolute; left:0; right:0; bottom:0; padding:24px; color:#fff; }
.carousel .car-btn{ position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; border-radius:50%; border:none; background:rgba(0,0,0,.5); color:#fff; font-size:1.3rem; }
.carousel .prev{ left:12px; } .carousel .next{ right:12px; }
.carousel .dots{ position:absolute; bottom:10px; right:16px; display:flex; gap:6px; }
.carousel .dots i{ width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.55); font-style:normal; }
.carousel .dots i.on{ background:#fff; width:16px; border-radius:4px; }
.ticker{ padding:9px 16px; border-radius:999px; display:flex; align-items:center; gap:12px; overflow:hidden; background:var(--surface); border:1px solid var(--border); }
.ticker .live{ display:flex; align-items:center; gap:6px; font-weight:800; font-size:.75rem; color:var(--accent-dark); white-space:nowrap; }
.ticker .dot{ width:7px; height:7px; border-radius:50%; background:var(--accent); }
.mt{ margin-top:14px; }
.stack{ display:flex; flex-direction:column; }
.row.grow, .grow{ flex:1; }
.plan{ display:flex; align-items:center; justify-content:space-between; width:100%; padding:12px 16px; border-radius:11px; background:var(--surface); border:1.5px solid var(--border); color:var(--text); text-align:left; transition:.15s; }
.plan:hover{ border-color:var(--border-hi); }
.plan.on{ border-color:var(--accent); background:rgba(22,229,127,.06); }
.fld{ display:flex; flex-direction:column; gap:6px; font-size:.83rem; font-weight:700; color:var(--text-muted); }
.hint{ font-size:.78rem; color:var(--text-muted); }
