/* AdZoom storefront — purple app-shell theme, mobile-first. */
:root {
  --bg: #F9FAFB;
  --card: #ffffff;
  --ink: #111827;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --brand: #7C3AED;
  --brand-d: #6D28D9;
  --brand-soft: #F3E8FF;
  --line: #E5E7EB;
  --ok: #15803D;
  --ok-bg: #F0FDF4;
  --bad: #E11D48;
  --bad-bg: #FFF1F2;
  --info: #1D4ED8;
  --info-bg: #EFF6FF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 16px -4px rgba(16,24,40,.08);
  --shadow-lg: 0 12px 32px -8px rgba(124,58,237,.22), 0 2px 6px rgba(16,24,40,.06);
  --font: Inter, "Noto Sans Bengali", "Hind Siliguri", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 15px;
}
a { color: var(--brand); }
img { max-width: 100%; }

/* ---------- App shell ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(17,24,39,.45);
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
body.nav-open .scrim { opacity: 1; pointer-events: auto; }

.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
  width: 280px; background: var(--card);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 20px 16px;
  transform: translateX(-105%);
  transition: transform .25s ease;
  overflow-y: auto;
}
body.nav-open .sidebar { transform: none; }

.sbrand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 20px; letter-spacing: -.01em;
  padding: 4px 8px 18px;
}
.slogo {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #4F46E5);
  color: #fff; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px -2px rgba(124,58,237,.4);
}
.seye {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--faint);
  padding: 14px 12px 8px;
}
.snav { display: flex; flex-direction: column; gap: 4px; }
.snav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  color: #374151; text-decoration: none; font-weight: 600; font-size: 14.5px;
}
.snav a svg { width: 20px; height: 20px; color: var(--faint); flex: 0 0 20px; }
.snav a:hover { background: #F3F4F6; }
.snav a.on { background: var(--brand-soft); color: var(--brand); }
.snav a.on svg { color: var(--brand); }
.sfoot { margin-top: auto; padding-top: 20px; }
.sfoot .btn { width: 100%; }

.main { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
}
.hamb {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
}
.hamb svg { width: 20px; height: 20px; }
.ptitle {
  font-weight: 800; font-size: 17px; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toplink {
  margin-left: 8px; display: inline-flex; align-items: center; gap: 7px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13.5px;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
}
.toplink svg { width: 15px; height: 15px; }
.toplink:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- Header dropdowns (currency + language) ---------- */
.head-dd { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.dd { position: relative; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 12px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink);
  cursor: pointer; white-space: nowrap;
}
.dd-btn:hover { border-color: var(--brand); color: var(--brand); }
.dd-flag { font-size: 16px; line-height: 1; }
.dd-sym { color: var(--muted); font-weight: 700; }
.dd-code { font-weight: 800; letter-spacing: .02em; }
.dd-chev { font-size: 10px; color: var(--faint); }
.only-narrow { display: none; }
.dd-panel {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  width: 300px; max-width: calc(100vw - 32px);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.dd-panel[hidden] { display: none; }
.dd.open .dd-panel { display: block; }
.dd-search {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 11px 14px; font: inherit; font-size: 14px; background: #fff; color: var(--ink);
}
.dd-search:focus { outline: none; box-shadow: none; }
.dd-list { max-height: min(56vh, 340px); overflow-y: auto; padding: 6px; }
.dd-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink);
}
.dd-row:hover { background: #F3F4F6; }
.dd-row.on { background: var(--brand-soft); }
.dd-row .dd-flag { font-size: 19px; }
.dd-main { flex: 1; min-width: 0; }
.dd-main b { display: block; font-size: 14px; }
.dd-main small { display: block; font-size: 12.5px; color: var(--muted); }
.dd-check { color: var(--brand); font-weight: 800; }
.dd-foot {
  border-top: 1px solid var(--line); padding: 10px 14px;
  font-size: 12.5px; color: var(--muted);
}
@media (max-width: 560px) {
  .dd-btn { padding: 7px 10px; font-size: 13px; }
  .dd-btn .dd-sym, .dd-btn .dd-label { display: none; }
  .dd-btn .only-narrow { display: inline; }
  .dd-chev { display: none; }
}

.content { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px 16px 44px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 20px 16px 34px;
  color: var(--muted); font-size: 13px; text-align: center;
  background: var(--card);
}

@media (min-width: 1024px) {
  .sidebar { transform: none; }
  .scrim { display: none; }
  .hamb { display: none; }
  .toplink { display: none; }
  .main { margin-left: 280px; }
  .content { padding: 28px 32px 56px; }
}

/* ---------- Homepage ---------- */
.pagehead { padding: 10px 0 4px; }
.pagehead h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.grad {
  background: linear-gradient(92deg, var(--brand), #2563EB);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tag { color: var(--muted); margin: 8px 0 0; max-width: 640px; font-size: 15px; }
.countline { color: var(--faint); font-size: 13px; margin: 14px 0 0; font-weight: 600; }

.banner {
  margin: 18px 0 4px;
  background: linear-gradient(120deg, #6D28D9 0%, var(--brand) 55%, #8B5CF6 100%);
  border-radius: 18px; color: #fff;
  padding: 20px;
  display: grid; gap: 14px;
  box-shadow: 0 10px 28px -10px rgba(124,58,237,.5);
}
.bitem { display: flex; gap: 12px; align-items: flex-start; }
.bitem .bicon {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
  background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
}
.bitem .bicon svg { width: 20px; height: 20px; }
.bitem b { display: block; font-size: 14.5px; }
.bitem small { display: block; font-weight: 400; opacity: .85; font-size: 12.5px; }
@media (min-width: 640px) { .banner { grid-template-columns: repeat(3, 1fr); padding: 22px 24px; } }

.empty {
  background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 44px 24px; margin: 24px 0;
  text-align: center; color: var(--muted);
}

/* ---------- Product cards (dense grid) ---------- */
.grid {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  padding: 18px 0 10px;
}
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1400px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.pcard {
  position: relative; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pcard::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), #A78BFA);
  opacity: 0; transition: opacity .18s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard:hover::before { opacity: 1; }
.pflag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 800; line-height: 1;
  color: #92400E; background: #FEF3C7;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ptile {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.ptile svg { width: 22px; height: 22px; }
.pcard h3 {
  margin: 2px 0 0; font-size: 15.5px; line-height: 1.35; min-height: 42px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard h3 a { color: var(--ink); text-decoration: none; }
.pcard h3 a:hover { color: var(--brand); }
.pdesc {
  margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 40px;
}
.prow { display: flex; align-items: baseline; justify-content: flex-start; gap: 6px; flex-wrap: wrap; }
.pprice { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.punit { font-size: 13px; font-weight: 600; color: var(--muted); }
.pmeta { font-size: 12.5px; color: var(--faint); }
.pmeta .pid { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; color: var(--muted); }
.pbullets {
  list-style: none; margin: 2px 0 0; padding: 0;
  display: grid; gap: 5px;
}
.pbullets li { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; color: #374151; line-height: 1.45; }
.pbullets svg { width: 14px; height: 14px; color: var(--ok); flex: 0 0 14px; margin-top: 2px; }

/* Stock pills — always fully readable, never clipped */
.spill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; line-height: 1;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}
.spill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 7px; }
.spill.ok { background: var(--ok-bg); color: var(--ok); }
.spill.bad { background: var(--bad-bg); color: var(--bad); }
.spill.info { background: var(--brand-soft); color: var(--brand-d); }

.pcard .btn { margin-top: auto; width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: 0; border-radius: 999px;
  padding: 11px 24px; font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background .15s ease, transform .08s ease;
}
.btn:hover { background: var(--brand-d); color: #fff; }
.btn:active { transform: scale(.98); }
.btn.sec { background: #EEF0F6; color: var(--ink); }
.btn.sec:hover { background: #E2E5EE; color: var(--ink); }
.btn.danger { background: var(--bad); }
.btn.danger:hover { background: #BE123C; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.sm { padding: 8px 16px; font-size: 13.5px; }
.btn svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* ---------- Detail / form cards ---------- */
.detail, .form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
  padding: 24px; margin: 20px 0 40px;
}
.detail h1, .form h1 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.015em; }
.form { max-width: 660px; }
.detail .price { font-size: 26px; font-weight: 800; margin: 14px 0; letter-spacing: -.01em; }
@media (max-width: 640px) { .detail, .form { padding: 18px; } .detail h1, .form h1 { font-size: 20px; } }

label.f { display: block; margin: 16px 0 6px; font-weight: 600; font-size: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=password], textarea, select {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
textarea { min-height: 90px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.err {
  background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C;
  padding: 12px 16px; border-radius: 10px; margin: 14px 0; font-size: 14px;
}
.okmsg {
  background: var(--ok-bg); border: 1px solid #BBF7D0; color: var(--ok);
  padding: 12px 16px; border-radius: 10px; margin: 14px 0; font-size: 14px; font-weight: 600;
}

/* Payment gateway radio cards */
.gw {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin: 10px 0;
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gw:hover { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,58,237,.08); }
.gw input { margin-top: 4px; accent-color: var(--brand); width: 17px; height: 17px; }
.gw b { display: block; font-size: 15px; }
.gw small { color: var(--muted); font-size: 13px; }
.gw .amt { margin-left: auto; white-space: nowrap; font-weight: 800; }

/* Delivered keys */
.keys {
  background: #0F172A; color: #E2E8F0; border-radius: 12px; padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14.5px;
  white-space: pre-wrap; word-break: break-all; margin: 14px 0;
}
.copybtn { margin-top: 4px; }

/* Generic tables */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
table.t th, table.t td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.refrow td { color: var(--muted); }
@media (max-width: 640px) {
  table.t { display: block; overflow-x: auto; }
  table.t th, table.t td { white-space: nowrap; }
}

/* Status badges */
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.badge.pending { background: #FEF9C3; color: #854D0E; }
.badge.paid { background: #DCFCE7; color: #166534; }
.badge.failed, .badge.cancelled { background: #FEE2E2; color: #991B1B; }

/* ---------- Search + filters ---------- */
.searchbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
  padding: 10px; margin: 18px 0 12px;
}
.searchbar .sicon { color: var(--faint); display: flex; flex: 0 0 auto; padding-left: 4px; }
.searchbar .sicon svg { width: 19px; height: 19px; }
.searchbar input[type=text] {
  flex: 1 1 160px; min-width: 0; border: 0; padding: 8px 4px; box-shadow: none !important;
}
.searchbar input[type=text]:focus { outline: none; }
.searchbar .btn { flex: 0 0 auto; padding: 9px 20px; }
.sortwrap {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.sortwrap select { width: auto; padding: 8px 10px; font-size: 13.5px; }
@media (max-width: 560px) {
  .searchbar .btn { width: 100%; order: 3; }
  .sortwrap { width: 100%; order: 4; }
  .sortwrap select { flex: 1; }
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .cnt {
  font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  background: #F3F4F6; color: var(--muted);
}
.chip.on .cnt { background: rgba(255,255,255,.22); color: #fff; }

/* Dense category filter strip (homepage + category pages). */
.catstrip { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.catsec .catstrip { margin-top: 0; }

/* ---------- How it works ---------- */
.howto { margin: 30px 0 8px; }
.howto h2 { font-size: 19px; margin: 0 0 14px; letter-spacing: -.01em; }
.howto-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .howto-grid { grid-template-columns: repeat(3, 1fr); } }
.hstep {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; display: flex; gap: 12px; align-items: flex-start;
}
.hnum {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.hstep b { display: block; font-size: 14.5px; }
.hstep small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- Product detail ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin: 6px 0 14px; overflow-wrap: anywhere; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs .here { color: var(--ink); font-weight: 600; }
.dhead { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 18px; }
.dhead .ptile { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 15px; }
.dhead .ptile svg { width: 28px; height: 28px; }
.dhead h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; line-height: 1.25; overflow-wrap: anywhere; }
.dhead-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.dlabel { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.dgrid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) { .dgrid { grid-template-columns: minmax(0, 1fr) 320px; } }
.dsec {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
}
.dsec h2 { font-size: 16.5px; margin: 0 0 8px; }
.dsec p { margin: 0; color: #374151; overflow-wrap: anywhere; }
.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 9px; align-items: center; font-size: 14px; color: #374151; }
.ticks svg { width: 17px; height: 17px; color: var(--ok); flex: 0 0 17px; }
.dsteps { margin: 8px 0 0; padding-left: 20px; color: #374151; display: grid; gap: 8px; font-size: 14.5px; }
.buybox {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 20px;
}
@media (min-width: 860px) { .buybox { position: sticky; top: 76px; } }
.bprice { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.bunit { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.bstock { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.qtyrow { display: flex; gap: 8px; align-items: stretch; }
.qtyrow input[type=number] { text-align: center; min-width: 0; }
.qtybtn {
  width: 44px; flex: 0 0 44px; border: 1px solid var(--line); background: #F9FAFB;
  border-radius: 10px; font-size: 20px; font-weight: 700; cursor: pointer; color: var(--ink);
}
.qtybtn:hover { border-color: var(--brand); color: var(--brand); }
.btotal { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.btotal b { color: var(--ink); }
.buybox .btn { width: 100%; margin-top: 4px; }
.bpay { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; font-size: 13px; color: var(--muted); }
.bpay b { display: block; color: var(--ink); font-size: 13.5px; margin-top: 2px; }
.bnote { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.bnote svg { width: 15px; height: 15px; flex: 0 0 15px; }
.related { margin: 8px 0 4px; }
.related h2 { font-size: 19px; margin: 0 0 4px; letter-spacing: -.01em; }
.related .grid { padding-top: 12px; }

/* ---------- Footer ---------- */
.footer { text-align: left; }
.fgrid {
  display: grid; gap: 22px; max-width: 1200px; margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) { .fgrid { grid-template-columns: 1.4fr 1fr 1fr; } }
.fcol b { display: block; font-size: 14px; margin-bottom: 8px; color: var(--ink); }
.fcol p { margin: 0; font-size: 13px; }
.fcol a { display: block; color: var(--muted); text-decoration: none; font-size: 13.5px; padding: 3px 0; }
.fcol a:hover { color: var(--brand); }
.fpay { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.fpay span {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: #F3F4F6; color: #374151; white-space: nowrap;
}
.fbar {
  max-width: 1200px; margin: 20px auto 0; padding-top: 14px;
  border-top: 1px solid var(--line); text-align: center; font-size: 13px;
}

/* ---------- Categories, stars, reviews ---------- */
.catsec { margin: 26px 0 4px; }
.catsec h2 { font-size: 19px; margin: 0 0 14px; letter-spacing: -.01em; }
.catgrid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .catgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.catcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.catcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.catcard b { font-size: 15.5px; }
.catcard .catcnt { font-size: 12.5px; font-weight: 700; color: var(--brand); }
.catcard small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.stars { color: #F59E0B; letter-spacing: 1px; white-space: nowrap; }
.stxt { color: var(--muted); font-size: 13px; font-weight: 600; }
.prev { font-size: 13.5px; }
.pwar {
  display: flex; gap: 7px; align-items: center;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.pwar svg { width: 14px; height: 14px; color: var(--brand); flex: 0 0 14px; }
.bwar {
  display: flex; gap: 8px; align-items: center; margin-top: 10px;
  font-size: 13.5px; color: var(--muted);
  background: var(--brand-soft); border-radius: 10px; padding: 9px 12px;
}
.bwar svg { width: 16px; height: 16px; color: var(--brand); flex: 0 0 16px; }
.bwar b { color: var(--ink); }
.sortbar { display: flex; justify-content: flex-end; margin: 6px 0 2px; }
.revsec { margin-top: 16px; }
.revagg { margin: 0 0 6px; }
.rev { border-top: 1px solid var(--line); padding: 14px 0 4px; overflow-wrap: anywhere; }
.rev:first-of-type { border-top: 0; }
.rev-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.rev-head span:last-child { color: var(--faint); font-size: 12.5px; }
.starrate { display: flex; gap: 14px; flex-wrap: wrap; margin: 2px 0 4px; }
.starrate label { font-weight: 700; color: #F59E0B; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.starrate input { accent-color: var(--brand); }

/* ---------- Tickets + docs ---------- */
.tmsg {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin: 0 0 12px; overflow-wrap: anywhere; background: #fff;
}
.tmsg.staff { background: #EFF6FF; border-color: #BFDBFE; }
.tmsg-head { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.tmsg-head b { color: var(--ink); font-size: 14px; }
.badge.open { background: #FEF9C3; color: #854D0E; }
.badge.answered { background: #DBEAFE; color: #1E40AF; }
.badge.closed { background: #F3F4F6; color: #6B7280; }
.doc h2 { font-size: 17px; margin: 22px 0 6px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #374151; }
.doc ul { padding-left: 20px; display: grid; gap: 8px; }

/* ---------- Language switcher / warnings / contact strip ---------- */
.langswitch { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-left: 12px; }
.langswitch a {
  font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: none;
  padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; line-height: 1.4;
}
.langswitch a:hover { color: var(--brand); border-color: var(--brand); }
.langswitch a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.warnbar {
  background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E;
  border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-size: 14px; font-weight: 600;
}
.contactstrip {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 14px 16px; margin-top: 24px; font-size: 14.5px;
}
.contactstrip span { font-weight: 700; margin-right: 8px; }

/* Customer account pages (Phase 1) */
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat b { display: block; font-size: 22px; }
.stat small { color: var(--muted); }
.checkline { display: flex; gap: 8px; align-items: center; margin: 10px 0; font-size: 14px; }
.checkline input { width: auto; margin: 0; }
@media (max-width: 640px) { .statgrid { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .toplink { padding: 6px 6px; } }

/* ---------- Minimal RTL support (Arabic) ---------- */
[dir="rtl"] .sidebar {
  left: auto; right: 0; border-right: none; border-left: 1px solid var(--line);
  transform: translateX(105%);
}
[dir="rtl"] .dsteps, [dir="rtl"] .doc ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .crumbs > span:not(.here) { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .langswitch { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .dd-panel { right: auto; left: 0; }
[dir="rtl"] .contactstrip span { margin-right: 0; margin-left: 8px; }
@media (min-width: 1024px) {
  [dir="rtl"] .main { margin-left: 0; margin-right: 280px; }
  [dir="rtl"] .sidebar { transform: none; }
}
