/* Fonts served by the store itself (no extra connections to a font service). Each file
   is a variable font covering weights 400-800; browsers only download the file whose
   characters a page actually uses (the Arabic file only on Arabic pages). */
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/plus-jakarta-sans-latin.woff2?v=1") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/plus-jakarta-sans-latin-ext.woff2?v=1") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Kufi Arabic"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/noto-kufi-arabic.woff2?v=1") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
/* ==========================================================================
   Storefront styles: light theme with floating header and card stack hero
   ========================================================================== */

:root {
  --bg: #eceef2;
  --surface: #ffffff;
  --surface-2: #f3f4f7;
  --text: #1b1f2a;
  --muted: #5f6675;
  --line: #e4e6ec;
  --accent: #3366e6;
  --accent-hover: #2855cc;
  --accent-ink: #ffffff;
  --accent-soft: rgba(51, 102, 230, 0.1);
  --hot: #e8562a;
  --dark: #12151d;
  --good: #15803d;
  --good-soft: #dcfce7;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 10px 30px rgba(17, 24, 39, 0.07);
  --shadow-lg: 0 24px 60px rgba(17, 24, 39, 0.14);
  --header-h: 64px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(900px 520px at 85% 8%, rgba(255, 255, 255, 0.95), transparent 65%),
    radial-gradient(700px 480px at 10% 30%, rgba(255, 255, 255, 0.7), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
body { margin: 0; font-family: var(--font); color: var(--text); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(51, 102, 230, 0.45); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5rem; letter-spacing: -0.025em; color: var(--text); font-weight: 800; }
h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem); }
h3 { font-size: 1.05rem; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; }
p { margin: 0 0 0.75rem; }
.container { width: min(1200px, 100% - 2 * clamp(14px, 4vw, 32px)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.hidden { display: none !important; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; color: #fff; }

/* ----- floating header ----- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.header-bar {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  min-height: var(--header-h); padding: 0 10px 0 22px;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 20px; box-shadow: var(--shadow);
}
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 800; font-size: 1.2rem; min-width: 0; justify-self: start; letter-spacing: -0.02em; }
.logo:hover { color: var(--text); }
.logo-mark {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(135deg, #3366e6, #7c5cf0); color: #fff; font-weight: 800; font-size: 1.05rem;
}
.logo-img { height: 36px; width: auto; max-width: 180px; object-fit: contain; }
.logo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-nav { display: flex; align-items: center; gap: 0.35rem; align-self: stretch; }
.site-nav > a, .nav-trigger {
  color: #4b5262; font-weight: 600; font-size: 0.98rem; padding: 0.5rem 0.9rem; border-radius: 999px;
  background: none; border: 0; cursor: pointer; font-family: inherit; line-height: 1.2;
  display: inline-flex; align-items: center; gap: 0.4rem; transition: color 0.15s, background 0.15s;
}
.site-nav > a:hover, .nav-trigger:hover { color: var(--text); background: var(--surface-2); }
.site-nav > a.active, .nav-trigger.active { color: var(--accent); }
.nav-item { position: static; }
.has-mega { display: flex; align-items: center; align-self: stretch; }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
.has-mega.is-open .caret { transform: rotate(-135deg) translateY(-1px); }

.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 0.5rem; }
.shop-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; background: var(--dark); color: #fff; font-weight: 700;
  padding: 0.7rem 1.25rem; border-radius: 999px; font-size: 0.95rem; transition: background 0.15s, transform 0.1s;
}
.shop-btn:hover { background: #2a2f3b; color: #fff; }
.shop-btn svg { width: 17px; height: 17px; fill: currentColor; }

/* mega panel: transparent top padding bridges the gap so hover is not lost */
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; padding-top: 10px; z-index: 60; }
.has-mega.is-open > .mega { display: block; }
.mega-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 1.6rem 1.75rem 1.4rem; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto;
}
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem 2rem; }
.mega-col { min-width: 0; }
.mega-col summary {
  list-style: none; color: var(--text); font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding-bottom: 0.6rem; margin-bottom: 0.6rem; border-bottom: 1px solid var(--line); cursor: default; pointer-events: none;
}
.mega-col summary::-webkit-details-marker { display: none; }
.mega-col ul { list-style: none; display: grid; gap: 0.3rem; margin-bottom: 0.5rem; }
.mega-col li a { color: #3a4050; font-size: 0.95rem; display: block; padding: 0.2rem 0; font-weight: 500; }
.mega-col li a:hover { color: var(--accent); }
.mega-all { display: inline-block; font-size: 0.88rem; font-weight: 700; }
.mega-browse { display: inline-block; margin-top: 1.25rem; font-weight: 700; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; padding: 0; position: relative; flex: none;
}
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- main ----- */
main { padding: clamp(0.75rem, 2vw, 1.5rem) 0 clamp(2.5rem, 5vw, 4rem); min-height: 60vh; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin: 0.75rem 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.page-title { margin-bottom: 1.85rem; }
.page-title p { font-size: 1.05rem; max-width: 62ch; margin-top: 0.35rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chips a { background: #fff; border: 1px solid var(--line); color: var(--text); padding: 0.45rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.text-link { font-weight: 700; white-space: nowrap; }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 700; border: 1px solid transparent; cursor: pointer; font-size: 1rem; text-align: center; font-family: inherit; line-height: 1.2;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn.pill { border-radius: 999px; padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(51, 102, 230, 0.3); }
.btn.primary:hover { background: var(--accent-hover); color: #fff; }
.btn.ghost { background: rgba(255, 255, 255, 0.7); border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.btn-block { width: 100%; }

/* ----- hero ----- */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 2rem;
  min-height: clamp(480px, 64vh, 620px); padding: 1.5rem 0 2.5rem;
}
/* Soft colored glows behind the card stack. */
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.hero::before { width: 380px; height: 380px; right: 8%; top: 12%; background: rgba(51, 102, 230, 0.22); }
.hero::after { width: 300px; height: 300px; right: 30%; bottom: 6%; background: rgba(232, 86, 42, 0.16); }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.9rem 0.4rem 0.75rem; margin-bottom: 1.4rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  font-size: 0.85rem; font-weight: 700; color: #3a4050;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.3rem); line-height: 1.06; letter-spacing: -0.04em; max-width: 13ch; margin-bottom: 0; }
.hero-word { color: var(--hot); display: inline-block; transition: opacity 0.28s, transform 0.28s; }
.hero-word.is-leaving { opacity: 0; transform: translateY(10px); }
.hero-sub { font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); color: var(--muted); max-width: 46ch; margin: 1.25rem 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.75rem; color: #3a4050; font-size: 0.92rem; font-weight: 600; }
.hero-checks li { display: inline-flex; align-items: center; gap: 0.4rem; }
.i-check { width: 18px; height: 18px; color: #16a34a; flex: none; }

/* ----- section headings ----- */
.section-intro { text-align: center; max-width: 640px; margin: 0 auto 1.75rem; }
.section-intro .eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 0.8rem;
}
.section-intro h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); letter-spacing: -0.035em; margin-bottom: 0.4rem; }
.section-intro p { font-size: 1.05rem; margin: 0; }

/* ----- how it works ----- */
.how { margin: 4.5rem 0 3.5rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 0; padding: 0; }
.step {
  position: relative; background: #fff; border-radius: var(--radius); padding: 1.75rem 1.5rem 1.5rem; box-shadow: var(--shadow);
  border: 1px solid rgba(17, 24, 39, 0.05);
}
.step-num { position: absolute; top: 1.25rem; right: 1.4rem; font-size: 2.6rem; font-weight: 800; color: var(--surface-2); line-height: 1; letter-spacing: -0.04em; }
.step-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, #3366e6, #7c5cf0); box-shadow: 0 10px 22px rgba(51, 102, 230, 0.3);
}
.step-icon svg { width: 24px; height: 24px; fill: #fff; }
.step h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.step p { margin: 0; font-size: 0.95rem; }

/* ----- FAQ ----- */
.faq { margin: 4rem 0; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq-item { background: #fff; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid rgba(17, 24, 39, 0.05); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.35rem; font-weight: 700; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); flex: none; transition: background 0.2s; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--text); border-radius: 2px; transform: translate(-50%, -50%); transition: transform 0.2s; }
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-toggle { background: var(--accent-soft); }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 1.35rem 1.2rem; color: #3a4050; }
.faq-answer p { margin: 0; }

/* ----- closing call to action ----- */
.cta-band {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin: 4rem 0 1rem; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 28px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #7c5cf0 0%, transparent 55%), linear-gradient(135deg, #2350d6, #3366e6);
  box-shadow: 0 24px 50px rgba(51, 102, 230, 0.35);
}
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn.light { background: #fff; color: var(--text); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }
.btn.light:hover { color: var(--accent); }
.btn.light svg { width: 18px; height: 18px; fill: currentColor; }

/* ----- spotlight: dark panels lit in each product's color (--spot) ----- */
.spotlight { margin: 4.5rem 0 1.5rem; }
.spot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.spotlight.single .spot-grid { grid-template-columns: minmax(0, 1fr); }
.spot {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: 1.25rem;
  min-height: 380px; padding: clamp(1.6rem, 3vw, 2.6rem); border-radius: 30px; color: #fff;
  background:
    radial-gradient(85% 110% at 100% 0%, color-mix(in srgb, var(--spot) 58%, transparent), transparent 62%),
    radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--spot) 20%, transparent), transparent 60%),
    #0c0e14;
  box-shadow: 0 30px 60px rgba(12, 14, 20, 0.28);
  transition: transform 0.3s, box-shadow 0.3s;
}
/* Fine dot texture that fades out toward the text. */
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 75%); mask-image: linear-gradient(to left, #000, transparent 75%);
}
.spot:hover { transform: translateY(-4px); box-shadow: 0 40px 70px rgba(12, 14, 20, 0.34); }
.spot-tag {
  display: inline-block; padding: 0.32rem 0.8rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  background: color-mix(in srgb, var(--spot) 24%, transparent); border: 1px solid color-mix(in srgb, var(--spot) 60%, transparent);
}
.spot h3 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem); line-height: 1.05; letter-spacing: -0.045em; margin: 1.1rem 0 0.5rem; }
.spot-tagline { color: rgba(255, 255, 255, 0.72); font-size: 1.02rem; margin: 0; max-width: 34ch; }
.spot-features { list-style: none; display: grid; gap: 0.5rem; margin: 1.25rem 0 1.6rem; }
.spot-features li { display: flex; align-items: center; gap: 0.55rem; color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; font-weight: 500; }
.spot-features .i-check { color: var(--spot); }
.spot-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.spot-price { display: flex; flex-direction: column; line-height: 1.1; }
.spot-price strong { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; }
.spot-price span { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; margin-top: 0.2rem; }
.spot-btn {
  background: var(--spot); color: var(--spot-ink); font-weight: 800;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--spot) 45%, transparent);
}
.spot-btn:hover { color: var(--spot-ink); filter: brightness(1.1); }
/* Tilted glass tile with the product logo, or its initials until a logo is uploaded. */
.spot-art {
  justify-self: center; width: min(210px, 100%); aspect-ratio: 1; border-radius: 42px; overflow: hidden;
  display: grid; place-items: center; transform: rotate(-8deg); transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 90px color-mix(in srgb, var(--spot) 45%, transparent);
}
.spot:hover .spot-art { transform: rotate(-2deg) scale(1.05); }
.spot-art img { width: 100%; height: 100%; object-fit: contain; padding: 18%; }
.spot-art .placeholder { background: none; color: #fff; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); text-shadow: 0 6px 30px var(--spot); }

/* ----- product page buy assurances ----- */
.buy-assurance { list-style: none; display: grid; gap: 0.55rem; margin: 0.4rem 0 1rem; padding: 1rem 1.1rem; background: var(--surface-2); border-radius: 16px; }
.buy-assurance li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; font-weight: 600; color: #3a4050; }
.buy-assurance svg { width: 18px; height: 18px; fill: var(--accent); flex: none; }

/* card stack: each card is offset left, scaled down and faded by its position */
/* Every card has the same fixed size, so the stack lines up regardless of content.
   --dx/--dy set how far each card behind the front one is offset. */
.deck { position: relative; height: 470px; }
.deck .deck-card {
  --dx: -58px; --dy: 0px;
  position: absolute; top: 50%; right: 4%; width: 330px; height: 400px; margin: 0;
  transform: translate(calc(var(--pos) * var(--dx)), calc(-50% + var(--pos) * var(--dy))) scale(calc(1 - var(--pos) * 0.07));
  transform-origin: center;
  z-index: calc(10 - var(--pos));
  opacity: clamp(0, calc(3 - var(--pos)), 1);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.45s ease, box-shadow 0.3s;
  box-shadow: var(--shadow-lg);
}
.deck .deck-card > * { opacity: max(0.3, calc(1 - var(--pos) * 0.7)); transition: opacity 0.45s; }
.deck .deck-card .card-media { height: 230px; }
/* The front card slides out to the right before it moves to the back of the stack. */
.deck .deck-card.is-leaving {
  opacity: 0 !important;
  transform: translate(70px, -50%) rotate(5deg) scale(0.95);
  transition: transform 0.4s ease-in, opacity 0.35s ease-in;
}
.deck .deck-card.is-front:hover { box-shadow: 0 30px 70px rgba(17, 24, 39, 0.2); }

/* ----- scrolling brand strip ----- */
.brand-strip { margin: 0 0 2.75rem; }
.brand-strip h2 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted);
  text-align: center; margin-bottom: 1.1rem; font-weight: 700;
}
.marquee {
  overflow: hidden; padding: 0.5rem 0 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 40s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
/* Two identical groups; padding equal to the gap keeps the loop seamless. */
.marquee-group { display: flex; gap: 0.9rem; padding-right: 0.9rem; list-style: none; margin: 0; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem; height: 58px; padding: 0 1.35rem;
  background: #fff; border: 1px solid rgba(17, 24, 39, 0.06); border-radius: 16px; box-shadow: var(--shadow);
  font-weight: 800; font-size: 1rem; color: #2b303c; white-space: nowrap; letter-spacing: -0.01em;
}
a.brand:hover { color: var(--accent); box-shadow: var(--shadow-lg); }
.brand img { height: 30px; width: auto; max-width: 130px; object-fit: contain; }
.brand.logo-only { padding: 0 1.5rem; }
.brand.logo-only img { height: 34px; max-width: 150px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: hsl(var(--h) 75% 94%); color: hsl(var(--h) 60% 36%); font-size: 0.85rem; font-weight: 800;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----- trust bar ----- */
.trust-bar { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 3rem; }
.trust-bar li {
  background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 20px; padding: 1.25rem 1.35rem;
  display: flex; align-items: flex-start; gap: 0.95rem; box-shadow: var(--shadow);
}
.trust-bar li > div { display: flex; flex-direction: column; gap: 0.15rem; }
.trust-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); flex: none; }
.trust-icon svg { width: 22px; height: 22px; fill: var(--accent); }
.trust-bar strong { font-size: 1rem; }
.trust-bar span { color: var(--muted); font-size: 0.9rem; }

