/* ============================================================
   Mobile Vahid demo — components.css
   Buttons, product cards, sliders, scrollers, forms, tabs,
   accordion, chat assistant, device frames, tables.
   ============================================================ */

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; border-radius: 13px; padding: 11px 22px; transition: transform .15s, box-shadow .2s, background .2s, filter .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: 0 6px 18px -8px rgba(11, 110, 79, .55); }
.btn-primary:hover { filter: brightness(1.09); box-shadow: 0 10px 24px -8px rgba(11, 110, 79, .6); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-600); }
.btn-outline { border: 1.5px solid var(--border-2); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-soft { background: var(--primary-100); color: var(--primary); }
.btn-soft:hover { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--secondary); color: #1F2937; }
.btn-secondary:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 11px; }
.btn-lg { padding: 14px 30px; font-size: 15.5px; border-radius: 15px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ---------- product card ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.pcard { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--primary-300); }
.pcard.soon { background: var(--surface-2); }
.pcard.soon:hover { border-color: var(--secondary); }
.pc-media { position: relative; aspect-ratio: 1.9; display: flex; align-items: center; justify-content: center; padding: 18px; background: radial-gradient(circle at 70% 20%, var(--surface-2), var(--surface)); overflow: hidden; }
.pc-media img { height: 100%; width: auto; max-width: 74%; object-fit: contain; transition: transform .3s; filter: drop-shadow(0 10px 14px rgba(17, 24, 39, .16)); }
.pcard:hover .pc-media img { transform: translateY(-5px) scale(1.04); }
.pc-badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; z-index: 2; }
.pc-flag { position: absolute; top: 0; inset-inline-end: 0; background: var(--secondary); color: #1F2937; font-size: 10.5px; font-weight: 800; padding: 4px 12px; border-radius: 0 0 0 12px; z-index: 2; }
[dir="ltr"] .pc-flag { border-radius: 0 0 12px 0; }
.pc-acts { position: absolute; top: 10px; inset-inline-end: 10px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; z-index: 3; }
.pcard:hover .pc-acts, .pcard:focus-within .pc-acts { opacity: 1; transform: none; }
@media (hover: none) { .pc-acts { opacity: 1; transform: none; } }
.pc-act { width: 34px; height: 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-1); }
.pc-act svg { width: 17px; height: 17px; }
.pc-act:hover { color: var(--primary); border-color: var(--primary); }
.pc-act.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pc-act.fav-on { background: var(--accent-100); color: var(--accent); border-color: var(--accent); animation: fav-pop .35s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes fav-pop { 40% { transform: scale(1.25); } }
.pc-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pc-cat { font-size: 12px; color: var(--text-3); font-weight: 600; }
.pc-title { font-size: 15px; font-weight: 700; line-height: 1.6; min-height: 3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-title a:hover { color: var(--primary); }
.pc-rating { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.stars { display: inline-flex; gap: 1px; color: var(--secondary); }
.stars svg { width: 13px; height: 13px; }
.pc-specs { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--text-2); }
.pc-specs span { display: inline-flex; align-items: center; gap: 4px; }
.pc-pricebox { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.pc-oldprice { font-size: 13px; color: var(--text-3); text-decoration: line-through; }
.pc-price { font-size: 18.5px; font-weight: 800; color: var(--text); }
.pc-price .cur { font-size: 11.5px; font-weight: 600; color: var(--text-2); margin-inline-start: 4px; }
.pc-soon-price { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.pc-foot { display: flex; gap: 8px; margin-top: 4px; }
.pc-foot .btn { flex: 1; padding-block: 9px; font-size: 13px; }
.pc-cb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); padding: 4px 0; cursor: pointer; user-select: none; }
.pc-cb input { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }

/* list view */
.listing.list .pcard { flex-direction: row; align-items: stretch; }
.listing.list .pc-media { width: 220px; aspect-ratio: auto; min-height: 190px; flex: none; }
.listing.list .pc-body { padding: 16px 18px; }
.listing.list .pc-title { min-height: 0; font-size: 17px; }
.listing.list .pc-foot { max-width: 420px; }
.listing.list .pc-acts { opacity: 1; transform: none; top: 12px; }
@media (max-width: 640px) {
  .listing.list .pcard { flex-direction: column; }
  .listing.list .pc-media { width: 100%; aspect-ratio 1.9; }
}

/* ---------- used card ---------- */
.ucard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; position: relative; }
.ucard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.ucard .uc-grid { display: grid; grid-template-columns: 132px 1fr; }
.uc-media { position: relative; background: var(--surface-2); display: flex; align-items: center; justify-content: center; padding: 14px; }
.uc-media img { width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(17, 24, 39, .15)); }
.uc-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.uc-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: 12.5px; color: var(--text-2); align-items: center; }
.uc-meta .dotsep::before { content: "•"; margin-inline-end: 8px; color: var(--border-2); }
.uc-note { font-size: 13px; color: var(--text-2); border-inline-start: 3px solid var(--secondary); padding-inline-start: 10px; line-height: 1.8; }
.uc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.uc-price { font-weight: 800; font-size: 18px; }
.batt { display: inline-flex; align-items: center; gap: 6px; }
.batt .bar { width: 52px; height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.batt .bar i { display: block; height: 100%; border-radius: 3px; background: var(--success); }
.batt .bar i.mid { background: var(--warning); } .batt .bar i.low { background: var(--accent); }
.uc-fav { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 3; }
@media (max-width: 560px) { .ucard .uc-grid { grid-template-columns: 1fr; } .uc-media { padding: 22px; } }

/* ---------- accessories card ---------- */
.acard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.acard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.ac-media { aspect-ratio: 1.15; background: radial-gradient(circle at 65% 25%, var(--surface-2), var(--surface)); display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; }
.ac-media img { width: 68%; height: auto; filter: drop-shadow(0 8px 12px rgba(17, 24, 39, .14)); transition: transform .25s; }
.acard:hover .ac-media img { transform: scale(1.06) rotate(-2deg); }
.ac-tag { position: absolute; top: 10px; inset-inline-start: 10px; }
.ac-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ac-cat { font-size: 12px; color: var(--primary); font-weight: 700; }
.ac-compat { font-size: 12px; color: var(--text-3); }
.ac-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ac-price { font-weight: 800; font-size: 16.5px; }
.ac-price small { font-size: 11px; color: var(--text-2); font-weight: 600; }
.ac-fav { position: absolute; top: 10px; inset-inline-end: 10px; }

/* ---------- hero slider ---------- */
.hero { margin-top: 22px; }
.hero-track { display: flex; transition: transform .55s cubic-bezier(.25, .8, .3, 1); }
.hero-slide { min-width: 100%; border-radius: var(--radius-lg); min-height: 330px; position: relative; overflow: hidden; display: flex; align-items: center; padding: 40px 48px; color: #fff; isolation: isolate; }
.hero-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hv, var(--grad-hero1)); }
.hero-slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 85% 20%, rgba(255, 255, 255, .14), transparent); }
.hs-txt { max-width: 55%; z-index: 1; }
.hs-kicker { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(4px); border-radius: 10px; padding: 5px 13px; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.hs-title { font-size: clamp(24px, 3.6vw, 40px); font-weight: 800; line-height: 1.5; letter-spacing: -.5px; margin-bottom: 10px; }
.hs-sub { font-size: clamp(14px, 1.6vw, 17px); opacity: .92; margin-bottom: 22px; max-width: 46ch; line-height: 2; }
.hs-cta { background: #fff; color: #0B6E4F; font-weight: 800; font-size: 15.5px; padding: 13px 28px; border-radius: 13px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .35); }
.hs-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .45); }
.hs-art { position: absolute; inset-inline-end: -20px; bottom: -30px; width: clamp(220px, 34%, 430px); z-index: 0; opacity: .98; }
@media (max-width: 768px) {
  .hero-slide { min-height: 300px; padding: 26px 22px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .hs-txt { max-width: 100%; }
  .hs-art { position: absolute; inset-inline-end: -30px; bottom: -20px; width: 62%; opacity: .4; }
  .hs-sub { margin-bottom: 16px; }
}
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #111827; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-2); z-index: 5; opacity: .85; }
.hero-nav:hover { opacity: 1; }
.hero-nav.prev { inset-inline-start: 14px; } .hero-nav.next { inset-inline-end: 14px; }
.hero-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 10px; background: var(--border-2); transition: width .25s, background .25s; }
.hero-dots button.on { width: 26px; background: var(--primary); }
.hero-viewport { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }

