/* ============================================================
   Mobile Vahid demo — pages.css
   Page-specific layouts: sub-page heroes, home sections,
   listing, product, used, sell, installment, compare,
   accessories, download-app, contact, small pages.
   ============================================================ */

/* ---------- generic sub-page hero ---------- */
.page-hero { position: relative; border-radius: var(--radius-lg); padding: 40px 44px; color: #fff; overflow: hidden; margin-top: 22px; background: var(--grad-primary); isolation: isolate; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(560px 280px at 88% 10%, rgba(255, 255, 255, .16), transparent); }
.page-hero .ph-kicker { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .18); border-radius: 10px; padding: 5px 13px; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(23px, 3vw, 34px); font-weight: 800; letter-spacing: -.4px; margin-bottom: 8px; }
.page-hero .ph-sub { font-size: 15px; opacity: .92; max-width: 62ch; line-height: 2; }
.page-hero .ph-cta { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.page-hero .ph-art { position: absolute; inset-inline-end: 10px; bottom: -16px; width: clamp(150px, 24%, 300px); opacity: .95; }
@media (max-width: 768px) { .page-hero { padding: 28px 22px; } .page-hero .ph-art { opacity: .3; } .page-hero .ph-cta .btn { flex: 1; } }

/* ---------- home: installment banner + teaser ---------- */
.ibanner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 34px; }
.ib-main { position: relative; border-radius: var(--radius-lg); background: var(--grad-hero2); color: #fff; padding: 30px 34px; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.ib-main::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 220px at 85% 15%, rgba(255, 255, 255, .15), transparent); }
.ib-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; z-index: 1; max-width: 46ch; }
.ib-main .t { font-size: 23px; font-weight: 800; margin-bottom: 4px; }
.ib-main .d { font-size: 15px; opacity: .9; line-height: 2; max-width: 44ch; }
.ib-txt .btn { background: #fff; color: #14532D; margin-top: 14px; }
.ib-art { position: relative; width: 150px; align-self: stretch; display: flex; align-items: center; justify-content: center; z-index: 1; }
.ib-art img { width: 100%; background: #fff; border-radius: 22px; padding: 12px 10px; box-shadow: 0 20px 38px rgba(0, 0, 0, .30); border: 1px solid rgba(255, 255, 255, .6); transform: rotate(-4deg); transition: transform .3s; }
.ib-main:hover .ib-art img { transform: rotate(-1deg) translateY(-4px); }
.ib-chip { position: absolute; bottom: 4px; inset-inline-start: -16px; background: var(--secondary); color: #1F2937; font-weight: 800; font-size: 12px; border-radius: 10px; padding: 7px 12px; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow-2); white-space: nowrap; }
.ib-chip svg { width: 14px; height: 14px; flex: none; }
.ib-art.svg-mode { width: 210px; }
.ib-art.svg-mode svg { width: 100%; height: auto; opacity: .92; }
@media (max-width: 640px) { .ib-main { grid-template-columns: 1fr; } .ib-art { width: 130px; margin-inline: auto; } }
.ib-calc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.ib-calc .t { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.ib-calc .t .badge-demo { margin-inline-start: auto; }
.ib-calc .row { display: flex; gap: 10px; }
.ib-calc .row .field { flex: 1; }
.ib-calc .result { background: var(--primary-100); border-radius: 13px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ib-calc .result .lbl { font-size: 12px; color: var(--text-2); font-weight: 600; }
.ib-calc .result .val { font-size: 19px; font-weight: 800; color: var(--primary); }
@media (max-width: 900px) { .ibanner { grid-template-columns: 1fr; } }

/* ---------- home: app banner ---------- */
.appban { margin-top: 38px; position: relative; border-radius: var(--radius-lg); background: var(--grad-hero4); color: #fff; padding: 36px 44px; overflow: hidden; display: flex; align-items: center; gap: 30px; isolation: isolate; }
.appban::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 300px at 12% 90%, rgba(63, 162, 126, .35), transparent); }
.appban .txt { flex: 1; z-index: 1; }
.appban .t { font-size: clamp(19px, 2.4vw, 26px); font-weight: 800; margin-bottom: 8px; }
.appban .d { font-size: 13.5px; opacity: .88; line-height: 2; max-width: 52ch; margin-bottom: 18px; }
.appban .art { width: 220px; flex: none; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .4)); }
.appban .stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 13px; padding: 9px 16px; }
.store-btn:hover { background: rgba(255, 255, 255, .2); }
.store-btn svg { width: 22px; height: 22px; }
.store-btn .s1 { font-size: 9.5px; opacity: .8; display: block; line-height: 1.4; }
.store-btn .s2 { font-size: 13.5px; font-weight: 700; display: block; line-height: 1.4; }
@media (max-width: 768px) { .appban { flex-direction: column-reverse; text-align: center; padding: 28px 22px; } .appban .d { margin-inline: auto; } .appban .art { width: 150px; } .appban .stores { justify-content: center; } }

/* ---------- listing (mobiles / accessories) ---------- */
.listing-wrap { display: grid; grid-template-columns: 268px 1fr; gap: 24px; align-items: start; margin-top: 20px; }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 18px 18px; position: sticky; top: calc(var(--chrome-h, 164px) + 14px); max-height: calc(100vh - var(--chrome-h, 164px) - 30px); overflow-y: auto; }
.fgroup { border-bottom: 1px solid var(--border); padding: 15px 0; }
.fgroup:last-child { border-bottom: 0; }
.fgroup > .ft { font-size: 14.5px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.fgroup .price-inputs { display: flex; align-items: center; gap: 7px; }
.fgroup .price-inputs .input { height: 40px; font-size: 12.5px; direction: ltr; text-align: center; padding-inline: 6px; }
.fgroup .checkrow { flex-direction: column; gap: 8px; }
.fgroup .check .lbl2 { color: var(--text-3); font-size: 11px; margin-inline-start: auto; }
.listing-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.listing-toolbar .count { font-size: 13px; color: var(--text-2); font-weight: 600; }
.listing-toolbar .spacer { flex: 1; }
.view-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
.view-toggle button { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.view-toggle button.on { background: var(--primary-100); color: var(--primary); }
.sort-select { max-width: 190px; height: 40px; font-size: 13px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
@media (max-width: 992px) {
  .listing-wrap { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; max-height: 78vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; z-index: 96; transform: translateY(105%); transition: transform .3s; padding-top: 14px; }
  .filters.open { transform: none; }
  .filters::before { content: ""; display: block; width: 44px; height: 4.5px; background: var(--border-2); border-radius: 10px; margin: 0 auto 8px; }
  .flt-btn { display: inline-flex !important; }
}
.flt-btn { display: none; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; height: 40px; padding-inline: 14px; font-size: 13px; font-weight: 700; }

/* ---------- product page ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 30px; margin-top: 18px; align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--chrome-h, 164px) + 16px); }
.pd-main-img { background: radial-gradient(circle at 70% 20%, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius-lg); aspect-ratio: 1.05; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-main-img img { height: 82%; filter: drop-shadow(0 18px 28px rgba(17, 24, 39, .2)); transition: transform .3s; }
.pd-main-img:hover img { transform: scale(1.05) rotate(-1.5deg); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs button { width: 76px; height: 76px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pd-thumbs button img { width: 78%; }
.pd-thumbs button.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.pd-info { display: flex; flex-direction: column; gap: 14px; }
.pd-title { font-size: 23px; font-weight: 800; line-height: 1.6; }
.pd-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.pd-brand-link { color: var(--primary); font-weight: 700; }
.pick-title { font-size: 13.5px; font-weight: 800; margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.color-swatches { display: flex; gap: 9px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--surface); box-shadow: 0 0 0 1.5px var(--border-2); position: relative; cursor: pointer; transition: transform .15s; }
.swatch:hover { transform: scale(1.1); }
.swatch.on { box-shadow: 0 0 0 2.5px var(--primary); }
.swatch .nm { position: absolute; top: 130%; inset-inline-start: 50%; transform: translateX(50%); background: var(--text); color: var(--surface); font-size: 10px; border-radius: 6px; padding: 2px 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 4; }
[dir="ltr"] .swatch .nm { transform: translateX(-50%); }
.swatch:hover .nm, .swatch.on .nm { opacity: 1; }
.variants { display: flex; gap: 9px; flex-wrap: wrap; }
.variant { border: 1.5px solid var(--border); background: var(--surface); border-radius: 12px; padding: 9px 16px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s; }
.variant:hover { border-color: var(--primary); }
.variant.on { border-color: var(--primary); background: var(--primary-100); color: var(--primary); }
.buybox { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-1); }
.buybox .bb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.buybox .price-now { font-size: 28px; font-weight: 800; }
.buybox .price-now .cur { font-size: 13px; color: var(--text-2); font-weight: 600; }
.buybox .old { font-size: 14px; color: var(--text-3); text-decoration: line-through; }
.buybox .btns { display: flex; flex-direction: column; gap: 9px; }
.installment-note { display: flex; align-items: center; gap: 10px; background: var(--primary-100); border-radius: 13px; padding: 11px 14px; font-size: 12.5px; color: var(--primary); font-weight: 600; }
.installment-note svg { flex: none; }
.assure { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.assure li { display: flex; align-items: center; gap: 9px; }
.assure svg { color: var(--success); flex: none; }
.pd-tabs { margin-top: 40px; }
.pd-tab-body { padding-top: 22px; }
.hl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.hl-item { display: flex; gap: 11px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 13px 15px; font-size: 13px; line-height: 1.9; }
.hl-item .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-100); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 15px 18px; }
.review + .review { margin-top: 10px; }
.review .rh { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.review .av { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-100); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.review .nm { font-weight: 700; font-size: 13.5px; }
.review .dt { font-size: 11.5px; color: var(--text-3); }
.review p { font-size: 13px; color: var(--text-2); line-height: 2; }
@media (max-width: 992px) { .pd { grid-template-columns: 1fr; } .pd-gallery { position: static; } .pd-main-img { aspect-ratio: 1.6; } }

/* ---------- used page ---------- */
.used-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 16px; }
.used-toolbar .select { max-width: 180px; height: 40px; font-size: 13px; }
.used-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.sell-cta { margin-top: 34px; background: var(--grad-hero3); color: #fff; border-radius: var(--radius-lg); padding: 30px 34px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.sell-cta .t { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.sell-cta .d { font-size: 13px; opacity: .92; line-height: 2; }
.sell-cta .btn { background: #fff; color: #92400E; margin-inline-start: auto; }
@media (max-width: 640px) { .sell-cta { text-align: center; } .sell-cta .btn { margin-inline: auto; } }

/* ---------- sell wizard ---------- */
.wizard { max-width: 760px; margin: 26px auto 0; }
.wiz-steps { display: flex; align-items: center; gap: 4px; margin-bottom: 26px; }
.wiz-step { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.wiz-step .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); color: var(--text-3); display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: "Inter", sans-serif; font-size: 14px; flex: none; transition: all .25s; }
.wiz-step .lbl { font-size: 12px; font-weight: 700; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz-step .bar { flex: 1; height: 3.5px; border-radius: 3px; background: var(--surface-3); min-width: 14px; }
.wiz-step.active .dot { background: var(--grad-primary); color: #fff; box-shadow: 0 4px 12px -4px rgba(11, 110, 79, .6); }
.wiz-step.active .lbl { color: var(--primary); }
.wiz-step.done .dot { background: var(--primary-100); color: var(--primary); }
.wiz-step.done .bar { background: var(--primary); }
@media (max-width: 640px) { .wiz-step .lbl { display: none; } }
.wiz-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.wiz-card .wc-title { font-size: 17px; font-weight: 800; margin-bottom: 20px; }
.wiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wiz-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .wiz-grid { grid-template-columns: 1fr; } }
.wiz-nav { display: flex; gap: 10px; margin-top: 26px; }
.wiz-nav .next { margin-inline-start: auto; }
.dropzone { border: 2px dashed var(--border-2); border-radius: var(--radius); padding: 34px 20px; text-align: center; color: var(--text-3); cursor: pointer; transition: border-color .2s, background .2s; background: var(--surface-2); }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-100); color: var(--primary); }
.dropzone svg { width: 40px; height: 40px; margin: 0 auto 10px; }
.dropzone .d1 { font-weight: 700; font-size: 14px; color: var(--text-2); }
.dropzone .d2 { font-size: 11.5px; margin-top: 4px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 14px; }
.photo-item { position: relative; aspect-ratio: 1; border-radius: 13px; overflow: hidden; border: 1px solid var(--border); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item .rm { position: absolute; top: 6px; inset-inline-end: 6px; width: 26px; height: 26px; border-radius: 8px; background: rgba(17, 24, 39, .72); color: #fff; display: flex; align-items: center; justify-content: center; }
.photo-item .rm:hover { background: var(--accent); }
.wiz-review { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.wiz-review .ri { background: var(--surface-2); border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.wiz-review .ri .k { color: var(--text-3); font-size: 11px; margin-bottom: 3px; }
.wiz-review .ri .v { font-weight: 700; }
.reviewing { text-align: center; padding: 50px 20px; }
.reviewing .steps { display: flex; flex-direction: column; gap: 14px; max-width: 380px; margin: 0 auto; }
.reviewing .rstep { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 13px; padding: 13px 18px; font-size: 14px; font-weight: 600; color: var(--text-3); opacity: .45; transition: all .3s; }
.reviewing .rstep.on { opacity: 1; color: var(--text); border: 1px solid var(--primary); }
.reviewing .rstep.done { opacity: 1; color: var(--success); }
.reviewing .spin { width: 22px; height: 22px; border: 3px solid var(--border-2); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.offer-card { text-align: center; padding: 40px 24px; }
.offer-card .ok { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--success-100); color: var(--success); display: flex; align-items: center; justify-content: center; animation: fav-pop .5s cubic-bezier(.2, .9, .3, 1.4); }
.offer-card .ok svg { width: 42px; height: 42px; }
.offer-card .range { font-size: clamp(22px, 4vw, 34px); font-weight: 800; color: var(--primary); margin: 12px 0 4px; }
.ai-note { display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--secondary-100); color: var(--warning); border-radius: 13px; padding: 12px 16px; font-size: 12.5px; font-weight: 600; max-width: 520px; margin: 18px auto 0; line-height: 1.9; }

/* ---------- installment page ---------- */
.inst-hero { background: var(--grad-hero2); }
.inst-hero .ph-stats { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.inst-hero .stat { background: rgba(255, 255, 255, .14); backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; padding: 11px 18px; }
.inst-hero .stat .v { font-size: 17px; font-weight: 800; font-family: "Inter", "Vazirmatn", sans-serif; }
.inst-hero .stat .k { font-size: 11.5px; opacity: .85; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.partner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s, box-shadow .2s; }
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.partner .ph { display: flex; align-items: center; gap: 12px; }
.partner .plogo { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-family: "Inter", sans-serif; font-weight: 800; font-size: 18px; color: #fff; }
.partner .pnm { font-weight: 800; font-size: 15px; }
.partner .rows { display: flex; flex-direction: column; }
.partner .row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-bottom: 1px dashed var(--border); font-size: 14px; }
.partner .row:last-of-type { border-bottom: 0; }
.partner .row .k { color: var(--text-3); }
.partner .row .v { font-weight: 700; text-align: end; }
.partner .row .v.big { color: var(--primary); font-size: 14.5px; }
.calc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.calc .inputs { display: flex; flex-direction: column; gap: 16px; }
.calc .out { background: var(--grad-primary); color: #fff; border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.calc .out .monthly { font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; font-family: "Inter", "Vazirmatn", sans-serif; }
.calc .out .per { font-size: 13px; opacity: .85; }
.calc .out .total { font-size: 12.5px; opacity: .8; margin-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .35); padding-top: 12px; width: 100%; }
.calc .months { display: flex; gap: 8px; }
.calc .months .chip { flex: 1; justify-content: center; }
.calc-note { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--warning); background: var(--warning-100); border-radius: 12px; padding: 10px 14px; margin-top: 14px; line-height: 1.9; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; }
  .calc .months { flex-wrap: wrap; } }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.doc .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--primary-100); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.doc .ic svg { width: 23px; height: 23px; }
.doc .t { font-weight: 800; font-size: 14px; }
.doc .d { font-size: 13.5px; color: var(--text-2); line-height: 1.9; }
.cond-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 24px; }
.cond-list li { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; }
.cond-list li:last-child { border-bottom: 0; }
.cond-list svg { color: var(--success); flex: none; }
.inst-cta { margin-top: 40px; background: var(--grad-hero1); color: #fff; border-radius: var(--radius-lg); padding: 36px 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.inst-cta .t { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.inst-cta .d { font-size: 13.5px; opacity: .9; }
.inst-cta .btns { margin-inline-start: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.inst-cta .btn-w { background: #25D366; color: #fff; }
.inst-cta .btn-light { background: #fff; color: #0B6E4F; }
@media (max-width: 720px) { .inst-cta { text-align: center; } .inst-cta .btns { margin-inline: auto; } }

/* ---------- compare page ---------- */
.cmp-wrap { overflow-x: auto; margin-top: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; }
.cmp-table th, .cmp-table td { padding: 13px 18px; font-size: 14.5px; border-bottom: 1px solid var(--border); text-align: start; }
.cmp-table td:first-child, .cmp-table th:first-child { position: sticky; inset-inline-start: 0; background: var(--surface-2); font-weight: 700; color: var(--text-2); min-width: 168px; z-index: 2; }
.cmp-table thead th { background: var(--surface-2); position: sticky; top: 0; z-index: 3; vertical-align: bottom; padding-bottom: 18px; }
.cmp-table thead th:first-child { z-index: 4; }
.cmp-head-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 150px; text-align: center; }
.cmp-head-cell img { width: 88px; height: 88px; object-fit: contain; }
.cmp-head-cell .nm { font-size: 13.5px; font-weight: 800; line-height: 1.6; }
.cmp-head-cell .pr { color: var(--primary); font-weight: 800; }
.cmp-head-cell .acts { display: flex; gap: 6px; margin-top: 4px; }
.cmp-head-cell .acts .btn { padding: 6px 12px; font-size: 11.5px; }
.cmp-group-row td { background: var(--surface-2); font-weight: 800; color: var(--primary); font-size: 13px; }
.cmp-row.best td:not(:first-child) { position: relative; }
.cmp-row td.best-val { background: var(--success-100); font-weight: 700; }
.cmp-row td .bstar { display: inline-flex; margin-inline-start: 7px; color: var(--success); vertical-align: -2px; }
.cmp-add-cell { vertical-align: top; padding-top: 34px; }
.cmp-diff-toggle { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-bottom: 12px; }
.cmp-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }

/* ---------- accessories page ---------- */
.acc-cats { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-top: 18px; scrollbar-width: none; }
.acc-cats::-webkit-scrollbar { display: none; }
.acc-cats .chip { flex: none; }
.acc-cats .chip .ic { width: 18px; height: 18px; display: flex; color: currentColor; }

/* ---------- download app page ---------- */
.app-page-devices { display: flex; gap: 44px; justify-content: center; align-items: flex-start; flex-wrap: wrap; margin: 44px 0 10px; }
.app-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 36px; }
.app-qr { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 26px; margin-top: 36px; }
.app-qr .qr { width: 118px; height: 118px; flex: none; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 8px; }
.app-qr .txt { display: flex; flex-direction: column; gap: 8px; }
.app-qr .txt .t { font-weight: 800; font-size: 16px; }
.app-qr .txt .d { font-size: 13px; color: var(--text-2); line-height: 2; }
.app-qr .stores { display: flex; gap: 10px; flex-wrap: wrap; }
.app-page .store-btn { background: var(--surface); border: 1.5px solid var(--border); color: var(--text); position: relative; overflow: hidden; }
.app-page .store-btn:hover { border-color: var(--primary); }
.dev-label { text-align: center; font-weight: 800; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-top: 20px; align-items: start; }
.ccard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.ccard .ci { display: flex; align-items: center; gap: 13px; }
.ccard .ci .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--primary-100); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.ccard .ci .k { font-size: 12px; color: var(--text-3); }
.ccard .ci .v { font-weight: 700; font-size: 15px; direction: ltr; unicode-bidi: plaintext; }
html[lang="fa"] .ccard .ci .v.fa { direction: rtl; }
.hours-rows { display: flex; flex-direction: column; }
.hours-rows .hr { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px dashed var(--border); font-size: 15px; }
.hours-rows .hr:last-child { border-bottom: 0; }
.hours-rows .hr.today { color: var(--primary); font-weight: 800; background: var(--primary-100); border-radius: 9px; padding-inline: 10px; }
.hours-rows .hr .st { font-size: 12px; font-weight: 700; }
.open-pill { background: var(--success-100); color: var(--success); border-radius: 9px; padding: 3px 11px; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.open-pill.closed { background: var(--accent-100); color: var(--accent); }
.map-ph { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); position: relative; }
.map-ph svg { width: 100%; height: auto; display: block; }
.map-ph .btn { position: absolute; bottom: 14px; inset-inline-start: 14px; }
.call-cta { background: var(--grad-primary); color: #fff; border-radius: var(--radius-lg); padding: 30px 34px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; text-align: center; margin-top: 22px; }
.call-cta .num { font-size: clamp(22px, 3.6vw, 34px); font-weight: 800; direction: ltr; unicode-bidi: embed; font-family: "Inter", "Vazirmatn", sans-serif; }
.call-cta .btn { background: #fff; color: #0B6E4F; }
.soc-row { display: flex; gap: 10px; }
.soc-row button { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); border-radius: 12px; padding: 9px 16px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.soc-row button:hover { border-color: var(--primary); color: var(--primary); }
.soc-row svg { width: 17px; height: 17px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- small pages (cart / fav / profile) ---------- */
.small-page { max-width: 860px; margin: 0 auto; }
.cart-row { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.cart-row + .cart-row { margin-top: 10px; }
.cart-row img { width: 64px; height: 64px; border-radius: 12px; background: var(--surface-3); object-fit: contain; flex: none; }
.cart-row .nm { font-weight: 700; font-size: 15.5px; }
.cart-row .mt { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.cart-row .pr { margin-inline-start: auto; font-weight: 800; white-space: nowrap; }
.cart-row .rm { color: var(--text-3); width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.cart-row .rm:hover { color: var(--accent); background: var(--accent-100); }
.cart-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface); border: 1.5px dashed var(--border-2); border-radius: var(--radius); padding: 18px 22px; margin-top: 16px; }
.cart-total .tt { font-size: 15px; font-weight: 800; }
.cart-total .tv { font-size: 22px; font-weight: 800; color: var(--primary); }
.login-card { max-width: 420px; margin: 30px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; text-align: center; }
.login-card .av { width: 84px; height: 84px; border-radius: 50%; background: var(--primary-100); color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }

/* app-mode tweaks */
html[data-app="1"] .page-hero { margin-top: 12px; border-radius: 18px; padding: 22px 20px; }
html[data-app="1"] .section { padding: 18px 0 4px; }
html[data-app="1"] .footer, html[data-app="1"] .newsletter { display: none; }
html[data-app="1"] .listing-wrap { grid-template-columns: 1fr; }
html[data-app="1"] .filters { position: static; max-height: none; transform: none; border: 0; padding: 0; }
html[data-app="1"] .pgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
html[data-app="1"] .pcard .pc-acts { opacity: 1; transform: none; }
html[data-app="1"] .hero { margin-top: 12px; }
html[data-app="1"] .crumb { display: none; }
html[data-app="1"] .mv-container { padding-inline: 12px; }
html[data-app="1"] .offer-grid .pcard { min-width: 172px; }

/* ---------- inline icon sizing guards (added after QA) ---------- */
.installment-note svg { width: 18px; height: 18px; flex: none; }
.assure svg { width: 16px; height: 16px; flex: none; }
.cond-list svg { width: 16px; height: 16px; flex: none; }
.ccard .ci .ic svg { width: 22px; height: 22px; }
.open-pill svg { width: 14px; height: 14px; }
.hl-item .ic svg { width: 18px; height: 18px; }
.eart svg { width: 100%; height: 100%; }