/* ----- sections and product cards ----- */
.category-section { margin-bottom: 3rem; scroll-margin-top: calc(var(--header-h) + 32px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.section-head p { margin: 0.3rem 0 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: clamp(0.85rem, 2vw, 1.4rem); }
.card { background: var(--surface); border: 1px solid rgba(17, 24, 39, 0.06); border-radius: var(--radius); box-shadow: var(--shadow); }
/* Product card: large logo area on white, then a light panel with a curved top edge
   holding the category label, name, price and the View button. */
.product-card {
  position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden;
  border-radius: 26px; color: var(--text); text-align: left; transition: transform 0.18s, box-shadow 0.18s;
}
.grid .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.card-media { height: 190px; display: grid; place-items: center; background: #fff; padding: 1.5rem 1.75rem 2rem; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
/* Placeholder tile: each product gets its own color (--h) until a logo is uploaded. */
.placeholder {
  --h: 220;
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, hsl(var(--h) 90% 96%), hsl(calc(var(--h) + 35) 85% 89%));
  color: hsl(var(--h) 60% 38%); font-weight: 800; font-size: 1.9rem; letter-spacing: 0.04em;
}
.card-media .placeholder {
  width: 112px; height: 112px; border-radius: 30px; font-size: 2.3rem;
  box-shadow: 0 12px 26px hsl(var(--h) 60% 50% / 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.card-body {
  position: relative; flex: 1; display: flex; flex-direction: column; margin-top: -16px;
  background: var(--surface-2); border-top-left-radius: 50% 28px; border-top-right-radius: 50% 28px;
  padding: 0 1.3rem 1.25rem;
}
.cat-pill {
  align-self: center; transform: translateY(-50%); max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.32rem 0.85rem;
  color: #5a6b8c; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.05);
}
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; }
.card-info { min-width: 0; }
/* Names wrap to two lines instead of being cut off. */
.card-info h3 {
  font-size: 1.08rem; line-height: 1.25; margin: 0 0 0.3rem; letter-spacing: -0.02em;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price-line { margin: 0; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.price { color: var(--text); font-weight: 800; font-size: 1.05rem; }
.price.big { font-size: clamp(1.8rem, 1.5rem + 0.9vw, 2.3rem); }
.currency { color: var(--muted); font-weight: 600; font-size: 0.8rem; margin-left: 0.15rem; }
.duration { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-btn {
  flex: none; background: var(--accent); color: #fff; border-radius: 999px; padding: 0.7rem 1.45rem;
  font-weight: 700; font-size: 0.95rem; box-shadow: 0 8px 18px rgba(51, 102, 230, 0.28); transition: background 0.15s;
}
.product-card:hover .view-btn { background: var(--accent-hover); }

/* Homepage product section: same toolbar and grid as the products page. */
.home-shop { margin-bottom: 2rem; scroll-margin-top: calc(var(--header-h) + 32px); }

/* ----- products page toolbar: search, category filters, sort ----- */
.shop-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; padding: 0.6rem;
  background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 22px; box-shadow: var(--shadow);
}
.search-box {
  flex: 1 1 320px; display: flex; align-items: center; gap: 0.6rem; height: 52px; padding: 0 1rem;
  background: var(--surface-2); border-radius: 16px; margin: 0;
}
.search-box:focus-within { outline: 3px solid rgba(51, 102, 230, 0.3); }
.search-box svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search-box input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none;
  font: inherit; font-size: 1rem; color: var(--text);
}
.search-box input::placeholder { color: #8a91a1; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.filter-pill { padding: 0.55rem 1rem; border-radius: 12px; color: #4b5262; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.filter-pill:hover { background: var(--surface-2); color: var(--text); }
.filter-pill.active { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08); }
.sort-box select {
  -webkit-appearance: none; appearance: none; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.95rem; color: var(--text); padding: 0.55rem 2.1rem 0.55rem 0.9rem;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6675' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.7rem center / 14px;
}
.sort-box select:hover { background-color: var(--surface-2); }
.results-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; color: var(--muted); font-size: 0.95rem; margin: 0 0.25rem 1rem; }
.results-meta a { font-weight: 700; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.badge { position: absolute; top: 0.9rem; left: 0.9rem; background: var(--hot); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 0.25rem 0.7rem; border-radius: 999px; }
.badge.inline { position: static; display: inline-block; margin-bottom: 0.6rem; }

/* ----- product page ----- */
.product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3.25rem); align-items: start;
  background: var(--surface); border-radius: 26px; padding: clamp(1.1rem, 3vw, 2.4rem); box-shadow: var(--shadow);
}
/* The image stays in view while the details beside it scroll. */
.product-media {
  position: sticky; top: calc(var(--header-h) + 40px);
  aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(80% 80% at 50% 40%, #fff, var(--surface-2));
}
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.product-media .placeholder {
  width: 42%; height: auto; aspect-ratio: 1; border-radius: 36%; font-size: clamp(2.4rem, 1.5rem + 2.5vw, 4rem);
  box-shadow: 0 24px 50px hsl(var(--h) 60% 50% / 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.product-info h1 { margin-bottom: 0.4rem; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.25rem; }
.price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.6rem 0.95rem; margin-bottom: 1.2rem; }
.strike { text-decoration: line-through; color: var(--muted); }
.save { background: var(--good-soft); color: var(--good); font-weight: 700; font-size: 0.85rem; padding: 0.15rem 0.65rem; border-radius: 999px; }
.buy-row .btn { border-radius: 999px; padding: 1rem 1.5rem; }
.buy-row { margin-bottom: 0.7rem; }
.fine-print { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.35rem; }
.facts { margin: 0 0 1.5rem; display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(96px, 120px) 1fr; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.92rem; }
.facts dd { margin: 0; font-weight: 600; }
.sub { font-size: 1.05rem; margin: 0 0 0.6rem; }
.features { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.55rem; }
.features li { position: relative; padding-left: 1.7rem; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 0.9rem; height: 0.45rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.accepted { border-top: 1px solid var(--line); padding-top: 1.15rem; }
.accepted .muted { display: block; margin-bottom: 0.55rem; }
.accepted .pay { border: 1px solid var(--line); }
.product-description { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.product-description p { max-width: 75ch; color: #3a4050; }
.related { margin-top: 3rem; }
.related h2 { margin-bottom: 1.1rem; }

/* ----- policy pages ----- */
.policy { background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); padding: clamp(1.25rem, 4vw, 2.75rem); max-width: 820px; }
.policy h1 { margin-bottom: 1rem; }
.policy p { font-size: 1.02rem; color: #3a4050; }

/* ----- contact page ----- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.25rem; }
.contact-card {
  display: flex; flex-direction: column; gap: 0.95rem; background: var(--surface); border-radius: var(--radius); padding: 1.6rem;
  color: var(--text); box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.contact-card h2 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.contact-card p { margin: 0; overflow-wrap: anywhere; }
.contact-card .btn { margin-top: auto; border-radius: 999px; }
.contact-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; }
.contact-icon svg { width: 26px; height: 26px; fill: #fff; }
.contact-icon.telegram { background: #229ed9; }
.contact-icon.whatsapp { background: #25d366; }
.contact-icon.email { background: var(--accent); }

/* ----- empty / 404 ----- */
.empty { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.empty p { margin-bottom: 1.5rem; }

/* ----- footer ----- */
.site-footer { background: var(--dark); color: #a3aabb; padding: clamp(2.5rem, 5vw, 3.75rem) 0 1.25rem; margin-top: 1rem; }
.site-footer a { color: #dfe3ec; }
.site-footer a:hover { color: #fff; }
.site-footer h3 { color: #fff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 2.75rem); }
.footer-brand .logo { color: #fff; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.95rem; max-width: 36ch; margin: 0; }
.footer-links { list-style: none; display: grid; gap: 0.6rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.95rem; }
.footer-links svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.contact-links a { overflow-wrap: anywhere; }
.payments { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.payments h3 { margin-bottom: 0.8rem; }
.pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pay {
  display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 34px; padding: 0 0.75rem;
  background: #fff; color: #1f2937; border-radius: 8px; font-size: 0.8rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap;
}
.pay-paypal { color: #003087; }
.pay-visa { color: #1a1f71; font-style: italic; font-size: 0.95rem; }
.pay-mastercard { color: #eb001b; }
.pay-crypto { color: #b45309; }
.pay-gpay { color: #3c4043; }
.pay-applepay { color: #000; }
.copyright { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; color: #8a92a6; }

[hidden] { display: none !important; }

/* ----- header cart button ----- */
.cart-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: var(--surface-2); color: var(--text); transition: background 0.15s;
}
.cart-btn:hover { background: #e6e9f0; color: var(--text); }
.cart-btn svg { width: 21px; height: 21px; fill: currentColor; }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--hot); color: #fff; font-size: 0.72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}

/* ----- product page cart buttons ----- */
.cart-actions { display: grid; grid-template-columns: auto 1fr 1fr; gap: 0.6rem; margin: 0.25rem 0 1rem; }
.cart-actions .btn { border-radius: 999px; padding: 0.9rem 1.1rem; }
.cart-actions .btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn.dark { background: var(--dark); color: #fff; }
.btn.dark:hover { background: #2a2f3b; color: #fff; }
.qty-picker { display: inline-flex; align-items: center; background: var(--surface-2); border-radius: 999px; padding: 4px; }
.qty-btn { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; font-size: 1.15rem; font-weight: 700; cursor: pointer; color: var(--text); box-shadow: 0 1px 3px rgba(17, 24, 39, 0.08); }
.qty-btn:hover { color: var(--accent); }
.qty-input { width: 42px; border: 0; background: none; text-align: center; font: inherit; font-weight: 800; font-size: 1rem; color: var(--text); -moz-appearance: textfield; appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-picker.small .qty-btn { width: 30px; height: 30px; font-size: 1rem; }
.qty-value { min-width: 30px; text-align: center; font-weight: 800; }

/* ----- "orders are handled on WhatsApp and Telegram" ----- */
.channel-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.channel-btn {
  display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.6rem 1rem 0.6rem 0.6rem; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); color: var(--text); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.channel-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.channel-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.channel-icon svg { width: 22px; height: 22px; fill: #fff; }
.channel-btn.whatsapp .channel-icon { background: #25d366; }
.channel-btn.telegram .channel-icon { background: #229ed9; }
.channel-btn.whatsapp:hover { border-color: #25d366; }
.channel-btn.telegram:hover { border-color: #229ed9; }
.channel-text { display: flex; flex-direction: column; line-height: 1.25; }
.channel-text small { color: var(--muted); font-size: 0.8rem; }
.order-via { background: var(--surface-2); border-radius: 18px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.order-via p { margin: 0 0 0.75rem; font-size: 0.92rem; color: #3a4050; }
.order-via .channel-btn { padding: 0.45rem 0.9rem 0.45rem 0.45rem; }
.order-via .channel-icon { width: 34px; height: 34px; border-radius: 10px; }
.order-via .channel-icon svg { width: 19px; height: 19px; }
.order-channels {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: center;
  margin: 4rem 0; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: 28px;
  background: radial-gradient(90% 120% at 0% 0%, rgba(37, 211, 102, 0.14), transparent 60%),
    radial-gradient(90% 120% at 100% 100%, rgba(34, 158, 217, 0.14), transparent 60%), #fff;
  box-shadow: var(--shadow); border: 1px solid rgba(17, 24, 39, 0.05);
}
.order-channels .eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #15803d; background: rgba(37, 211, 102, 0.14); padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 0.8rem;
}
.order-channels h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -0.035em; }
.order-channels p { color: #3a4050; margin: 0; max-width: 52ch; }
.channel-row.big { flex-direction: column; }
.channel-row.big .channel-btn { padding: 1rem 1.25rem 1rem 1rem; border-radius: 20px; }
.channel-row.big .channel-icon { width: 52px; height: 52px; border-radius: 16px; }
.channel-row.big .channel-icon svg { width: 28px; height: 28px; }
.channel-row.big strong { font-size: 1.1rem; }

/* ----- cart page ----- */
.cart-page { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.5rem; align-items: start; margin-bottom: 2rem; }
.cart-main h1 { margin-bottom: 1rem; }
.cart-items { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 0.5rem 1.25rem; }
.cart-line {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto auto; gap: 1rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line.unavailable { opacity: 0.75; grid-template-columns: 64px minmax(0, 1fr) auto; }
.cart-thumb { width: 64px; height: 64px; border-radius: 16px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-thumb-initials { font-weight: 800; color: var(--accent); }
.cart-line-info { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.cart-line-info a { color: var(--text); }
.cart-line-total { min-width: 80px; text-align: right; }
.cart-remove { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 0.85rem; text-decoration: underline; }
.cart-remove:hover { color: #b91c1c; }
.cart-empty { text-align: center; padding: 3rem 1rem; }
.cart-empty p { font-size: 1.1rem; color: var(--muted); }
.summary-card { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 32px); }
.summary-card h2 { font-size: 1.25rem; }
.cart-totals { border-bottom: 1px solid var(--line); padding-bottom: 0.9rem; margin-bottom: 1rem; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.total-row strong { font-size: 1.5rem; }
.checkout-form { display: grid; gap: 0.85rem; }
.checkout-form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 700; font-size: 0.9rem; }
.checkout-form .hint { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.checkout-form input:not([type=radio]), .checkout-form textarea {
  font: inherit; font-weight: 500; font-size: 0.98rem; color: var(--text); width: 100%;
  padding: 0.7rem 0.85rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2);
}
.checkout-form input:not([type=radio]):focus, .checkout-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(51, 102, 230, 0.12); }
.method-picker { border: 0; padding: 0; margin: 0; }
.method-picker legend { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; padding: 0; }
/* minmax(0, ...) lets long names like "Cryptocurrency" wrap instead of widening the card. */
.cart-side, .checkout-form, .method-picker { min-width: 0; }
.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.method-name { min-width: 0; line-height: 1.2; }
/* Badge above the name, so names like "Cryptocurrency" keep the full width and never break mid-word. */
.method-grid .method-chip { flex-direction: column !important; align-items: flex-start; gap: 0.35rem !important; padding: 0.6rem 0.7rem; }
.method-chip {
  position: relative; display: flex !important; flex-direction: row !important; align-items: center; gap: 0.55rem !important;
  padding: 0.55rem 0.65rem; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff;
}
.method-chip input { position: absolute; opacity: 0; pointer-events: none; }
.method-chip .pay { min-width: 0; height: 26px; padding: 0 0.45rem; font-size: 0.7rem; border: 1px solid var(--line); flex: none; }
.method-name { font-size: 0.82rem; font-weight: 600; }
.method-chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.method-chip:has(input:focus-visible) { outline: 3px solid rgba(51, 102, 230, 0.4); outline-offset: 2px; }
.send-row { display: grid; gap: 0.5rem; }
.send-btn { width: 100%; border-radius: 999px; padding: 0.9rem 1rem; color: #fff; font-weight: 800; }
.send-btn svg { width: 20px; height: 20px; fill: currentColor; }
.send-btn.whatsapp { background: #1fae54; }
.send-btn.whatsapp:hover { background: #179447; color: #fff; }
.send-btn.telegram { background: #229ed9; }
.send-btn.telegram:hover { background: #1b87bb; color: #fff; }
.send-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.checkout-form .fine-print { margin: 0; text-align: center; }
.order-sent { grid-column: 1 / -1; }
.sent-card { max-width: 720px; margin: 0 auto; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.sent-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--good-soft); color: var(--good); font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.sent-card h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); }
.sent-card p { color: #3a4050; max-width: 56ch; margin: 0 auto 1.25rem; }
.sent-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.sent-actions .send-btn { width: auto; padding-inline: 1.6rem; }
.invoice {
  text-align: left; white-space: pre-wrap; word-break: break-word; background: var(--surface-2); border-radius: 16px;
  padding: 1rem 1.2rem; font-size: 0.88rem; line-height: 1.55; margin: 0 0 1.25rem; font-family: ui-monospace, Consolas, monospace;
}

/* notice at the bottom of the screen, e.g. "Added to your cart" */
.site-notice {
  position: fixed; left: 50%; bottom: 20px; z-index: 100; display: flex; align-items: center; gap: 1rem;
  transform: translate(-50%, 150%); opacity: 0; transition: transform 0.25s, opacity 0.25s;
  background: var(--dark); color: #fff; padding: 0.8rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 0.95rem;
}
.site-notice.show { transform: translate(-50%, 0); opacity: 1; }
.site-notice a { color: #9db7ff; font-weight: 800; white-space: nowrap; }

/* ----- star ratings (gold fill up to --rating out of 5) ----- */
.stars {
  display: inline-block; font-size: 1rem; letter-spacing: 0.08em; line-height: 1;
  background: linear-gradient(90deg, #f5a623 calc(var(--rating) / 5 * 100%), #d5d9e2 0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card-rating { display: flex; align-items: center; gap: 0.35rem; margin: 0 0 0.25rem; font-size: 0.8rem; color: var(--muted); }
.card-rating .stars { font-size: 0.85rem; }
.from { color: var(--muted); font-size: 0.78rem; font-weight: 600; margin-right: 0.25rem; }
.spot-from { color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; font-weight: 600; margin-bottom: 0.15rem; }
.rating-summary { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0 0 0.6rem; color: var(--text); font-size: 0.95rem; }
.rating-summary span:last-child { color: var(--muted); }
.rating-summary:hover span:last-child { color: var(--accent); text-decoration: underline; }

/* ----- product options picker ----- */
.variant-picker { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.variant-picker legend { font-weight: 800; font-size: 0.95rem; margin-bottom: 0.6rem; padding: 0; }
.variant-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 0.6rem; }
.variant-option {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; cursor: pointer;
  padding: 0.8rem 0.95rem; border: 2px solid var(--line); border-radius: 16px; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.variant-option:hover { border-color: #c5cde0; }
.variant-option input { position: absolute; opacity: 0; pointer-events: none; }
.variant-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 6px 16px rgba(51, 102, 230, 0.15); }
.variant-option:has(input:focus-visible) { outline: 3px solid rgba(51, 102, 230, 0.4); outline-offset: 2px; }
.v-body { display: flex; flex-direction: column; min-width: 0; }
.v-name { font-weight: 700; font-size: 0.95rem; }
.v-duration { color: var(--muted); font-size: 0.8rem; }
.v-price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
.v-save { color: var(--good); font-size: 0.72rem; font-weight: 700; }

/* ----- customer reviews ----- */
.reviews { margin-top: 2.5rem; background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2.25rem); }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.reviews-head h2 { margin-bottom: 0.5rem; }
.reviews-head p { margin: 0; }
.reviews-score { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.reviews-score .stars { font-size: 1.25rem; }
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1rem; }
.review-card { background: var(--surface-2); border-radius: 18px; padding: 1.15rem 1.25rem; }
.review-card header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.6rem; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800;
  background: hsl(var(--h) 80% 90%); color: hsl(var(--h) 55% 35%);
}
.review-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.review-who strong { font-size: 0.95rem; }
.verified { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--good); font-size: 0.78rem; font-weight: 700; }
.verified .i-check { width: 14px; height: 14px; }
.review-card time { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.review-variant { color: var(--muted); font-size: 0.82rem; margin: 0.4rem 0 0; }
.review-text { margin: 0.5rem 0 0; color: #3a4050; }

/* ----- review form ----- */
.review-wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-bottom: 2rem; }
.review-intro h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -0.035em; }
.review-intro .hero-sub { margin-top: 0.75rem; }
.review-product { margin: 1rem 0 0; color: #3a4050; }
.review-form { background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; }
.review-form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 700; font-size: 0.92rem; }
.review-form .hint { color: var(--muted); font-weight: 500; font-size: 0.82rem; }
.review-form input:not([type=radio]), .review-form textarea {
  font: inherit; font-weight: 500; font-size: 1rem; color: var(--text); width: 100%;
  padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface-2);
  transition: border-color 0.15s, background 0.15s;
}
.review-form input:not([type=radio]):focus, .review-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(51, 102, 230, 0.12); }
.review-form textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error { margin: 0; padding: 0.8rem 1rem; border-radius: 14px; background: #fef2f2; color: #b91c1c; font-weight: 600; font-size: 0.92rem; }
.rating-input { border: 0; padding: 0; margin: 0; }
.rating-input legend { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.35rem; padding: 0; }
/* Stars are listed 5 to 1 and displayed in reverse, so "~ label" fills every star up to the one chosen. */
.rating-stars { display: inline-flex; flex-direction: row-reverse; gap: 0.15rem; }
.rating-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-stars label { font-size: 2.1rem; line-height: 1; color: #d5d9e2; cursor: pointer; transition: color 0.12s, transform 0.12s; font-weight: 400; }
.rating-stars label:hover, .rating-stars label:hover ~ label, .rating-stars input:checked ~ label { color: #f5a623; }
.rating-stars label:hover { transform: scale(1.12); }
.rating-stars input:focus-visible + label { outline: 3px solid rgba(51, 102, 230, 0.4); outline-offset: 2px; border-radius: 6px; }
.review-form .fine-print { margin: 0; text-align: center; }
.thanks-icon {
  width: 72px; height: 72px; border-radius: 50%; display: inline-grid; place-items: center; margin-bottom: 1.25rem;
  background: var(--good-soft); color: var(--good);
}
.thanks-icon .i-check { width: 36px; height: 36px; color: var(--good); }

/* ==========================================================================
   Product page sections, reviews, testimonials, chat button, buy bar
   ========================================================================== */

/* The image stays in view only while the details beside it scroll: its sticky
   wrapper is limited to the gallery column, so it can never slide over other text. */
.product-gallery { align-self: stretch; min-width: 0; }

.ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0 0 1.1rem; }
.ask-row.center { justify-content: center; margin: 1.25rem 0 0; }
.ask-link {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.85rem; border-radius: 999px;
  font-weight: 700; font-size: 0.88rem; border: 1px solid var(--line); background: #fff; color: var(--text);
}
.ask-link svg { width: 17px; height: 17px; fill: currentColor; }
.ask-link.whatsapp svg { fill: #25d366; }
.ask-link.telegram svg { fill: #229ed9; }
.ask-link:hover { border-color: var(--accent); color: var(--accent); }

.highlights { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.highlights li {
  display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.1rem; background: var(--surface); border-radius: 20px;
  box-shadow: var(--shadow); min-width: 0;
}
.highlights li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.highlights small { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.highlights strong { font-size: 0.98rem; overflow-wrap: anywhere; }
.hl-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--accent-soft); }
.hl-icon svg { width: 22px; height: 22px; fill: var(--accent); }

.product-tabs {
  position: sticky; top: calc(var(--header-h) + 28px); z-index: 20; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none;
  margin: 0 0 1.25rem; padding: 0.4rem; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 999px; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.9);
}
.product-tabs::-webkit-scrollbar { display: none; }
.product-tabs a { flex: none; padding: 0.55rem 1rem; border-radius: 999px; color: #4b5262; font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.product-tabs a:hover { background: var(--surface-2); color: var(--text); }

.product-sections { display: grid; gap: 1.25rem; }
.p-section {
  background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2.25rem);
  scroll-margin-top: calc(var(--header-h) + 100px);
}
.p-section > h2 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem); margin-bottom: 1.1rem; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.overview-text p { color: #3a4050; max-width: 70ch; }
.overview-grid .facts { margin: 0; }
.included-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 0.75rem; }
.included-grid li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.9rem 1rem; background: var(--surface-2); border-radius: 16px; font-weight: 600; }
.included-grid .i-check { margin-top: 2px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1rem; counter-reset: none; }
.timeline li { position: relative; padding: 1.1rem 1.1rem 1.1rem; background: var(--surface-2); border-radius: 18px; }
.timeline-num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 0.6rem;
  background: linear-gradient(135deg, #3366e6, #7c5cf0); color: #fff; font-weight: 800; font-size: 0.95rem;
}
.timeline p { margin: 0; color: #3a4050; font-size: 0.95rem; }
.platform-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 1rem; }
.platform-chips li { padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.88rem; }
.req-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; color: #3a4050; }
.p-section .faq-list { max-width: none; }

/* reviews */
.reviews { margin-top: 0; }
.reviews-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.reviews-summary {
  position: sticky; top: calc(var(--header-h) + 100px); text-align: center; padding: 1.5rem; border-radius: 22px;
  background: linear-gradient(160deg, #f5f7ff, #f3f4f7);
}
.score-big { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.score-big span { font-size: 1.1rem; color: var(--muted); font-weight: 700; margin-left: 0.2rem; }
.reviews-summary .stars { font-size: 1.35rem; margin: 0.5rem 0 0.25rem; }
.rating-bars { list-style: none; display: grid; gap: 0.45rem; margin: 1.1rem 0 1.25rem; text-align: left; }
.rating-bars li { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 700; }
.bar-label span { color: #f5a623; margin-left: 2px; }
.bar { height: 8px; border-radius: 999px; background: #e3e6ee; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f5a623, #f7b955); }
.bar-count { color: var(--muted); text-align: right; }
.reviews-summary .fine-print { margin: 0.75rem 0 0; }
.reviews-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 1rem; align-content: start; }
.reviews-list:not(.show-all) .is-extra { display: none; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.55rem; }
.review-card header { margin-bottom: 0; }
.review-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.review-meta time { color: var(--muted); font-size: 0.8rem; }
.review-variant { align-self: flex-start; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 0.78rem; font-weight: 600; margin: 0; }
.review-text { margin: 0; color: #2b303c; line-height: 1.6; }
.reviews-empty { grid-column: 1 / -1; text-align: center; padding: 2.5rem 1rem; border: 2px dashed var(--line); border-radius: 22px; }
.reviews-empty-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff7e6; color: #f5a623; font-size: 1.6rem; margin-bottom: 0.6rem; }
.reviews-empty h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.reviews-empty p { margin: 0 auto; max-width: 42ch; }
.show-more-row { text-align: center; margin-top: 1.25rem; }

/* homepage testimonials */
.testimonials { margin: 4rem 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.25rem; }
.testimonial {
  margin: 0; display: flex; flex-direction: column; gap: 0.9rem; padding: 1.5rem; background: var(--surface); border-radius: 24px;
  box-shadow: var(--shadow); border: 1px solid rgba(17, 24, 39, 0.05);
}
.testimonial blockquote { margin: 0; flex: 1; font-size: 1.02rem; line-height: 1.6; color: #2b303c; }
.testimonial blockquote::before { content: "\201C"; display: block; font-size: 2.6rem; line-height: 0.6; color: var(--accent); font-family: Georgia, serif; margin-bottom: 0.5rem; }
.testimonial figcaption { display: flex; align-items: center; gap: 0.7rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.testimonial figcaption > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.testimonial figcaption a { font-size: 0.85rem; font-weight: 600; }

/* in-site chat: floating button and panel */
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 70; }
.chat-widget.left { right: auto; left: 20px; }
.chat-launch {
  position: relative; display: inline-flex; align-items: center; gap: 0.55rem; cursor: pointer; user-select: none;
  padding: 0.55rem 1.1rem 0.55rem 0.55rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 14px 34px rgba(51, 102, 230, 0.4); transition: transform 0.15s;
}
.chat-launch:hover { color: #fff; transform: translateY(-2px); }
.chat-widget.is-open .chat-launch { transform: none; }
.chat-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: grid; place-items: center; }
.chat-icon svg { width: 20px; height: 20px; fill: #fff; }
.chat-unread {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--hot); color: #fff; font-size: 0.75rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}
.chat-unread[hidden] { display: none; }
.chat-panel {
  position: absolute; right: 0; bottom: calc(100% + 12px); width: min(380px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(17, 24, 39, 0.22); border: 1px solid var(--line); overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-widget.left .chat-panel { right: auto; left: 0; }
.chat-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 0.9rem; background: var(--accent); color: #fff; }
.chat-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.chat-head-text strong { font-size: 1rem; }
.chat-head-text small { opacity: 0.85; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.16); color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; flex: none;
}
.chat-icon-btn:hover { background: rgba(255, 255, 255, 0.28); }
.chat-icon-btn[hidden] { display: none; }
.chat-sound svg { width: 17px; height: 17px; fill: currentColor; }
.chat-sound[aria-pressed="false"] { opacity: 0.7; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.chat-lead { margin: 0; font-weight: 700; }
.chat-topics { display: grid; gap: 0.5rem; }
.chat-topic {
  display: flex; align-items: center; gap: 0.75rem; text-align: start; width: 100%; padding: 0.75rem 0.85rem; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; color: var(--text); transition: border-color 0.15s, background 0.15s;
}
.chat-topic:hover { border-color: var(--accent); background: rgba(51, 102, 230, 0.04); }
.chat-topic strong { display: block; font-size: 0.95rem; }
.chat-topic small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.chat-topic-icon { width: 38px; height: 38px; border-radius: 12px; background: rgba(51, 102, 230, 0.1); display: grid; place-items: center; flex: none; }
.chat-topic-icon svg { width: 20px; height: 20px; fill: var(--accent); }
.chat-small-title { margin: 0.25rem 0 0.4rem; font-size: 0.8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.chat-recent { display: grid; gap: 0.35rem; }
.chat-recent-item {
  display: flex; flex-direction: column; align-items: flex-start; text-align: start; padding: 0.55rem 0.75rem; border-radius: 12px;
  border: 0; background: var(--surface-2); cursor: pointer; font-family: inherit; color: var(--text);
}
.chat-recent-item small { color: var(--muted); }
.chat-account-link { margin: 0; font-size: 0.88rem; font-weight: 600; }
.chat-apps { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.chat-app { padding: 0.3rem 0.75rem; border-radius: 999px; font-weight: 700; font-size: 0.82rem; color: #fff; }
.chat-app.whatsapp { background: #1fae54; }
.chat-app.telegram { background: #229ed9; }
.chat-app:hover { color: #fff; filter: brightness(0.95); }
.chat-form { display: grid; gap: 0.7rem; }
.chat-form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 700; font-size: 0.88rem; }
.chat-form input:not([type=radio]), .chat-form textarea, .chat-compose textarea {
  font: inherit; font-weight: 400; font-size: 0.95rem; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); width: 100%;
}
.chat-form input:focus, .chat-form textarea:focus, .chat-compose textarea:focus { outline: 2px solid rgba(51, 102, 230, 0.35); border-color: var(--accent); }
.chat-form .hint { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.chat-signed { margin: 0; font-size: 0.85rem; color: var(--muted); }
.chat-hint { margin: -0.3rem 0 0; font-size: 0.82rem; color: var(--muted); }
.chat-purchases { border: 0; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.chat-purchases legend { font-weight: 700; font-size: 0.88rem; margin-bottom: 0.4rem; padding: 0; }
.chat-form label.chat-purchase {
  flex-direction: row; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400;
}
.chat-purchase:has(input:checked) { border-color: var(--accent); background: rgba(51, 102, 230, 0.05); }
.chat-purchase span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.chat-purchase small { color: var(--muted); font-size: 0.78rem; }
.chat-thread { flex: 1; display: flex; flex-direction: column; gap: 0.55rem; overflow-y: auto; min-height: 120px; }
.chat-note { margin: 0 0 0.25rem; font-size: 0.82rem; color: var(--muted); background: var(--surface-2); border-radius: 12px; padding: 0.6rem 0.75rem; }
.chat-msg { max-width: 85%; padding: 0.55rem 0.8rem; border-radius: 16px; }
.chat-msg p { margin: 0; font-size: 0.93rem; line-height: 1.45; overflow-wrap: anywhere; }
.chat-msg small { display: block; font-size: 0.7rem; margin-top: 0.2rem; opacity: 0.75; }
.chat-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.them { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; }
[dir="rtl"] .chat-msg.me { border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
[dir="rtl"] .chat-msg.them { border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.chat-media { display: block; max-width: 100%; max-height: 260px; border-radius: 12px; margin-bottom: 0.35rem; background: rgba(0, 0, 0, 0.06); }
.chat-msg.has-media { padding: 0.4rem 0.4rem 0.45rem; }
.chat-msg.has-media p, .chat-msg.has-media small { padding: 0 0.4rem; }
.chat-media-gone { font-style: italic; opacity: 0.85; font-size: 0.85rem !important; }
.chat-uploading { align-self: flex-end; margin: 0; font-size: 0.82rem; color: var(--muted); }
.chat-attach {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center;
  cursor: pointer; color: var(--muted); background: #fff; transition: color 0.15s, border-color 0.15s;
}
.chat-attach:hover { color: var(--accent); border-color: var(--accent); }
.chat-attach svg { width: 20px; height: 20px; fill: currentColor; }
.chat-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.chat-attach.busy { opacity: 0.5; pointer-events: none; }
.chat-attach[hidden], .chat-media-note[hidden] { display: none; }
.chat-media-note { margin: 0; font-size: 0.75rem; color: var(--muted); }
.chat-closed { margin: 0; font-size: 0.8rem; color: var(--muted); text-align: center; }
.chat-closed[hidden] { display: none; }
.chat-compose { display: flex; gap: 0.5rem; align-items: flex-end; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.chat-compose textarea { resize: none; min-height: 44px; max-height: 120px; }
.chat-compose .btn { padding: 0.65rem 1rem; flex: none; }
body.has-buy-bar .chat-widget { transition: bottom 0.25s; }

/* customer account */
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-bottom: 3rem; }
.account-section { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 1.4rem; }
.account-section h2 { font-size: 1.25rem; margin: 0 0 1rem; }
.section-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-row h2 { margin: 0; }
.section-row .btn svg, .purchase .btn svg { width: 18px; height: 18px; fill: currentColor; }
.purchase-list { display: grid; gap: 0.75rem; }
.purchase { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 18px; }
.purchase-main { min-width: 0; }
.purchase-title { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.purchase-title a { color: var(--text); }
.purchase-title a:hover { color: var(--accent); }
.purchase p { margin: 0.2rem 0 0; }
.purchase-validity { font-weight: 700; font-size: 0.92rem; }
.purchase-validity.active { color: #15803d; }
.purchase-validity.soon { color: #b45309; }
.purchase-validity.expired { color: #b91c1c; }
.purchase-validity.pending { color: var(--muted); font-weight: 600; }
.purchase .btn { flex: none; display: inline-flex; gap: 0.4rem; }
.status-pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 800; }
.status-pill.active { background: #dcfce7; color: #15803d; }
.status-pill.soon { background: #fef3c7; color: #b45309; }
.status-pill.expired { background: #fee2e2; color: #b91c1c; }
.status-pill.pending { background: #ffedd5; color: #c2410c; }
.status-pill.inactive { background: #f1f5f9; color: #64748b; }
.conv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.conv-row {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; text-align: start; padding: 0.8rem 0.9rem;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; font-family: inherit; color: var(--text);
}
.conv-row:hover { border-color: var(--accent); }
.conv-main { display: flex; flex-direction: column; min-width: 0; }
.conv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; flex: none; }
.conv-unread { background: var(--hot); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 0.1rem 0.5rem; border-radius: 999px; }
.clamp-1 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32ch; }
.account-btn svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 900px) {
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .purchase { flex-direction: column; align-items: stretch; }
  .purchase .btn { justify-content: center; }
  /* On phones the chat panel fills most of the screen. */
  .chat-widget.is-open { left: 8px; right: 8px; }
  .chat-widget.is-open .chat-launch { display: none; }
  /* !important: the side settings (left/right, Arabic) must not move the full-width panel. */
  .chat-widget.is-open .chat-panel {
    position: fixed; left: 8px !important; right: 8px !important; bottom: 8px; width: auto; height: min(640px, calc(100vh - 16px));
  }
}
@media (max-width: 420px) {
  .account-btn { display: none; }
}

/* phone buy bar (product pages) */
.buy-bar { display: none; }

/* ----- responsive ----- */
@media (min-width: 901px) and (hover: hover) {
  .has-mega:hover > .mega { display: block; }
  .has-mega:hover .caret { transform: rotate(-135deg) translateY(-1px); }
}

@media (max-width: 1100px) {
  .spot-grid { grid-template-columns: minmax(0, 1fr); }
  .deck .deck-card { width: 300px; right: 2%; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  /* Phone menu: the menu button opens a panel with the same items, in the same order,
     as the computer menu. Products expands to the same category and product list. */
  .site-header { padding: 8px 0; }
  .header-bar { grid-template-columns: 1fr auto; padding: 0 8px 0 16px; }
  .menu-toggle { display: block; }
  .shop-btn { display: none; }
  .header-actions { grid-column: 2; }
  .site-nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
    display: none; flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
    padding: 0.6rem; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto;
  }
  .menu-open .site-nav { display: flex; }
  .site-nav > a, .nav-trigger { width: 100%; justify-content: space-between; padding: 0.85rem 0.95rem; font-size: 1rem; border-radius: 12px; }
  .has-mega { display: block; }
  .mega { position: static; padding: 0; }
  .mega-card { border: 0; box-shadow: none; border-radius: 14px; background: var(--surface-2); padding: 0.9rem 1rem; max-height: none; overflow: visible; margin: 0.15rem 0 0.35rem; }
  .mega-grid { grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 1rem 1.5rem; }
  .mega-col summary { padding-bottom: 0.45rem; margin-bottom: 0.45rem; }
  .mega-browse { margin-top: 0.75rem; }

  .hero { grid-template-columns: 1fr; min-height: 0; gap: 1.5rem; padding-top: 1.5rem; text-align: center; }
  .hero h1 { max-width: 16ch; margin-inline: auto; }
  .hero-actions { justify-content: center; margin-top: 1.75rem; }
  /* On narrow screens the cards behind peek out above the front card, so the stack stays centered. */
  .deck { height: 470px; }
  .deck .deck-card {
    --dx: 0px; --dy: -30px;
    right: auto; left: 50%; width: min(310px, 82vw); height: 380px;
    transform: translate(-50%, calc(-50% + 20px + var(--pos) * var(--dy))) scale(calc(1 - var(--pos) * 0.07));
  }
  .deck .deck-card.is-leaving { transform: translate(calc(-50% + 70px), calc(-50% + 20px)) rotate(5deg) scale(0.95); }
  .product { grid-template-columns: 1fr; }
  .product-media { position: static; }
  .review-wrap { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: 1fr; }
  .hero-sub { margin-inline: auto; }
  .hero-checks { justify-content: center; }
  .hero::before { right: 10%; top: auto; bottom: 10%; width: 300px; height: 300px; }
  .hero::after { right: auto; left: 5%; bottom: 30%; width: 220px; height: 220px; }
  .steps { grid-template-columns: 1fr; }
  .how { margin-top: 3.5rem; }
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .reviews-layout { grid-template-columns: 1fr; }
  .reviews-summary { position: static; }
  /* Buy bar: fixed to the bottom of the screen once the main cart buttons scroll away. */
  .buy-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 65; padding: 0.6rem 0.6rem 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 999px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    transform: translateY(150%); transition: transform 0.25s;
  }
  .buy-bar.show { transform: translateY(0); }
  .buy-bar-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .buy-bar-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.92rem; }
  .buy-bar-info span { font-weight: 800; color: var(--accent); }
  .buy-bar .btn { border-radius: 999px; padding: 0.7rem 1.1rem; flex: none; }
  .buy-bar .btn svg { width: 18px; height: 18px; fill: currentColor; }
  body.has-buy-bar .chat-widget { bottom: 86px; }
  .chat-label { display: none; }
  .chat-launch { padding: 0.55rem; }
  .cart-page { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .order-channels { grid-template-columns: 1fr; gap: 1.25rem; margin: 3rem 0; }
  .cta-band { text-align: center; justify-content: center; }
  .cta-band p { margin-inline: auto; }
  .cta-actions { justify-content: center; width: 100%; }
}

/* Payment methods centered in the footer on computers. */
@media (min-width: 901px) {
  .payments { text-align: center; }
  .payments .pay-row { justify-content: center; }
}

@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .logo-mark { width: 32px; height: 32px; font-size: 0.95rem; }
  .logo-img { height: 30px; }
  .logo { font-size: 1.05rem; }
  .shop-btn { padding: 0.6rem 0.95rem; }
  .shop-btn span { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Two narrow columns: the View button moves below the name and price. */
  .grid .product-card { border-radius: 20px; }
  .grid .card-media { height: 130px; padding: 1rem 1rem 1.5rem; }
  .grid .card-body { padding: 0 0.8rem 0.9rem; }
  .grid .card-row { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .grid .card-info h3 { font-size: 0.98rem; }
  .grid .view-btn { text-align: center; padding: 0.6rem 1rem; }
  .shop-toolbar { padding: 0.5rem; }
  .filter-pills { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .filter-pills::-webkit-scrollbar { display: none; }
  .sort-box { width: 100%; }
  .sort-box select { width: 100%; }
  .deck .deck-card .card-media { height: 200px; }
  .badge { top: 0.6rem; left: 0.6rem; font-size: 0.66rem; }
  .deck { height: 450px; }
  .deck .deck-card { height: 370px; }
  .brand { height: 50px; padding: 0 1rem; font-size: 0.92rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; }
  .highlights li { padding: 0.8rem; gap: 0.6rem; }
  .hl-icon { width: 36px; height: 36px; border-radius: 12px; }
  .hl-icon svg { width: 18px; height: 18px; }
  .highlights strong { font-size: 0.88rem; }
  .product-tabs { top: calc(var(--header-h) + 20px); }
  .cart-actions { grid-template-columns: auto 1fr; }
  .cart-actions [data-buy-now] { grid-column: 1 / -1; }
  .cart-items { padding: 0.25rem 1rem; }
  .cart-line { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 0.5rem 0.75rem; }
  .cart-line .cart-thumb { width: 56px; height: 56px; grid-row: span 2; }
  .cart-line .qty-picker { grid-column: 2; justify-self: start; }
  .cart-line .cart-line-total { grid-column: 3; grid-row: 1; }
  .cart-line .cart-remove { grid-column: 3; grid-row: 2; }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-via .channel-btn { flex: 1 1 140px; }
  /* Phone spotlight: logo tile on top, text below. */
  .spot { grid-template-columns: 1fr; min-height: 0; gap: 0.5rem; border-radius: 24px; }
  .spot-art { order: -1; justify-self: start; width: 104px; border-radius: 28px; }
  .spot-art .placeholder { font-size: 2rem; }
  .eyebrow-pill { font-size: 0.8rem; margin-bottom: 1.1rem; }
  .hero-checks { gap: 0.5rem 1rem; font-size: 0.86rem; }
  .section-intro h2 { font-size: 1.6rem; }
  .facts div { grid-template-columns: 96px 1fr; }
  .policy { padding: 1.25rem; }
  .pay { min-width: 56px; height: 30px; font-size: 0.74rem; padding: 0 0.55rem; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
  .grid .card-row { flex-direction: row; align-items: center; }
  .grid .card-media { height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  /* No scrolling: show the brands as a static, wrapped row. */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none !important; width: auto; justify-content: center; }
  .pulse { animation: none !important; }
  .marquee-group { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .marquee-group[aria-hidden="true"] { display: none; }
}

/* ---------- language menu ---------- */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; height: 44px; padding: 0 0.85rem;
  border-radius: 999px; background: var(--surface-2); color: var(--text); font-weight: 800; font-size: 0.85rem;
  cursor: pointer; user-select: none; transition: background 0.15s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: #e6e9f2; }
.lang-menu summary svg { width: 18px; height: 18px; fill: currentColor; }
.lang-list {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; min-width: 200px; margin: 0; padding: 0.4rem;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
}
.lang-list a {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.7rem; border-radius: 10px;
  color: var(--text); font-weight: 600; font-size: 0.95rem;
}
.lang-list a:hover { background: var(--surface-2); color: var(--text); }
.lang-list a.active { background: rgba(51, 102, 230, 0.08); color: var(--accent); }
.lang-code {
  display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 4px; border-radius: 6px;
  background: var(--surface-2); font-size: 0.7rem; font-weight: 800; color: var(--muted); letter-spacing: 0.04em;
}
.lang-list a.active .lang-code { background: var(--accent); color: #fff; }
@media (max-width: 480px) {
  .lang-menu summary { padding: 0 0.6rem; gap: 0.25rem; }
}

/* ---------- Arabic: font and right-to-left layout ---------- */
html[lang="ar"] body { font-family: "Plus Jakarta Sans", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif; line-height: 1.75; }
/* Arabic letters join, so tight letter spacing would break the words apart. */
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] .hero h1 { line-height: 1.3; max-width: 16ch; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.4; }
/* The hidden skip link sits off-screen on the side that cannot be scrolled to. */
[dir="rtl"] .skip-link { left: auto; right: -9999px; }
[dir="rtl"] .skip-link:focus { right: 8px; }
[dir="rtl"] .lang-list { right: auto; left: 0; }
[dir="rtl"] .product-card { text-align: right; }
/* Product names are often in Latin script; let each name keep its own direction. */
[dir="rtl"] .card-info h3, [dir="rtl"] .product-info h1, [dir="rtl"] .spot h3, [dir="rtl"] .mega-col li a,
[dir="rtl"] .buy-bar-info strong, [dir="rtl"] .cart-line-info strong { unicode-bidi: plaintext; }
[dir="rtl"] .badge { left: auto; right: 0.9rem; }
[dir="rtl"] .currency { margin-left: 0; margin-right: 0.15rem; }
[dir="rtl"] .from { margin-right: 0; margin-left: 0.25rem; }
[dir="rtl"] .step-num { right: auto; left: 1.4rem; }
[dir="rtl"] .features li { padding-left: 0; padding-right: 1.7rem; }
[dir="rtl"] .features li::before { left: auto; right: 0; }
[dir="rtl"] .cart-count { right: auto; left: -3px; }
[dir="rtl"] .cart-line-total { text-align: left; }
[dir="rtl"] .req-list { padding-left: 0; padding-right: 1.2rem; }
[dir="rtl"] .score-big span { margin-left: 0; margin-right: 0.2rem; }
[dir="rtl"] .rating-bars { text-align: right; }
[dir="rtl"] .bar-count { text-align: left; }
[dir="rtl"] .bar-label span { margin-left: 0; margin-right: 2px; }
[dir="rtl"] .chat-widget { right: auto; left: 20px; }
[dir="rtl"] .chat-widget.left { left: auto; right: 20px; }
[dir="rtl"] .chat-panel { right: auto; left: 0; }
[dir="rtl"] .chat-widget.left .chat-panel { left: auto; right: 0; }
[dir="rtl"] .chat-launch { padding: 0.55rem 0.55rem 0.55rem 1.1rem; }
[dir="rtl"] .chat-unread { right: auto; left: -4px; }
/* Brand names are in Latin script; the scrolling row keeps its left-to-right motion. */
[dir="rtl"] .marquee { direction: ltr; }
[dir="rtl"] .invoice { text-align: left; }
@media (max-width: 1100px) {
  [dir="rtl"] .badge { right: 0.6rem; }
}
@media (max-width: 900px) {
  [dir="rtl"] .chat-launch { padding: 0.55rem; }
}

/* ---------- blog ---------- */
.blog-head { max-width: 760px; }
.blog-tags { margin: 0 0 1.5rem; flex-wrap: wrap; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.article-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  color: var(--text); transition: transform 0.18s, box-shadow 0.18s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.article-cover { aspect-ratio: 16 / 7; display: grid; place-items: center; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover.plain {
  background: radial-gradient(120% 120% at 0% 0%, hsl(var(--h) 85% 92%), hsl(calc(var(--h) + 40) 80% 82%));
}
.article-cover.plain span { font-weight: 800; font-size: 1.15rem; color: hsl(var(--h) 55% 30%); letter-spacing: 0.02em; }
.article-card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.article-card h3 { font-size: 1.12rem; line-height: 1.3; margin: 0; }
.article-card p { margin: 0; font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-tag {
  align-self: flex-start; display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; background: rgba(51, 102, 230, 0.1);
  color: var(--accent); font-size: 0.75rem; font-weight: 800;
}
.article-meta { margin-top: auto; color: var(--muted); font-size: 0.82rem; }
.post { margin-bottom: 2.5rem; }
.post-head { max-width: 800px; margin: 0.5rem 0 1.5rem; }
.post-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.post-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); line-height: 1.12; margin-bottom: 0.75rem; }
.post-head .lead { font-size: 1.15rem; color: #3a4050; margin: 0 0 0.75rem; }
.post-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 22px; margin-bottom: 1.5rem; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }
.prose { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); font-size: 1.05rem; line-height: 1.75; color: #2a2f3c; }
.prose h2 { font-size: 1.55rem; margin: 2rem 0 0.75rem; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.4rem; display: grid; gap: 0.35rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose code { background: var(--surface-2); padding: 0.1rem 0.35rem; border-radius: 6px; font-size: 0.9em; }
.prose .tip { margin: 1.25rem 0; padding: 0.9rem 1.1rem; border-radius: 14px; background: rgba(51, 102, 230, 0.07); border-left: 4px solid var(--accent); }
.prose .tip p { margin: 0; }
.prose .tip p + p { margin-top: 0.5rem; }
.table-scroll { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 800; }
.prose tr:last-child td { border-bottom: 0; }
.post-side { position: sticky; top: 100px; display: grid; gap: 1rem; }
.toc, .side-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.1rem 1.2rem; }
.toc-title { margin: 0 0 0.6rem; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.toc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; font-size: 0.92rem; line-height: 1.4; }
.toc li { padding-left: 0.75rem; border-left: 2px solid var(--line); }
[dir="rtl"] .toc li { padding-left: 0; padding-right: 0.75rem; border-left: 0; border-right: 2px solid var(--line); }
.toc a { color: var(--text); }
.toc a:hover { color: var(--accent); }
.side-box { display: grid; gap: 0.6rem; }
.side-product { display: flex; align-items: center; gap: 0.7rem; color: var(--text); }
.side-product:hover { color: var(--accent); }
.side-thumb { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.side-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.side-thumb .placeholder { width: 100%; height: 100%; border-radius: 12px; font-size: 0.9rem; }
.side-product span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.side-product small { color: var(--muted); }
.help-box p { margin: 0; }
.related-posts h2 { font-size: 1.5rem; margin-bottom: 1rem; }
@media (max-width: 1000px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-side { position: static; }
}
[dir="rtl"] .prose .tip { border-left: 0; border-right: 4px solid var(--accent); }

/* ==========================================================================
   "It starts with one message": example chat on WhatsApp / Telegram
   ========================================================================== */
.chat-show {
  --app: #25d366; --app-soft: rgba(37, 211, 102, 0.14); --app-ink: #128c4a;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center;
  margin: 4.5rem 0; padding: clamp(1.6rem, 4vw, 3.25rem); border-radius: 30px; background: #fff; box-shadow: var(--shadow);
  transition: background-color 0.4s;
}
.chat-show[data-app="telegram"] { --app: #229ed9; --app-soft: rgba(34, 158, 217, 0.13); --app-ink: #1a7fb0; }
.chat-show::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: opacity 0.4s;
  background: radial-gradient(60% 80% at 100% 10%, var(--app-soft), transparent 70%), radial-gradient(50% 70% at 0% 100%, var(--accent-soft), transparent 70%);
}
.chat-show .eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--app-ink); background: var(--app-soft); padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 1rem;
  transition: color 0.4s, background-color 0.4s;
}
.chat-show h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); line-height: 1.04; letter-spacing: -0.045em; margin: 0 0 1rem; max-width: 12ch; }
.chat-show-copy > p { font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem); color: #4a5162; margin: 0 0 1.5rem; max-width: 46ch; }
.chat-show-points { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.75rem; padding: 0; }
.chat-show-points li {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.95rem 0.4rem 0.4rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 0.92rem; color: #2b303c;
}
.pt-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); flex: none; }
.pt-icon svg { width: 18px; height: 18px; fill: var(--accent); }
.chat-show-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.app-btn { display: inline-flex; align-items: center; gap: 0.55rem; color: #fff; font-weight: 800; padding: 0.85rem 1.4rem; }
.app-btn svg { width: 20px; height: 20px; fill: currentColor; }
.app-btn.whatsapp { background: #1fae54; box-shadow: 0 10px 24px rgba(31, 174, 84, 0.3); }
.app-btn.telegram { background: #229ed9; box-shadow: 0 10px 24px rgba(34, 158, 217, 0.3); }
.app-btn:hover { color: #fff; filter: brightness(0.95); transform: translateY(-1px); }

/* tabs above the phone */
.chat-show-demo { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.chat-show-tabs { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.chat-show-tabs button {
  display: inline-flex; align-items: center; gap: 0.45rem; border: 0; background: transparent; cursor: pointer;
  padding: 0.5rem 1.05rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: 0.92rem; color: var(--muted);
}
.chat-show-tabs button svg { width: 18px; height: 18px; fill: currentColor; }
.chat-show-tabs button[aria-selected="true"] { background: #fff; color: #1b1f2a; box-shadow: 0 2px 8px rgba(17, 24, 39, 0.1); }
.chat-show-tabs button.whatsapp[aria-selected="true"] svg { fill: #1fae54; }
.chat-show-tabs button.telegram[aria-selected="true"] svg { fill: #229ed9; }
.chat-show-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* the phone */
.phone {
  width: min(100%, 370px); border-radius: 38px; padding: 9px; background: #151821;
  box-shadow: 0 30px 60px rgba(17, 24, 39, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-chat { border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; height: 560px; font-size: 0.9rem; }
.phone-chat[hidden] { display: none; }
.pc-head { display: flex; align-items: center; gap: 0.65rem; padding: 1.35rem 0.95rem 0.75rem; }
.pc-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, #5b8cff, #3366e6); color: #fff; font-weight: 800; }
.pc-avatar img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.pc-who { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pc-who strong { font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-who small { font-size: 0.76rem; }
.pc-tools { display: flex; gap: 1rem; }
.pc-tools svg { width: 21px; height: 21px; fill: currentColor; }
.pc-body { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; padding: 0.75rem 0.7rem; overflow: hidden; }
.pc-date { align-self: center; font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 8px; margin-bottom: 0.3rem; }
.pc-msg {
  position: relative; max-width: 80%; padding: 0.42rem 0.6rem 0.32rem; border-radius: 12px; line-height: 1.35;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); align-self: flex-start; color: #111b21;
}
.pc-msg.out { align-self: flex-end; }
.pc-msg span { display: block; overflow-wrap: anywhere; }
.pc-msg small { display: flex; justify-content: flex-end; align-items: center; gap: 0.2rem; font-size: 0.66rem; margin-top: 0.1rem; opacity: 0.75; }
.pc-msg .ticks { width: 16px; height: 10px; }
.pc-typing { align-self: flex-start; display: flex; gap: 4px; padding: 0.7rem 0.8rem; border-radius: 14px; background: #fff; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.pc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: pc-dot 1.2s infinite ease-in-out; }
.pc-typing i:nth-child(2) { animation-delay: 0.15s; }
.pc-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pc-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.pc-compose { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.6rem 0.9rem; }
.pc-input { flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.9rem; border-radius: 999px; background: #fff; color: #8696a0; }
.pc-input svg { width: 19px; height: 19px; fill: #8696a0; }
.pc-send { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.pc-send svg { width: 20px; height: 20px; fill: #fff; }

/* WhatsApp look (light theme) */
.phone-chat.whatsapp .pc-head { background: #008069; color: #fff; }
.phone-chat.whatsapp .pc-who small { color: rgba(255, 255, 255, 0.85); }
.phone-chat.whatsapp .pc-body {
  background-color: #efeae2;
  background-image: radial-gradient(rgba(0, 0, 0, 0.045) 1.2px, transparent 1.3px), radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1.1px);
  background-size: 22px 22px, 15px 15px; background-position: 0 0, 7px 9px;
}
.phone-chat.whatsapp .pc-date { background: #fff; color: #54656f; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.phone-chat.whatsapp .pc-msg.in { background: #fff; border-top-left-radius: 3px; }
.phone-chat.whatsapp .pc-msg.out { background: #d9fdd3; border-top-right-radius: 3px; }
.phone-chat.whatsapp .pc-msg .ticks { color: #53bdeb; }
.phone-chat.whatsapp .pc-compose { background: #efeae2; }
.phone-chat.whatsapp .pc-send { background: #00a884; }

/* Telegram look (light theme) */
.phone-chat.telegram .pc-head { background: #517da2; color: #fff; }
.phone-chat.telegram .pc-who small { color: rgba(255, 255, 255, 0.8); }
.phone-chat.telegram .pc-body { background: linear-gradient(160deg, #dce9b5 0%, #b5d6a0 40%, #93c3ad 100%); }
.phone-chat.telegram .pc-date { background: rgba(40, 70, 60, 0.28); color: #fff; }
.phone-chat.telegram .pc-msg { border-radius: 15px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12); }
.phone-chat.telegram .pc-msg.in { background: #fff; border-bottom-left-radius: 4px; }
.phone-chat.telegram .pc-msg.out { background: #effdde; border-bottom-right-radius: 4px; }
.phone-chat.telegram .pc-msg small { color: #4fae4e; opacity: 1; }
.phone-chat.telegram .pc-msg.in small { color: #8a9aa6; }
.phone-chat.telegram .pc-compose { background: #fff; border-top: 1px solid #e7ebee; }
.phone-chat.telegram .pc-input { background: #f1f3f5; }
.phone-chat.telegram .pc-send { background: #3390ec; }

/* messages appear one by one (only with JavaScript and motion allowed) */
.chat-show.animate .pc-msg, .chat-show.animate .pc-typing { opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 0.3s ease, transform 0.3s ease; }
.chat-show.animate .pc-msg.shown { opacity: 1; transform: none; }
.chat-show.animate .pc-typing.shown { opacity: 1; transform: none; }
.chat-show:not(.animate) .pc-typing { display: none; }
.chat-show.animate .pc-typing:not(.shown) { position: absolute; visibility: hidden; }

@media (max-width: 900px) {
  .chat-show { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .chat-show h2, .chat-show-copy > p { margin-left: auto; margin-right: auto; }
  .chat-show-points, .chat-show-cta { justify-content: center; }
  .phone-chat { height: 520px; }
}
@media (max-width: 480px) {
  .chat-show { padding: 1.4rem 1rem; border-radius: 24px; margin: 3rem 0; }
  .chat-show-points li { font-size: 0.85rem; }
  .app-btn { width: 100%; justify-content: center; }
  .phone { border-radius: 32px; padding: 7px; }
  .phone-chat { border-radius: 26px; height: 500px; font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-typing i { animation: none; }
}