/* ---------- brand strip (real brand logos + coming-soon famous phones) ---------- */
.bstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.bcell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 10px 13px; display: flex; flex-direction: column; align-items: center; gap: 9px; transition: transform .2s, border-color .2s, box-shadow .2s; position: relative; }
a.bcell:hover { transform: translateY(-3px); border-color: var(--primary-300); box-shadow: var(--shadow-2); }
.bcell .blogo { 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: 19px; color: #fff; }
.bcell .blogo-img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 3px 7px rgba(17, 24, 39, .16)); }
.bcell .bsoon-img { width: 52px; height: 84px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(17, 24, 39, .18)); border-radius: 10px; }
.bcell .bnm { font-size: 14px; font-weight: 700; }
.bcell.off { opacity: .75; cursor: default; background: var(--surface-2); }
.bcell.off .blogo { background: var(--surface-3) !important; color: var(--text-3) !important; }
.bcell .off-tag { position: absolute; top: 8px; inset-inline-end: 8px; }

/* ---------- offers scroller ---------- */
.offers { position: relative; background: var(--grad-offer); border-radius: var(--radius-lg); padding: 22px 20px 26px; color: #fff; overflow: hidden; }
.offers::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 15% 0%, rgba(255, 255, 255, .16), transparent); }
.offers-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; position: relative; }
.offers-title { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.offers-title svg { width: 26px; height: 26px; }
.countdown { display: flex; align-items: center; gap: 6px; margin-inline-start: 6px; }
.countdown .cd { background: rgba(0, 0, 0, .28); border-radius: 10px; padding: 5px 10px; font-family: "Inter", sans-serif; font-weight: 700; font-size: 16px; min-width: 48px; text-align: center; position: relative; }
.countdown .cd small { display: block; font-size: 8.5px; opacity: .75; font-weight: 500; }
.countdown .sep { font-weight: 800; opacity: .7; }
.offers-more { margin-inline-start: auto; background: rgba(255, 255, 255, .16); border-radius: 11px; padding: 8px 16px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.offers-more:hover { background: #fff; color: #C22833; }
.offers-scroll { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.offers-scroll .pcard { min-width: 232px; max-width: 232px; scroll-snap-align: start; }
.offers-scroll .pcard .pc-oldprice { color: #FCA5A5; }
.off-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: var(--shadow-3); display: flex; align-items: center; justify-content: center; }
.off-arrow.prev { inset-inline-start: -8px; } .off-arrow.next { inset-inline-end: -8px; }
.off-arrow:hover { color: var(--accent); }

/* ---------- why cards ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; text-align: center; transition: transform .2s, box-shadow .2s; }
.why:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.why .ic { width: 62px; height: 62px; margin: 0 auto 13px; border-radius: 18px; background: var(--primary-100); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.why .ic svg { width: 30px; height: 30px; }
.why .t { font-weight: 800; font-size: 16.5px; margin-bottom: 7px; }
.why .d { font-size: 14px; color: var(--text-2); line-height: 1.9; }
@media (max-width: 992px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; }
.field .hint { font-size: 11.5px; color: var(--text-3); }
.input, .select, .textarea { height: 46px; border: 1.5px solid var(--border); background: var(--surface); border-radius: 12px; padding-inline: 14px; outline: none; transition: border .2s, box-shadow .2s; width: 100%; }
.textarea { height: auto; min-height: 110px; padding-block: 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3.5px var(--primary-100); }
.input.err, .select.err { border-color: var(--accent); }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; padding-inline-end: 14px; cursor: pointer; }
[dir="ltr"] .select { background-position: right 12px center; padding-inline-end: 14px; padding-inline-start: 14px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; flex: none; }
.checkrow { display: flex; flex-wrap: wrap; gap: 10px 22px; }
input[type="range"] { accent-color: var(--primary); width: 100%; cursor: pointer; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 11px; padding: 7px 15px; font-size: 14px; font-weight: 600; transition: all .18s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip .x { display: flex; opacity: .7; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1.5px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 11px 18px; font-size: 14px; font-weight: 700; color: var(--text-2); border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--primary); border-bottom-color: var(--primary); }
.tab .n { background: var(--surface-3); font-size: 11px; border-radius: 7px; padding: 1px 7px; }
.tab.on .n { background: var(--primary-100); color: var(--primary); }

/* ---------- accordion ---------- */
.acc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.acc + .acc { margin-top: 12px; }
.acc-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 17px 20px; font-weight: 700; font-size: 14.5px; text-align: start; }
.acc-head:hover { background: var(--surface-2); }
.acc-head .chev { margin-inline-start: auto; transition: transform .25s; color: var(--text-3); display: flex; }
.acc-head[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--primary); }
.acc-num { width: 34px; height: 34px; border-radius: 11px; background: var(--primary-100); color: var(--primary); display: flex; align-items: center; justify-content: center; font-family: "Inter", sans-serif; font-weight: 800; font-size: 15px; flex: none; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-body-in { padding: 2px 20px 18px; color: var(--text-2); font-size: 13.5px; line-height: 2.1; }

/* ---------- star rating ---------- */
.rate { display: inline-flex; align-items: center; gap: 6px; }
.rate b { font-family: "Inter", sans-serif; }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border: 1.5px dashed var(--border-2); border-radius: var(--radius-lg); }
.empty .eart { width: 110px; height: 110px; margin: 0 auto 18px; opacity: .9; }
.empty .et { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.empty .ed { color: var(--text-2); font-size: 13.5px; max-width: 420px; margin: 0 auto 18px; line-height: 2; }

/* ---------- chat assistant ---------- */
.chat-panel { position: fixed; bottom: 90px; inset-inline-end: 22px; width: min(390px, calc(100vw - 28px)); height: min(560px, calc(100vh - 130px)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); z-index: 110; display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(18px) scale(.97); pointer-events: none; transition: opacity .25s, transform .25s; }
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 992px) { .chat-panel { bottom: calc(var(--bottombar-h) + 80px); inset-inline-end: 12px; } }
.chat-head { background: var(--grad-primary); color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.chat-head .av { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; }
.chat-head .av svg { width: 21px; height: 21px; }
.chat-head .tt { font-weight: 800; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.chat-head .ss { font-size: 11.5px; opacity: .85; }
.chat-head .x { margin-inline-start: auto; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); }
.chat-head .x:hover { background: rgba(255, 255, 255, .3); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.9; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-start-start-radius: 5px; }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-start-end-radius: 5px; }
.msg .mcards { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; }
.mcard { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 7px 10px; }
.mcard:hover { border-color: var(--primary); }
.mcard img { width: 40px; height: 40px; border-radius: 9px; background: var(--surface-3); flex: none; }
.mcard .n { font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.mcard .p { font-size: 13px; color: var(--primary); font-weight: 700; margin-inline-start: auto; white-space: nowrap; }
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: ty 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes ty { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-chips { display: flex; gap: 7px; overflow-x: auto; padding: 10px 12px; scrollbar-width: none; background: var(--surface); border-top: 1px solid var(--border); }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips .chip { flex: none; font-size: 13px; padding: 6px 12px; }
.chat-input { display: flex; gap: 8px; padding: 11px 12px; background: var(--surface); }
.chat-input input { flex: 1; height: 44px; border: 1.5px solid var(--border); background: var(--surface-2); border-radius: 12px; padding-inline: 14px; outline: none; }
.chat-input input:focus { border-color: var(--primary); }
.chat-input .send { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-primary); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.chat-input .send:hover { filter: brightness(1.1); }

/* ---------- device frames (app page) ---------- */
.device { position: relative; width: 390px; border-radius: 54px; padding: 12px; background: linear-gradient(160deg, #2A2F36, #12151A 60%); box-shadow: var(--shadow-3), inset 0 0 3px rgba(255, 255, 255, .28); flex: none; }
.device.iphone { border-radius: 58px; padding: 11px; }
.device .notch { position: absolute; top: 21px; left: 50%; transform: translateX(-50%); width: 108px; height: 30px; background: #0A0D12; border-radius: 18px; z-index: 5; }
.device.iphone .notch { width: 122px; height: 33px; border-radius: 20px; }
.device .punch { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 13px; height: 13px; background: #0A0D12; border-radius: 50%; z-index: 5; }
.device .screen { width: 366px; height: 790px; border-radius: 44px; overflow: hidden; background: #fff; position: relative; }
.device.iphone .screen { border-radius: 47px; }
.device .screen iframe { width: 390px; height: 844px; border: 0; transform: scale(0.94); transform-origin: top center; display: block; }
.device .side-btn { position: absolute; background: linear-gradient(180deg, #3A4048, #1B1F26); width: 3.5px; border-radius: 3px; }
.device .side-btn.b1 { inset-inline-end: -3.5px; top: 190px; height: 64px; }
.device .side-btn.b2 { inset-inline-start: -3.5px; top: 150px; height: 34px; }
.device .side-btn.b3 { inset-inline-start: -3.5px; top: 196px; height: 34px; }
.float-anim { animation: floaty 7s ease-in-out infinite; }
.float-anim.d2 { animation-delay: 1.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@media (prefers-reduced-motion: reduce) { .float-anim, .float-anim.d2 { animation: none; } }
.device-ctl { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- data table (compare / specs) ---------- */
.dtable { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.dtable th, .dtable td { padding: 12px 16px; font-size: 14.5px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: middle; }
.dtable tr:last-child th, .dtable tr:last-child td { border-bottom: 0; }
.dtable thead th { background: var(--surface-2); font-weight: 800; }
.spec-table td:first-child { color: var(--text-2); width: 34%; }
.spec-table td:last-child { font-weight: 600; }

/* ---------- breadcrumb ---------- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); padding: 16px 0 4px; flex-wrap: wrap; }
.crumb a:hover { color: var(--primary); }
.crumb .sep { opacity: .6; }

/* ---------- mini product (search/compare picker) ---------- */
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; padding: 4px; }
.pick-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 8px 12px; text-align: start; width: 100%; }
.pick-item:hover { border-color: var(--primary); background: var(--primary-100); }
.pick-item img { width: 42px; height: 42px; border-radius: 9px; background: var(--surface-3); flex: none; }
.pick-item .n { font-size: 13.5px; font-weight: 700; }
.pick-item .p { font-size: 12px; color: var(--text-2); }
.pick-item .add { margin-inline-start: auto; color: var(--primary); font-weight: 800; font-size: 20px; }

/* ---------- home: smart search below slider + ecosystem strip ---------- */
.homesearch { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-1); }
.hs-box { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hs-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--primary); line-height: 1.6; }
.hs-title .tic { width: 36px; height: 36px; border-radius: 11px; background: var(--primary-100); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.hs-title .tic svg { width: 19px; height: 19px; }
.hs-row { position: relative; }
.search-box.big { height: 56px; border-radius: 15px; }
.search-box.big input { font-size: 15.5px; }
.search-box.big .search-ai { font-size: 13px; padding: 8px 13px; }
.ecosystem { display: flex; flex-direction: column; justify-content: center; gap: 14px; border-inline-start: 1px dashed var(--border-2); padding-inline-start: 24px; min-width: 0; }
.eco-tag { font-weight: 800; font-size: 19px; color: var(--primary); line-height: 1.6; }
.eco-sub { font-size: 13.5px; color: var(--text-2); line-height: 2; }
.eco-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 20px; justify-content: start; }
.est { display: flex; flex-direction: column; line-height: 1.5; }
.est b { font-size: 17.5px; font-weight: 800; color: var(--text); }
.est span { font-size: 11.5px; color: var(--text-2); }
@media (max-width: 960px) {
  .homesearch { grid-template-columns: 1fr; }
  .ecosystem { border-inline-start: 0; padding-inline-start: 0; border-top: 1px dashed var(--border-2); padding-top: 16px; }
  .eco-stats { justify-content: space-between; }
}

/* ---------- hero slide 1: real flagship photos cluster ---------- */
.hs-phones { position: relative; width: 100%; height: 100%; }
.hs-phones img { position: absolute; bottom: -18px; background: #fff; border-radius: 18px; padding: 10px 9px; box-shadow: 0 18px 34px rgba(0, 0, 0, .32); border: 1px solid rgba(255, 255, 255, .65); }
.hs-phones .hp1 { inset-inline-start: 0; height: 58%; transform: rotate(-9deg) translateY(18px); }
.hs-phones .hp2 { inset-inline-start: 31%; height: 82%; z-index: 2; transform: rotate(1.5deg); }
.hs-phones .hp3 { inset-inline-end: -2%; height: 64%; transform: rotate(9deg) translateY(20px); }
@media (max-width: 768px) { .hs-phones { opacity: .55; } }

/* ---------- inline icon sizing guards (added after QA) ---------- */
.acc-head .chev { width: 18px; height: 18px; flex: none; }
.sr-ai svg { width: 16px; height: 16px; flex: none; }
.chat-head .x svg { width: 16px; height: 16px; }
.chat-input .send svg { width: 20px; height: 20px; }
.acc-cats .chip .ic svg { width: 16px; height: 16px; }
