/* ============================================================
   Vazirmatn — self-hosted from rastikerdar/vazirmatn (OFL)
   ============================================================ */
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
/* ============================================================
   Shop+ control panel — modern UI
   ============================================================ */
:root {
  --bg: #f3f4fb;
  --card: #ffffff;
  --ink: #161b2b;
  --muted: #7b849b;
  --brand: #4f46e5;
  --brand2: #7c3aed;
  --brand-soft: #eef0ff;
  --line: #e7e9f2;
  --ok: #16a34a;
  --ok-soft: #e8f7ee;
  --warn: #d97706;
  --warn-soft: #fdf3e3;
  --err: #dc2626;
  --err-soft: #fdecec;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px -12px rgba(16, 24, 40, .12);
  --shadow-lg: 0 20px 50px -20px rgba(16, 24, 40, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 15px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand2); }
h1, h2, h3 { line-height: 1.4; }
h1 { font-size: 23px; margin: .2em 0 .4em; font-weight: 800; }
h2 { font-size: 17px; margin: 16px 0 8px; font-weight: 800; }
h3 { font-size: 15px; margin: 12px 0 6px; }
p { margin: .4em 0; }
code, kbd { font-family: "Courier New", monospace; font-size: .9em; background: #f1f3f9; padding: 2px 7px; border-radius: 6px; direction: ltr; display: inline-block; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
strong { font-weight: 700; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.brand:hover { color: var(--brand); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px; font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6);
}

/* ---------- App shell ---------- */
body.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; flex: 0 0 248px; background: #fff; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.side-brand strong { font-size: 16px; }
.side-brand .muted { font-size: 12px; }
.side-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.side-title { font-size: 11.5px; color: var(--muted); letter-spacing: .3px; padding: 0 12px 6px; }
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px;
  color: var(--ink); font-weight: 600; font-size: 14px; transition: background .15s, color .15s;
}
.side-link:hover { background: var(--bg); color: var(--brand); text-decoration: none; }
.side-link.active { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .7); }
.sl-ico { width: 20px; text-align: center; }
.side-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.ava {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; font-weight: 800; font-size: 16px;
}
.side-user-meta strong { font-size: 14px; display: block; line-height: 1.3; }
.main { flex: 1; min-width: 0; }
.content { padding: 30px 34px 60px; max-width: 1000px; margin: 0 auto; }

/* ---------- Guest / auth ---------- */
body.guest { min-height: 100vh; background: radial-gradient(1200px 500px at 70% -10%, rgba(124, 58, 237, .18), transparent 60%), var(--bg); }
.auth-top { display: flex; justify-content: center; padding: 34px 20px 8px; }
.auth-shell { max-width: 460px; margin: 26px auto 0; padding: 0 18px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 20px 28px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin: 20px 0; box-shadow: var(--shadow);
}
.card.auth, .card.wowidth { max-width: 460px; margin: 20px auto; border-radius: 18px; }
.card.wow { max-width: 800px; }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.row.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Dashboard head & stats ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.dash-head h1 { margin-bottom: 2px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 18px 0; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow);
}
.stat-ico {
  width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 21px; background: var(--brand-soft); color: var(--c, var(--brand)); flex: 0 0 auto;
}
.stat strong { font-size: 21px; display: block; line-height: 1.2; }

