:root {
  --brand: #1C3FAA;
  --brand-2: #0F766E; /* Vert Atlas */
  --saffron: #F4B000;
  --ink-brand: #0B1220;
  --ink: #14161a;
  --bg: #f6f7f9;
  --card: #fff;
  --text: #1a1d23;
  --muted: #667085;
  --line: #e4e7ec;
  --danger: #c0362c;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111418; --card: #1a1f26; --text: #e8eaed; --muted: #98a2b3; --line: #2c333d; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font, 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif); background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0.6em 0 0.4em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--muted); }
.pre { white-space: pre-line; }
.inline { display: inline; }

.topbar { background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 24px; }
.topbar .wrap { justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.4rem; color: #0f172a; line-height: 1; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; flex: none; border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(28,63,170,.55); }
.logo-mark .lm-bg { fill: #1C3FAA; } .logo-mark .lm-arch { stroke: #fff; }
.logo-word { font-family: 'Tajawal', system-ui, sans-serif; letter-spacing: .07em; }
.logo-word b { color: #0f766e; font-weight: 800; }
.logo.big .logo-mark { width: 52px; height: 52px; border-radius: 13px; }
.logo.big { font-size: 1.9rem; gap: 12px; }
.auth-logo { display: flex; justify-content: center; margin: 8px 0 18px; }
.store-bar { border-bottom: 3px solid var(--brand); }
.foot { color: var(--muted); text-align: center; padding: 40px 16px; font-size: 0.9rem; }

.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn.small { padding: 6px 12px; font-size: 0.9rem; }
.btn.big { padding: 14px 28px; font-size: 1.1rem; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.link { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; }
.danger { color: var(--danger); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: inherit; display: block; }
a.card:hover { text-decoration: none; box-shadow: 0 4px 16px rgb(0 0 0 / 8%); }
.narrow { max-width: 520px; margin: 0 auto; }
.grid { display: grid; gap: 16px; margin: 16px 0 32px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.hero { text-align: center; padding: 48px 16px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.hero p { color: var(--muted); max-width: 620px; margin: 0 auto 24px; font-size: 1.1rem; }
.store-hero { padding: 24px 16px; }

.stats strong { display: block; font-size: 1.8rem; color: var(--brand); }

.product { padding: 12px; }
.product .img, .product-img { aspect-ratio: 1; border-radius: 8px; background: var(--bg); display: grid; place-items: center; overflow: hidden; font-size: 3rem; }
.product img, .product-img img { width: 100%; height: 100%; object-fit: cover; }
.product h3 { font-size: 1rem; margin: 10px 0 4px; }
.price { color: var(--brand); font-weight: 800; margin: 0; }
.price.big { font-size: 1.6rem; }

.form { display: grid; gap: 14px; }
.form .row > label { flex: 1; }
label { display: grid; gap: 4px; font-weight: 500; }
label.check { display: flex; gap: 8px; align-items: center; }
input, textarea, select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); width: 100%; }
input[type=color] { padding: 2px; height: 44px; }
input[type=checkbox] { width: auto; }
.qty { width: 80px; }
.alert { background: #fdecea; color: var(--danger); padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }

.table-wrap { overflow-x: auto; margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
th, td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--bg); font-weight: 700; }

.badge { display: inline-block; font-size: 0.8rem; padding: 2px 10px; border-radius: 99px; background: var(--bg); font-weight: 700; }
.s-new { background: #e0edff; color: #1d4ed8; }
.s-confirmed { background: #fef3c7; color: #92400e; }
.s-shipped { background: #ede9fe; color: #6d28d9; }
.s-delivered { background: #dcfce7; color: #15803d; }
.s-cancelled { background: #fee2e2; color: #b91c1c; }
hr { border: 0; border-top: 1px solid var(--line); }

/* Dashboard home */
.page-head h1 { margin-bottom: 0; }
.page-head p { margin-top: 4px; }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid.side { grid-template-columns: 2fr 1fr; align-items: start; }
@media (max-width: 800px) { .grid.side { grid-template-columns: 1fr; } }
.stat { position: relative; }
.stat .icon { position: absolute; top: 16px; left: 16px; font-size: 1.6rem; opacity: 0.85; }
.small { font-size: 0.85rem; }

.onboarding { margin-bottom: 24px; border-inline-start: 4px solid var(--brand); }
.onboarding h3 { margin: 0; }
.progress { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; margin: 12px 0; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { display: flex; gap: 10px; align-items: center; }
.steps li.done span:last-child { color: var(--muted); text-decoration: line-through; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 0.75rem; flex: none; }
.done .tick { background: var(--brand); border-color: var(--brand); color: #fff; }

.store-tile { padding: 0; overflow: hidden; }
.store-banner { height: 72px; position: relative; }
.avatar { position: absolute; bottom: -24px; right: 20px; width: 52px; height: 52px; border-radius: 12px; background: var(--card); border: 3px solid var(--card); box-shadow: 0 2px 8px rgb(0 0 0 / 12%); display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: var(--text); }
.store-body { padding: 32px 20px 20px; }
.store-body h3 { margin: 0 0 2px; }
.store-body h3 a { color: var(--text); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; text-align: center; }
.mini-stats div { background: var(--bg); border-radius: 8px; padding: 8px 4px; }
.mini-stats strong { display: block; font-size: 1.2rem; }
.mini-stats span { font-size: 0.8rem; color: var(--muted); }
.actions { gap: 8px; }
.empty { padding: 36px 20px; }
.big-icon { font-size: 3rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; }
.grid > * { min-width: 0; }
@media (max-width: 600px) {
  .grid.four { grid-template-columns: 1fr 1fr; }
  .stat strong { font-size: 1.3rem; }
  .stat .icon { font-size: 1.2rem; }
}

/* Storefront */
.store-bar { position: sticky; top: 0; z-index: 10; margin-bottom: 0; }
.cart-btn { position: relative; display: inline-flex; gap: 6px; align-items: center; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); color: var(--text); font-weight: 700; }
.cart-btn:hover { text-decoration: none; border-color: var(--brand); }
.cart-btn .count { position: absolute; top: -6px; left: -6px; background: var(--brand); color: #fff; min-width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font-size: 0.75rem; padding: 0 6px; }

.shop-hero { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); color: #fff; text-align: center; padding: 56px 0 64px; }
.shop-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: 12px 0 8px; }
.shop-hero p { max-width: 600px; margin: 0 auto 24px; opacity: 0.9; font-size: 1.1rem; }
.shop-logo { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: rgb(255 255 255 / 18%); font-size: 2rem; font-weight: 800; border: 2px solid rgb(255 255 255 / 35%); }
.btn.light { background: #fff; color: var(--brand); }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: -32px 0 32px; position: relative; }
.trust > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / 6%); }
.trust span { font-size: 1.8rem; }
.trust strong { display: block; }
.trust small { color: var(--muted); }

.shop-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-tools input { flex: 1 1 240px; width: auto; }
.shop-tools select { flex: 0 1 200px; width: auto; }

.product { display: flex; flex-direction: column; gap: 6px; transition: transform .15s, box-shadow .15s; }
.product:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgb(0 0 0 / 8%); }
.product .img { position: relative; color: var(--brand); font-weight: 800; background: color-mix(in srgb, var(--brand) 10%, var(--bg)); }
.product .img:hover { text-decoration: none; }
.product .name { color: var(--text); font-weight: 700; margin-top: 6px; }
.product .price { font-size: 1.1rem; margin-bottom: 6px; }
.product form { margin-top: auto; }
.product.soldout .img { opacity: 0.55; }
.tag { position: absolute; top: 8px; right: 8px; background: var(--brand); color: #fff; font-style: normal; font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.tag.warn { background: #d97706; }
.tag.out { background: #6b7280; }
.btn.full { width: 100%; }
.btn[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; filter: none; }

.shop-foot { background: var(--card); border-top: 1px solid var(--line); padding: 28px 0; margin-top: 48px; }
.shop-foot p { margin: 4px 0 0; }
@media (max-width: 600px) {
  .grid.products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product { padding: 8px; }
  .cart-btn span { display: none; }
}

/* Landing page */
html { scroll-behavior: smooth; }
.landing-bar { position: sticky; top: 0; z-index: 10; margin-bottom: 0; backdrop-filter: blur(8px); background: color-mix(in srgb, var(--card) 88%, transparent); }
.landing-nav { gap: 24px; }
.landing-nav a { color: var(--text); font-weight: 500; }
@media (max-width: 800px) { .landing-nav { display: none; } }
.pill { display: inline-block; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-weight: 700; font-size: 0.85rem; padding: 4px 14px; border-radius: 99px; }

.l-hero { padding: 64px 0 48px; background: radial-gradient(ellipse at top left, color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%); }
.l-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.l-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; margin: 16px 0; }
.hl { color: var(--brand); }
.l-hero p { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); }
.checks li::first-letter { color: var(--brand); font-weight: 800; }
.checks.col { flex-direction: column; gap: 10px; margin: 20px 0 24px; color: var(--text); }
@media (max-width: 860px) { .l-hero-grid { grid-template-columns: 1fr; } .l-hero { padding-top: 40px; } }

.mock { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgb(0 0 0 / 12%); overflow: hidden; position: relative; transform: rotate(-1.5deg); }
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); direction: ltr; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-left: 12px; font-size: 0.75rem; color: var(--muted); background: var(--card); padding: 2px 12px; border-radius: 6px; }
.mock-hero { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); color: #fff; text-align: center; padding: 22px; display: grid; gap: 4px; justify-items: center; }
.mock-hero b { width: 40px; height: 40px; border-radius: 12px; background: rgb(255 255 255 / 20%); display: grid; place-items: center; }
.mock-hero small { opacity: 0.85; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.mock-grid div { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 2px; }
.mock-grid span { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: 1.8rem; }
.mock-grid em { font-style: normal; font-size: 0.85rem; }
.mock-grid b { color: var(--brand); font-size: 0.8rem; }
.mock-toast { position: absolute; bottom: 16px; left: 16px; background: var(--text); color: var(--card); font-size: 0.85rem; font-weight: 700; padding: 8px 14px; border-radius: 10px; box-shadow: 0 8px 20px rgb(0 0 0 / 20%); animation: pop 3s ease-in-out infinite; }
@keyframes pop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.l-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; margin-top: 8px; }
.l-stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 8px; }
.l-stats strong { display: block; font-size: 2rem; color: var(--brand); }
.l-stats span { color: var(--muted); font-size: 0.9rem; }

.l-section { padding: 56px 0 8px; scroll-margin-top: 70px; }
.l-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.l-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 12px 0 8px; }
.feat span { font-size: 2rem; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 10%, var(--bg)); }
.feat h3 { margin-top: 14px; }
.feat p, .steps-l p { margin: 0; }
.steps-l .card { text-align: center; }
.steps-l b { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.3rem; }


.price-card { max-width: 420px; margin: 0 auto; border: 2px solid var(--brand); text-align: right; }
.price-card h3 { margin-top: 0; }
.amount { font-size: 3rem; font-weight: 800; color: var(--brand); }
.amount small { font-size: 1rem; color: var(--muted); font-weight: 500; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.l-cta { margin: 64px 0 0; padding: 48px 24px; text-align: center; color: #fff; border-radius: 20px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); }
.l-cta h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-top: 0; }
.l-cta p { opacity: 0.9; margin-bottom: 24px; }
.l-foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 12px; background: var(--card); }
.l-foot nav { gap: 20px; }
.l-foot nav a { color: var(--muted); }

/* Store management */
.store-head { padding: 0; overflow: hidden; margin-bottom: 16px; }
.store-head .store-banner { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); height: 90px; }
.store-head .avatar { width: 64px; height: 64px; bottom: -28px; font-size: 1.7rem; }
.store-head-body { padding: 36px 20px 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.store-head-body h1 { margin: 0; }
.store-head-body p { margin: 2px 0 0; }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 14px 20px; margin-top: 12px; border-top: 1px solid var(--line); background: var(--bg); }
.share input { flex: 1 1 220px; width: auto; padding: 6px 10px; background: var(--card); }
.btn.wa { background: #25d366; color: #fff; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 180px; align-items: end; margin-top: 12px; }
.bar { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 4px; }
.bar span { width: 100%; max-width: 40px; background: var(--brand); border-radius: 6px 6px 2px 2px; }
.bar span.zero { background: var(--line); }
.bar small { font-size: 0.75rem; color: var(--muted); min-height: 1em; }
.bar em { font-style: normal; font-size: 0.75rem; color: var(--muted); }
.top-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.top-row:last-child { border-bottom: 0; }
.top-row b { width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 15%, var(--bg)); color: var(--brand); display: grid; place-items: center; font-size: 0.85rem; flex: none; }
.top-row span { flex: 1; }
.prod-cell { display: flex; gap: 10px; align-items: center; }
.thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--brand) 12%, var(--bg)); color: var(--brand); font-weight: 800; display: grid; place-items: center; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
h2 small { font-size: 0.9rem; font-weight: 500; }

/* Storefront customization */
.owner-bar { background: #1f2937; color: #e5e7eb; font-size: 0.85rem; padding: 6px 0; }
.owner-bar a { color: #fff; font-weight: 700; }
.announce { background: var(--brand); color: #fff; text-align: center; padding: 8px 16px; font-weight: 700; font-size: 0.9rem; }
.store-logo { display: inline-flex; align-items: center; gap: 10px; }
.store-logo img { height: 36px; width: 36px; object-fit: cover; border-radius: 8px; }
.shop-hero.has-banner { background-size: cover; background-position: center; padding: 80px 0 88px; }
.shop-hero h1, .shop-hero p { text-shadow: 0 1px 8px rgb(0 0 0 / 25%); }
img.shop-logo { object-fit: cover; padding: 0; background: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.chips a { white-space: nowrap; padding: 6px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 500; }
.chips a small { color: var(--muted); }
.chips a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips a.on small { color: rgb(255 255 255 / 80%); }
.chips a:hover { text-decoration: none; border-color: var(--brand); }
.price-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.price-row .price { margin: 0; }
.price-row.big .price { font-size: 1.8rem; }
.compare { font-size: 0.9rem; }
.badge.sale, .tag.sale { background: #dc2626; color: #fff; }
.crumbs { font-size: 0.9rem; margin-top: 16px; }
.product-page h1 { margin-top: 8px; }
.product-img span { font-size: 5rem; color: var(--brand); font-weight: 800; }
.product-img { background: color-mix(in srgb, var(--brand) 10%, var(--bg)); padding: 0; }
.buy { display: flex; gap: 10px; margin: 16px 0 10px; }
.buy .btn { flex: 1; }
.buy .qty { width: 90px; }
.ok-text { color: #15803d; font-weight: 700; }
.warn-text { color: #d97706; font-weight: 700; }
.perks { list-style: none; padding: 16px; margin: 16px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 8px; }
.cart-list { padding: 8px 20px; }
.cart-line { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.grow { flex: 1; min-width: 0; }
.thumb.big { width: 72px; height: 72px; font-size: 1.6rem; }
.qty-form { margin-top: 6px; gap: 10px; }
.qty-form .qty { width: 70px; padding: 4px 8px; }
.free-ship { background: color-mix(in srgb, var(--brand) 8%, var(--bg)); padding: 10px 12px; border-radius: 8px; font-size: 0.9rem; }
.free-ship .progress { margin: 8px 0 0; background: var(--card); }
.total-line { font-size: 1.2rem; }
.pay-box { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 2px solid var(--brand); border-radius: 10px; font-size: 1.4rem; }
.pay-box small { display: block; font-size: 0.85rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid p { margin: 6px 0; }
.foot-name { font-size: 1.2rem; }
.socials { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; }
.wa-float { position: fixed; bottom: 20px; left: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / 25%); z-index: 20; }
.wa-float:hover { transform: scale(1.06); }
.settings { display: grid; gap: 16px; max-width: 760px; }
.settings h3 { margin: 0; }
.prefix-input { display: flex; align-items: stretch; }
.prefix-input span { padding: 10px 12px; background: var(--line); border-radius: 8px 0 0 8px; color: var(--muted); }
.prefix-input input { border-radius: 0 8px 8px 0; }
.save-bar { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 40%); }

/* Product form */
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.pf-main, .pf-side { display: grid; gap: 16px; min-width: 0; }
.pf-side { position: sticky; top: 16px; }
@media (max-width: 900px) { .pf-grid { grid-template-columns: 1fr; } .pf-side { position: static; } }
.pf-grid h3 { margin: 0; }
.pf-save { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.alert.ok { background: #dcfce7; color: #15803d; }
.counter { text-align: left; font-weight: 400; }
.opt-row .wide { flex: 2; }

.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px 16px; display: grid; justify-items: center; gap: 6px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, transparent); }
.dropzone.busy { opacity: 0.6; pointer-events: none; }
.dropzone.mini { border: 0; padding: 0; display: inline-block; cursor: default; }
.dropzone.mini:hover { background: none; }
.dz-icon { font-size: 2.2rem; }
.dz-status { font-size: 0.9rem; color: #15803d; min-height: 1.2em; }
.dz-status.err { color: var(--danger); }
.gallery-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.gallery-edit:empty { display: none; }
.g-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); background: var(--bg); }
.g-item.main { border-color: var(--brand); grid-column: span 2; grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-badge { position: absolute; top: 6px; right: 6px; background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.g-tools { position: absolute; inset: auto 0 0 0; display: flex; justify-content: center; gap: 4px; padding: 6px; background: linear-gradient(transparent, rgb(0 0 0 / 60%)); opacity: 0; transition: opacity .15s; }
.g-item:hover .g-tools, .g-item:focus-within .g-tools { opacity: 1; }
@media (hover: none) { .g-tools { opacity: 1; } }
.g-tools button { width: 28px; height: 28px; border: 0; border-radius: 6px; background: rgb(255 255 255 / 92%); cursor: pointer; font-size: 0.85rem; }
.url-add summary { cursor: pointer; font-size: 0.9rem; }
.url-add .row { margin-top: 8px; flex-wrap: nowrap; }

.profit { flex: 1; display: grid; align-content: center; gap: 2px; padding: 8px 14px; border-radius: 8px; background: var(--bg); align-self: stretch; }
.profit strong { font-size: 1.2rem; }
.profit .pos { color: #15803d; } .profit .neg { color: var(--danger); }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.switch input { display: none; }
.slider { width: 44px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.slider::after { content: ''; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: right .2s; box-shadow: 0 1px 3px rgb(0 0 0 / 20%); }
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::after { right: 23px; }
.small-chips { margin: 8px 0 0; flex-wrap: wrap; }
.small-chips button { font: inherit; font-size: 0.85rem; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; }
.preview-card h3 { margin: 0 0 12px; }
.pv { padding: 0; }
.pv .img { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; overflow: hidden; font-size: 3rem; position: relative; }
.pv .img img { width: 100%; height: 100%; object-fit: cover; }

/* Store settings images */
.img-field .label { font-weight: 500; display: block; margin-bottom: 6px; }
.img-field-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.img-box { width: 96px; height: 96px; border-radius: 12px; border: 1px dashed var(--line); background: var(--bg); overflow: hidden; display: grid; place-items: center; font-size: 0.8rem; text-align: center; flex: none; }
.img-box.wide { width: 240px; max-width: 100%; }
.img-box img { width: 100%; height: 100%; object-fit: cover; }
.img-actions { display: grid; gap: 6px; justify-items: start; }

/* Product page gallery + options */
.gallery-view { display: grid; gap: 10px; min-width: 0; align-content: start; }
.product-img { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; }
.thumbs button { flex: none; width: 72px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; background: none; }
.thumbs button.on { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: block; }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; }
.opt-pick { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.opt-pick legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.opt-pick label { display: block; cursor: pointer; }
.opt-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-pick span { display: inline-block; min-width: 48px; text-align: center; padding: 8px 16px; border-radius: 8px; border: 2px solid var(--line); background: var(--card); font-weight: 500; }
.opt-pick input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--card)); color: var(--brand); font-weight: 700; }
.opt-pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.variant { display: inline-block; font-size: 0.8rem; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; margin: 2px 0; }

/* Orders: confirmation + alerts */
.confirm-box { display: grid; gap: 12px; border: 2px solid #25d366; margin-bottom: 16px; }
.confirm-box h3 { margin: 0; }
.confirm-box p { margin: 4px 0 0; }
.quick-status { border-top: 1px solid var(--line); padding-top: 12px; }
.danger-btn { color: var(--danger); border-color: var(--danger); }
.history { display: flex; gap: 16px; flex-wrap: wrap; }
.note { background: var(--bg); padding: 8px 12px; border-radius: 8px; }
h4 { margin: 0 0 8px; }
.pending { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #dc2626; color: #fff; font-size: 0.75rem; }
.toast { position: fixed; bottom: 20px; right: 20px; z-index: 50; background: #111827; color: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / 30%); animation: slide-in .3s ease-out; max-width: calc(100vw - 40px); }
.toast a { color: #fff; font-weight: 700; }
@keyframes slide-in { from { transform: translateY(20px); opacity: 0; } }
/* Honeypot: visually hidden without moving it off-screen (an off-screen element widens RTL pages). */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

/* =========================================================
   Storefront v2 — premium theme
   ========================================================= */
.storefront { --ink: #14161a; --soft: color-mix(in srgb, var(--brand) 7%, var(--bg)); min-height: 100vh; display: flex; flex-direction: column; }
.storefront main.wrap { flex: 1; width: 100%; }
.storefront .card, .storefront .btn, .storefront input, .storefront select, .storefront textarea { border-radius: var(--radius); }
.storefront h1, .storefront h2, .storefront h3 { letter-spacing: -0.01em; }
.storefront .btn { padding: 12px 26px; letter-spacing: .01em; transition: transform .15s, filter .15s, box-shadow .15s; }
.storefront .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 25%, transparent); }

.sf-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.sf-head-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.35rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { height: 42px; width: auto; max-width: 140px; object-fit: contain; border-radius: calc(var(--radius) / 2); }
.snav { display: flex; gap: 26px; flex: 1; }
.snav a { color: var(--text); font-weight: 500; position: relative; padding: 6px 0; white-space: nowrap; }
.snav a::after { content: ''; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .2s; }
.snav a:hover { text-decoration: none; } .snav a:hover::after { transform: scaleX(1); }
.head-actions { display: flex; gap: 6px; margin-inline-start: auto; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--text); }
.icon-btn:hover { background: var(--soft); text-decoration: none; }
.icon-btn .count { position: absolute; top: 2px; left: 2px; min-width: 19px; height: 19px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 0.7rem; display: grid; place-items: center; padding: 0 5px; }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.mnav nav { position: absolute; top: 52px; inset-inline-start: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgb(0 0 0 / 12%); padding: 8px; min-width: 220px; display: grid; }
.mnav nav a { padding: 12px 14px; color: var(--text); border-radius: 8px; }
.mnav nav a:hover { background: var(--soft); text-decoration: none; }
.sf-head.centered .sf-head-row { display: grid; grid-template-columns: 1fr auto 1fr; }
.sf-head.centered .brand { grid-column: 2; grid-row: 1; justify-self: center; }
.sf-head.centered .snav { grid-column: 1; grid-row: 1; }
.sf-head.centered .head-actions { grid-column: 3; grid-row: 1; justify-self: end; }
@media (max-width: 860px) {
  .snav { display: none; }
  .mnav { display: block; }
  .sf-head-row { gap: 8px; min-height: 62px; }
  .brand { font-size: 1.15rem; } .brand img { height: 34px; }
  .sf-head.centered .sf-head-row { grid-template-columns: auto 1fr auto; }
  .sf-head.centered .mnav { grid-column: 1; grid-row: 1; }
}

/* Sections */
.page-blocks { display: flex; flex-direction: column; }
.sec { width: min(1100px, 100% - 32px); margin: 0 auto; padding: 56px 0 8px; }
.sec.full { width: 100%; padding: 0; }
.sec-head { text-align: center; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 6px; }
.sec-head h2::after { content: ''; display: block; width: 44px; height: 3px; border-radius: 3px; background: var(--brand); margin: 12px auto 0; }
.sec-head p { color: var(--muted); margin: 8px 0 0; }
.sec-more { text-align: center; margin-top: 24px; }
.empty-sec { text-align: center; padding: 32px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.ph-bg { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 22%, var(--bg)), color-mix(in srgb, var(--brand) 8%, var(--bg))); }
.page-title { text-align: center; padding: 40px 0 12px; }
.page-title h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0; }
.prose { font-size: 1.05rem; line-height: 1.9; }

/* hero, banner, slider share the overlay look */
.sec-hero, .sec-banner, .slide { position: relative; color: #fff; background-size: cover; background-position: center;
  background-color: var(--brand); background-image: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 50%, #000)); }
.sec-hero.has-img::before, .sec-banner.has-img::before, .slide.has-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 25%), rgb(0 0 0 / 55%)); }
.hero-inner, .banner-inner, .slide-inner { position: relative; z-index: 1; }
.sec-hero { min-height: 520px; display: grid; place-items: center; text-align: center; }
.hero-inner { padding: 72px 16px; display: grid; justify-items: center; gap: 4px; }
.hero-logo { width: 88px; height: 88px; object-fit: contain; border-radius: var(--radius); background: #fff; padding: 8px; box-shadow: 0 10px 30px rgb(0 0 0 / 20%); margin-bottom: 12px; }
.sec-hero h1, .slide h2, .sec-banner h2 { font-size: clamp(2.1rem, 6vw, 3.8rem); font-weight: 800; margin: 0; line-height: 1.15; text-shadow: 0 2px 20px rgb(0 0 0 / 20%); }
.sec-hero p, .slide p, .sec-banner p { font-size: clamp(1rem, 2vw, 1.25rem); opacity: .92; max-width: 640px; margin: 12px auto 24px; }
.btn.light { background: #fff; color: var(--ink, #14161a); }
.btn.light:hover { box-shadow: 0 10px 30px rgb(0 0 0 / 25%); }

.sec-slider { position: relative; overflow: hidden; }
.sec-slider .slides { position: relative; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: grid; place-items: center; text-align: center; }
.slide.on { position: relative; opacity: 1; }
.slide.on h2, .slide.on p, .slide.on .btn { animation: rise .8s ease both; }
.slide.on p { animation-delay: .1s; } .slide.on .btn { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.h-s .slide, .sec-banner.h-s { min-height: 280px; }
.h-m .slide, .sec-banner.h-m { min-height: 440px; }
.h-l .slide, .sec-banner.h-l { min-height: 600px; }
.slide-inner { padding: 48px 16px; }
.sl-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 85%); color: #111; font-size: 1.6rem; cursor: pointer; box-shadow: 0 4px 14px rgb(0 0 0 / 15%); }
.sl-nav.prev { right: 20px; } .sl-nav.next { left: 20px; }
.dots { position: absolute; bottom: 20px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgb(255 255 255 / 50%); cursor: pointer; transition: width .3s; padding: 0; }
.dots button.on { width: 28px; background: #fff; }
@media (max-width: 600px) { .sl-nav { display: none; } .h-l .slide, .sec-banner.h-l { min-height: 460px; } }

.sec-banner { display: grid; align-items: center; }
.banner-inner { padding: 48px 16px; }
.sec-banner.al-center { text-align: center; }
.sec-banner.al-start .banner-inner { text-align: right; } .sec-banner.al-start p { margin-inline: 0; }
.sec-banner.al-end .banner-inner { text-align: left; } .sec-banner.al-end p { margin-inline: auto 0; }
.sec + .sec.full, .sec.full + .sec.full { margin-top: 48px; }
.page-blocks > .sec.full:first-child { margin-top: 0; }

.sec-it { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sec-it.side-end .it-img { order: 2; }
.it-img { aspect-ratio: 4 / 3.4; border-radius: var(--radius); overflow: hidden; }
.it-img img { width: 100%; height: 100%; object-fit: cover; }
.it-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 6px 0 12px; }
.it-text p { color: var(--muted); font-size: 1.05rem; line-height: 1.9; margin: 0 0 20px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 0.85rem; letter-spacing: .08em; }
@media (max-width: 760px) { .sec-it { grid-template-columns: 1fr; gap: 20px; } .sec-it.side-end .it-img { order: 0; } }

/* Product cards */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
@media (max-width: 960px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; } }
.pcard { display: flex; flex-direction: column; gap: 10px; }
.pcard-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--soft); display: block; }
.pcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .6s; }
.pcard-img img.alt { opacity: 0; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard:hover .pcard-img img.alt { opacity: 1; }
.pcard-img .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: var(--brand); }
.pcard.soldout .pcard-img { opacity: .6; }
.pcard-body { display: grid; gap: 2px; }
.pcard-cat { color: var(--muted); font-size: 0.8rem; }
.pcard-name { color: var(--text); font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .price-row { margin: 0; }
.pcard .price { font-size: 1.05rem; color: var(--text); }
.pcard .compare { color: var(--muted); font-size: 0.85rem; }
.pcard .price-row:has(.compare) .price { color: #dc2626; }
.pcard-btn { display: block; width: 100%; text-align: center; padding: 10px; border: 1.5px solid var(--text); background: transparent; color: var(--text); font: inherit; font-weight: 700; font-size: 0.9rem; border-radius: var(--radius); cursor: pointer; transition: background .15s, color .15s; }
.pcard-btn:hover { background: var(--text); color: var(--card); text-decoration: none; }
.pcard form { margin-top: auto; } .pcard > a.pcard-btn { margin-top: auto; }

/* Categories */
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cat-grid.n-1 { grid-template-columns: 1fr; } .cat-grid.n-2 { grid-template-columns: repeat(2, 1fr); } .cat-grid.n-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .cat-grid, .cat-grid.n-3 { grid-template-columns: repeat(2, 1fr); } }
.cat-card { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background-size: cover; background-position: center; display: flex; align-items: flex-end; color: #fff; transition: transform .3s; }
.cat-card:not(.ph-bg)::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgb(0 0 0 / 65%)); }
.cat-card.ph-bg { color: var(--brand); }
.cat-card span { position: relative; padding: 18px; display: grid; }
.cat-card strong { font-size: 1.2rem; }
.cat-card small { opacity: .85; }
.cat-card:hover { transform: translateY(-4px); text-decoration: none; }

/* Gallery */
.gal-grid { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.gal-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } .gal-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .gal-grid, .gal-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
.gal-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--radius) / 1.5); display: block; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal-item:hover img { transform: scale(1.06); }
.gal-item .cap { position: absolute; inset: auto 0 0 0; padding: 24px 12px 10px; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgb(0 0 0 / 60%)); font-size: 0.9rem; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.feat-item { display: flex; gap: 14px; align-items: center; padding: 22px; border-inline-start: 1px solid var(--line); }
.feat-item:first-child { border-inline-start: 0; }
.feat-icon { font-size: 1.7rem; width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--soft); }
.feat-item strong { display: block; } .feat-item small { color: var(--muted); }
@media (max-width: 700px) { .feat-item { border-inline-start: 0; border-top: 1px solid var(--line); } .feat-item:first-child { border-top: 0; } }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.testi { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.stars { color: #f59e0b; letter-spacing: 2px; } .stars span { color: var(--line); }
.testi blockquote { margin: 0; font-size: 1.05rem; line-height: 1.8; flex: 1; }
.testi blockquote::before { content: '“'; display: block; font-size: 3rem; line-height: .6; color: var(--brand); opacity: .3; font-family: Georgia, serif; }
.testi figcaption { display: flex; gap: 12px; align-items: center; }
.testi figcaption img, .avatar-ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.avatar-ph { display: grid; place-items: center; background: var(--soft); color: var(--brand); font-weight: 800; }
.testi figcaption small { display: block; color: var(--muted); }

.sec-text { max-width: 820px; }
.sec-text.al-center { text-align: center; }
.sec-text h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.video-box { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sec-faq .faq details { border-radius: var(--radius); }

.storefront .chips { justify-content: center; flex-wrap: wrap; }
.storefront .shop-tools { max-width: 720px; margin: 0 auto 20px; }
.storefront .shop-foot { margin-top: 72px; }

/* =========================================================
   Builder (dashboard)
   ========================================================= */
.design-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.design-grid > .card h3, .design-side h3 { margin: 0; }
.design-side { position: sticky; top: 16px; display: grid; gap: 16px; }
@media (max-width: 960px) { .design-grid { grid-template-columns: 1fr; } .design-side { position: static; } }
.preset-row select { width: auto; padding: 6px 10px; }
.builder { display: grid; gap: 10px; margin-top: 12px; }
.b-empty { text-align: center; padding: 24px; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }
.b-sec { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; transition: box-shadow .15s; }
.b-sec.open { box-shadow: 0 6px 24px rgb(0 0 0 / 8%); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.b-sec.hidden-sec { opacity: .55; }
.b-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; user-select: none; }
.b-head:hover { background: var(--bg); }
.b-icon { font-size: 1.4rem; width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--bg); border-radius: 10px; }
.b-title { flex: 1; min-width: 0; display: grid; }
.b-title small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-tools { display: flex; gap: 2px; align-items: center; flex: none; }
.b-ic { width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 0.95rem; color: var(--text); }
.b-ic:hover:not(:disabled) { background: var(--line); }
.b-ic:disabled { opacity: .25; cursor: default; }
.b-ic.danger { color: var(--danger); }
.b-chev { width: 20px; text-align: center; color: var(--muted); }
.b-body { padding: 4px 16px 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.b-field { display: grid; gap: 4px; font-weight: 500; }
.b-label { font-weight: 500; font-size: 0.92rem; margin-top: 4px; }
.b-img { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.b-img-box { width: 120px; height: 80px; border-radius: 8px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.b-img-box.empty { border-style: dashed; font-size: 1.5rem; }
.b-img-box img { width: 100%; height: 100%; object-fit: cover; }
.b-img-actions { display: grid; gap: 4px; justify-items: start; }
.b-items-title { margin: 8px 0 0; }
.b-items { display: grid; gap: 8px; }
.b-item { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.b-item-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.b-item-thumb { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.b-item-title { flex: 1; font-weight: 700; font-size: 0.92rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-item-body { padding: 4px 12px 12px; display: grid; gap: 10px; }
.b-items-add { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.b-bulk { flex: 1; padding: 10px; display: flex; gap: 4px; justify-content: center; font-size: 0.9rem; }
.b-add > summary { list-style: none; display: inline-block; margin-top: 6px; }
.b-add > summary::-webkit-details-marker { display: none; }
.b-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.b-pick { display: grid; gap: 4px; justify-items: start; text-align: right; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font: inherit; color: var(--text); }
.b-pick:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--card)); }
.b-pick span { font-size: 1.5rem; } .b-pick small { color: var(--muted); font-size: 0.8rem; }
.font-picks { display: grid; gap: 8px; }
.font-pick, .seg label { position: relative; }
.font-pick input, .seg input { position: absolute; inset-inline-start: 6px; top: 6px; opacity: 0; width: 1px; height: 1px; margin: 0; }
.font-pick span { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.font-pick b { font-size: 1.2rem; } .font-pick small { color: var(--muted); font-family: var(--font, 'Tajawal'), sans-serif; }
.font-pick input:checked + span, .seg input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--card)); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg span { display: block; padding: 8px 14px; border: 2px solid var(--line); cursor: pointer; font-size: 0.9rem; border-radius: 10px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tpl { width: 100%; display: grid; gap: 6px; justify-items: center; padding: 18px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; font: inherit; color: var(--text); }
.tpl:hover { border-color: var(--brand); }
.tpl span { font-size: 1.8rem; }
.storefront main.wrap:has(+ .page-blocks) { flex: 0 0 auto; }

/* Admin */
.admin-head h1 { margin: 6px 0 0; }
.admin-tabs a { padding: 8px 14px; border-radius: 8px; color: var(--text); font-weight: 500; }
.admin-tabs a.on { background: var(--brand); color: #fff; }
.admin-tabs a:hover { text-decoration: none; background: var(--line); }
.admin-tabs a.on:hover { background: var(--brand); }
.admin-table td { vertical-align: middle; }
.row-off td { opacity: .6; }
.stat small { display: block; margin-top: 2px; }
.admin-link { font-weight: 700; }
.acting-bar { background: #fef3c7; color: #78350f; padding: 10px 0; font-size: 0.9rem; border-bottom: 1px solid #fde68a; }
.acting-bar.off { background: #fee2e2; color: #7f1d1d; border-color: #fecaca; }
.acting-bar + main { margin-top: 16px; }

/* =========================================================
   App shell — one consistent look for all management pages
   ========================================================= */
.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #0f1d1b; color: #cbd5d1; display: flex; flex-direction: column; gap: 6px; padding: 16px 12px; }
.sidebar a { color: #cbd5d1; }
.sidebar .logo { color: #fff; font-size: 1.3rem; padding: 4px 6px; }
.sidebar .logo-word b { color: #2dd4bf; }
.sidebar .logo-mark { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 14px -6px rgba(28,63,170,.6); }
.side-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.side-close { display: none; background: none; border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; }
.side-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; color: #6f8a84; padding: 14px 12px 4px; font-weight: 700; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-weight: 500; font-size: 0.95rem; }
.side-nav a span { width: 22px; text-align: center; }
.side-nav a:hover { background: rgb(255 255 255 / 6%); color: #fff; text-decoration: none; }
.side-nav a.on { background: var(--brand); color: #fff; }
.side-nav .pending { margin-inline-start: auto; }
.switcher { background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 8%); border-radius: 10px; margin: 4px 0 6px; }
.switcher summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px; cursor: pointer; }
.switcher summary::-webkit-details-marker { display: none; }
.sw-avatar { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 800; overflow: hidden; flex: none; }
.sw-avatar img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.sw-name { flex: 1; min-width: 0; display: grid; }
.sw-name strong { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-name small { color: #6f8a84; font-size: 0.75rem; text-align: right; }
.sw-chev { color: #6f8a84; }
.sw-list { display: grid; padding: 0 6px 8px; border-top: 1px solid rgb(255 255 255 / 8%); }
.sw-list a { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; font-size: 0.9rem; }
.sw-list a:hover, .sw-list a.on { background: rgb(255 255 255 / 6%); color: #fff; text-decoration: none; }
.sw-dot { width: 10px; height: 10px; border-radius: 50%; }
.sw-new { color: #5eead4 !important; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid rgb(255 255 255 / 8%); }
.u-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.u-info { flex: 1; min-width: 0; display: grid; }
.u-info strong { color: #fff; font-size: 0.9rem; }
.u-info small { color: #6f8a84; font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.u-out { background: none; border: 0; color: #cbd5d1; font-size: 1.2rem; cursor: pointer; padding: 6px; border-radius: 6px; }
.u-out:hover { background: rgb(255 255 255 / 8%); color: #fff; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { display: none; }
.app-content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 32px 64px; }
.app-content > h1:first-child, .app-content > .row:first-child h1, .page-head-row h1 { margin-top: 0; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head-row h1 { margin-bottom: 2px; }
.app .acting-bar { padding: 10px 32px; }
.app-content .save-bar { margin-inline: -32px; padding-inline: 32px; }
.side-backdrop { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 0 0 auto; width: 280px; z-index: 60; transform: translateX(100%); transition: transform .25s ease; box-shadow: -10px 0 40px rgb(0 0 0 / 30%); }
  .side-open .sidebar { transform: none; }
  .side-close { display: block; }
  .side-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgb(0 0 0 / 40%); z-index: 55; }
  .app-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .burger { width: 40px; height: 40px; border: 0; background: none; display: grid; place-content: center; gap: 5px; cursor: pointer; }
  .burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
  .app-content { padding: 20px 16px 48px; }
  .app .acting-bar { padding: 10px 16px; }
  .app-content .save-bar { margin-inline: -16px; padding-inline: 16px; }
}

/* Store overview */
.ov-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ov-id { display: flex; gap: 16px; align-items: center; min-width: 0; }
.ov-logo { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 1.7rem; font-weight: 800; overflow: hidden; flex: none; box-shadow: 0 4px 14px rgb(0 0 0 / 10%); }
.ov-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.ov-title { gap: 10px; }
.ov-title h1 { margin: 0; font-size: 1.8rem; }
.ov-id p { margin: 2px 0 0; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; color: var(--text); }
a.kpi:hover { text-decoration: none; border-color: var(--brand); }
.kpi > div { display: grid; min-width: 0; }
.kpi small { color: var(--muted); font-size: 0.85rem; }
.kpi strong { font-size: 1.45rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi em { font-style: normal; color: var(--muted); font-size: 0.78rem; }
.kpi-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.kpi-ic.c1 { background: #dcfce7; } .kpi-ic.c2 { background: #dbeafe; } .kpi-ic.c3 { background: #fef3c7; } .kpi-ic.c4 { background: #f3e8ff; }
.alert-kpi { border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 6%, var(--card)); }
.alert-kpi em { color: #b45309; font-weight: 700; }

.setup { margin-bottom: 20px; }
.setup-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.setup-head h3 { margin: 0; } .setup-head p { margin: 2px 0 0; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0); }
.ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; color: var(--brand); }
.setup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1000px) { .setup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .setup-grid { grid-template-columns: 1fr; } }
.step { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--bg); transition: border-color .15s, transform .15s; }
.step:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-1px); }
.step > span:last-child { display: grid; min-width: 0; }
.step small { color: var(--muted); font-size: 0.8rem; }
.step-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.step.done { opacity: .6; } .step.done strong { text-decoration: line-through; }
.step.done .step-ic { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 800; }

.ov-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .ov-grid { grid-template-columns: 1fr; } }
.ov-col { display: grid; gap: 16px; min-width: 0; }
.ov-col .card h3 { margin: 0 0 12px; font-size: 1.05rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-head h3 { margin: 0 !important; }
.chart-empty { display: grid; justify-items: center; gap: 6px; padding: 36px 16px; color: var(--muted); text-align: center; background: var(--bg); border-radius: 10px; }
.chart-empty span { font-size: 2rem; } .chart-empty p { margin: 0; }
.list { display: grid; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--text); }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { text-decoration: none; background: var(--bg); }
.list-av { width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 12%, var(--bg)); color: var(--brand); display: grid; place-items: center; font-weight: 800; flex: none; }
.list-main { flex: 1; min-width: 0; display: grid; }
.list-main small { color: var(--muted); font-size: 0.8rem; }
.list-amt { white-space: nowrap; }
.copy-row { display: flex; gap: 8px; margin-bottom: 10px; }
.copy-row input { flex: 1; min-width: 0; padding: 8px 10px; font-size: 0.85rem; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-weight: 500; font-size: 0.9rem; background: var(--bg); }
.quick a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.quick span { font-size: 1.4rem; }
.warn-card { border-color: #fcd34d; }
.warn-card p { margin: 6px 0; }

/* =========================================================
   Design editor with live preview
   ========================================================= */
.app-content.wide { max-width: none; padding: 0; }
.editor { display: flex; flex-direction: column; height: 100vh; }
.ed-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; background: var(--card); border-bottom: 1px solid var(--line); flex: none; }
.ed-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ed-title strong { font-size: 1.05rem; white-space: nowrap; }
.ed-status { font-size: 0.82rem; color: #15803d; white-space: nowrap; }
.ed-status.dirty { color: #b45309; }
.ed-devices { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.ed-devices button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.ed-devices button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 10%); }
.ed-actions { display: flex; gap: 8px; align-items: center; }
.ed-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 400px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
/* The editor fills exactly the space left under any bars above it, and never makes the page scroll. */
@media (min-width: 901px) {
  .app-main:has(.editor) { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  .app-main:has(.editor) > .app-content { flex: 1; min-height: 0; }
  .app-main:has(.editor) .editor { height: 100%; }
}
.ed-panel { background: var(--card); border-inline-start: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
.ed-tabs { display: flex; position: sticky; top: 0; z-index: 2; background: var(--card); border-bottom: 1px solid var(--line); padding: 0 10px; }
.ed-tabs button { flex: 1; border: 0; background: none; padding: 13px 8px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.ed-tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.ed-pane { padding: 14px; }
.ed-hint { margin: 0 0 6px; }
.ed-panel .builder { margin-top: 6px; }
.ed-panel .b-picker { grid-template-columns: 1fr 1fr; }
.ed-panel .b-img-box { width: 96px; height: 64px; }
.ed-stage { background: #e9ecef; overflow: auto; padding: 20px; display: flex; justify-content: center; }
.ed-frame { width: 100%; max-width: 1400px; height: 100%; min-height: 560px; display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgb(0 0 0 / 12%); transition: max-width .3s ease; }
.ed-frame.mobile { max-width: 390px; border-radius: 28px; border: 8px solid #111; }
.ed-frame.mobile .ed-browser { display: none; }
.ed-browser { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; direction: ltr; flex: none; }
.ed-browser i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.ed-browser i:nth-child(2) { background: #fbbf24; } .ed-browser i:nth-child(3) { background: #34d399; }
.ed-browser span { margin-left: 10px; font-size: 0.78rem; color: #6b7280; background: #fff; padding: 3px 14px; border-radius: 6px; flex: 1; max-width: 420px; }
.ed-browser em { margin-left: auto; font-style: normal; font-size: 0.78rem; color: #6b7280; }
.ed-frame iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.pv-focus { outline: 3px solid #3b82f6; outline-offset: -3px; }

/* builder polish */
.b-grip { color: var(--muted); cursor: grab; font-size: 0.9rem; letter-spacing: -3px; padding: 0 2px; user-select: none; }
.b-sec.dragging { opacity: .4; }
.b-sec.drop-over { box-shadow: 0 -3px 0 var(--brand) inset, 0 3px 0 var(--brand); }
.b-head { padding: 10px 10px; gap: 8px; }
.b-icon { width: 34px; height: 34px; font-size: 1.15rem; }
.b-tools .b-ic { width: 26px; height: 26px; font-size: 0.85rem; }
.b-sec:not(.open) .b-tools .b-ic { opacity: 0; transition: opacity .15s; }
.b-sec:hover .b-tools .b-ic, .b-sec:focus-within .b-tools .b-ic { opacity: 1; }
@media (hover: none) { .b-sec .b-tools .b-ic { opacity: 1; } }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--text); }
.swatch.custom { background: conic-gradient(#f43f5e, #f59e0b, #22c55e, #3b82f6, #a855f7, #f43f5e); position: relative; overflow: hidden; }
.swatch.custom input { position: absolute; inset: -10px; width: 60px; height: 60px; opacity: 0; cursor: pointer; }
.tpl-list { display: grid; gap: 10px; }
.tpl-card { display: flex; gap: 12px; align-items: center; text-align: right; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; font: inherit; color: var(--text); }
.tpl-card:hover { border-color: var(--brand); }
.tpl-card > span:last-child { display: grid; gap: 2px; }
.tpl-card small { color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.tpl-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.5rem; flex: none; }

@media (max-width: 1100px) {
  .ed-body { grid-template-columns: 340px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .editor { height: auto; }
  .ed-body { grid-template-columns: 1fr; }
  .ed-stage { order: -1; height: 70vh; padding: 10px; }
  .ed-bar { flex-wrap: wrap; }
  .ed-panel { border: 0; }
}
.ed-frame { position: relative; }
.ed-frame:not(.mobile) iframe { position: absolute; top: 37px; right: 0; }

/* Custom domain */
.domain-card { margin-bottom: 16px; }
.dom-empty { text-align: center; max-width: 560px; margin: 0 auto 16px; }
.dom-form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 12px; }
.dom-form .prefix-input { flex: 1; }
.domain-card > .muted.small { text-align: center; }
.dom-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dom-name { font-size: 1.6rem; font-weight: 800; }
.dns-table code { background: var(--bg); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; font-size: 0.88rem; word-break: break-all; }
.copy { font: inherit; font-size: 0.75rem; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); cursor: pointer; margin-inline-start: 4px; }
.copy:hover { border-color: var(--brand); color: var(--brand); }
.app-content > .card + .card, .app-content section.card { margin-bottom: 16px; }
@media (max-width: 600px) { .dom-form { flex-direction: column; } }
.btn.ghost.danger-btn { color: var(--danger); border-color: var(--danger); }

/* =========================================================
   Storefront chat widget
   ========================================================= */
.chat { position: fixed; bottom: 20px; left: 20px; z-index: 40; font-family: var(--font, 'Tajawal'), sans-serif; }
.chat-fab { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 45%, transparent); position: relative; transition: transform .2s; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab .ic-close, .chat.open .chat-fab .ic-open { display: none; }
.chat.open .chat-fab .ic-close { display: block; }
.chat-badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #dc2626; color: #fff; font-size: 0.75rem; display: grid; place-items: center; border: 2px solid #fff; }
.chat-panel { position: absolute; bottom: 76px; left: 0; width: 370px; max-width: calc(100vw - 40px); height: min(580px, calc(100vh - 120px)); background: var(--card); border-radius: 18px; box-shadow: 0 24px 60px rgb(0 0 0 / 22%); display: flex; flex-direction: column; overflow: hidden; animation: chat-in .22s ease-out; border: 1px solid var(--line); }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #000)); color: #fff; }
.chat-logo { width: 42px; height: 42px; border-radius: 12px; background: rgb(255 255 255 / 20%); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.chat-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.chat-title { flex: 1; display: grid; }
.chat-title small { opacity: .85; font-size: 0.8rem; display: flex; align-items: center; gap: 6px; }
.dot-on { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgb(74 222 128 / 30%); }
.chat-x { background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; opacity: .8; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: color-mix(in srgb, var(--brand) 3%, var(--bg)); }
#chat-msgs { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 16px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; font-size: 0.95rem; position: relative; }
.bubble time { display: block; font-size: 0.68rem; opacity: .6; margin-top: 2px; }
.bubble.them { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-start-start-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; border-start-end-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chat-quick button { font: inherit; font-size: 0.85rem; padding: 6px 12px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line)); background: var(--card); color: var(--brand); cursor: pointer; }
.chat-quick button:hover { background: var(--brand); color: #fff; }
.chat-who { display: flex; gap: 6px; padding: 8px 12px 0; }
.chat-who input { padding: 7px 10px; font-size: 0.85rem; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; padding: 10px 12px; border-radius: 20px; max-height: 120px; line-height: 1.4; }
.chat-send { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-wa { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; font-size: 0.85rem; color: #128c7e; background: #f0fdf4; border-top: 1px solid var(--line); font-weight: 700; }
.chat-wa:hover { text-decoration: none; background: #dcfce7; }
.chat-err { align-self: center; color: var(--danger); font-size: 0.8rem; }
@media (max-width: 480px) {
  .chat { left: 14px; bottom: 14px; }
  .chat-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; border-radius: 0; bottom: 0; }
  .chat.open .chat-fab { display: none; }
}

/* =========================================================
   Merchant inbox
   ========================================================= */
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: 100vh; background: var(--card); }
.ib-list { border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ib-list-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 8px; position: relative; }
.ib-list-head h2 { margin: 0; font-size: 1.3rem; }
.ib-settings summary { list-style: none; cursor: pointer; font-size: 1.2rem; padding: 4px 8px; border-radius: 8px; }
.ib-settings summary::-webkit-details-marker { display: none; }
.ib-settings[open] summary { background: var(--bg); }
.ib-settings .form { position: absolute; left: 12px; right: 12px; top: 56px; z-index: 5; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 12px 30px rgb(0 0 0 / 12%); }
.ib-filters { display: flex; gap: 6px; padding: 4px 16px 10px; border-bottom: 1px solid var(--line); }
.ib-filters a { padding: 4px 12px; border-radius: 99px; font-size: 0.85rem; color: var(--muted); border: 1px solid var(--line); }
.ib-filters a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.ib-filters a:hover { text-decoration: none; }
.ib-convs { overflow-y: auto; flex: 1; }
.ib-conv { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); }
.ib-conv:hover { background: var(--bg); text-decoration: none; }
.ib-conv.on { background: color-mix(in srgb, var(--brand) 8%, var(--card)); box-shadow: inset -3px 0 0 var(--brand); }
.ib-conv-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ib-conv-main small { color: var(--muted); font-size: 0.75rem; }
.ib-last { color: var(--muted); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-conv.unread strong, .ib-conv.unread .ib-last { color: var(--text); font-weight: 700; }
.ib-empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.ib-thread { display: flex; flex-direction: column; min-height: 0; background: color-mix(in srgb, var(--brand) 2%, var(--bg)); }
.ib-placeholder { margin: auto; text-align: center; max-width: 380px; padding: 24px; }
.ib-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ib-back { display: none; font-size: 1.3rem; color: var(--text); }
.ib-who { flex: 1; display: grid; min-width: 0; }
.ib-who small { color: var(--muted); font-size: 0.8rem; }
.ib-actions { gap: 8px; }
.ib-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.ib-reply { background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px 14px; }
.ib-canned { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
.ib-canned button { flex: none; font: inherit; font-size: 0.8rem; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; }
.ib-canned button:hover { border-color: var(--brand); color: var(--brand); }
.ib-input { display: flex; gap: 10px; align-items: flex-end; }
.ib-input textarea { flex: 1; resize: none; }
@media (max-width: 900px) {
  .inbox { grid-template-columns: 1fr; height: calc(100vh - 61px); }
  .inbox[data-active]:not([data-active=""]) .ib-list { display: none; }
  .inbox[data-active=""] .ib-thread { display: none; }
  .ib-back { display: block; }
}

/* Admin v2 */
.mchart { display: flex; align-items: flex-end; gap: 2px; height: 110px; margin-top: 8px; direction: ltr; }
.mc-bar { flex: 1; background: var(--brand); border-radius: 3px 3px 1px 1px; min-width: 2px; opacity: .85; }
.mc-bar:hover { opacity: 1; }
.mc-bar.zero { background: var(--line); }
.mc-axis { display: flex; justify-content: space-between; direction: ltr; color: var(--muted); font-size: 0.72rem; margin-top: 4px; }
.act-signup { background: #dbeafe !important; } .act-store { background: #f3e8ff !important; } .act-order { background: #dcfce7 !important; }
.link-row { color: var(--text); } .link-row:hover { text-decoration: none; background: var(--bg); }
.danger-zone { border-color: #fecaca; }
.danger-zone code { background: var(--bg); padding: 1px 6px; border-radius: 4px; }
.btn.danger-solid { background: var(--danger); }
.admin-status { border: 0; padding: 0 0 12px; flex-wrap: wrap; }
.admin-status small { opacity: .7; }
a.prod-cell { color: var(--text); } a.prod-cell:hover { text-decoration: none; } a.prod-cell:hover strong { color: var(--brand); }
.notice-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 32px; font-weight: 500; }
.notice-bar button { background: none; border: 0; cursor: pointer; font-size: 1rem; color: inherit; opacity: .7; }
.n-info { background: #e0f2fe; color: #075985; } .n-success { background: #dcfce7; color: #14532d; } .n-warning { background: #fef3c7; color: #78350f; }
.side-help { display: grid; margin: 8px 4px 0; padding: 10px 12px; border-radius: 10px; background: rgb(255 255 255 / 5%); color: #fff !important; font-weight: 700; font-size: 0.9rem; }
.side-help small { color: #6f8a84; font-weight: 400; }
.side-help:hover { background: rgb(255 255 255 / 9%); text-decoration: none; }
@media (max-width: 900px) { .notice-bar { padding: 10px 16px; } }

/* =========================================================
   Landing page v2
   ========================================================= */
.lp-nav { display: flex; align-items: center; gap: 24px; min-height: 48px; }
.lp-nav .landing-nav { display: flex; gap: 26px; flex: 1; justify-content: center; }
.lp-nav-cta { gap: 14px; }
.lp-login { color: var(--text); font-weight: 500; }
.lp-mnav { display: none; }
@media (max-width: 900px) {
  .lp-nav .landing-nav { display: none; }
  .lp-nav { justify-content: space-between; }
  .lp-mnav { display: block; }
  .lp-mnav nav { left: 0; right: auto; }
  .lp-login { display: none; }
}

.lp-hero { padding: 72px 0 40px; background:
  radial-gradient(ellipse 60% 50% at 90% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent),
  radial-gradient(ellipse 50% 40% at 0% 30%, rgb(99 102 241 / 8%), transparent); overflow: hidden; }
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lp-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); line-height: 1.15; margin: 18px 0 16px; font-weight: 800; letter-spacing: -0.02em; }
.lp-hero-text > p { font-size: 1.15rem; color: var(--muted); max-width: 560px; line-height: 1.8; }
.lp-ctas { margin-top: 8px; }
.lp-visual { position: relative; padding: 24px 0 40px; }
.lp-mock-main { transform: perspective(1400px) rotateY(8deg) rotateX(2deg); }
.mock-nav { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mock-nav b { margin-inline-end: auto; font-size: 0.9rem; }
.mock-nav span { width: 34px; height: 6px; border-radius: 3px; background: var(--line); }
.lp-mock-main .mock-hero { padding: 30px 20px; gap: 6px; }
.lp-mock-main .mock-hero strong { font-size: 1.2rem; }
.lp-mock-main .mock-hero em { font-style: normal; background: #fff; color: var(--ink); padding: 4px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; margin-top: 6px; }
.lp-float { position: absolute; display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 16px 40px rgb(0 0 0 / 14%); animation: pop 4s ease-in-out infinite; }
.lp-float span { font-size: 1.5rem; }
.lp-float div { display: grid; } .lp-float small { color: var(--muted); font-size: 0.78rem; } .lp-float strong { font-size: 0.9rem; }
.lp-toast-order { bottom: 6px; right: -12px; }
.lp-toast-chat { top: 0; left: -16px; animation-delay: 1.5s; }
@media (max-width: 960px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .lp-hero { padding-top: 40px; }
  .lp-mock-main { transform: none; }
  .lp-toast-order { right: 0; } .lp-toast-chat { left: 0; }
}

.lp-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-top: 8px; margin-bottom: 8px; }
.lp-facts div { text-align: center; padding: 22px 12px; border-inline-start: 1px solid var(--line); display: grid; gap: 2px; }
.lp-facts div:first-child { border-inline-start: 0; }
.lp-facts strong { font-size: 2rem; color: var(--brand); line-height: 1.1; } .lp-facts strong small { font-size: 1rem; }
.lp-facts span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 700px) { .lp-facts { grid-template-columns: 1fr 1fr; } .lp-facts div:nth-child(3) { border-inline-start: 0; } .lp-facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.lp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lp-features { grid-template-columns: 1fr; } }
.lp-feat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.lp-feat:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgb(0 0 0 / 7%); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.lp-feat-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: color-mix(in srgb, var(--brand) 10%, var(--bg)); }
.lp-feat h3 { margin: 16px 0 6px; font-size: 1.1rem; }
.lp-feat p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 0.95rem; }

.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 72px 0 8px; scroll-margin-top: 70px; }
.lp-split.reverse .lp-split-text { order: 2; }
.lp-split h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); margin: 12px 0 10px; }
.lp-split-text > p { font-size: 1.05rem; line-height: 1.8; }
.lp-bullets { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.lp-bullets li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.lp-bullets li::before { content: '✓'; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; }
@media (max-width: 860px) { .lp-split { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; } .lp-split.reverse .lp-split-text { order: 0; } }

.lp-editor { display: grid; grid-template-columns: 160px 1fr; min-height: 280px; transform: rotate(-1deg); }
.lp-ed-panel { border-inline-end: 1px solid var(--line); padding: 12px; display: grid; gap: 8px; align-content: start; background: var(--card); }
.lp-ed-tabs { display: flex; gap: 10px; font-size: 0.8rem; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.lp-ed-tabs b { color: var(--brand); } .lp-ed-tabs span { color: var(--muted); }
.lp-ed-item { font-size: 0.8rem; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.lp-ed-item.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--card)); }
.lp-ed-swatches { display: flex; gap: 6px; margin-top: 6px; } .lp-ed-swatches i { width: 18px; height: 18px; border-radius: 50%; }
.lp-ed-preview { background: #e9ecef; padding: 12px; display: grid; gap: 10px; align-content: start; }
.lp-ed-hero { height: 120px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.2rem; background: linear-gradient(135deg, #312e81, #6366f1); outline: 3px solid #3b82f6; outline-offset: -3px; }
.lp-ed-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-ed-cards i { aspect-ratio: 4/5; border-radius: 8px; background: #fff; }
.lp-order { padding: 20px; display: grid; gap: 14px; max-width: 420px; margin: 0 auto; transform: rotate(1deg); }
.lp-order-head, .lp-order-row { display: flex; justify-content: space-between; align-items: center; }
.lp-order-head strong { font-size: 1.2rem; }
.lp-order-hist { background: #dcfce7; color: #14532d; border-radius: 10px; padding: 10px 14px; display: grid; }
.lp-order-hist span { font-weight: 700; } .lp-order-hist small { opacity: .8; }
.lp-order-btns { display: flex; gap: 8px; } .lp-order-btns em { font-style: normal; flex: 1; text-align: center; padding: 10px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; font-size: 0.9rem; }
.lp-order-btns em.wa { background: #25d366; color: #fff; border-color: #25d366; }

.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; position: relative; }
.lp-steps > div { text-align: center; padding: 28px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.lp-steps b { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.3rem; box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 12%, transparent); }
.lp-steps h3 { margin: 18px 0 6px; } .lp-steps p { margin: 0; }
@media (max-width: 760px) { .lp-steps { grid-template-columns: 1fr; } }

.lp-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.lp-foot-grid > div { display: grid; gap: 8px; align-content: start; }
.lp-foot-grid strong { margin-bottom: 4px; }
.lp-foot-grid a:not(.logo) { color: var(--muted); }
.lp-copy { border-top: 1px solid var(--line); margin-top: 24px !important; padding-top: 16px; }
@media (max-width: 760px) { .lp-foot-grid { grid-template-columns: 1fr 1fr; } .lp-foot-grid > div:first-child { grid-column: 1 / -1; } }

/* Admin overview v3 */
.seg-tabs { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; align-self: center; }
.seg-tabs a { padding: 7px 14px; border-radius: 7px; color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.seg-tabs a.on { background: var(--brand); color: #fff; }
.seg-tabs a:hover { text-decoration: none; }
.delta { font-size: 0.75rem; font-weight: 700; padding: 1px 6px; border-radius: 99px; vertical-align: middle; }
.delta.up { background: #dcfce7; color: #15803d; } .delta.down { background: #fee2e2; color: #b91c1c; } .delta.flat { background: var(--bg); color: var(--muted); }
.chart-card { margin-bottom: 16px; }
.chart-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.chart-tabs button { font: inherit; border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 10px; padding: 8px 14px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.chart-tabs button b { color: var(--text); font-size: 1.05rem; }
.chart-tabs button.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--card)); color: var(--brand); }
.lchart { margin-top: 12px; }
.lc-plot { position: relative; height: 220px; padding-inline-end: 44px; direction: ltr; }
.lc-plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.lc-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lc-ylab { position: absolute; top: 0; bottom: 0; right: 0; width: 40px; display: flex; flex-direction: column; justify-content: space-between; font-size: 0.72rem; color: var(--muted); text-align: left; padding: 2px 0; }
.lc-hits { position: absolute; inset: 0 44px 0 0; }
.lc-hits span { position: absolute; left: var(--x); top: 0; bottom: 0; width: 18px; margin-left: -9px; }
.lc-hits span i { position: absolute; left: 50%; top: var(--y); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid #fff; opacity: 0; box-shadow: 0 1px 4px rgb(0 0 0 / 30%); }
.lc-hits span em { position: absolute; bottom: calc(100% - var(--y) + 12px); left: 50%; transform: translateX(-50%); background: #111827; color: #fff; font-style: normal; font-size: 0.75rem; padding: 5px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; display: grid; text-align: center; }
.lc-hits span:hover i, .lc-hits span:hover em { opacity: 1; }
.lc-hits span:hover { background: linear-gradient(transparent, rgb(0 0 0 / 3%)); }
.lc-x { display: flex; justify-content: space-between; direction: ltr; color: var(--muted); font-size: 0.75rem; margin-top: 6px; padding-inline-end: 44px; }
.lc-empty { position: absolute; inset: 0 44px 0 0; display: grid; place-items: center; color: var(--muted); font-size: 0.9rem; z-index: 1; }
.funnel { display: grid; gap: 6px; margin-top: 4px; }
.fn-row { display: grid; grid-template-columns: 150px 1fr 70px; gap: 12px; align-items: center; }
.fn-label { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 0.92rem; }
.fn-label b { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.75rem; }
.fn-bar { height: 26px; background: var(--bg); border-radius: 8px; overflow: hidden; }
.fn-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 65%, #fff)); border-radius: 8px; }
.fn-val { display: grid; text-align: left; } .fn-val small { color: var(--muted); font-size: 0.75rem; }
.fn-drop { font-size: 0.75rem; color: #b45309; padding-inline-start: 162px; }
.tip { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 10px; padding: 10px 12px; font-size: 0.88rem; margin: 14px 0 0; }
.attn { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--bg); color: var(--text); margin-bottom: 8px; font-weight: 500; }
.attn:hover { text-decoration: none; background: color-mix(in srgb, var(--brand) 8%, var(--bg)); }
.attn-row { padding: 6px 0; color: var(--text); border-bottom: 1px solid var(--line); }
.attn-row:last-child { border-bottom: 0; }
@media (max-width: 600px) { .fn-row { grid-template-columns: 110px 1fr 54px; gap: 8px; } .fn-drop { padding-inline-start: 118px; } }

/* Slider arrows (SVG so RTL doesn't mirror them) */
.sl-nav { display: grid; place-items: center; transition: background .15s, transform .15s; }
.sl-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }

/* Decorative background for image-less hero / slides / banners */
.sec-hero:not(.has-img), .slide:not(.has-img), .sec-banner:not(.has-img) {
  background-image:
    radial-gradient(circle at 15% 20%, rgb(255 255 255 / 16%) 0 120px, transparent 121px),
    radial-gradient(circle at 88% 85%, rgb(255 255 255 / 10%) 0 200px, transparent 201px),
    radial-gradient(circle at 75% 10%, rgb(0 0 0 / 12%) 0 90px, transparent 91px),
    radial-gradient(rgb(255 255 255 / 14%) 1.2px, transparent 1.4px),
    linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 45%, #000));
  background-size: auto, auto, auto, 22px 22px, auto;
}
.slide:not(.has-img):nth-child(2n) {
  background-image:
    radial-gradient(circle at 85% 25%, rgb(255 255 255 / 16%) 0 140px, transparent 141px),
    radial-gradient(circle at 10% 90%, rgb(255 255 255 / 10%) 0 180px, transparent 181px),
    radial-gradient(rgb(255 255 255 / 14%) 1.2px, transparent 1.4px),
    linear-gradient(225deg, color-mix(in srgb, var(--brand) 80%, #fff), color-mix(in srgb, var(--brand) 40%, #000));
  background-size: auto, auto, 22px 22px, auto;
}
/* Cart icon: mirrored so the basket opens toward the reading direction in RTL */
[dir="rtl"] .cart-ic { transform: scaleX(-1); }
.icon-btn .count { top: 0; left: 0; box-shadow: 0 0 0 2px var(--card); font-weight: 700; }

/* =========================================================
   Landing pages (product hero, order form, countdown)
   ========================================================= */
.sec-ph { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; padding-top: 32px; scroll-margin-top: 80px; }
.ph-gallery { display: grid; gap: 10px; position: sticky; top: 90px; }
.ph-main { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--soft); display: grid; place-items: center; }
.ph-main img { width: 100%; height: 100%; object-fit: cover; }
.ph-main > span { font-size: 6rem; font-weight: 800; color: var(--brand); }
.ph-off { top: 14px; right: 14px; font-size: 1rem; padding: 4px 14px; }
.ph-info h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.25; margin: 8px 0 10px; }
.ph-eyebrow { display: inline-block; background: #fef2f2; color: #b91c1c; font-weight: 700; font-size: 0.85rem; padding: 4px 12px; border-radius: 99px; }
.ph-info .price-row.big .price { font-size: 2rem; color: var(--brand); }
.ph-info .compare { font-size: 1.1rem; color: var(--muted); }
.ph-sub { color: var(--muted); font-size: 1.05rem; line-height: 1.85; margin: 12px 0; }
@media (max-width: 860px) { .sec-ph { grid-template-columns: 1fr; gap: 20px; padding-top: 16px; } .ph-gallery { position: static; } }

.lo-form { display: grid; gap: 14px; background: var(--card); border: 2px solid var(--brand); border-radius: calc(var(--radius) + 4px); padding: 20px; margin-top: 16px; box-shadow: 0 14px 40px color-mix(in srgb, var(--brand) 12%, transparent); }
.lo-form .opt-pick { margin: 0; }
.lo-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stepper button { width: 42px; height: 42px; border: 0; background: var(--bg); font-size: 1.3rem; cursor: pointer; color: var(--text); }
.stepper input { width: 56px; text-align: center; border: 0; border-radius: 0; background: var(--card); padding: 8px 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.lo-fields { display: grid; gap: 10px; }
.lo-fields input, .lo-fields textarea { padding: 13px 14px; font-size: 1rem; background: var(--bg); }
.lo-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--soft); border-radius: var(--radius); }
.lo-total small { color: var(--muted); font-size: 0.8rem; }
.lo-total strong { font-size: 1.35rem; color: var(--brand); }
.lo-submit { font-size: 1.15rem; padding: 16px; animation: lo-pulse 2.4s ease-in-out infinite; }
@keyframes lo-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
.lo-submit:disabled { animation: none; opacity: .7; }
.lo-trust { margin: 0; text-align: center; color: var(--muted); font-size: 0.82rem; }

.sec-of { max-width: 640px; scroll-margin-top: 80px; }
.of-card { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 28px 24px; }
.of-card .sec-head { margin-bottom: 16px; }
.of-product { display: flex; gap: 14px; align-items: center; }
.of-product img { width: 72px; height: 72px; border-radius: var(--radius); object-fit: cover; }
.of-card .lo-form { border-width: 1px; box-shadow: none; }

.sec-cd { padding-top: 32px; }
.cd-box { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, #7f1d1d, #dc2626); color: #fff; border-radius: calc(var(--radius) + 4px); padding: 18px 24px; text-align: center; }
.cd-box > strong { font-size: 1.15rem; }
.cd-units { display: flex; gap: 10px; direction: ltr; flex-direction: row-reverse; }
.cd-units span { display: grid; min-width: 64px; background: rgb(255 255 255 / 14%); border-radius: 10px; padding: 8px 6px; }
.cd-units b { font-size: 1.7rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-units small { font-size: 0.72rem; opacity: .85; }

.ph-sticky { display: none; }
@media (max-width: 860px) {
  .ph-sticky { display: flex; position: fixed; inset: auto 0 0 0; z-index: 35; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgb(0 0 0 / 10%); color: var(--text); transition: transform .25s; }
  .ph-sticky.away { transform: translateY(110%); }
  .ph-sticky:hover { text-decoration: none; }
  .ph-sticky span { display: grid; } .ph-sticky b { font-size: 1.15rem; color: var(--brand); } .ph-sticky s { font-size: 0.8rem; color: var(--muted); }
  .ph-sticky em { font-style: normal; background: var(--brand); color: #fff; font-weight: 700; padding: 12px 20px; border-radius: var(--radius); }
  .storefront:has(.ph-sticky) .chat { bottom: 84px; }
}
.tpl small { font-size: 0.75rem; }

/* AI ads */
.ai-btn { background: linear-gradient(135deg, var(--brand), #7c3aed); white-space: nowrap; }
.ai-btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.ai-overlay { position: fixed; inset: 0; z-index: 100; background: rgb(15 23 42 / 55%); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.ai-box { background: var(--card); border-radius: 18px; padding: 28px 32px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 30px 80px rgb(0 0 0 / 30%); }
.ai-box h3 { margin: 8px 0 14px; }
.ai-spark { font-size: 2.6rem; animation: spark 1.6s ease-in-out infinite; }
@keyframes spark { 50% { transform: scale(1.2) rotate(15deg); } }
.ai-steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; text-align: right; }
.ai-steps li { padding: 8px 12px; border-radius: 10px; background: var(--bg); color: var(--muted); transition: all .3s; }
.ai-steps li.on { color: var(--text); background: color-mix(in srgb, var(--brand) 10%, var(--bg)); font-weight: 700; }
.ad-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .ad-grid { grid-template-columns: 1fr; } }
.fb-card { background: #fff; color: #050505; border: 1px solid #dadde1; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgb(0 0 0 / 10%); font-family: system-ui, 'Tajawal', sans-serif; position: sticky; top: 20px; }
.fb-head { display: flex; gap: 10px; align-items: center; padding: 12px; }
.fb-head > span:last-child { display: grid; } .fb-head small { color: #65676b; font-size: 0.78rem; }
.fb-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; overflow: hidden; flex: none; }
.fb-av img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.fb-text { padding: 0 12px 12px; font-size: 0.95rem; line-height: 1.6; }
.fb-img { aspect-ratio: 1; background: #f0f2f5; display: grid; place-items: center; font-size: 4rem; }
.fb-img img { width: 100%; height: 100%; object-fit: cover; }
.fb-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: #f0f2f5; }
.fb-foot > span { display: grid; min-width: 0; } .fb-foot small { color: #65676b; font-size: 0.75rem; } .fb-foot strong { font-size: 0.95rem; }
.fb-foot em { font-style: normal; background: #e4e6eb; padding: 8px 14px; border-radius: 6px; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.ad-side { display: grid; gap: 16px; }
.ad-side h3 { margin: 0 0 10px; }
.ad-main { border: 2px solid var(--brand); }
.ad-budget { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.ad-budget div { background: var(--bg); border-radius: 10px; padding: 10px; display: grid; text-align: center; }
.ad-budget small { color: var(--muted); font-size: 0.78rem; } .ad-budget strong { font-size: 0.95rem; }
.ad-howto { margin-top: 8px; font-size: 0.9rem; } .ad-howto summary { cursor: pointer; color: var(--brand); font-weight: 700; } .ad-howto ol { padding-inline-start: 20px; line-height: 1.9; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 0.85rem; }
.ad-why { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 10px; padding: 10px 12px; font-size: 0.9rem; margin: 12px 0 0; }
.ad-picks { display: grid; gap: 4px; }
.ad-pick { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.ad-pick:last-child { border-bottom: 0; }
.ad-pick .grow { display: grid; }

/* Notifications */
.bell { position: relative; }
.bell-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.sidebar .bell-btn { color: #cbd5d1; } .sidebar .bell-btn:hover { background: rgb(255 255 255 / 8%); color: #fff; }
.app-top .bell-btn:hover { background: var(--bg); }
.bell-count { position: absolute; top: 3px; left: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #dc2626; color: #fff; font-size: 0.68rem; display: grid; place-items: center; }
.bell-panel { position: absolute; top: 46px; inset-inline-end: auto; inset-inline-start: 0; width: 360px; max-width: calc(100vw - 24px); background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgb(0 0 0 / 18%); z-index: 70; overflow: hidden; }
.sidebar .bell-panel { inset-inline-start: auto; inset-inline-end: -220px; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bell-head .link { font-size: 0.8rem; }
.bell-list { max-height: 380px; overflow-y: auto; }
.bell-item { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--text) !important; }
.bell-item:hover { background: var(--bg); text-decoration: none; }
.bell-item.unread { background: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.bell-item.unread strong::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-inline-end: 6px; vertical-align: middle; }
.bi-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bi-main strong { font-size: 0.9rem; }
.bi-main small { color: var(--muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bell-item time { color: var(--muted); font-size: 0.72rem; white-space: nowrap; }
.bell-empty { padding: 28px 14px; text-align: center; color: var(--muted); }
.bell-foot { padding: 10px 14px; display: grid; gap: 8px; justify-items: center; background: var(--bg); }
.bell-foot a { color: var(--brand) !important; }
[data-push-state][data-on="1"] .push-off-only, [data-push-state]:not([data-on="1"]) .push-on-only { display: none !important; }
.push-on-only { color: #15803d; font-weight: 700; font-size: 0.85rem; }
.side-top { gap: 6px; } .side-top .logo { margin-inline-end: auto; }
.top-bell { margin-inline-start: auto; }
.push-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 18px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, var(--card)), var(--card)); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); }
.push-banner > div { flex: 1; display: grid; } .push-banner small { color: var(--muted); }
.pb-ic { font-size: 1.8rem; }
.pb-x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; }
@media (max-width: 600px) { .push-banner { flex-wrap: wrap; } .push-banner .btn { width: 100%; } }
.prefs td, .prefs th { text-align: center; } .prefs td:first-child, .prefs th:first-child { text-align: right; }
.prefs .switch { justify-content: center; }
.device-row { padding: 8px 0; border-bottom: 1px solid var(--line); } .device-row:last-child { border-bottom: 0; }
.ios-help { margin-top: 12px; } .ios-help summary { cursor: pointer; color: var(--brand); font-weight: 700; } .ios-help ol { line-height: 1.9; }
.notify-customer { margin-top: 14px; padding: 12px; border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; display: grid; gap: 6px; }
.notify-customer p { margin: 0; background: #fff; border-radius: 8px; padding: 8px 10px; }
/* Bell panel: fixed to the viewport so the sidebar can't clip it and it never widens the page. */
.bell-panel, .sidebar .bell-panel { position: fixed; top: 14px; right: 272px; left: auto; inset-inline: auto; width: 380px; max-width: calc(100vw - 24px); }
.bell-panel { right: 272px; left: auto; }
@media (max-width: 900px) {
  .bell-panel, .sidebar .bell-panel { top: 64px; right: 10px; left: 10px; width: auto; max-width: none; }
}
.pixel-tip { border-color: #fcd34d; background: #fffbeb; } .pixel-tip p { margin: 4px 0 10px; }
.legal { max-width: 820px; margin: 0 auto; line-height: 1.9; }
.legal h2 { font-size: 1.2rem; margin-top: 28px; }
.legal ul { padding-inline-start: 22px; }
.legal li { margin-bottom: 6px; }
label.check span a { font-weight: 700; }

/* =========================================================
   Payments
   ========================================================= */
.pay-pick { border: 0; padding: 0; margin: 4px 0; display: grid; gap: 8px; }
.pay-pick legend { font-weight: 700; margin-bottom: 6px; }
.pay-pick label { display: block; cursor: pointer; position: relative; }
.pay-pick input { position: absolute; inset-inline-start: 12px; top: 12px; width: 1px !important; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.pay-pick label > span { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); transition: border-color .15s, background .15s; }
.pay-pick input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.pay-pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.pay-pick .pp-icon { font-size: 1.4rem; font-weight: 400; }
.pay-pick strong { display: block; }
.pay-pick small { display: block; color: var(--muted); font-size: .82rem; }
.pay-email { width: 100%; }
.lo-form .pay-pick { margin: 10px 0; }
.lo-form .pay-email { margin-bottom: 10px; }

.pay-done { font-weight: 700; color: #15803d; }
.pay-info { text-align: start; max-width: 520px; margin: 16px auto; padding: 16px 18px; border: 2px dashed var(--brand); border-radius: 12px; }
.pay-info h3 { margin-top: 0; }
.pay-info dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0; }
.pay-info dt { color: var(--muted); }
.pay-info dd { margin: 0; font-weight: 700; word-break: break-word; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }

.pay-group { margin: 22px 0 8px; font-size: 1rem; color: var(--muted); }
.pay-method { padding: 0; margin-bottom: 10px; }
.pay-method > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.pay-method > summary::-webkit-details-marker { display: none; }
.pay-method .pm-text { flex: 1; min-width: 0; }
.pay-method .pm-text strong, .pay-method .pm-text small { display: block; }
.pm-icon { font-size: 1.6rem; width: 44px; height: 44px; display: grid; place-items: center; background: #f1f5f4; border-radius: 10px; flex: none; }
.pay-method .pm-about, .pay-method .pm-fields, .pay-method > p { padding: 0 16px; }
.pay-method .pm-fields { padding-bottom: 14px; }
.pm-secret { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.inline-check { display: inline-flex !important; gap: 4px; align-items: center; font-weight: 400; }
.inline-check input { width: auto; }
.pay-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 35%); }

.pay-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pay-card-main { display: flex; gap: 12px; align-items: center; }
.pay-card.pay-paid { border-inline-start: 4px solid #16a34a; }
.pay-card.pay-awaiting, .pay-card.pay-pending { border-inline-start: 4px solid #f59e0b; }
.pay-card.pay-failed, .pay-card.pay-expired { border-inline-start: 4px solid #dc2626; }
.pay-card > p { flex-basis: 100%; margin: 0; }
.badge.p-paid { background: #dcfce7; color: #15803d; }
.badge.p-awaiting, .badge.p-pending { background: #fef3c7; color: #b45309; }
.badge.p-failed, .badge.p-expired { background: #fee2e2; color: #b91c1c; }
.badge.p-unpaid { background: #f1f5f9; color: #475569; }

/* =========================================================
   Service sections: services, menu, team, stats, hours, CTA
   ========================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.svc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: transform .15s, box-shadow .15s; }
.svc-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -18px rgba(0,0,0,.35); }
.svc-card h3 { margin: 6px 0 0; font-size: 1.15rem; }
.svc-card p { margin: 0; color: var(--muted); flex: 1; }
.svc-icon { font-size: 1.8rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--brand) 10%, var(--bg)); }
.svc-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: calc(var(--radius) - 4px); }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.svc-price { font-weight: 800; color: var(--brand); }

.sec-menu { max-width: 860px; }
.menu-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px; margin-bottom: 8px; background: var(--bg); scrollbar-width: none; }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs a { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 700; font-size: .92rem; }
.menu-tabs a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.menu-cat { scroll-margin-top: 70px; margin-bottom: 26px; }
.menu-cat h3 { font-size: 1.25rem; margin: 18px 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--brand); display: inline-block; }
.menu-list { display: grid; gap: 4px; }
.menu-item { display: flex; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.menu-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; flex: none; }
.mi-body { flex: 1; min-width: 0; }
.mi-top { display: flex; align-items: baseline; gap: 8px; }
.mi-top strong { font-size: 1.05rem; }
.mi-dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 16px; }
.mi-price { color: var(--brand); white-space: nowrap; }
.mi-tag { font-style: normal; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); white-space: nowrap; }
.mi-body small { display: block; color: var(--muted); margin-top: 2px; }
.mi-add { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.4rem; font-weight: 700; line-height: 1; }
.mi-add:hover { text-decoration: none; filter: brightness(1.1); }
.menu-note { color: var(--muted); font-size: .9rem; text-align: center; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.team-card { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; }
.team-card img, .team-ph { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px color-mix(in srgb, var(--brand) 30%, transparent); }
.team-ph { background: color-mix(in srgb, var(--brand) 14%, var(--bg)); color: var(--brand); font-size: 2.4rem; font-weight: 800; }
.team-card h3 { margin: 4px 0; font-size: 1.1rem; }
.team-role { color: var(--brand); font-weight: 700; font-size: .92rem; }
.team-card p { color: var(--muted); margin: 10px 0 0; font-size: .92rem; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; text-align: center; background: color-mix(in srgb, var(--brand) 8%, var(--card)); border-radius: var(--radius); padding: 28px 16px; }
.stats-row strong { display: block; font-size: clamp(2rem, 5vw, 2.8rem); color: var(--brand); line-height: 1.1; }
.stats-row span { color: var(--muted); font-weight: 600; }

.hours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.hours-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.hours-card h3 { margin: 0 0 12px; font-size: 1.1rem; }
.hours-card table { width: 100%; border-collapse: collapse; }
.hours-card td { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.hours-card td + td { text-align: end; font-weight: 700; }
.hours-card tr.closed td + td { color: #dc2626; }
.hours-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 34px clamp(20px, 4vw, 44px); border-radius: var(--radius); color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.18), transparent 45%), var(--brand); }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 3.5vw, 2rem); color: #fff; }
.cta-band p { margin: 0; opacity: .92; }
.cta-warn { background: rgba(255,255,255,.18); padding: 8px 12px; border-radius: 8px; }
@media (max-width: 600px) { .cta-band { text-align: center; justify-content: center; } .cta-band .btn { width: 100%; } }

/* =========================================================
   Section styles shared by every section: background band + reveal
   ========================================================= */
.sec[class*=" bg-"] { position: relative; margin-top: 40px; padding: 56px 0; background: var(--sbg); box-shadow: 0 0 0 100vmax var(--sbg); clip-path: inset(0 -100vmax); }
.sec.bg-soft { --sbg: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.sec.bg-brand { --sbg: var(--brand); --text: #fff; --muted: rgba(255,255,255,.82); --card: rgba(255,255,255,.1); --line: rgba(255,255,255,.2); color: #fff; }
.sec.bg-dark { --sbg: #0f172a; --text: #f1f5f9; --muted: #a5b0c2; --card: rgba(255,255,255,.05); --line: rgba(255,255,255,.12); color: #f1f5f9; }
.sec.bg-brand .sec-head h2::after { background: #fff; }
.sec.bg-brand .btn:not(.ghost):not(.wa) { background: #fff; color: var(--brand); }
.sec.bg-brand .btn.ghost, .sec.bg-dark .btn.ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.sec.bg-brand a:not(.btn), .sec.bg-dark a:not(.btn) { color: inherit; }
.sec.bg-brand input, .sec.bg-brand textarea, .sec.bg-dark input, .sec.bg-dark textarea { background: rgba(255,255,255,.95); color: #1a1d23; }

.rv-on .rv { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv-on .rv:not(.in) { opacity: 0; }
.rv-on .rv-up:not(.in) { transform: translateY(28px); }
.rv-on .rv-zoom:not(.in) { transform: scale(.96); }

/* Products as a horizontal carousel */
.pgrid.pcarousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 10px; scrollbar-width: thin; }
.pgrid.pcarousel > * { scroll-snap-align: start; }

/* Marquee */
.mq { overflow: hidden; padding: 14px 0; margin-top: 32px; font-weight: 800; white-space: nowrap; }
.mq-brand { background: var(--brand); color: #fff; }
.mq-dark { background: #0f172a; color: #fff; }
.mq-light { background: color-mix(in srgb, var(--brand) 8%, var(--card)); color: var(--text); border-block: 1px solid var(--line); }
.mq-track { display: flex; width: max-content; animation: mq 32s linear infinite; }
.mq-slow .mq-track { animation-duration: 55s; }
.mq-fast .mq-track { animation-duration: 18s; }
.mq-run { display: flex; align-items: center; gap: 28px; padding-inline-end: 28px; }
.mq-run i { font-style: normal; opacity: .6; font-size: .8em; }
.mq:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(50%); } }
@keyframes mq-ltr { to { transform: translateX(-50%); } }
[dir=ltr] .mq-track { animation-name: mq-ltr; }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }

/* Promo cards */
.promo-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.promo-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.promo-card { position: relative; min-height: 300px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; background: center / cover no-repeat, linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); color: #fff; text-decoration: none; isolation: isolate; }
.promo-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 60%); z-index: -1; }
.promo-card.no-img { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); }
.promo-card:hover { text-decoration: none; }
.promo-card:hover .promo-btn { gap: 10px; }
a.promo-card { transition: transform .2s; }
a.promo-card:hover { transform: translateY(-3px); }
.promo-body { padding: 22px; display: grid; gap: 4px; }
.promo-body em { font-style: normal; justify-self: start; font-size: .75rem; font-weight: 800; background: #fff; color: var(--brand); padding: 3px 10px; border-radius: 999px; }
.promo-body strong { font-size: 1.45rem; line-height: 1.25; }
.promo-body small { opacity: .9; font-size: .95rem; }
.promo-btn { display: inline-flex; gap: 6px; font-weight: 800; margin-top: 6px; transition: gap .2s; }

/* Steps */
.steps-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; counter-reset: st; position: relative; }
.steps-row li { position: relative; text-align: center; padding: 8px 10px; display: grid; gap: 6px; justify-items: center; }
.st-num { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; background: var(--card); color: var(--brand); border: 2px solid var(--brand); position: relative; z-index: 1; }
.steps-row li:not(:last-child)::after { content: ''; position: absolute; top: 40px; inset-inline-start: calc(50% + 40px); width: calc(100% - 80px + 18px); border-top: 2px dashed color-mix(in srgb, var(--brand) 40%, transparent); }
.steps-row strong { font-size: 1.08rem; }
.steps-row small { color: var(--muted); }
@media (max-width: 700px) { .steps-row li::after { display: none; } }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--brand) 70%, transparent); transform: translateY(-6px); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .78rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { margin: 0; font-size: 1.15rem; }
.plan-price strong { font-size: 2.3rem; color: var(--brand); line-height: 1; }
.plan-price span { font-weight: 700; }
.plan-price small { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 6px 0 12px; display: grid; gap: 8px; flex: 1; align-content: start; }
.plan li { padding-inline-start: 26px; position: relative; }
.plan li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 800; }
.bg-brand .plan-price strong, .bg-brand .plan li::before { color: #fff; }

/* Before / after */
.ba { position: relative; max-width: 900px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; user-select: none; background: var(--card); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 12px rgba(0,0,0,.35); pointer-events: none; }
.ba-handle::after { content: '⇆'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-weight: 800; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-tag { position: absolute; top: 12px; background: rgba(0,0,0,.55); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; pointer-events: none; }
.ba-l { left: 12px; } .ba-r { right: 12px; }

/* Logos */
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 36px; }
.logo-it { display: grid; place-items: center; height: 64px; min-width: 110px; }
.logo-it img { max-height: 56px; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.logo-it:hover img { filter: none; opacity: 1; }
.logo-it b { font-size: 1.2rem; color: var(--muted); letter-spacing: .04em; }

/* Contact form */
.cf { max-width: 640px; margin: 0 auto; display: grid; gap: 12px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }
.cf input, .cf textarea { width: 100%; }
.cf-done { max-width: 640px; margin: 0 auto; text-align: center; padding: 22px; border-radius: var(--radius); background: #dcfce7; color: #166534; font-weight: 700; }

/* Map */
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.map-box iframe { display: block; width: 100%; height: 360px; border: 0; }
.map-s iframe { height: 260px; } .map-l iframe { height: 480px; }
.map-open { text-align: center; margin: 10px 0 0; }

/* Social */
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.soc { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font-weight: 800; color: #fff; text-decoration: none; transition: transform .15s; }
.soc:hover { transform: translateY(-2px); text-decoration: none; }
.soc span { font-size: 1.2rem; }
.soc-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.soc-facebook { background: #1877f2; }
.soc-tiktok { background: #111; }
.soc-wa { background: #25d366; }

/* Divider */
.divider { width: min(1100px, 100% - 32px); margin: 0 auto; color: var(--line); display: flex; align-items: center; }
.dv-s { height: 24px; } .dv-m { height: 56px; } .dv-l { height: 100px; }
.dv-line::before { content: ''; flex: 1; border-top: 1px solid var(--line); }
.dv-dots::before { content: '• • •'; flex: 1; text-align: center; letter-spacing: .6em; color: var(--muted); }
.dv-wave svg { width: 100%; height: 24px; color: color-mix(in srgb, var(--brand) 45%, transparent); }

/* =========================================================
   Storefront theme options (الأسلوب)
   ========================================================= */
.storefront { background: var(--bg); color: var(--text); }
.storefront h1, .storefront h2, .storefront h3, .storefront .brand span { font-family: var(--hfont, var(--font)); }

/* Background modes: inputs and the header follow the card colour. */
.t-mode-dark input, .t-mode-dark select, .t-mode-dark textarea { background: #1f232b; color: var(--text); border-color: var(--line); }
.t-mode-dark .sf-head { background: color-mix(in srgb, var(--card) 88%, transparent); }
.t-mode-dark .announce { filter: brightness(.95); }
.t-mode-dark .pcard-btn:hover { color: #111; }
.t-mode-cream input, .t-mode-cream select, .t-mode-cream textarea { background: #fffaf2; }

/* Buttons */
.t-btn-gradient .btn:not(.ghost):not(.wa):not(.light) { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 80%, #fff), var(--brand) 45%, color-mix(in srgb, var(--brand) 70%, #000)); border: 0; }
.t-btn-outline .btn:not(.ghost):not(.wa):not(.light) { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.t-btn-outline .btn:not(.ghost):not(.wa):not(.light):hover { background: var(--brand); color: #fff; }
.t-btn-soft .btn:not(.ghost):not(.wa):not(.light) { background: color-mix(in srgb, var(--brand) 14%, var(--card)); color: var(--brand); }
.t-btn-soft .btn:not(.ghost):not(.wa):not(.light):hover { background: var(--brand); color: #fff; }
.t-mode-dark.t-btn-outline .btn:not(.ghost):not(.wa):not(.light), .t-mode-dark.t-btn-soft .btn:not(.ghost):not(.wa):not(.light) { color: color-mix(in srgb, var(--brand) 55%, #fff); }
/* Sections with a coloured background keep their white buttons. */
.storefront .sec.bg-brand .btn:not(.ghost):not(.wa) { background: #fff; color: var(--brand); box-shadow: none; }

/* Product cards */
.t-card-boxed .pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 12px; }
.t-card-shadow .pcard { background: var(--card); border-radius: var(--radius); padding: 10px 10px 12px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); transition: transform .2s, box-shadow .2s; }
.t-card-shadow .pcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.45); }
.t-card-boxed .pcard-btn, .t-card-shadow .pcard-btn { border-color: var(--brand); color: var(--brand); }
.t-card-boxed .pcard-btn:hover, .t-card-shadow .pcard-btn:hover { background: var(--brand); color: #fff; }
.t-card-minimal .pcard { text-align: center; }
.t-card-minimal .pcard-cat { display: none; }
.t-card-minimal .pcard .price-row { justify-content: center; }
.t-card-minimal .pcard-btn { border: 0; border-bottom: 1.5px solid currentColor; border-radius: 0; width: auto; margin-inline: auto; padding: 4px 2px; font-size: .85rem; }
.t-card-minimal .pcard-btn:hover { background: none; color: var(--brand); }
@media (hover: hover) { .t-card-minimal .pcard .pcard-btn { opacity: 0; transition: opacity .2s; } .t-card-minimal .pcard:hover .pcard-btn { opacity: 1; } }

/* Product image shape */
.t-ratio-square .pcard-img { aspect-ratio: 1; }
.t-ratio-landscape .pcard-img { aspect-ratio: 4 / 3; }

/* Space between sections */
.t-density-s .sec:not(.full) { padding-top: 32px; }
.t-density-l .sec:not(.full) { padding-top: 92px; }
.t-density-s .sec[class*=" bg-"] { padding: 36px 0; margin-top: 28px; }
.t-density-l .sec[class*=" bg-"] { padding: 84px 0; margin-top: 64px; }

/* Header */
.t-head-static .sf-head { position: relative; }

/* Editor: style kits and option rows */
.kits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kit { display: grid; gap: 2px; justify-items: center; padding: 10px 4px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font: inherit; color: var(--text); }
.kit b { font-size: 1.3rem; }
.kit:hover { border-color: var(--brand); }
.seg.wrap { flex-wrap: wrap; }
.mode-picks label span { min-width: 0; }

/* Template picker groups */
.tpl-group { font-weight: 800; font-size: .9rem; color: var(--muted); margin: 18px 2px 8px; }
.tpl-group:first-of-type { margin-top: 6px; }
.tpl-card .tpl-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.tpl-pro { font-style: normal; font-size: .68rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #ec4899); color: #fff; vertical-align: 2px; }
.tpl-swatch { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line); }

/* =========================================================
   ISTAFTIH dialog (replaces the browser's confirm / alert)
   ========================================================= */
.ydlg { border: 0; padding: 0; background: transparent; max-width: min(440px, calc(100vw - 32px)); width: 100%; color: var(--text); overflow: visible; }
.ydlg::backdrop { background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); animation: ydlg-fade .18s ease; }
.ydlg[open] .ydlg-card { animation: ydlg-pop .22s cubic-bezier(.2, .9, .3, 1.2); }
.ydlg.out .ydlg-card { animation: ydlg-out .15s ease forwards; }
.ydlg-card { background: var(--card); border-radius: 18px; padding: 26px 24px 20px; text-align: center; box-shadow: 0 30px 70px -20px rgba(0,0,0,.45); border: 1px solid var(--line); }
.ydlg-ic { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; background: color-mix(in srgb, var(--brand) 12%, var(--card)); }
.ydlg.danger .ydlg-ic { background: #fee2e2; }
.ydlg-title { margin: 0 0 6px; font-size: 1.2rem; }
.ydlg-msg { margin: 0 0 20px; color: var(--muted); line-height: 1.7; white-space: pre-line; }
.ydlg-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ydlg-actions .btn { flex: 1 1 140px; justify-content: center; padding: 11px 18px; }
.ydlg.danger .ydlg-ok { background: #dc2626; border-color: #dc2626; color: #fff; }
.ydlg.danger .ydlg-ok:hover { background: #b91c1c; }
.ydlg-actions .btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
@keyframes ydlg-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ydlg-out { to { opacity: 0; transform: scale(.97); } }
@keyframes ydlg-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ydlg-card, .ydlg::backdrop { animation: none !important; } }

.ydlg-actions.stack { flex-direction: column; }
.ydlg-actions.stack .btn { flex: none; width: 100%; }
.ydlg-danger { background: #fff; color: #dc2626; border: 1.5px solid #fecaca; }
.ydlg-danger:hover { background: #fef2f2; }

/* =========================================================
   Subscriptions (merchant + admin)
   ========================================================= */
.side-tag { font-size: .68rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: rgba(251, 191, 36, .18); color: #fbbf24; margin-inline-start: auto; }
.sub-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 24px; font-weight: 600; }
.sb-trial { background: #eff6ff; color: #1e40af; }
.sb-expiring { background: #fef3c7; color: #92400e; }
.sb-grace { background: #ffedd5; color: #9a3412; }
.sb-expired { background: #fee2e2; color: #991b1b; }

.sub-now { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; border-inline-start: 5px solid var(--brand); }
.sub-now > div:first-child { display: grid; gap: 2px; }
.sub-label { color: var(--muted); font-size: .85rem; }
.sub-plan { font-size: 1.6rem; }
.sub-state { font-weight: 700; }
.sub-trial { border-inline-start-color: #3b82f6; } .sub-expiring { border-inline-start-color: #f59e0b; }
.sub-grace { border-inline-start-color: #f97316; } .sub-expired { border-inline-start-color: #dc2626; }
.sub-usage { display: flex; gap: 10px; flex-wrap: wrap; }
.sub-usage div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: grid; min-width: 130px; }
.sub-usage span { color: var(--muted); font-size: .8rem; }
.sub-pending { border: 2px dashed #f59e0b; }
.sub-pending h3 { margin: 0; }
.sub-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 12px 0; }
.sub-steps div { display: flex; gap: 10px; align-items: center; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.sub-steps b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.sub-info { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; font-family: ui-monospace, Menlo, monospace; font-size: .92rem; direction: auto; }

.sub-form { margin: 26px 0; display: grid; gap: 18px; }
.sub-periods { justify-content: center; }
.sub-periods em { font-style: normal; font-size: .72rem; font-weight: 800; background: #dcfce7; color: #15803d; padding: 1px 7px; border-radius: 999px; }
.sub-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.sub-card { position: relative; cursor: pointer; display: block; }
.sub-card input { position: absolute; opacity: 0; inset-inline-start: 16px; top: 16px; width: 1px; height: 1px; }
.sub-card-in { position: relative; height: 100%; display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 26px 20px 18px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sub-card:hover .sub-card-in { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.sub-card input:checked + .sub-card-in { border-color: var(--brand); box-shadow: 0 16px 40px -24px color-mix(in srgb, var(--brand) 80%, transparent); transform: translateY(-3px); }
.sub-card input:focus-visible + .sub-card-in { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.sub-card .plan-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .75rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.sub-card .plan-flag.cur { background: #0f172a; inset-inline-start: auto; inset-inline-end: 14px; transform: none; }
.sub-name { font-size: 1.2rem; }
.sub-price b { font-size: 2.2rem; color: var(--brand); line-height: 1; }
.sub-total { min-height: 1.2em; }
.sub-card ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 7px; align-content: start; flex: 1; }
.sub-card li { padding-inline-start: 24px; position: relative; font-size: .93rem; }
.sub-card li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 800; }
.sub-pick { text-align: center; padding: 10px; border-radius: 10px; border: 1.5px solid var(--brand); color: var(--brand); font-weight: 700; }
.sub-card input:checked + .sub-card-in .sub-pick { background: var(--brand); color: #fff; }
.sub-card input:checked + .sub-card-in .sub-pick::before { content: '✓ '; }
.sub-send { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px; align-items: end; }
@media (max-width: 760px) { .sub-send { grid-template-columns: 1fr; } }

.sub-req { border-inline-start: 4px solid #f59e0b; }
.sub-req-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sub-req-amt { display: grid; text-align: end; }
.sub-req-amt strong { font-size: 1.4rem; color: var(--brand); }
.sub-req-amt small { color: var(--muted); }
.sub-req-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sub-approve { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1; }
.sub-approve select, .sub-approve input { width: auto; flex: 1 1 120px; }
.sub-quick { display: flex; gap: 6px; align-items: center; }
.sub-quick select { width: auto; padding: 6px 8px; font-size: .85rem; }
.sub-edit-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.sub-edit-card legend { font-weight: 800; padding: 0 6px; }
.sub-admin .row { gap: 8px; } .sub-admin .row > * { flex: 1; }
.sub-hist { margin-top: 10px; } .sub-hist summary { cursor: pointer; color: var(--muted); }

/* Landing page plans */
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 1040px; margin: 0 auto 14px; align-items: stretch; }
.lp-plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; }
.lp-plan h3 { margin: 0; }
.lp-plan .checks { flex: 1; }
.lp-plan.featured { border: 2px solid var(--brand); transform: translateY(-6px); box-shadow: 0 22px 50px -28px color-mix(in srgb, var(--brand) 80%, transparent); }
.lp-plan .plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .78rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.side-tag.free { background: rgba(148, 163, 184, .18); color: #cbd5e1; }

.sub-card.is-free { cursor: default; }
.sub-card.is-free .sub-card-in { background: var(--bg); }
.sub-card.is-free .sub-pick { border-style: dashed; border-color: var(--line); color: var(--muted); font-size: .85rem; }

.tpl-card.locked { opacity: .78; }
.tpl-card.locked:hover { opacity: 1; }
.tpl-card.locked .tpl-pro { background: #64748b; }

/* =========================================================
   Dashboard home
   ========================================================= */
.dh-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.dh-hero h1 { margin: 2px 0 4px; font-size: clamp(1.5rem, 3vw, 2rem); }
.dh-hero p { margin: 0; }
.dh-date { color: var(--muted); font-size: .9rem; }
.dh-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dh-actions .btn, .dh-section-head .btn { display: inline-flex; align-items: center; gap: 6px; }

.dh-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
@media (max-width: 1100px) { .dh-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .dh-kpis { gap: 10px; }
  .kpi { padding: 14px 12px; border-radius: 14px; }
  .kpi-ic { width: 34px; height: 34px; border-radius: 10px; }
  .kpi-val { font-size: 1.3rem; }
  .kpi-sub { font-size: .72rem; }
  .dh-actions { width: 100%; } .dh-actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 340px) { .dh-kpis { grid-template-columns: 1fr; } }
.kpi { position: relative; display: grid; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; color: var(--text); text-decoration: none; transition: box-shadow .15s, transform .15s; overflow: hidden; }
a.kpi:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 30px -20px rgba(0,0,0,.35); }
.kpi-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px; }
.kpi-label { color: var(--muted); font-size: .88rem; font-weight: 600; }
.kpi-val { font-size: 1.75rem; line-height: 1.15; letter-spacing: -.01em; }
.kpi-sub { color: var(--muted); font-size: .8rem; }
.kpi-sub b.up { color: #15803d; } .kpi-sub b.down { color: #dc2626; }
.kpi-alert { border-color: #fcd34d; background: linear-gradient(180deg, #fffbeb, var(--card) 70%); }
.kpi-alert .kpi-sub { color: #b45309; font-weight: 700; }
.c-green { background: #dcfce7; color: #15803d; } .c-blue { background: #dbeafe; color: #1d4ed8; }
.c-amber { background: #fef3c7; color: #b45309; } .c-violet { background: #ede9fe; color: #6d28d9; }

.dh-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; margin-bottom: 8px; align-items: start; }
@media (max-width: 1000px) { .dh-grid { grid-template-columns: 1fr; } }
.dh-grid > .card { margin: 0; border-radius: 16px; }
.dh-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dh-card-head h3 { margin: 0; }
.dh-chart .dh-card-head strong { font-size: 1.25rem; }

.ring { --p: 0; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), color-mix(in srgb, var(--brand) 14%, var(--card)) 0); }
.ring b { width: 42px; height: 42px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: .8rem; }
.dh-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.dh-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; }
.dh-steps li:not(.done):hover { background: var(--bg); }
.dh-steps a { font-weight: 700; flex: 1; }
.dh-steps li.done span:last-child { color: var(--muted); text-decoration: line-through; }
.st-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .85rem; font-weight: 800; border: 2px solid var(--line); color: var(--muted); }
.dh-steps li.done .st-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.dh-quick { display: grid; gap: 6px; }
.dh-quick a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--text); font-weight: 600; }
.dh-quick a:hover { background: var(--bg); text-decoration: none; }
.q-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }

.dh-section-head { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 12px; }
.dh-section-head h2 { margin: 0; }
.dh-stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; margin-bottom: 22px; }
.dh-store { position: relative; margin: 0; border-radius: 16px; padding: 18px; display: grid; gap: 14px; overflow: hidden; align-content: start; }
.dh-store::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--sc); }
.dh-store-top { display: flex; align-items: center; gap: 12px; }
.dh-store-av { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 1.3rem; color: #fff; background: var(--sc); overflow: hidden; }
.dh-store-av img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.dh-store-id { min-width: 0; flex: 1; }
.dh-store-id h3 { margin: 0; font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-store-id h3 a { color: var(--text); }
.dh-store-url { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .82rem; }
.dh-plan { font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.dh-plan.p-active, .dh-plan.p-expiring { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.dh-plan.p-trial { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.dh-plan.p-grace { background: #ffedd5; color: #c2410c; border-color: #fed7aa; }
.dh-store-new { display: block; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-weight: 700; font-size: .88rem; padding: 8px 12px; border-radius: 10px; }
.dh-store-new:hover { text-decoration: none; background: #fef3c7; }
.dh-store-warn { background: #fee2e2; color: #991b1b; font-weight: 700; font-size: .88rem; padding: 8px 12px; border-radius: 10px; }
.dh-store-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border-radius: 12px; }
.dh-store-stats div { display: grid; text-align: center; padding: 10px 4px; }
.dh-store-stats div + div { border-inline-start: 1px solid var(--line); }
.dh-store-stats strong { font-size: 1.05rem; white-space: nowrap; }
.dh-store-stats span { color: var(--muted); font-size: .78rem; }
.dh-store-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dh-store-actions .btn:first-child { flex: 1; text-align: center; }

.dh-list { display: grid; }
.dh-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 10px; color: var(--text); }
.dh-row + .dh-row { border-top: 1px solid var(--line); }
.dh-row:hover { background: var(--bg); text-decoration: none; }
.dh-row-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; }
.dh-row-main { flex: 1; min-width: 0; display: grid; }
.dh-row-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-row-main small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-row-amt { white-space: nowrap; }
.dh-empty { text-align: center; padding: 22px 10px; }
.dh-empty span { font-size: 2rem; }
@media (max-width: 520px) { .dh-row .badge { display: none; } }

/* Paid-plan markers in the editor */
.b-pro { font-style: normal; font-size: .66rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #ec4899); color: #fff; margin-inline-start: 6px; vertical-align: 2px; white-space: nowrap; }
.pro-note { background: linear-gradient(135deg, #fff7ed, #fdf2f8); border: 1px solid #fbcfe8; color: #831843; border-radius: 12px; padding: 10px 12px; font-size: .85rem; line-height: 1.6; }
.pro-note a { font-weight: 700; color: #be185d; }

/* Free vs professional groups in the editor (sections picker + style tab) */
.b-picker-wrap { display: grid; gap: 4px; }
.b-group, .st-group { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.b-group strong, .st-group strong { font-size: .92rem; }
.b-group small, .st-group small { color: var(--muted); font-size: .76rem; }
.b-group.pro, .st-group.pro { background: linear-gradient(135deg, #fff7ed, #fdf2f8); border-color: #fbcfe8; }
.b-group.pro strong, .st-group.pro strong { color: #9d174d; }
.st-group:first-of-type { margin-top: 0; }
.b-pick.is-pro { border-color: #fbcfe8; }
.b-pick.is-pro:hover { border-color: #ec4899; background: #fdf2f8; }
.b-group, .st-group { scroll-margin-top: 64px; }

/* My account */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.acct-grid > .card { margin: 0; }
a.u-info { color: inherit; text-decoration: none; }
a.u-info:hover strong { text-decoration: underline; }

/* Orders list */
.ord-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 4px 0 12px; scrollbar-width: thin; }
.ord-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; font-size: .9rem; }
.ord-tabs a b { font-size: .75rem; background: var(--bg); padding: 1px 8px; border-radius: 999px; color: var(--muted); }
.ord-tabs a:hover { text-decoration: none; border-color: var(--brand); }
.ord-tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.ord-tabs a.on b { background: rgba(255,255,255,.22); color: #fff; }
.ord-search { display: flex; gap: 8px; margin-bottom: 12px; }
.ord-search input { flex: 1; }
.ord-bulk { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.ord-table td:first-child, .ord-table th:first-child { width: 36px; }
.ord-table input[type=checkbox] { width: 18px; height: 18px; }
.ord-print { font-size: 1.1rem; text-decoration: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 16px 0; }

/* Checkout: coupon */
.coupon-box { margin: 12px 0 4px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; text-transform: uppercase; letter-spacing: .05em; }
.coupon-msg { margin: 6px 0 0; font-size: .88rem; min-height: 1.2em; }
.coupon-msg.ok { color: #15803d; font-weight: 700; }
.coupon-msg.err { color: #dc2626; }
.disc-val { color: #15803d; font-weight: 700; }
/* Coupons */
.cpn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.cpn-code { font-weight: 800; letter-spacing: .06em; background: var(--bg); border: 1px dashed var(--brand); padding: 3px 10px; border-radius: 8px; }
tr.cpn-off { opacity: .6; }
/* Analytics */
.funnel { display: grid; gap: 14px; }
.fn-top { display: flex; justify-content: space-between; font-weight: 600; }
.fn-bar { height: 12px; background: var(--bg); border-radius: 999px; overflow: hidden; margin: 6px 0 2px; }
.fn-bar span { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #2563eb); border-radius: 999px; }
.src-list { display: grid; gap: 10px; margin-bottom: 10px; }
.src-row { display: grid; grid-template-columns: 28px 120px 1fr 44px; align-items: center; gap: 8px; }
.src-ic { font-size: 1.2rem; }
.src-bar { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.src-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.src-row strong { text-align: end; }

/* Stars + reviews */
.stars { --r: 0; position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 2px; color: #e5e7eb; direction: ltr; }
.stars::before { content: '★★★★★'; position: absolute; inset: 0; width: calc(var(--r) / 5 * 100%); overflow: hidden; color: #f59e0b; white-space: nowrap; }
.stars.big { font-size: 1.4rem; }
.pd-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--text); margin-bottom: 6px; }
.pd-rating:hover { text-decoration: none; }
.pcard-rating { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; }
.pcard-rating small { color: var(--muted); }
.reviews { margin: 48px 0 24px; }
.rv-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.rv-head h2 { margin: 0; }
.rv-avg { display: flex; align-items: center; gap: 10px; }
.rv-avg strong { font-size: 2rem; }
.rv-list { display: grid; gap: 12px; margin-bottom: 16px; }
.rv-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.rv-item p { margin: 10px 0 0; }
.rv-top { display: flex; gap: 10px; align-items: center; }
.rv-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: color-mix(in srgb, var(--brand) 12%, var(--card)); color: var(--brand); flex: none; }
.rv-verified { font-size: .75rem; font-weight: 700; color: #15803d; background: #dcfce7; padding: 1px 8px; border-radius: 999px; }
.rv-reply { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: .92rem; }
.rv-form-wrap > summary { list-style: none; display: inline-block; cursor: pointer; }
.rv-form-wrap > summary::-webkit-details-marker { display: none; }
.rv-form { max-width: 560px; margin-top: 12px; }
.rate-pick { border: 0; padding: 0; margin: 0; }
.rate-pick legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
/* Stars are laid out 5…1 left to right, so the filled ones grow from the right (the start in Arabic). */
.rp-stars { display: inline-flex; gap: 4px; }
.rp-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rp-stars label { font-size: 2rem; color: #d1d5db; cursor: pointer; line-height: 1; transition: color .1s; }
.rp-stars label:hover, .rp-stars label:hover ~ label, .rp-stars input:checked ~ label { color: #f59e0b; }
.rp-stars input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.rv-admin { display: grid; gap: 12px; }
.rv-card { margin: 0; }
.rv-card p { margin: 10px 0; }
.rv-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rv-reply-form > summary { list-style: none; cursor: pointer; display: inline-block; }
.rv-reply-form > summary::-webkit-details-marker { display: none; }
.rv-reply-form[open] { flex-basis: 100%; }
.rv-reply-form form { margin-top: 8px; gap: 8px; } .rv-reply-form input { flex: 1; }

/* Booking section */
.bk-form { max-width: 680px; margin: 0 auto; display: grid; gap: 14px; }
.bk-step { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.bk-step legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.bk-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.bk-svc { position: relative; cursor: pointer; }
.bk-svc input, .bk-slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-svc span { display: grid; gap: 2px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); }
.bk-svc small { color: var(--muted); }
.bk-svc input:checked + span, .bk-slot input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--card)); }
.bk-date { max-width: 240px; }
.bk-slots { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; align-items: center; }
.bk-slot { position: relative; cursor: pointer; }
.bk-slot span { display: block; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; font-weight: 700; background: var(--card); direction: ltr; }
.bk-slot.full span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.bk-closed { color: #b45309; font-weight: 600; }
.bk-done { max-width: 680px; margin: 0 auto; text-align: center; padding: 22px; border-radius: var(--radius); background: #dcfce7; color: #166534; font-weight: 700; }
/* Appointments page */
.ap-day { margin: 22px 0 10px; }
.ap-list { display: grid; gap: 10px; }
.ap-item { margin: 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ap-time { font-size: 1.4rem; font-weight: 800; color: var(--brand); min-width: 70px; direction: ltr; text-align: center; }
.ap-main { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.ap-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-cancelled { opacity: .6; }
.bk-cards .card { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.bk-cards .card .btn.full, .bk-cards form.inline { margin-top: auto; }
.bk-restore { margin-top: 16px; } .bk-restore summary { cursor: pointer; }
/* Business upsell + tags */
.side-tag.biz { background: rgba(251, 191, 36, .2); color: #fbbf24; }
.upsell { max-width: 620px; margin: 40px auto; text-align: center; display: grid; gap: 10px; justify-items: center; padding: 36px 28px; }
.upsell-ic { font-size: 3rem; }
.upsell-tag { font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.upsell h1 { margin: 4px 0 0; }
/* Import */
.imp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 14px; }
.imp-stats div { display: grid; text-align: center; background: var(--bg); border-radius: 12px; padding: 12px; }
.imp-stats strong { font-size: 1.6rem; color: var(--brand); }
.imp-stats .bad strong { color: #dc2626; }
.imp-stats span { color: var(--muted); font-size: .85rem; }
.imp-steps { padding-inline-start: 20px; line-height: 1.9; }
/* Team */
.role-picks { display: grid; gap: 8px; }
.role-pick { position: relative; cursor: pointer; }
.role-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role-pick span { display: grid; gap: 2px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; }
.role-pick small { color: var(--muted); }
.role-pick input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.team-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.team-who { flex: 1; min-width: 0; display: grid; }
.team-row select { width: auto; padding: 6px 8px; }

/* Business sections */
.pt-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.pt-tab { font: inherit; font-weight: 700; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.pt-tab:hover { border-color: var(--brand); }
.pt-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sec-vhero { position: relative; overflow: hidden; display: grid; place-items: center; text-align: center; color: #fff; min-height: 520px; background: #000; }
.sec-vhero.vh-m { min-height: 420px; } .sec-vhero.vh-full { min-height: 100vh; min-height: 100svh; }
.vh-frame { position: absolute; inset: 0; pointer-events: none; }
.vh-frame iframe { position: absolute; top: 50%; left: 50%; width: 177.78vh; height: 56.25vw; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); border: 0; }
.vh-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.6)); }
.vh-body { position: relative; z-index: 1; padding: 40px 20px; max-width: 760px; }
.vh-body h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); margin: 0; line-height: 1.1; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.vh-body p { font-size: clamp(1rem, 2.2vw, 1.3rem); opacity: .92; margin: 14px 0 26px; }
.vh-hint { position: absolute; bottom: 14px; z-index: 1; background: rgba(255,255,255,.9); color: #111; padding: 6px 12px; border-radius: 8px; font-size: .85rem; }
.bulk-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.bulk-tier { position: relative; display: grid; gap: 6px; text-align: center; padding: 26px 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.bulk-tier.best { border: 2px solid var(--brand); transform: translateY(-4px); box-shadow: 0 16px 34px -22px color-mix(in srgb, var(--brand) 80%, transparent); }
.bulk-tier .plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .75rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.bulk-range { color: var(--muted); font-weight: 700; }
.bulk-price { font-size: 1.5rem; color: var(--brand); }
.bulk-tier small { color: var(--muted); }
.b-pro.biz, .tpl-pro.biz, .tpl-card.locked .tpl-pro.biz { background: linear-gradient(135deg, #1e293b, #a16207); }
.b-group.biz { background: linear-gradient(135deg, #fefce8, #f8fafc); border-color: #fde68a; }
.b-group.biz strong { color: #854d0e; }
.sec-vhero:not(:has(.vh-frame)) { background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--brand) 70%, #fff 0%), #0b0b0f 75%); }
.b-pick.is-biz { border-color: #fde68a; }

/* Language picker */
.lang-pick { position: relative; display: inline-block; }
.lang-pick > summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card, #fff); color: inherit; cursor: pointer; font-size: .82rem; line-height: 1; user-select: none; }
.lang-pick > summary::-webkit-details-marker { display: none; }
.lang-pick > summary b { font-weight: 800; }
.lang-pick[open] > summary { border-color: var(--brand, #0f766e); }
.lang-menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 80; min-width: 160px; display: grid; padding: 6px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .35); }
.lang-menu a { padding: 9px 12px; border-radius: 8px; color: var(--text, #1a1d23); text-decoration: none; font-weight: 600; text-align: start; }
.lang-menu a:hover { background: color-mix(in srgb, var(--brand, #0f766e) 9%, transparent); }
.lang-menu a.on { color: var(--brand, #0f766e); }
.lang-pick.up .lang-menu { top: auto; bottom: calc(100% + 6px); }
.sidebar .lang-pick > summary { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #e5e7eb; }
.side-tools { display: flex; gap: 8px; align-items: center; padding: 8px 12px 0; }
.side-tools .lang-menu { inset-inline-end: auto; inset-inline-start: 0; }
.top-bell { display: inline-flex; align-items: center; gap: 8px; }
.sf-lang > summary { border: 0; background: transparent; padding: 6px; }
/* Install button */
.install-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; cursor: pointer; }
.install-btn[hidden] { display: none; }
.side-install { flex: 1; padding: 8px 12px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .05); color: #e5e7eb; font-size: .85rem; font-weight: 700; }
.side-install:hover { background: rgba(255, 255, 255, .1); }
.side-tools { margin-top: auto; } .side-tools + .side-user { margin-top: 0; }
@media (max-width: 560px) { .lp-nav-cta { flex-wrap: nowrap; gap: 8px; } .lp-nav-cta > .btn { display: none; } }
/* In the sidebar the language list opens in place (the sidebar scrolls, so a floating menu would be cut off). */
.side-tools { flex-wrap: wrap; }
.sidebar .lang-pick[open] { flex-basis: 100%; order: 3; }
.sidebar .lang-pick[open] > summary { display: none; }
.sidebar .lang-menu { position: static; min-width: 0; margin: 0; padding: 4px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); box-shadow: none; grid-template-columns: 1fr 1fr; gap: 2px; }
.sidebar .lang-menu a { color: #e5e7eb; padding: 8px 10px; font-size: .9rem; }
.sidebar .lang-menu a:hover { background: rgba(255, 255, 255, .08); }
.sidebar .lang-menu a.on { color: #5eead4; }
.dh-grid > * { min-width: 0; } .card code { overflow-wrap: anywhere; }
/* Weekday labels under the 7-day chart: long names (German…) must not widen the card. */
.bars > * { min-width: 0; }
.bar em { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-mnav nav { inset-inline-start: auto; inset-inline-end: 0; }
/* Brand wordmark: heavy geometric ISTAFTIH with a teal swoosh under it. */
.logo-word { position: relative; font-family: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif; font-weight: 800; letter-spacing: .06em; color: #0B1220; line-height: 1; display: inline-flex; flex-direction: column; gap: 4px; }
.logo-tag { font: 600 .46em/1 'IBM Plex Sans Arabic', 'Tajawal', sans-serif; letter-spacing: 0; color: #667085; text-align: center; }
.sidebar .logo-word, .app-top .logo-word.dk { color: #fff; }
.sidebar .logo-tag { color: rgba(255,255,255,.6); }
.sidebar .logo-swoosh { fill: #2dd4bf; }
.logo.big .logo-swoosh { height: 7px; bottom: -4px; }
.logo-mark { border-radius: 10px; }
.lp-install { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card, #fff); color: var(--text); font-size: .85rem; font-weight: 700; }
.lp-install:hover { border-color: var(--brand, #0f766e); color: var(--brand, #0f766e); }
@media (max-width: 560px) { .lp-install span { display: none; } .lp-install { padding: 7px 9px; } }
.install-btn { font-weight: 700; }

/* ===== Mascot: Yasser the shopkeeper (home page hero) ===== */
.lp-visual.has-mascot .lp-toast-order { right: auto; left: auto; inset-inline-end: -12px; }
.mascot { position: absolute; z-index: 3; bottom: -34px; inset-inline-start: -70px; width: 168px; pointer-events: none; }
.mascot-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 16px 18px rgba(15, 23, 42, .16)); }
[dir=ltr] .mascot-svg { transform: scaleX(-1); }
.mascot-say { position: absolute; top: -26px; inset-inline-start: 48%; min-width: 150px; max-width: 220px; background: #fff; color: #0f172a; border: 1px solid var(--line); border-radius: 16px; border-end-start-radius: 4px; padding: 9px 14px; font-weight: 800; font-size: .88rem; box-shadow: 0 14px 30px -12px rgba(15, 23, 42, .3); text-align: center; }
.mascot-say span { display: none; animation: say-in .35s ease; }
.mascot-say span.on { display: block; }
@keyframes say-in { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }

.ms-body { transform-origin: 100px 330px; animation: ms-breathe 3.6s ease-in-out infinite; }
.ms-head { transform-origin: 100px 140px; animation: ms-head 10s ease-in-out infinite; }
.ms-look { animation: ms-look 10s ease-in-out infinite; }
.ms-pupils { transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform .15s ease-out; }
.mascot.tracking .ms-look { animation: none; }
.ms-eyes { transform-origin: 100px 96px; animation: ms-blink 4.8s infinite; }
.ms-arm-l { transform-origin: 70px 160px; animation: ms-arm 10s ease-in-out infinite; }
.ms-hand { transform-origin: 18px 169px; animation: ms-hand 10s ease-in-out infinite; }
.ms-tassel { transform-origin: 100px 26px; animation: ms-tassel 2.6s ease-in-out infinite; }
.ms-bag { transform-origin: 148px 240px; animation: ms-bag 3.2s ease-in-out infinite; }
.ms-brows { animation: ms-brows 10s ease-in-out infinite; }
@keyframes ms-breathe { 50% { transform: scaleY(1.012); } }
@keyframes ms-head { 0%, 100% { transform: none; } 10%, 38% { transform: rotate(-7deg); } 46%, 72% { transform: rotate(3deg); } 80% { transform: none; } }
@keyframes ms-look { 0%, 100% { transform: none; } 10%, 38% { transform: translate(-3.5px, 1px); } 46%, 72% { transform: translate(.5px, 0); } }
@keyframes ms-blink { 0%, 92%, 100% { transform: none; } 95% { transform: scaleY(.1); } }
@keyframes ms-arm { 0%, 100% { transform: none; } 18% { transform: rotate(-6deg); } 28% { transform: rotate(2deg); } 40% { transform: none; } 48% { transform: rotate(72deg); } 54% { transform: rotate(58deg); } 60% { transform: rotate(76deg); } 66% { transform: rotate(58deg); } 72% { transform: rotate(72deg); } 80% { transform: none; } }
@keyframes ms-hand { 0%, 44%, 76%, 100% { transform: none; } 54%, 66% { transform: rotate(-14deg); } 60%, 72% { transform: rotate(10deg); } }
@keyframes ms-tassel { 50% { transform: rotate(9deg); } }
@keyframes ms-bag { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes ms-brows { 0%, 40%, 80%, 100% { transform: none; } 50%, 70% { transform: translateY(-2.5px); } }
@media (max-width: 1100px) { .mascot { width: 140px; inset-inline-start: -40px; } }
@media (max-width: 900px) { .mascot { width: 118px; inset-inline-start: -6px; bottom: -26px; } .mascot-say { font-size: .78rem; min-width: 120px; top: -34px; } }
@media (prefers-reduced-motion: reduce) { .mascot * { animation: none !important; } }
/* Home top bar: the app button is an icon; links never wrap. */
.lp-install span { display: none; }
.lp-install { padding: 7px 9px; }
.lp-nav .landing-nav a { white-space: nowrap; }
@media (max-width: 1240px) { .lp-nav .landing-nav { gap: 16px; } .lp-nav .landing-nav a { font-size: .92rem; } }
@media (max-width: 1100px) { .lp-nav .landing-nav { display: none; } .lp-mnav { display: block; } }
.lp-nav-cta { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 1320px) { [dir=ltr] .lp-nav .landing-nav { display: none; } [dir=ltr] .lp-mnav { display: block; } [dir=ltr] .lp-nav { justify-content: space-between; } }
/* Talking: mouth opens and closes while the line types out; he can be clicked. */
.mascot-svg { pointer-events: auto; cursor: pointer; }
.ms-mouth { transform-origin: 100px 121px; }
.mascot.talking .ms-mouth { animation: ms-talk .16s ease-in-out infinite alternate; }
@keyframes ms-talk { from { transform: scaleY(.35); } to { transform: scaleY(1.7) scaleX(.9); } }
.mascot-say span { min-height: 1.4em; }
/* WhatsApp contact button in the store header (stores without products). */
.sf-wa { display: inline-flex; align-items: center; gap: 7px; align-self: center; padding: 8px 14px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 800; font-size: .88rem; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(37, 211, 102, .8); }
.sf-wa:hover { background: #1ebe5a; text-decoration: none; }
@media (max-width: 480px) { .sf-wa span { display: none; } .sf-wa { padding: 9px; } }
.sb-closed { background: #fee2e2; color: #991b1b; }
.plan-once { margin: -4px 0 10px; font-size: .85rem; font-weight: 700; color: var(--brand, #0f766e); }
/* Custom design requests (Business) */
.cd-form textarea { resize: vertical; }
.cd-list { display: grid; gap: 12px; }
.cd-item { display: grid; gap: 8px; }
.cd-item .pre { margin: 0; }
.cd-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); }
.cd-admin { flex-wrap: wrap; gap: 8px; align-items: center; }
.cd-admin input { flex: 1; min-width: 200px; }

/* ===== The guide window (merchant dashboard) ===== */
.gd { position: fixed; z-index: 60; bottom: 18px; inset-inline-end: 18px; }
.gd-fab { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 3px solid #fff; padding: 0; cursor: pointer; background: linear-gradient(145deg, #ccfbf1, #99f6e4); box-shadow: 0 12px 28px -10px rgba(15, 118, 110, .7); display: grid; place-items: center; overflow: hidden; transition: transform .2s; }
.gd-fab:hover { transform: scale(1.06); }
.gd-face { width: 50px; height: 56px; margin-top: 6px; }
.gd-eyes { transform-origin: 100px 96px; animation: ms-blink 5s infinite; }
.gd-badge { position: absolute; top: -2px; inset-inline-start: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .75rem; display: grid; place-items: center; border: 2px solid #fff; }
.gd-panel { position: absolute; bottom: 74px; inset-inline-end: 0; width: min(360px, calc(100vw - 36px)); max-height: min(560px, calc(100vh - 120px)); overflow: auto; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .45); opacity: 0; transform: translateY(10px) scale(.98); pointer-events: none; transition: opacity .2s, transform .2s; }
.gd.open .gd-panel { opacity: 1; transform: none; pointer-events: auto; }
.gd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; border-radius: 17px 17px 0 0; }
.gd-head strong { display: block; font-size: 1rem; }
.gd-head small { opacity: .85; font-size: .8rem; }
.gd-x { background: rgba(255, 255, 255, .18); border: 0; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; flex: none; }
.gd-body { display: grid; gap: 12px; padding: 14px 16px 16px; }
.gd-rec { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, #fef3c7, #fff7ed); border: 1px solid #fcd34d; }
.gd-rec p { margin: 0; font-size: .88rem; color: #78350f; }
.gd-rec-k { font-weight: 800; color: #92400e; }
.gd-rec .btn { justify-self: start; }
.gd-k { font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.gd-step-main { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--brand, #0f766e); text-decoration: none; color: var(--text); }
.gd-step-main:hover { background: color-mix(in srgb, var(--brand, #0f766e) 7%, transparent); text-decoration: none; }
.gd-step-main > span:first-child { font-size: 1.4rem; }
.gd-step-main strong { display: block; }
.gd-step-main small { color: var(--muted); font-size: .8rem; }
.gd-step-main em { margin-inline-start: auto; font-style: normal; color: var(--brand, #0f766e); font-weight: 800; }
[dir=ltr] .gd-step-main em { transform: scaleX(-1); }
.gd-next.done { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: #ecfdf5; color: #065f46; }
.gd-tip { margin: 0; font-size: .85rem; color: var(--muted); background: var(--soft, #f6f7f9); padding: 10px 12px; border-radius: 12px; }
.gd-progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.gd-progress span { display: block; height: 100%; background: linear-gradient(90deg, #14b8a6, #0f766e); border-radius: inherit; }
.gd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gd-steps a { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .88rem; }
.gd-steps a:hover { background: var(--soft, #f6f7f9); }
.gd-steps li.ok a { color: var(--muted); text-decoration: line-through; }
.gd-steps li span { width: 22px; text-align: center; }
.gd-steps li.ok span { color: #16a34a; font-weight: 800; }
@media (max-width: 600px) { .gd { bottom: 12px; inset-inline-end: 12px; } .gd-fab { width: 52px; height: 52px; } }
@media print { .gd { display: none; } }
.sub-card .plan-flag.rec { background: linear-gradient(135deg, #f59e0b, #d97706); }
/* Store QR code card */
.qr-card { display: grid; gap: 10px; justify-items: center; text-align: center; }
.qr-card h3, .qr-card p { justify-self: stretch; text-align: start; margin: 0; }
.qr-img { width: 220px; height: 220px; border-radius: 16px; border: 1px solid var(--line); padding: 8px; background: #fff; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
/* Invite a merchant and win */
.side-invite { background: linear-gradient(90deg, rgba(244,176,0,.16), rgba(28,63,170,.12)); font-weight: 700; }
.ref-hello { background: #ecfdf5; color: #065f46; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.inv-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 26px 20px; color: #fff; text-align: center; margin-bottom: 16px;
  background: radial-gradient(120% 90% at 100% 0, #1C3FAA 0, transparent 60%), radial-gradient(100% 80% at 0 100%, #0F766E 0, transparent 50%), #0B1220; }
.inv-hero h1 { margin: 6px 0; font-size: clamp(22px, 5vw, 30px); color: #fff; }
.inv-hero h1 em { font-style: normal; color: #F4B000; }
.inv-hero p { margin: 0 auto 14px; max-width: 560px; opacity: .9; line-height: 1.8; }
.inv-gift { font-size: 54px; animation: inv-bounce 2.4s ease-in-out infinite; display: inline-block; }
@keyframes inv-bounce { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-10px) rotate(-8deg); } 60% { transform: translateY(0) rotate(6deg); } }
.inv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 520px; margin: 0 auto; }
.inv-stats div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 10px 6px; display: grid; gap: 2px; }
.inv-stats b { font-size: 26px; }
.inv-stats span { font-size: 13px; opacity: .85; }
.inv-grid { align-items: start; }
.inv-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.inv-msg { width: 100%; font-size: 14px; color: var(--muted); resize: none; }
.inv-qr { display: grid; justify-items: center; gap: 10px; text-align: center; }
.inv-qr h3 { justify-self: stretch; text-align: start; margin: 0; }
.inv-qr img { width: 180px; height: 180px; border-radius: 14px; border: 1px solid var(--line); padding: 6px; background: #fff; }
.inv-steps { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.inv-steps li { display: flex; gap: 10px; align-items: flex-start; background: var(--bg, #f6f7f9); border-radius: 14px; padding: 12px; }
.inv-steps li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand, #0f766e); color: #fff; font-weight: 800; }
.inv-steps strong { display: block; }
.inv-steps small { color: var(--muted); }
.inv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.inv-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 8px 0; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .inv-gift { animation: none; } }
/* The store as an app (Business): header button, phone banner, help dialog */
.sa-btn { display: inline-flex; align-items: center; gap: 6px; width: auto; padding-inline: 10px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.sa-btn span { font-size: .85rem; font-weight: 700; }
@media (max-width: 760px) { .sa-btn span { display: none; } .sa-btn { padding-inline: 6px; } }
.sa-bar { position: fixed; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 10px;
  background: var(--card, #fff); color: var(--text, #1a1d23); border-radius: 18px; padding: 10px 12px; box-shadow: 0 14px 40px rgba(16,24,40,.22); border: 1px solid var(--line, #e4e7ec);
  animation: sa-up .35s ease-out; }
.sa-bar[hidden] { display: none; }
@keyframes sa-up { from { transform: translateY(120%); opacity: 0; } }
.sa-bar img { width: 44px; height: 44px; border-radius: 12px; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.sa-txt { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.sa-txt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-txt small { color: var(--muted, #667085); font-size: .78rem; }
.sa-go { border: 0; border-radius: 12px; padding: 9px 14px; font: inherit; font-weight: 800; color: #fff; background: var(--brand); cursor: pointer; flex: none; }
.sa-x { border: 0; background: none; color: var(--muted, #667085); font-size: 16px; cursor: pointer; padding: 4px; flex: none; }
.sa-help { border: 0; border-radius: 22px; padding: 22px; max-width: min(360px, calc(100vw - 32px)); text-align: center; color: var(--text, #1a1d23); background: var(--card, #fff); }
.sa-help::backdrop { background: rgba(10,14,20,.5); }
.sa-help img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.sa-help h3 { margin: 10px 0 6px; }
.sa-help p { margin: 0 0 14px; line-height: 1.8; color: var(--muted, #667085); }
.sa-help .btn { width: 100%; }
/* Merchant dashboard: app preview on a phone */
.sapp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .sapp-grid { grid-template-columns: 1fr; } }
.sapp-phone { justify-self: center; width: 250px; aspect-ratio: 9 / 18.5; border-radius: 38px; padding: 12px; background: #0B1220; box-shadow: 0 24px 50px rgba(11,18,32,.35); }
.sapp-screen { height: 100%; border-radius: 28px; padding: 46px 16px 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; align-content: start;
  background: radial-gradient(120% 70% at 20% 0, #6d8bff 0, transparent 60%), radial-gradient(90% 60% at 100% 100%, #f4b000 0, transparent 55%), #1C3FAA; }
.sapp-app { display: grid; justify-items: center; gap: 5px; color: #fff; font-size: 10px; text-align: center; }
.sapp-app i { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.22); display: block; }
.sapp-app.me img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 0 0 2px #fff, 0 6px 16px rgba(0,0,0,.3); animation: sapp-pop 2.4s ease-in-out infinite; }
.sapp-app.me span { font-weight: 700; max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes sapp-pop { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.12); } 90% { transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) { .sapp-app.me img, .sa-bar { animation: none; } }

/* ===================== Home page (light, product-first) ===================== */
.lp3 { --b: #1C3FAA; --b-d: #142F85; --ink: #0B1220; --ink-2: #344054; --mute: #667085; --line2: #E6EAF2; --tint: #F5F7FC; --saf: #F4B000; --ok: #0F766E;
  font-family: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: #fff; }
.lp3 h1, .lp3 h2, .lp3 h3 { font-family: inherit; color: var(--ink); }
.lp3 .landing-bar { background: rgba(255,255,255,.8); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(230,234,242,.8); }
.lp3 .ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 12px; font-weight: 600; font-size: 1.02rem; text-decoration: none; transition: background .15s, box-shadow .15s, transform .15s; white-space: nowrap; }
.x-btn:hover { text-decoration: none; }
.x-btn:focus-visible { outline: 3px solid rgba(28,63,170,.35); outline-offset: 2px; }
.x-btn-main { background: var(--b); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 10px 24px -10px rgba(28,63,170,.7); }
.x-btn-main:hover { background: var(--b-d); color: #fff; transform: translateY(-1px); }
.x-btn-alt { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2), 0 1px 2px rgba(16,24,40,.05); }
.x-btn-alt:hover { background: var(--tint); color: var(--ink); }
.x-btn-line { color: var(--b); box-shadow: inset 0 0 0 1px #C9D3EE; background: #fff; }
.x-btn-line:hover { background: #F2F5FD; }
.x-btn-light { background: #fff; color: var(--b); }
.x-btn-light:hover { background: #EEF2FD; color: var(--b); }
.x-btn-ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.x-btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Hero */
.x-hero { position: relative; overflow: hidden; padding: 84px 0 0; }
.x-mesh { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(38% 46% at 18% 18%, rgba(28,63,170,.16), transparent 70%), radial-gradient(34% 40% at 84% 8%, rgba(15,118,110,.13), transparent 70%), radial-gradient(30% 30% at 60% 46%, rgba(244,176,0,.10), transparent 70%); }
.x-hero .x-mesh::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(28,63,170,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(28,63,170,.06) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 20%, #000, transparent 75%); mask-image: radial-gradient(60% 55% at 50% 20%, #000, transparent 75%); }
.x-hero-in { position: relative; text-align: center; display: grid; justify-items: center; }
.x-hero h1 { margin: 0 0 22px; max-width: 19ch; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.x-lead { margin: 0 0 32px; max-width: 40em; font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.8; color: var(--ink-2); text-wrap: pretty; }
.x-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.x-trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--mute); font-size: .94rem; }
.x-trust li { display: inline-flex; align-items: center; gap: 6px; }
.x-trust .ic { width: 17px; height: 17px; color: var(--ok); stroke-width: 2.2; }

/* Product stage */
.x-stage-wrap { position: relative; margin-top: 64px; }
.x-stage { --tilt: 0deg; position: relative; max-width: 1040px; margin: 0 auto; perspective: 1600px; }
.x-win { position: relative; border-radius: 16px 16px 0 0; background: #fff; overflow: hidden; transform: rotateX(var(--tilt)); transform-origin: 50% 100%;
  box-shadow: 0 0 0 1px rgba(16,24,40,.08), 0 40px 80px -30px rgba(15,35,102,.35), 0 18px 36px -18px rgba(15,35,102,.25); will-change: transform; }
.x-win-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #F7F8FB; border-bottom: 1px solid var(--line2); }
.x-win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #E1E5EE; }
.x-win-bar span { margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line2); font: 500 .78rem 'Plus Jakarta Sans', sans-serif; color: var(--mute); }
.x-win-bar .ic { width: 13px; height: 13px; color: var(--ok); }
.x-dash { display: grid; grid-template-columns: 200px 1fr; min-height: 470px; font-size: .86rem; text-align: start; }
.x-side { display: grid; align-content: start; gap: 3px; padding: 18px 12px; border-inline-end: 1px solid var(--line2); background: #FBFCFE; }
.x-side-logo { display: flex; align-items: center; gap: 8px; font: 700 .92rem 'Plus Jakarta Sans', sans-serif; letter-spacing: .02em; padding: 0 8px 16px; }
.x-side span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); }
.x-side span .ic { width: 17px; height: 17px; color: var(--mute); }
.x-side span.on { background: #EDF1FC; color: var(--b); font-weight: 600; }
.x-side span.on .ic { color: var(--b); }
.x-side em { margin-inline-start: auto; font-style: normal; font-size: .72rem; font-weight: 700; color: #fff; background: var(--b); border-radius: 99px; padding: 1px 7px; }
.x-main { padding: 20px 22px; display: grid; gap: 14px; align-content: start; }
.x-main-top { display: flex; align-items: center; justify-content: space-between; }
.x-main-top strong { font-size: 1.05rem; }
.x-pill-live { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ok); background: #E8F5F3; padding: 4px 10px; border-radius: 99px; font-weight: 600; }
.x-pill-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(15,118,110,.2); }
.x-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.x-kpis div { padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line2); display: grid; gap: 2px; }
.x-kpis small { color: var(--mute); font-size: .76rem; }
.x-kpis b { font: 700 1.2rem 'Plus Jakarta Sans', sans-serif; letter-spacing: -.01em; justify-self: start; }
.x-kpis em { justify-self: start; font-style: normal; font-size: .74rem; color: var(--mute); }
.x-kpis em.up { color: var(--ok); font-weight: 600; }
.x-chart { padding: 12px 14px 4px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line2); }
.x-chart-head { display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }
.x-seg { display: inline-flex; background: #F2F4F8; border-radius: 8px; padding: 2px; font-weight: 500; font-size: .74rem; }
.x-seg i { font-style: normal; padding: 3px 9px; border-radius: 6px; color: var(--mute); }
.x-seg i.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.x-chart svg { display: block; width: 100%; height: 120px; }
.x-orders { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line2); padding: 6px 14px; }
.x-orders-head { display: flex; justify-content: space-between; padding: 6px 0; }
.x-orders-head span { color: var(--b); font-size: .78rem; font-weight: 600; }
.x-row { display: grid; grid-template-columns: 30px 1fr auto 86px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid #F0F2F7; }
.x-row span:nth-child(2) small, .x-ol small { display: block; color: var(--mute); font-size: .74rem; }
.x-row b { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; }
.x-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: hsl(var(--h) 55% 32%); background: hsl(var(--h) 70% 93%); }
.lp3 em.ok, .lp3 em.ship, .lp3 em.new, .lp3 em.bad { font-style: normal; justify-self: start; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.lp3 em.ok { background: #E8F5F3; color: var(--ok); }
.lp3 em.ship { background: #EDF1FC; color: var(--b); }
.lp3 em.new { background: #FFF6DB; color: #8A5A00; }
.lp3 em.bad { background: #FDECEC; color: #B42318; }

.x-phone { position: absolute; z-index: 2; bottom: -1px; inset-inline-start: -28px; width: 214px; padding: 9px; border-radius: 34px; background: #0B1220; box-shadow: 0 30px 60px -20px rgba(11,18,32,.55); }
.x-phone-in { border-radius: 26px; overflow: hidden; background: #fff; padding: 14px 12px 12px; display: grid; gap: 10px; font-size: .74rem; text-align: start; }
.x-ph-top { display: flex; justify-content: space-between; align-items: center; font-family: 'Plus Jakarta Sans', sans-serif; padding-top: 6px; }
.x-ph-top .ic { width: 15px; height: 15px; }
.x-ph-hero { border-radius: 14px; padding: 26px 12px 12px; background: radial-gradient(80% 90% at 80% 10%, #E2A73B, transparent 60%), linear-gradient(140deg, #8C4A12, #4A2408); color: #fff; display: grid; }
.x-ph-hero strong { color: #fff; font-size: .9rem; }
.x-ph-hero small { opacity: .8; }
.x-ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.x-ph-grid div { display: grid; gap: 1px; }
.x-ph-grid span { aspect-ratio: 1; border-radius: 10px; background: radial-gradient(60% 60% at 50% 40%, rgba(255,255,255,.6), transparent 70%), linear-gradient(150deg, var(--a), var(--b)); margin-bottom: 4px; }
.x-ph-grid em { font-style: normal; color: var(--ink-2); }
.x-ph-grid b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .74rem; }
.x-ph-btn { text-align: center; padding: 9px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: .72rem; }

.x-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 14px; border-radius: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); text-align: start;
  box-shadow: 0 0 0 1px rgba(16,24,40,.06), 0 20px 40px -16px rgba(15,35,102,.35); animation: x-pop .6s cubic-bezier(.2,1.2,.4,1) both; }
.x-float strong { display: block; font-size: .88rem; }
.x-float small { color: var(--mute); font-size: .78rem; }
.x-f-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #EDF1FC; color: var(--b); }
.x-f-ic.wa { background: #E7F8EE; color: #128C4B; }
.x-f1 { top: 150px; inset-inline-end: -52px; animation-delay: .7s; }
.x-f2 { top: 84px; inset-inline-start: -60px; animation-delay: 1.3s; }
@keyframes x-pop { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.x-stage .mascot { bottom: 0; inset-inline-start: auto; inset-inline-end: -112px; width: 150px; z-index: 4; }
.x-stage .mascot-say { top: -46px; inset-inline-start: auto; inset-inline-end: 40%; border-end-start-radius: 16px; border-end-end-radius: 4px; }

/* Strip */
.x-strip { border-block: 1px solid var(--line2); background: #fff; position: relative; z-index: 5; }
.x-strip-in { display: flex; align-items: center; gap: 28px; padding: 22px 16px; flex-wrap: wrap; justify-content: center; }
.x-strip p { margin: 0; color: var(--mute); font-size: .9rem; }
.x-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.x-strip li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.x-strip .ic { color: var(--b); }

/* Sections */
.x-sec { padding: 96px 0; }
.x-sec-tint { background: var(--tint); }
.x-head { max-width: 760px; margin: 0 0 48px; }
.x-head-c { margin-inline: auto; text-align: center; }
.x-head h2 { margin: 0 0 12px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.22; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
.x-head p { margin: 0; color: var(--ink-2); font-size: 1.1rem; line-height: 1.8; }
.lp3 .x-head h2::after { content: none; }

/* Steps */
.x-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.x-steps li { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line2); }
.x-num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 .95rem 'Plus Jakarta Sans', sans-serif; margin-bottom: 18px; }
.x-steps h3 { margin: 0 0 8px; font-size: 1.22rem; }
.x-steps p { margin: 0 0 22px; color: var(--ink-2); line-height: 1.75; flex: 1; }
.x-step-vis { border-radius: 14px; background: var(--tint); padding: 14px; display: grid; gap: 8px; font-size: .82rem; min-height: 124px; align-content: center; }
.x-sv1 span { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 8px; padding: 8px 10px; box-shadow: inset 0 0 0 1px var(--line2); color: var(--mute); font-family: 'Plus Jakarta Sans', sans-serif; }
.x-sv1 .ic { width: 15px; height: 15px; }
.x-sv1 b, .x-sv3 b { text-align: center; background: var(--b); color: #fff; border-radius: 8px; padding: 8px; font-weight: 600; }
.x-sw { display: flex; gap: 8px; }
.x-sw i { width: 24px; height: 24px; border-radius: 50%; }
.x-sw i:first-child { box-shadow: 0 0 0 2px var(--tint), 0 0 0 4px var(--b); }
.x-sv2-prev { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; }
.x-sv2-prev i { height: 52px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line2); }
.x-sv2-prev i:first-child { background: linear-gradient(135deg, var(--b), #4F6FDC); box-shadow: none; }
.x-sv3 { grid-template-columns: 1fr auto; align-items: center; }
.x-sv3 span { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 8px; padding: 9px 10px; box-shadow: inset 0 0 0 1px var(--line2); font: 500 .8rem 'Plus Jakarta Sans', sans-serif; color: var(--b); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.x-sv3 .ic { width: 15px; height: 15px; }
.x-sv3 b { padding: 9px 14px; }

/* Bento */
.x-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.x-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 26px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line2); }
.x-t-orders { grid-column: span 2; grid-row: span 2; }
.x-tic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #EDF1FC; color: var(--b); margin-bottom: 16px; }
.x-tile h3 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.45; }
.x-t-orders h3 { font-size: 1.5rem; max-width: 18em; }
.x-tile p { margin: 0; color: var(--ink-2); line-height: 1.7; font-size: .95rem; max-width: 34em; }
.x-ol { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line2), 0 12px 24px -18px rgba(15,35,102,.35); margin-top: 10px; font-size: .9rem; }
.x-ol .x-av { width: 34px; height: 34px; }
.x-ol-bad { opacity: .75; }
.x-ol-bad span:nth-child(2) { text-decoration: line-through; text-decoration-color: rgba(180,35,24,.5); }
.x-t-orders .x-tile-vis { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 18px; border-radius: 16px; background: var(--tint); }
.x-ol-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.x-ol-head span { font-size: .78rem; color: var(--mute); font-weight: 500; }
.x-bub { position: relative; background: #DCF8C6; border-radius: 14px; border-start-start-radius: 4px; padding: 12px 14px 22px; font-size: .86rem; line-height: 1.7; }
.x-bub span { position: absolute; bottom: 5px; inset-inline-end: 10px; font: 600 .7rem 'Plus Jakarta Sans', sans-serif; color: #34B7F1; }
.x-t-wa .x-tile-vis { background: #EFE7DD; border-radius: 14px; padding: 14px; }
.x-ed { display: grid; gap: 6px; }
.x-ed span { padding: 9px 12px; border-radius: 10px; background: var(--tint); font-size: .84rem; display: flex; justify-content: space-between; }
.x-ed span::after { content: ""; width: 14px; height: 2px; margin-top: 8px; background: #C3CBDD; box-shadow: 0 -4px 0 #C3CBDD, 0 4px 0 #C3CBDD; }
.x-ed span.on { background: var(--b); color: #fff; }
.x-ed span.on::after { background: rgba(255,255,255,.6); box-shadow: 0 -4px 0 rgba(255,255,255,.6), 0 4px 0 rgba(255,255,255,.6); }
.x-home { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px; border-radius: 16px; background: linear-gradient(160deg, #1C3FAA, #0F766E); }
.x-home i, .x-home b { aspect-ratio: 1; border-radius: 12px; background: rgba(255,255,255,.22); }
.x-home b { display: grid; place-items: center; background: #fff; color: #8C4A12; font: 700 1.1rem 'Plus Jakarta Sans', sans-serif; box-shadow: 0 6px 16px -4px rgba(0,0,0,.35); transform: scale(1.08); }
.x-url { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line2); font-family: 'Plus Jakarta Sans', sans-serif; color: var(--mute); }
.x-url .ic { width: 16px; height: 16px; color: var(--ok); }
.x-url b { color: var(--ink); }
.x-bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.x-bars i { flex: 1; height: var(--v); border-radius: 6px 6px 3px 3px; background: #DCE3F5; }
.x-bars i.on { background: var(--b); }
.x-more { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.x-more li { display: flex; gap: 14px; align-items: flex-start; }
.x-more .ic { width: 22px; height: 22px; color: var(--b); margin-top: 3px; }
.x-more h3 { margin: 0 0 4px; font-size: 1.02rem; }
.x-more p { margin: 0; color: var(--ink-2); font-size: .93rem; line-height: 1.7; }

/* Dark trust band */
.x-dark { padding: 96px 0; background: radial-gradient(50% 80% at 85% 0%, rgba(28,63,170,.55), transparent 70%), radial-gradient(40% 70% at 0% 100%, rgba(15,118,110,.35), transparent 70%), #0B1220; color: #fff; }
.x-dark .x-head h2 { color: #fff; }
.x-dark .x-head p { color: rgba(255,255,255,.7); }
.x-safe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.x-safe li { padding: 24px; border-radius: 18px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.x-safe .ic { width: 26px; height: 26px; color: #9DB2F5; margin-bottom: 16px; }
.x-safe h3 { margin: 0 0 6px; color: #fff; font-size: 1.05rem; }
.x-safe p { margin: 0; color: rgba(255,255,255,.66); font-size: .92rem; line-height: 1.7; }

/* Pricing */
.x-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; max-width: 1080px; margin: 0 auto; }
.x-plan { padding: 28px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line2); display: grid; gap: 18px; }
.x-plan.top { box-shadow: inset 0 0 0 2px var(--b), 0 30px 60px -30px rgba(28,63,170,.55); }
.x-plan-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.x-plan h3 { margin: 0; font-size: 1.2rem; }
.x-flag { font-size: .76rem; font-weight: 700; color: var(--b); background: #EDF1FC; padding: 4px 10px; border-radius: 99px; }
.x-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.x-price b { font: 700 2.8rem/1 'Plus Jakarta Sans', sans-serif; letter-spacing: -.03em; }
.x-price span { color: var(--mute); font-size: .92rem; }
.x-plan .x-btn { width: 100%; }
.x-plan ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line2); display: grid; gap: 11px; }
.x-plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; line-height: 1.55; color: var(--ink-2); }
.x-plan li .ic { width: 18px; height: 18px; color: var(--b); stroke-width: 2.2; margin-top: 2px; }
.x-note { text-align: center; color: var(--mute); margin: 28px 0 0; font-size: .92rem; }

/* FAQ */
.x-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.lp3 .faq { max-width: none; margin: 0; }
.lp3 .faq details { background: #fff; border: 0; border-radius: 14px; margin-bottom: 10px; box-shadow: inset 0 0 0 1px var(--line2); }
.lp3 .faq summary { font-weight: 600; }

/* Closing */
.x-end-wrap { padding: 96px 0; }
.x-end { position: relative; overflow: hidden; border-radius: 28px; padding: 80px 32px; text-align: center; color: #fff; background: linear-gradient(135deg, #142F85, #1C3FAA 55%, #1E50C8); }
.x-end .x-mesh { background: radial-gradient(40% 60% at 15% 100%, rgba(15,118,110,.55), transparent 70%), radial-gradient(35% 55% at 90% 0%, rgba(244,176,0,.28), transparent 70%); }
.x-end h2 { position: relative; margin: 0 0 14px; color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.2; letter-spacing: -.015em; }
.x-end p { position: relative; margin: 0 auto 30px; max-width: 34em; color: rgba(255,255,255,.82); font-size: 1.1rem; line-height: 1.8; }
.x-end .x-ctas { position: relative; }
.lp3 .l-foot { margin-top: 0; }

/* Responsive */
@media (max-width: 1290px) { .x-stage .mascot { display: none; } }
@media (max-width: 1140px) { .x-f1 { inset-inline-end: 8px; } .x-f2 { inset-inline-start: 8px; } .x-phone { inset-inline-start: 8px; } }
@media (max-width: 960px) {
  .x-dash { grid-template-columns: 1fr; }
  .x-side { display: none; }
  .x-bento { grid-template-columns: 1fr 1fr; }
  .x-t-orders { grid-column: span 2; grid-row: auto; }
  .x-safe { grid-template-columns: 1fr 1fr; }
  .x-plans { grid-template-columns: 1fr; max-width: 480px; }
  .x-faq { grid-template-columns: 1fr; gap: 8px; }
  .x-steps { grid-template-columns: 1fr; }
  .x-more { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .x-hero { padding-top: 48px; }
  .x-hero h1 { font-size: 2.3rem; }
  .x-ctas .x-btn { flex: 1 1 auto; }
  .x-stage-wrap { margin-top: 40px; padding-inline: 12px; }
  .x-win { border-radius: 12px 12px 0 0; }
  .x-kpis { grid-template-columns: 1fr 1fr; }
  .x-main { padding: 14px; }
  .x-row { grid-template-columns: 30px 1fr auto; }
  .x-row em { display: none; }
  .x-chart { display: none; }
  .x-orders { padding: 4px 12px; }
  .x-dash { min-height: 0; }
  .x-phone { display: none; }
  .x-f1 { top: -26px; inset-inline-end: auto; inset-inline-start: 50%; transform: translateX(50%); width: max-content; padding: 10px 12px; animation: none; }
  [dir=ltr] .x-f1 { transform: translateX(-50%); }
  .x-f2 { display: none; }
  .x-float strong { font-size: .8rem; }
  .x-sec, .x-dark, .x-end-wrap { padding: 64px 0; }
  .x-bento { grid-template-columns: 1fr; }
  .x-t-orders { grid-column: auto; }
  .x-safe, .x-more { grid-template-columns: 1fr; }
  .x-end { padding: 56px 20px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { .x-float { animation: none; } .x-win { transform: none; } }
