/* ============================================================
   WEBLITEX AI TOOLS STORE — Design System
   Dark navy #0B1020 · Purple #7C3AED · Blue #2563EB
   Font: Inter (Google Fonts)
   ============================================================ */

:root {
  --navy: #0B1020;
  --navy-2: #111832;
  --navy-3: #1A2140;
  --purple: #7C3AED;
  --purple-dark: #5B21B6;
  --purple-light: #A78BFA;
  --blue: #2563EB;
  --blue-light: #60A5FA;
  --grad: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,58,237,.12) 0%, rgba(37,99,235,.12) 100%);
  --white: #FFFFFF;
  --bg: #F6F7FB;
  --bg-2: #EFF1F7;
  --card: #FFFFFF;
  --text: #0F172A;
  --text-2: #475569;
  --text-3: #94A3B8;
  --border: #E6E9F2;
  --border-soft: #EEF0F6;
  --green: #16A34A;
  --green-bg: #E7F7EE;
  --red: #DC2626;
  --red-bg: #FDECEC;
  --amber: #D97706;
  --amber-bg: #FEF3E2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px -12px rgba(15,23,42,.12);
  --shadow-lg: 0 2px 4px rgba(15,23,42,.06), 0 20px 44px -16px rgba(15,23,42,.22);
  --shadow-glow: 0 8px 32px -8px rgba(124,58,237,.45);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 36px 0; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 12px; }