/* ---------- Table ---------- */
.tbl { width: 100%; border-collapse: collapse; margin-top: 12px; }
.tbl th {
  text-align: right; font-size: 12.5px; color: var(--muted); font-weight: 700;
  padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover { background: #fafbff; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .acts { white-space: nowrap; text-align: left; }
.tbl .acts .btn { margin-right: 6px; }
.sname { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.slogo {
  width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef0ff, #f3e8ff); color: var(--brand); font-weight: 800; font-size: 17px;
}
.pthumb-edit img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; margin-bottom: 6px; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.st-active { background: var(--ok-soft); color: var(--ok); }
.badge.st-pending { background: var(--warn-soft); color: var(--warn); }
.badge.st-building { background: #e8f0fe; color: #1d4ed8; }
.badge.st-error { background: var(--err-soft); color: var(--err); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 10px 18px;
  border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: transform .1s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(16, 24, 40, .25); text-decoration: none; color: inherit; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; border: none; box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .7); }
.btn.primary:hover { color: #fff; }
.btn.small { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn.ghost { background: none; border: none; color: var(--muted); }
.btn.ghost:hover { color: var(--err); box-shadow: none; transform: none; }
.btn.danger { background: var(--err-soft); color: var(--err); border-color: transparent; }
.btn.danger:hover { color: var(--err); }
.btn.big { padding: 14px 30px; font-size: 16px; }
.btn.wide { width: 100%; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.form-card { max-width: 760px; }
.form-head { margin-bottom: 4px; }
.form-head h1 { margin-bottom: 2px; }
.form-head p { margin: 0; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { display: contents; }
.form > label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 13.5px; font-weight: 800; color: #39415a;
}
.flabel { font-size: 13.5px; font-weight: 800; color: #39415a; }
.flabel .req, .req { color: var(--err); font-style: normal; }
.hint { font-size: 12.5px; color: var(--muted); }

/* Inputs (class-based + legacy label-wrapped inputs) */
.input,
.form input[type="text"], .form input[type="email"], .form input[type="password"], .form input[type="tel"],
.form input[type="number"], .form input[type="url"], .form select, .form textarea {
  font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  border: 1.5px solid #dfe3ee; border-radius: 12px; padding: 12px 14px;
  background: #fbfcff; width: 100%; box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input::placeholder,
.form input::placeholder, .form textarea::placeholder { color: #a8b0c4; font-weight: 400; }
.input:hover,
.form input:hover, .form select:hover, .form textarea:hover { border-color: #c3caf0; background: #fff; }
.input:focus,
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .14), 0 4px 14px -6px rgba(79, 70, 229, .35);
}
.input:focus-visible { outline: none; }
input[inputmode="numeric"] { direction: ltr; text-align: left; }

/* Unit suffix inside an input (price fields) */
.input-unit { position: relative; display: flex; align-items: center; }
.input-unit .input { direction: ltr; text-align: left; padding-left: 80px; padding-right: 14px; }
.input-unit .unit {
  position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%);
  background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 800;
  padding: 5px 12px; border-radius: 8px; pointer-events: none; user-select: none;
  box-shadow: inset 0 0 0 1px #dfe2ff;
}

/* Selects */
.form select.input, .form select { appearance: none; -webkit-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='%236366f1' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center; padding-inline-start: 14px; padding-inline-end: 38px;
}
.form select.input.multi, .form select[multiple] { background-image: none; padding-inline-start: 8px; padding-inline-end: 8px; }
.form select.input.multi option, .form select[multiple] option { padding: 8px 10px; border-radius: 8px; margin: 2px; font-weight: 500; }
.form select.input.multi option:checked { background: var(--brand-soft) linear-gradient(0deg, var(--brand-soft), var(--brand-soft)); color: var(--brand); font-weight: 700; }

/* Textarea */
.form textarea { min-height: 118px; resize: vertical; line-height: 1.8; }

/* Toggle switch (featured) */
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 10px 14px; border: 1.5px solid #dfe3ee; border-radius: 12px; background: #fbfcff; transition: border-color .18s, background .18s; }
.switch:hover { border-color: #c3caf0; background: #fff; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: relative; width: 46px; height: 26px; flex: 0 0 auto; border-radius: 999px;
  background: #d8dce8; transition: background .2s; display: inline-block;
}
.switch .slider::before {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  top: 3px; inset-inline-start: 3px; box-shadow: 0 2px 4px rgba(16, 24, 40, .25); transition: transform .2s;
}
.switch input:checked + .slider { background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch-label { font-size: 14px; font-weight: 700; color: var(--ink); }

/* File drop zone */
.file { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.file.drop {
  flex-direction: row; padding: 18px 20px; border: 2px dashed #c7cdf0; border-radius: 14px;
  background: #fbfcff; transition: border-color .18s, background .18s, transform .18s; width: 100%;
}
.file.drop:hover { border-color: var(--brand); background: var(--brand-soft); }
.file.drop .file-ico { font-size: 26px; }
.file.drop strong { display: block; font-size: 14.5px; color: var(--ink); }
.file.drop small { display: block; font-size: 12.5px; }
.file input { display: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- Flash ---------- */
.flash {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; margin: 14px 0;
  box-shadow: 0 10px 24px -12px rgba(16, 24, 40, .25);
  animation: flash-in .35s cubic-bezier(.2, .8, .3, 1.2);
}
.flash .flash-ico {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; color: #fff;
}
.flash.ok { background: #fff; color: var(--ok); border: 1px solid #b7e6c8; }
.flash.ok .flash-ico { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 4px 10px -3px rgba(34, 197, 94, .6); }
.flash.err { background: #fff; color: var(--err); border: 1px solid #f3c0c0; }
.flash.err .flash-ico { background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 4px 10px -3px rgba(239, 68, 68, .6); }
.flash .flash-msg { line-height: 1.5; }
@keyframes flash-in {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Back link / subnav ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.back:hover { color: var(--brand); text-decoration: none; }
.subnav { margin-bottom: 4px; }

/* ---------- Data list ---------- */
dl.data { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 14px 0; }
dl.data dt { color: var(--muted); font-size: 13.5px; font-weight: 600; }
dl.data dd { margin: 0; }
.creds { background: var(--brand-soft); border: 1px solid #dfe2ff; border-radius: var(--radius); padding: 18px 20px; margin-top: 8px; }
.creds .pass { letter-spacing: 1px; }

/* ---------- Progress ---------- */
.progress { margin: 14px 0; }
.progress .bar {
  height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand2));
  transition: width .5s; min-width: 0;
}
.progress .bar-wrap { background: var(--line); border-radius: 999px; height: 10px; overflow: hidden; }
.prog-label { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------- Product price ---------- */
.pmt-price { font-weight: 800; font-size: 14.5px; white-space: nowrap; }
.pmt-sale { color: var(--err); }
.pmt-old { text-decoration: line-through; white-space: nowrap; display: block; font-size: 12px; }

/* ---------- Product table polish ---------- */
.pthumb-cell { width: 64px; }
.pthumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; display: inline-block; vertical-align: middle; background: var(--bg); box-shadow: 0 2px 6px rgba(16, 24, 40, .08); }
.pthumb.none { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: var(--bg); }
.pname-cell { max-width: 260px; }
.pname-cell strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Auth card tweaks ---------- */
.card.auth h1 { text-align: center; }
.card.auth .form { gap: 16px; }
.card.auth .btn { margin-top: 4px; }

/* ---------- Scrollbar (webkit) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cfd4e2; border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Responsive ---------- */

/* Table scroll container (created by panel_layout JS) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .tbl { min-width: 640px; }
.table-wrap .app-table .tr { min-width: 460px; }
@media (max-width: 640px) {
  .table-wrap .app-table { min-width: 0; }
  .table-wrap .app-table .tr { min-width: 0; }
}

/* ---------- Mobile top bar (app-style header) ---------- */
.mob-top { display: none; }

@media (max-width: 860px) {
  body.app { flex-direction: column; padding-bottom: 74px; }

  /* Sticky slim header on top */
  .mob-top {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: sticky; top: 0; z-index: 40; margin: 0;
    padding: 12px 16px; background: rgba(255,255,255,.86);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .mob-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); font-size: 15px; }
  .mob-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 11px; }
  .mob-logout { display: none; }

  /* Desktop sidebar becomes a fixed app-style bottom tab bar */
  .sidebar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    width: 100%; height: auto; min-height: 0; max-height: none;
    flex: none; display: flex; flex-direction: row; align-items: center;
    gap: 10px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
    border-left: none; border-bottom: none; border-top: 1px solid var(--line);
    background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -6px 24px -18px rgba(16, 24, 40, .4);
    z-index: 40;
  }
  .side-brand { display: none; }
  .side-nav { flex: 1; display: flex; flex-direction: row; gap: 6px; }
  .side-nav .side-title { display: none; }
  .side-nav .side-link {
    flex: 1; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 7px 6px; border-radius: 13px; font-size: 11.5px; line-height: 1.3;
  }
  .side-nav .side-link .sl-ico { font-size: 19px; line-height: 1; }
  /* Logout becomes an app-style third tab */
  .side-foot { display: block; flex: 1; margin: 0; padding: 0; border: none; }
  .side-user { display: none; }
  .side-foot .btn.ghost.wide {
    width: 100%; padding: 9px 6px; font-size: 11.5px; color: var(--err);
    background: var(--err-soft); border: none; border-radius: 13px; line-height: 1.3;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  }
  .side-foot .btn.ghost.wide::before { content: "⏻"; font-size: 19px; line-height: 1; color: var(--err); }
  .content { padding: 18px 14px 34px; }
}

@media (max-width: 640px) {
  .dl.data { grid-template-columns: 1fr; gap: 4px 10px; }
  .dl.data dt { margin-top: 8px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .app-table .tr { grid-template-columns: minmax(0, 1fr) auto; }
  .app-table .tr > :last-child { grid-column: 1 / -1; }
  .card { padding: 18px 16px; }
  .card.auth, .card.wowidth { padding: 22px 18px; }
  .report-iframe, .set-iframe, .ap-preview { height: 480px; }
  .lp-float { display: none; }
}

/* ============================================================
   Shop+ landing page
   ============================================================ */
body.landing { background: #fbfbfe; }
.lp-inner { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.lp-header .lp-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.lp-nav { display: flex; gap: 20px; margin: 0 auto; }
.lp-nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
.lp-nav a:hover { color: var(--brand); }
.lp-cta { display: flex; gap: 8px; align-items: center; }
.lp-cta .btn { padding: 9px 16px; }

/* ---------- Hero ---------- */
.lp-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 380px at 85% -10%, rgba(124, 58, 237, .18), transparent 60%),
    radial-gradient(600px 320px at 10% 10%, rgba(79, 70, 229, .12), transparent 60%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.lp-hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 76px 22px 84px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.lp-badge {
  display: inline-block; background: var(--brand-soft); color: var(--brand);
  border: 1px solid #dfe2ff; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.lp-hero-text h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 900; line-height: 1.4; margin: 0 0 16px; }
.lp-hero-text .grad {
  background: linear-gradient(120deg, var(--brand), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-sub { color: var(--muted); font-size: 1.05rem; max-width: 30em; margin-bottom: 26px; }
.lp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.lp-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.lp-stats strong { display: block; font-size: 1.6rem; font-weight: 900; color: var(--ink); }
.lp-stats .muted { font-size: 12.5px; }

/* ---------- Hero visual (browser mockup) ---------- */
.lp-hero-visual { position: relative; }
.lp-window {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; transform: rotate(1.2deg);
}
.lp-window-bar {
  display: flex; align-items: center; gap: 6px; padding: 11px 14px;
  background: #f4f5fa; border-bottom: 1px solid var(--line);
}
.lp-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e2e5ee; }
.lp-window-bar span:nth-child(1) { background: #f87171; }
.lp-window-bar span:nth-child(2) { background: #fbbf24; }
.lp-window-bar span:nth-child(3) { background: #34d399; }
.lp-window-bar b { margin: 0 auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.lp-window-body { padding: 16px; background: #fbfbfe; }
.lp-mini-hero {
  height: 74px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(120deg, var(--brand), var(--brand2));
  position: relative; overflow: hidden;
}
.lp-mini-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120px 60px at 80% 20%, rgba(255,255,255,.35), transparent 70%);
}
.lp-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lp-mini-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.lp-mini-card .lp-img { display: block; height: 40px; border-radius: 8px; background: linear-gradient(135deg, #eef0ff, #f6ecff); margin-bottom: 8px; }
.lp-mini-card b { display: block; height: 8px; border-radius: 4px; background: #e6e9f2; margin-bottom: 6px; }
.lp-mini-card i { display: block; width: 60%; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--brand2)); }
.lp-float {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 14px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow);
  animation: lp-bob 3.2s ease-in-out infinite;
}
.lp-float-1 { top: -12px; right: -8px; }
.lp-float-2 { bottom: -12px; left: -6px; animation-delay: 1.6s; }
@keyframes lp-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.lp-features, .lp-how, .lp-showcase, .lp-faq { padding: 78px 0 70px; }
.lp-kicker { color: var(--brand); font-weight: 800; font-size: 13.5px; letter-spacing: .4px; display: block; margin-bottom: 8px; }
.lp-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; margin: 0 0 34px; }
.lp-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-feat {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  transition: transform .25s, box-shadow .25s;
}
.lp-feat:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.lp-feat-ico {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; background: var(--brand-soft); margin-bottom: 14px;
}
.lp-feat h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; }
.lp-feat p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- How it works ---------- */
.lp-how { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 34px; }
.lp-step { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; }
.lp-step-num {
  width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; font-weight: 900; font-size: 18px; margin-bottom: 14px;
}
.lp-step h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; }
.lp-step p { margin: 0; color: var(--muted); font-size: .92rem; }
.lp-how-cta { text-align: center; }

/* ---------- Showcase ---------- */
.lp-store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-store {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.lp-store:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.lp-store-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f4f5fa; border-bottom: 1px solid var(--line); }
.lp-store-dot { width: 9px; height: 9px; border-radius: 50%; background: #e2e5ee; }
.lp-store-dot:nth-child(1) { background: #f87171; }
.lp-store-dot:nth-child(2) { background: #fbbf24; }
.lp-store-dot:nth-child(3) { background: #34d399; }
.lp-store-url { margin-right: auto; font-size: 12px; direction: ltr; }
.lp-store-body { padding: 20px; text-align: center; }
.lp-store-logo {
  width: 54px; height: 54px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef0ff, #f6ecff); color: var(--brand); font-weight: 900; font-size: 22px; margin-bottom: 12px;
}
.lp-store h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; }
.lp-store-link { font-size: .88rem; font-weight: 700; }

/* ---------- FAQ ---------- */
.lp-faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.lp-faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.lp-faq-list summary {
  cursor: pointer; font-weight: 700; padding: 16px 20px; list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.lp-faq-list summary::after { content: "+"; font-size: 20px; color: var(--brand); font-weight: 800; transition: transform .2s; }
.lp-faq-list details[open] summary::after { transform: rotate(45deg); }
.lp-faq-list details p { margin: 0; padding: 0 20px 16px; color: var(--muted); font-size: .94rem; }

/* ---------- Final CTA ---------- */
.lp-final {
  background: linear-gradient(120deg, var(--brand), var(--brand2)); text-align: center; padding: 70px 22px;
}
.lp-final h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; margin: 0 0 6px; }
.lp-final .muted { color: rgba(255,255,255,.85); }
.lp-final .btn { margin-top: 18px; background: #fff; color: var(--brand); border: none; box-shadow: 0 14px 30px -10px rgba(0,0,0,.35); }
.lp-final .btn:hover { color: var(--brand); }

/* ---------- Landing footer ---------- */
.lp-footer { background: #161b2b; color: #cbd0df; padding: 40px 0 26px; }
.lp-footer .lp-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.lp-footer .brand { color: #fff; }
.lp-footer-links { display: flex; gap: 20px; }
.lp-footer-links a { color: #cbd0df; font-size: 14px; }
.lp-footer-links a:hover { color: #fff; }
.lp-copy { text-align: center; margin: 26px 0 0; }

/* ---------- Landing responsive ---------- */
@media (max-width: 900px) {
  .lp-hero-inner { grid-template-columns: 1fr; padding: 52px 22px 60px; gap: 40px; }
  .lp-feat-grid, .lp-steps, .lp-store-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-nav { display: none; }
}
@media (max-width: 560px) {
  .lp-feat-grid, .lp-steps, .lp-store-grid { grid-template-columns: 1fr; }
  .lp-stats { gap: 22px; }
}

/* ============================================================
   Store settings page
   ============================================================ */
.settings { display: flex; flex-direction: column; gap: 16px; }
.set-sec {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.set-sec > header { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 6px; }
.set-sec > header h2 { margin: 0; font-size: 16px; }
.set-sec > header p { margin: 4px 0 0; }
.set-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.set-row:last-child { border-bottom: none; }
.set-row-label { max-width: 320px; display: flex; flex-direction: column; gap: 4px; }
.set-row-control { flex: 1; max-width: 420px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.set-static {
  padding: 10px 14px; background: var(--brand-soft); border: 1px solid #dfe2ff;
  border-radius: 10px; font-weight: 700; color: var(--brand); min-width: 180px; box-sizing: border-box;
}
.set-info {
  font-size: 12px; color: var(--muted); background: #f5f6fb; border: 1px dashed #d9ddeb;
  border-radius: 8px; padding: 8px 12px; line-height: 1.7;
}
.set-apply { padding: 14px 0 4px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.set-apply .hint { max-width: 34em; }
.set-foot { padding-top: 4px; display: flex; }
.switch .switch-label small { display: block; font-size: 12px; font-weight: 400; margin-top: 2px; }
@media (max-width: 640px) {
  .set-row { flex-direction: column; gap: 10px; }
  .set-row-label { max-width: none; }
  .set-row-control { width: 100%; }
}

/* ---------- WooCommerce live iframe ---------- */
.set-iframe {
  width: 100%; height: 880px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; margin-top: 12px; box-shadow: var(--shadow); display: block;
}
@media (max-width: 640px) { .set-iframe { height: 600px; } }

/* ---------- Revenue report iframe on store management ---------- */
.report-card { }
.report-iframe {
  width: 100%; height: 900px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; margin-top: 14px; box-shadow: var(--shadow); display: block;
}
@media (max-width: 640px) { .report-iframe { height: 600px; } }

/* ---------- Storefront appearance panel ---------- */
.ap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 16px 0; }
.ap-color { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcff; }
.ap-picker { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 4px; }
.ap-hx { direction: ltr; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink); font-family: monospace; }
.ap-settings .row { align-items: center; }
.ap-preview { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: 14px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .ap-preview { height: 480px; } }

/* ---------- Landing countdown (site built in 0.14s) ---------- */
.lp-timer { margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.lp-timer-head { font-size: 19px; font-weight: 800; color: var(--ink); }
.lp-timer-head s { color: var(--err); text-decoration-color: var(--err); font-weight: 600; }
.lp-timer-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lp-timer-num {
  font-size: 58px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; font-variant-numeric: tabular-nums;
  min-width: 1ch; transition: color .3s;
}
.lp-timer-row.go .lp-timer-num { background: linear-gradient(135deg, #22c55e, #16a34a); -webkit-background-clip: text; background-clip: text; color: transparent; animation: lpPop .5s ease; }
.lp-timer-unit { font-size: 22px; font-weight: 800; color: var(--ink); }
.lp-timer-lbl { font-size: 16px; font-weight: 700; color: var(--ink); }
.lp-timer-note { font-size: 14px; }
.lp-timer-note .grad { background: linear-gradient(135deg, var(--brand), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
@keyframes lpPop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (max-width: 640px) { .lp-timer-num { font-size: 40px; } }

/* ---------- Speed countdown — separate landing section ---------- */
.lp-timer-sec { padding: 72px 16px; background: linear-gradient(180deg, #fff, #f4f6ff); }
.lp-timer-sec .lp-inner { text-align: center; }
.lp-timer-sec .lp-inner.center { align-items: center; }
.lp-timer-sec .lp-timer { align-items: center; margin-top: 22px; text-align: center; }
.lp-timer-head { font-size: 26px; font-weight: 900; }
.lp-timer-row { justify-content: center; margin-top: 6px; }

/* ---------- App store (برنمک) — SeeShop-style template ---------- */
.app-hero { background: linear-gradient(135deg, #29315f, #1c1c2e 55%, #172554); border-radius: 18px; color: #fff; padding: 34px 28px; margin-bottom: 18px; }
.app-hero h1 { font-size: 30px; font-weight: 900; margin: 0 0 6px; }
.app-hero p { color: #c7cdea; }
.app-hero .muted b { color: #fff; }
.app-chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.app-cat { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.app-cat b { background: rgba(255,255,255,.22); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.app-cat:hover { background: rgba(255,255,255,.2); }
.app-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 0 0 20px; }
.app-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; }
.app-stat b { display: block; font-size: 26px; font-weight: 900; background: linear-gradient(135deg, #05c5b6, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-stat span { font-size: 13px; color: var(--muted); }
.app-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.app-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7d0f5; }
.app-flag { position: absolute; top: -10px; right: 14px; background: linear-gradient(135deg, #05c5b6, #0d9488); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 10px -4px rgba(5,197,182,.6); }
.app-icon { width: 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 27px; color: #fff; box-shadow: 0 8px 18px -8px rgba(0,0,0,.35); }
.app-body h3 { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.app-body p { font-size: 13px; line-height: 1.7; margin: 0 0 8px; }
.app-chip { display: inline-block; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.app-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.app-rate { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 2px; }
.app-star { color: #e5e7f0; }
.app-star.on { color: #f59e0b; }
.app-btn { display: block; text-align: center; background: #05c5b6; color: #fff !important; border-radius: 999px; padding: 10px 14px; font-size: 14px; font-weight: 800; transition: opacity .18s; }
.app-btn:hover { opacity: .85; }
.app-btn-ghost { display: block; text-align: center; background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 700; }
.app-btn-ghost:hover { border-color: var(--err); color: var(--err); }
.app-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 22px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.app-trust div { display: flex; align-items: center; gap: 10px; }
.app-trust span { font-size: 18px; }
.app-trust b { font-size: 14px; }
.app-trust .muted { display: block; font-size: 12px; }

/* ---------- Installed plugins list ---------- */
.app-table { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 14px; }
.app-table .tr { display: grid; grid-template-columns: minmax(0, 1fr) 110px 128px; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.app-table .tr.head { background: #f8f9ff; border-top: 0; font-size: 12px; color: var(--muted); font-weight: 800; }
.app-tname { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-tname .app-mini { width: 36px; height: 36px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #fff; }
.app-tname b { display: block; font-size: 14px; }
.app-tname span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.app-btn.mini, .btn.btn-app-ghost.mini { padding: 7px 12px; font-size: 13px; width: 100%; }