.muted { color: var(--text-2); }
.small { font-size: .85rem; }
.text-center { text-align: center; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 20px -6px rgba(124,58,237,.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-secondary {
  background: var(--white); color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); transform: translateY(-2px); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(.92); }
.btn-success { background: var(--green); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-2); padding: 10px 14px; }
.btn-ghost:hover { background: var(--bg-2); color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: .82rem; border-radius: 9px; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.btn-whatsapp { background: #22c55e; color: #fff; }
.btn-whatsapp:hover { filter: brightness(.94); transform: translateY(-2px); }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.badge-discount { background: var(--grad); color: #fff; }
.badge-featured { background: var(--amber-bg); color: var(--amber); }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-gray { background: var(--bg-2); color: var(--text-2); }
.badge-blue { background: #E3EDFF; color: var(--blue); }
.badge-purple { background: #EDE7FD; color: var(--purple-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(11,16,32,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  height: 68px; max-width: 1240px; margin: 0 auto; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; text-decoration: none !important; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 11px; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.25rem; color: #fff;
  box-shadow: 0 4px 14px -2px rgba(124,58,237,.6);
  overflow: hidden; flex: 0 0 auto;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand span em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-desktop { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  color: #C7CEE5; font-weight: 500; font-size: .93rem;
  padding: 9px 14px; border-radius: 10px; text-decoration: none !important;
  transition: all .15s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.08); }
.header-search { margin-left: auto; position: relative; }
.header-search input {
  width: 230px; padding: 10px 14px 10px 38px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07);
  color: #fff; font-family: var(--font); font-size: .88rem; outline: none;
  transition: all .18s ease;
}
.header-search input::placeholder { color: #8B94B5; }
.header-search input:focus { border-color: var(--purple-light); background: rgba(255,255,255,.11); width: 270px; }
.header-search .search-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #8B94B5; font-size: .9rem; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  color: #fff; cursor: pointer; font-size: 1.15rem; transition: all .15s ease;
  text-decoration: none !important;
}
.icon-btn:hover { background: rgba(255,255,255,.14); }
.count-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 999px; background: var(--grad);
  color: #fff; font-size: .68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--navy);
}
.account-wrap { position: relative; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 8px; z-index: 300; display: none;
}
.account-wrap.open .account-menu { display: block; animation: popIn .16s ease; }
.account-menu .menu-head { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); margin-bottom: 6px; }
.account-menu .menu-head b { display: block; color: var(--text); font-size: .95rem; }
.account-menu .menu-head span { font-size: .78rem; color: var(--text-3); }
.account-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 9px; color: var(--text-2); font-size: .9rem; font-weight: 500;
  text-decoration: none !important;
}
.account-menu a:hover { background: var(--bg); color: var(--purple); }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hamburger { display: none; }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
}
.mobile-nav .drawer {
  position: absolute; top: 0; left: 0; bottom: 0; width: 300px; max-width: 85vw;
  background: var(--navy-2); color: #fff; padding: 20px;
  transform: translateX(-105%); transition: transform .28s cubic-bezier(.2,.8,.25,1);
  overflow-y: auto;
}
.mobile-nav.open { pointer-events: auto; }
.mobile-nav.open .drawer { transform: none; }
.mobile-nav .scrim { position: absolute; inset: 0; background: rgba(4,7,18,.6); opacity: 0; transition: opacity .25s; }
.mobile-nav.open .scrim { opacity: 1; }
.drawer .nav-link { display: block; color: #C7CEE5; padding: 12px 14px; font-size: 1rem; }
.drawer-close { margin-left: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(124,58,237,.35), transparent 60%),
              radial-gradient(900px 420px at 10% 110%, rgba(37,99,235,.3), transparent 60%),
              var(--navy);
  border-radius: 0 0 34px 34px;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
  align-items: center; padding: 76px 20px 84px;
  max-width: 1240px; margin: 0 auto;
}
.hero h1 { margin-bottom: 16px; }
.hero p.lead { font-size: 1.12rem; color: #B9C2DE; max-width: 520px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; min-height: 380px; }
.ai-orb {
  position: absolute; inset: 0; margin: auto; width: 300px; height: 300px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #7C3AED, #2563EB, #06B6D4, #7C3AED);
  filter: blur(2px); animation: spin 14s linear infinite;
  opacity: .85;
}
.ai-orb::after {
  content: ''; position: absolute; inset: 26px; border-radius: 50%;
  background: var(--navy); filter: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-card {
  position: absolute; background: rgba(255,255,255,.96); color: var(--text);
  border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; z-index: 2;
  animation: float 5s ease-in-out infinite;
}
.ai-card .dot { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; flex: 0 0 auto; }
.ai-card b { display: block; font-size: .85rem; }
.ai-card span { font-size: .72rem; color: var(--text-3); }
.ai-card.c1 { top: 6%; left: 2%; }
.ai-card.c2 { top: 40%; right: 0; animation-delay: 1.4s; }
.ai-card.c3 { bottom: 8%; left: 12%; animation-delay: 2.6s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.ai-particles span {
  position: absolute; border-radius: 50%; background: var(--purple-light);
  opacity: .5; animation: float 7s ease-in-out infinite;
}

/* ---------- Trust badges ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--border-soft); }
.trust-inner { display: flex; gap: 12px; padding: 22px 20px; flex-wrap: wrap; justify-content: center; max-width: 1240px; margin: 0 auto; }
.trust-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  background: var(--bg); border: 1px solid var(--border-soft); border-radius: 14px;
  font-weight: 600; font-size: .9rem;
}
.trust-item .t-ico { font-size: 1.4rem; }

/* ---------- Product cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.tool-card {
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tool-card .card-media {
  position: relative; height: 150px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a2140 0%, #2b1a5e 55%, #1e3a8a 100%);
  overflow: hidden;
}
.tool-card .card-media img { width: 76px; height: 76px; object-fit: contain; border-radius: 18px; background: #fff; padding: 8px; box-shadow: var(--shadow); position: relative; z-index: 2; }
.tool-card .card-media .fallback-logo {
  width: 76px; height: 76px; border-radius: 18px; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; color: #fff; position: relative; z-index: 2;
}
.card-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; z-index: 3; }
.tool-card .card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tool-card .cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--purple); }
.tool-card h3 { margin: 0; font-size: 1.02rem; }
.tool-card h3 a { color: var(--text); text-decoration: none !important; }
.tool-card h3 a:hover { color: var(--purple); }
.tool-card .desc { font-size: .85rem; color: var(--text-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rating-row { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-3); }
.stars { color: #F59E0B; letter-spacing: 1px; font-size: .85rem; }
.stars .off { color: #E2E8F0; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 8px; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.price-old { font-size: .88rem; color: var(--text-3); text-decoration: line-through; }
.price-save { font-size: .75rem; font-weight: 700; color: var(--green); }
.card-actions { display: flex; gap: 10px; margin-top: 6px; }
.card-actions .btn { flex: 1; padding: 10px 8px; font-size: .85rem; }

/* ---------- Section headers ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.sec-head p { margin: 4px 0 0; color: var(--text-2); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); max-width: 560px; margin: 0 auto;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; }
.form-control {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: var(--font); font-size: .95rem; color: var(--text); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease; outline: none;
}
.form-control:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
textarea.form-control { min-height: 110px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-hint { font-size: .78rem; color: var(--text-3); margin-top: 5px; }
.form-error { font-size: .8rem; color: var(--red); margin-top: 5px; display: none; }
.form-group.invalid .form-control { border-color: var(--red); }
.form-group.invalid .form-error { display: block; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.check-row input { width: 18px; height: 18px; accent-color: var(--purple); }

/* ---------- Store layout ---------- */
.store-layout { display: grid; grid-template-columns: 270px 1fr; gap: 26px; align-items: start; }
.filters {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 88px;
}
.filters h3 { font-size: .95rem; margin-bottom: 14px; }
.filter-block { padding: 14px 0; border-top: 1px solid var(--border-soft); }
.filter-block:first-of-type { border-top: none; padding-top: 0; }
.filter-block label.fl { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); display: block; margin-bottom: 10px; }
.filter-cat { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: .9rem; cursor: pointer; color: var(--text-2); }
.filter-cat:hover { color: var(--purple); }
.filter-cat input { accent-color: var(--purple); width: 16px; height: 16px; }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input { width: 100%; }
.toolbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.toolbar .result-count { font-size: .88rem; color: var(--text-2); }
.toolbar .spacer { flex: 1; }
.filter-toggle-btn { display: none; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.page-btn {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 11px;
  border: 1px solid var(--border); background: #fff; font-weight: 600; font-size: .9rem;
  cursor: pointer; color: var(--text-2); transition: all .15s;
}
.page-btn:hover:not(:disabled) { border-color: var(--purple); color: var(--purple); }
.page-btn.active { background: var(--grad); color: #fff; border-color: transparent; }
.page-btn:disabled { opacity: .4; cursor: default; }

/* ---------- Skeletons ---------- */
.skeleton {
  background: linear-gradient(90deg, #E9ECF3 25%, #F4F6FA 50%, #E9ECF3 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 10px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.skel-card .skeleton.img { height: 150px; border-radius: 0; }
.skel-card .skel-body { padding: 18px; display: grid; gap: 10px; }

/* ---------- Empty state ---------- */
.empty {
  text-align: center; padding: 60px 24px; background: #fff;
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty .e-ico { font-size: 3rem; margin-bottom: 12px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--text-2); margin-bottom: 18px; }

/* ---------- Toasts ---------- */
.toast-root { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast {
  background: var(--navy-2); color: #fff; border-radius: 12px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.1); animation: toastIn .25s ease;
  font-size: .9rem;
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
.toast.info { border-left: 4px solid var(--blue-light); }
.toast .t-ico { font-size: 1.2rem; }
.toast .t-close { margin-left: auto; cursor: pointer; opacity: .6; background: none; border: none; color: #fff; font-size: 1rem; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }

/* ---------- Modal ---------- */
.modal-root:empty { display: none; }
.modal-scrim {
  position: fixed; inset: 0; z-index: 9000; background: rgba(4,7,18,.62);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: #fff; border-radius: 18px; padding: 28px; max-width: 440px; width: 100%;
  box-shadow: var(--shadow-lg); animation: popIn .2s ease;
}
.modal-box h3 { margin-bottom: 8px; }
.modal-box p { color: var(--text-2); font-size: .92rem; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

/* ---------- Tool detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.detail-main { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.detail-banner { height: 230px; background: linear-gradient(135deg, #1a2140, #2b1a5e 55%, #1e3a8a); display: flex; align-items: center; justify-content: center; position: relative; }
.detail-banner img { max-height: 150px; max-width: 70%; object-fit: contain; }
.detail-body { padding: 32px; }
.detail-head { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.detail-logo { width: 84px; height: 84px; border-radius: 20px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; color: #fff; flex: 0 0 auto; overflow: hidden; }
.detail-logo img { width: 100%; height: 100%; object-fit: cover; }
.detail-desc { color: var(--text-2); }
.feature-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.feature-list .f-check { color: var(--green); font-weight: 800; flex: 0 0 auto; }
.buy-box {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); position: sticky; top: 88px;
}
.buy-box .price-big { font-size: 2rem; font-weight: 800; }
.buy-box .buy-row { display: grid; gap: 10px; margin-top: 18px; }
.trust-mini { display: grid; gap: 8px; margin-top: 18px; font-size: .82rem; color: var(--text-2); }
.trust-mini div { display: flex; gap: 8px; align-items: center; }

/* Accordion */
.accordion { border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc-item { border-bottom: 1px solid var(--border-soft); }
.acc-item:last-child { border-bottom: none; }
.acc-q {
  width: 100%; background: none; border: none; text-align: left; cursor: pointer;
  padding: 18px 20px; font-family: var(--font); font-size: .98rem; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.acc-q:hover { color: var(--purple); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-a .acc-inner { padding: 0 20px 20px; color: var(--text-2); font-size: .93rem; }
.acc-item.open .acc-a { max-height: 600px; }
.acc-item.open .acc-q .acc-ico { transform: rotate(45deg); }
.acc-ico { transition: transform .2s; color: var(--purple); font-size: 1.3rem; }

/* Reviews */
.review { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 18px; margin-bottom: 14px; background: #fff; }
.review .r-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.review .r-name { font-weight: 600; font-size: .92rem; }
.review .r-date { font-size: .76rem; color: var(--text-3); }
.review p { font-size: .92rem; color: var(--text-2); margin: 8px 0 0; }
.verified { font-size: .7rem; font-weight: 700; color: var(--green); background: var(--green-bg); padding: 3px 9px; border-radius: 999px; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
.cart-item {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px; align-items: center;
}
.cart-item .ci-logo { width: 64px; height: 64px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; overflow: hidden; }
.cart-item .ci-logo img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-info b { display: block; }
.cart-item .ci-price { font-size: .85rem; color: var(--text-2); }
.qty-ctrl { display: flex; align-items: center; gap: 2px; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-ctrl button { width: 32px; height: 34px; border: none; background: var(--bg); cursor: pointer; font-size: 1rem; font-weight: 700; color: var(--text-2); }
.qty-ctrl button:hover { background: var(--bg-2); color: var(--purple); }
.qty-ctrl span { min-width: 34px; text-align: center; font-weight: 700; font-size: .9rem; }
.summary-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 88px; }
.sum-row { display: flex; justify-content: space-between; font-size: .92rem; padding: 7px 0; color: var(--text-2); }
.sum-row.total { font-size: 1.15rem; font-weight: 800; color: var(--text); border-top: 1px solid var(--border-soft); margin-top: 10px; padding-top: 14px; }
.sum-row .disc { color: var(--green); font-weight: 600; }
.coupon-box { display: flex; gap: 8px; margin: 14px 0; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; background: var(--green-bg); border-radius: 10px; padding: 10px 14px; margin: 14px 0; font-size: .88rem; font-weight: 600; color: var(--green); }
.coupon-applied button { background: none; border: none; color: var(--red); cursor: pointer; font-weight: 700; }

/* ---------- Checkout ---------- */
.pay-method {
  border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px;
  display: flex; gap: 14px; align-items: center; cursor: pointer; margin-bottom: 12px;
  transition: all .15s ease; background: #fff;
}
.pay-method:hover { border-color: var(--purple-light); }
.pay-method.selected { border-color: var(--purple); background: #FAF7FF; box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.pay-method input { accent-color: var(--purple); width: 19px; height: 19px; }
.pay-method .pm-name { font-weight: 700; }
.pay-method .pm-desc { font-size: .82rem; color: var(--text-2); }
.instruction-panel { background: #FAF7FF; border: 1px dashed var(--purple-light); border-radius: var(--radius-sm); padding: 18px; margin: 16px 0; font-size: .9rem; white-space: pre-wrap; }

/* ---------- Order timeline ---------- */
.timeline { position: relative; padding-left: 28px; margin: 18px 0; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 8px 0 8px 6px; }
.tl-item::before { content: ''; position: absolute; left: -26px; top: 13px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--green); }
.tl-item b { font-size: .9rem; display: block; }
.tl-item span { font-size: .78rem; color: var(--text-3); }
.status-pill { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: capitalize; }
.st-pending { background: var(--amber-bg); color: var(--amber); }
.st-completed, .st-paid, .st-active, .st-approved { background: var(--green-bg); color: var(--green); }
.st-cancelled, .st-rejected, .st-failed, .st-suspended { background: var(--red-bg); color: var(--red); }
.st-processing, .st-read { background: #E3EDFF; color: var(--blue); }
.st-new { background: #EDE7FD; color: var(--purple-dark); }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.stat-card .s-label { font-size: .8rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.stat-card .s-value { font-size: 1.7rem; font-weight: 800; margin-top: 6px; white-space: nowrap; }
.stat-card .s-ico { position: absolute; right: 16px; top: 16px; font-size: 1.6rem; opacity: .25; }
.card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 22px; }
.card h3 { margin-bottom: 16px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; padding: 13px 16px; background: var(--bg); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 700; white-space: nowrap; }
.tbl td { padding: 13px 16px; border-top: 1px solid var(--border-soft); vertical-align: middle; }
.tbl tr:hover td { background: #FAFBFF; }
.tbl .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tbl-thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--bg-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #B9C2DE; margin-top: 70px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding: 56px 20px 34px; max-width: 1240px; margin: 0 auto; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer a { color: #B9C2DE; font-size: .9rem; display: block; padding: 5px 0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px; text-align: center; font-size: .82rem; max-width: 1240px; margin: 0 auto; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; padding: 0; font-size: 1rem; }
.socials a:hover { background: var(--grad); }

/* ---------- Categories / misc pages ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px 20px; text-align: center; transition: all .2s ease; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--purple-light); text-decoration: none; }
.cat-card .c-ico { font-size: 2.2rem; margin-bottom: 10px; }
.cat-card h3 { font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.cat-card span { font-size: .8rem; color: var(--text-3); }
.page-hero { background: var(--navy); color: #fff; padding: 56px 20px; text-align: center; border-radius: 0 0 30px 30px; margin-bottom: 40px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 300px at 50% -20%, rgba(124,58,237,.4), transparent 65%); }
.page-hero h1, .page-hero p { position: relative; }
.page-hero p { color: #B9C2DE; max-width: 640px; margin: 10px auto 0; }
.prose { max-width: 800px; margin: 0 auto; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 36px; }
.prose h2 { margin-top: 28px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.testi p { font-size: .92rem; color: var(--text-2); font-style: italic; }
.testi .t-who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testi .t-who .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testi .t-who b { display: block; font-size: .9rem; }
.testi .t-who span { font-size: .78rem; color: var(--text-3); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 28px 24px; text-align: center; transition: all .2s; }
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.why-card .w-ico { font-size: 2.4rem; margin-bottom: 12px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-plan { background: #fff; border: 2px solid var(--border-soft); border-radius: 18px; padding: 32px 28px; display: flex; flex-direction: column; position: relative; transition: all .2s; }
.price-plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-plan.popular { border-color: var(--purple); box-shadow: var(--shadow-glow); }
.price-plan .pop-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .72rem; font-weight: 800; padding: 5px 16px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.price-plan .p-amount { font-size: 2.4rem; font-weight: 800; margin: 10px 0; }
.price-plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; font-size: .9rem; color: var(--text-2); }
.price-plan ul li::before { content: '✓ '; color: var(--green); font-weight: 800; }

/* ---------- Notifications ---------- */
.notif { display: flex; gap: 14px; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 12px; align-items: flex-start; }
.notif.unread { border-left: 4px solid var(--purple); background: #FCFAFF; }
.notif .n-ico { font-size: 1.3rem; }
.notif .n-time { font-size: .76rem; color: var(--text-3); margin-left: auto; white-space: nowrap; }

/* ---------- Access page ---------- */
.access-box { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.access-instructions { background: var(--bg); border-radius: var(--radius-sm); padding: 20px; white-space: pre-wrap; font-size: .93rem; margin: 16px 0; }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-shell { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar {
  width: 258px; flex: 0 0 auto; background: var(--navy); color: #B9C2DE;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 300;
  display: flex; flex-direction: column;
}
.admin-brand { padding: 22px 20px; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-nav { padding: 14px 12px; flex: 1; }
.admin-nav .nav-sec { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6B7599; padding: 14px 12px 6px; }
.admin-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: #B9C2DE; font-size: .9rem; font-weight: 500; text-decoration: none !important; margin-bottom: 2px;
}
.admin-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-link.active { background: var(--grad); color: #fff; box-shadow: 0 4px 14px -4px rgba(124,58,237,.6); }
.admin-link .a-ico { font-size: 1.1rem; width: 22px; text-align: center; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--border-soft); padding: 14px 28px;
  display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 250;
}
.admin-topbar h2 { margin: 0; font-size: 1.25rem; }
.admin-topbar .spacer { flex: 1; }
.admin-content { padding: 28px; max-width: 1280px; width: 100%; margin: 0 auto; }
.admin-burger { display: none; }
.chart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 22px; }
.chart-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.chart-card h3 { margin-bottom: 14px; font-size: 1rem; }
.chart-wrap { position: relative; height: 280px; }
.chart-wrap.sm { height: 240px; }
.top-tools { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.top-tools li { display: flex; justify-content: space-between; font-size: .9rem; padding: 10px 14px; background: var(--bg); border-radius: 10px; }
.top-tools li b { color: var(--purple); }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-form-grid .full { grid-column: 1 / -1; }
.file-preview { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.file-preview img { width: 90px; height: 90px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filter-bar .form-control { width: auto; }
.scr-thumb { width: 90px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; }
.json-hint { font-size: .76rem; color: var(--text-3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .header-search input { width: 170px; }
  .header-search input:focus { width: 200px; }
}
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .header-search { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 20px 64px; }
  .hero-visual { min-height: 300px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid, .cart-layout, .store-layout { grid-template-columns: 1fr; }
  .buy-box, .summary-card, .filters { position: static; }
  .filters { display: none; }
  .filters.open { display: block; position: fixed; inset: 0; z-index: 500; border-radius: 0; overflow-y: auto; padding: 24px; }
  .filter-toggle-btn { display: inline-flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .why-grid, .testi-grid, .pricing-grid { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-105%); transition: transform .25s ease; }
  .admin-shell.nav-open .admin-sidebar { transform: none; }
  .admin-burger { display: flex; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  /* Tables → cards */
  .table-wrap { border: none; background: none; overflow: visible; }
  table.tbl.resp, table.tbl.resp tbody, table.tbl.resp tr, table.tbl.resp td { display: block; width: 100%; }
  table.tbl.resp thead { display: none; }
  table.tbl.resp tr { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 6px 0; }
  table.tbl.resp td { border: none; padding: 8px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
  table.tbl.resp td::before { content: attr(data-l); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .cart-item { flex-wrap: wrap; }
  .toolbar { gap: 8px; }
  .admin-content { padding: 18px 14px; }
  .form-card { padding: 22px 18px; }

  /* ---- Admin mobile fixes ---- */
  /* Topbar: hide username so title + actions fit on one line */
  .admin-topbar .small.muted { display: none; }
  .admin-topbar h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.05rem; }
  .admin-topbar { gap: 10px; }
  /* Stat cards: keep value on one line, smaller icon that doesn't overlap label */
  .stat-card { padding: 14px 12px; }
  .s-ico { font-size: 1.15rem; top: 12px; right: 12px; }
  .s-label { font-size: .66rem; padding-right: 30px; }
  .s-value { font-size: 1.25rem; white-space: nowrap; }
  /* Filter bars: controls go full-width for easy tapping */
  .filter-bar .form-control { flex: 1 1 100%; min-width: 0; }
  .filter-bar .btn { flex: 1 1 auto; }
  /* Modals never overflow small screens */
  .modal-box { max-height: 92vh; overflow-y: auto; padding: 22px 18px; }
  /* Prevent iOS auto-zoom on focus */
  .form-control { font-size: 16px; }
}
