/* ============================================================
   PIXEVIO — Design system (Light theme)
   ============================================================ */

:root {
  /* Surfaces */
  --bg:        #FFFFFF;
  --bg-soft:   #F5F6FB;
  --bg-tint:   #F0F1FC;
  --card:      #FFFFFF;
  --border:    #E7E8F2;
  --border-2:  #D9DBEA;

  /* Text */
  --text:      #14152B;
  --text-soft: #595D78;
  --text-dim:  #8A8FA8;

  /* Brand / accent (Electric Indigo & Purple) */
  --brand:    #6366F1;
  --brand-2:  #A855F7;
  --brand-ink:#4F46E5;
  --accent:   #6366F1;
  --grad:     linear-gradient(135deg, #6366F1, #A855F7);
  --grad-soft:linear-gradient(135deg, rgba(99,102,241,.12), rgba(168,85,247,.10));

  /* Semantic */
  --success:  #12A150;
  --gold:     #F5A623;
  --danger:   #E5484D;

  --radius:    16px;
  --radius-sm: 11px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(20,21,43,.06);
  --shadow:    0 14px 40px -18px rgba(99,102,241,.22);
  --shadow-lg: 0 30px 70px -28px rgba(99,102,241,.32);

  --maxw: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.icon { width: 1.25em; height: 1.25em; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; fill: none; flex-shrink: 0; }
.icon--fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; position: relative; }
.section--alt { background: var(--bg-soft); }
.section--tight { padding: 52px 0; }

/* Section headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-ink);
  background: var(--grad-soft);
  border: 1px solid rgba(99,102,241,.18);
  padding: 6px 13px; border-radius: 100px; margin-bottom: 16px;
}
.eyebrow .icon { width: 15px; height: 15px; }
.section-title { font-size: clamp(27px, 3.8vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.section-sub { color: var(--text-soft); font-size: 16.5px; max-width: 560px; margin-top: 12px; }
.section-head { margin-bottom: 42px; }
.section-head--center { text-align: center; }
.section-head--center .section-sub { margin-inline: auto; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 650; font-size: 15px; padding: 12px 20px; border-radius: 100px;
  transition: transform .16s ease, box-shadow .22s ease, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -12px rgba(99,102,241,.65); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(99,102,241,.8); }
.btn--ghost { background: #fff; border: 1px solid var(--border-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--bg-tint); }
.btn--soft { background: var(--bg-tint); color: var(--brand-ink); }
.btn--soft:hover { background: #EEF2FF; }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 28px; font-size: 16px; }

/* ---------------- Header ---------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px -6px rgba(99,102,241,.7);
}
.logo-mark .icon { width: 19px; height: 19px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-links a { font-size: 14.5px; color: var(--text-soft); padding: 8px 13px; border-radius: 9px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 9px; }

/* dropdown (lang / currency) */
.dd { position: relative; }
.dd-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--text-soft);
  padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; transition: border-color .2s, color .2s;
}
.dd-toggle:hover { border-color: var(--border-2); color: var(--text); }
.dd-toggle .icon { width: 16px; height: 16px; }
.dd-toggle .chev { transition: transform .2s; }
.dd.open .chev { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 175px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
  padding: 6px; z-index: 120;
  opacity: 0; visibility: hidden; 
  transform: translateY(8px) scale(0.95); 
  transform-origin: top right;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dd.open .dd-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dd-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border-radius: 9px; font-size: 14px; color: var(--text-soft); text-align: left;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.dd-item:hover { 
  background: var(--bg-soft); color: var(--text);
  transform: translateX(2px);
}
.dd-item.active { color: var(--brand-ink); font-weight: 650; background: var(--bg-tint); }
.flag-icon {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.dd-item .cur { font-weight: 700; min-width: 18px; }

.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--border);
  color: var(--text); transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--border-2); background: var(--bg-soft); }
.icon-btn .icon { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 100px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
  transform: scale(0); transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.cart-count.show { transform: scale(1); }
.burger { display: none; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 76px 0 64px; overflow: hidden; }

/* animated gradient background */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.hero-orb--1 { width: 520px; height: 520px; top: -160px; right: -80px; background: radial-gradient(circle at 30% 30%, rgba(168,85,247,.38), transparent 70%); animation: orbFloat 16s ease-in-out infinite; }
.hero-orb--2 { width: 460px; height: 460px; top: 40px; left: -140px; background: radial-gradient(circle at 60% 40%, rgba(99,102,241,.32), transparent 70%); animation: orbFloat 20s ease-in-out infinite reverse; }
.hero-orb--3 { width: 380px; height: 380px; bottom: -180px; left: 38%; background: radial-gradient(circle at 50% 50%, rgba(99,179,237,.32), transparent 70%); animation: orbFloat 24s ease-in-out infinite; animation-delay: -6s; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(99,102,241,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%);
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(40px,30px) scale(1.08); }
  66%     { transform: translate(-30px,20px) scale(.95); }
}

.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero-copy > * { opacity: 0; transform: translateY(18px); animation: heroIn .7s cubic-bezier(.22,.8,.3,1) forwards; }
.hero-copy > .eyebrow      { animation-delay: .05s; }
.hero-copy > h1            { animation-delay: .14s; }
.hero-copy > .lead         { animation-delay: .22s; }
.hero-copy > .hero-cta     { animation-delay: .30s; }
.hero-copy > .hero-proof   { animation-delay: .38s; }
.hero-copy > .trust-strip  { animation-delay: .46s; }
.hero-copy > .pay-row      { animation-delay: .54s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* eyebrow with live pulse */
.hero-eyebrow { position: relative; }
.eyebrow-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); position: relative; }
.eyebrow-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--success); animation: pulseRing 1.8s ease-out infinite; }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(18,161,80,.5); } 100% { box-shadow: 0 0 0 9px rgba(18,161,80,0); } }

.hero h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; }
.hero h1 .grad { background: linear-gradient(110deg, #6366F1, #A855F7 45%, #6366F1 90%); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradShift 6s linear infinite; display: inline-block; white-space: nowrap; }
@keyframes gradShift { to { background-position: 220% center; } }
.hero .lead { font-size: 18.5px; color: var(--text-soft); margin: 20px 0 28px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn .icon { transition: transform .2s; }
.hero-cta .btn--primary:hover .icon { transform: translateX(3px); }

/* shine sweep on primary CTA */
.btn--shine { position: relative; overflow: hidden; }
.btn--shine::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%,55% { left: -75%; } 80%,100% { left: 130%; } }

/* social proof */
.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.proof-avatars { display: flex; }
.proof-avatar { width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid #fff; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13.5px; margin-left: -10px; box-shadow: var(--shadow-sm); }
.proof-avatar:first-child { margin-left: 0; }
.proof-avatar.more { background: var(--bg-tint); color: var(--brand-ink); font-size: 12px; }
.proof-copy { display: flex; flex-direction: column; gap: 1px; }
.proof-stars { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.proof-stars .icon { width: 16px; height: 16px; color: var(--gold); }
.proof-stars b { font-weight: 700; }
.proof-clients { font-size: 13px; color: var(--text-soft); }

.trust-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-soft); }
.trust-item .icon { width: 18px; height: 18px; color: var(--brand); }
.trust-item.is-star .icon { color: var(--gold); }

.pay-row { display: flex; align-items: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.pay-row .pl { font-size: 13px; color: var(--text-dim); }
.pay-badge { height: 30px; padding: 0 11px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--text-soft); }

/* Hero visual */
.hero-visual { position: relative; padding-bottom: 56px; opacity: 0; transform: translateY(24px) scale(.98); animation: heroIn .8s cubic-bezier(.22,.8,.3,1) .35s forwards; }
.hero-blob { position: absolute; inset: -8% -6% 6% 4%; background: var(--grad); filter: blur(60px); opacity: .14; border-radius: 50%; z-index: -1; }

.floating-chip {
  position: absolute; padding: 9px 14px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; font-size: 12.5px; font-weight: 650; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 7px; animation: float 4.5s ease-in-out infinite;
}
.floating-chip .icon { width: 16px; height: 16px; color: var(--brand); }
.fc-1 { top: -16px; right: 14px; }
.fc-2 { bottom: 12px; left: -32px; animation-delay: 1.6s; }
.fc-2 .icon { color: var(--success); }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }

/* 3D perspective visual deck */
.hero-cards-3d {
  position: relative;
  height: 425px;
  width: 100%;
  perspective: 1200px;
  margin-bottom: 24px;
  display: none;
}
@media (min-width: 769px) {
  .hero-cards-3d {
    display: block;
  }
  .hero-visual {
    padding-bottom: 10px !important;
  }
  .card-3d {
    width: 320px !important;
    height: 360px !important;
    padding: 26px !important;
  }
  .card-3d--gemini {
    width: 360px !important;
    height: 395px !important;
  }
  .card-3d-logo {
    width: 56px !important;
    height: 56px !important;
    margin-bottom: 16px !important;
  }
  .card-3d-logo img {
    width: 30px !important;
    height: 30px !important;
  }
  .card-3d-name {
    font-size: 19px !important;
    margin-bottom: 6px !important;
  }
  .card-3d-features {
    gap: 9px !important;
    margin: 16px 0 !important;
  }
  .card-3d-features li {
    font-size: 15px !important;
    gap: 9px !important;
  }
  .card-3d-features li .icon {
    width: 17px !important;
    height: 17px !important;
  }
  .card-3d-price {
    font-size: 24px !important;
  }
  .card-3d-price .old-price {
    font-size: 15px !important;
  }
  .card-3d-btn {
    width: 42px !important;
    height: 42px !important;
  }
  .card-3d-btn .icon {
    width: 18px !important;
    height: 18px !important;
  }
  .delivery-simulator {
    font-size: 13px !important;
    padding: 14px !important;
  }
  .hero-blob {
    inset: -25% -25% -15% -25% !important;
    opacity: .24 !important;
    filter: blur(80px) !important;
  }
  
  /* Fade and scale down other cards when one is focused */
  @media (hover: hover) {
    .hero-cards-3d:has(.card-3d:hover) .card-3d:not(:hover) {
      opacity: 0.35 !important;
      filter: blur(1.5px) !important;
    }
    .hero-cards-3d:has(.card-3d:hover) .card-3d--spotify:not(:hover) {
      transform: translateX(-270px) rotate(-6deg) scale(0.85) !important;
    }
    .hero-cards-3d:has(.card-3d:hover) .card-3d--youtube:not(:hover) {
      transform: translateX(-50px) rotate(6deg) scale(0.85) !important;
    }
    .hero-cards-3d:has(.card-3d:hover) .card-3d--gemini:not(:hover) {
      transform: translateX(-50%) translateY(0) scale(0.86) !important;
    }
  }
}
.card-3d {
  position: absolute;
  width: 290px;
  height: 360px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 15px 35px -12px rgba(20, 21, 43, 0.12), 0 2px 8px rgba(20, 21, 43, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
              filter 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.3s,
              z-index 0s;
}
.card-3d-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 100px;
  border: 1px solid transparent;
}
.card-3d-badge--hot {
  color: #E0612F;
  background: #FFF1EC;
  border-color: rgba(224,97,47,.15);
}
.card-3d-badge--value {
  color: #12A150;
  background: #E9F8EF;
  border-color: rgba(18,161,80,.15);
}
.card-3d-badge--new {
  color: var(--brand-ink);
  background: var(--bg-tint);
  border-color: rgba(99,102,241,.15);
}
.card-3d-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.card-3d-logo img {
  width: 26px;
  height: 26px;
}
.card-3d-name {
  font-size: 16px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 4px;
}
.card-3d-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.card-3d-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.card-3d-price .old-price {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: line-through;
  font-weight: 400;
}
.card-3d-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.card-3d-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}
.card-3d-btn:active {
  transform: scale(0.95);
}
.card-3d-btn .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.card-3d-features {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.card-3d-features li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--text-soft);
}
.card-3d-features li .icon {
  width: 15px;
  height: 15px;
  color: var(--success);
  flex-shrink: 0;
}

/* Flat Stack positions (Stripe/Linear styled offset stack) */
.card-3d--spotify {
  top: 35px;
  left: 50%;
  transform: translateX(-270px) rotate(-6deg) scale(0.92);
  z-index: 1;
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.04), #ffffff 75%);
  border-color: rgba(29, 185, 84, 0.18);
  box-shadow: 0 10px 25px -10px rgba(20, 21, 43, 0.08), var(--shadow-sm);
}
.card-3d--youtube {
  top: 35px;
  left: 50%;
  transform: translateX(-50px) rotate(6deg) scale(0.92);
  z-index: 2;
  background: linear-gradient(135deg, rgba(255, 0, 51, 0.04), #ffffff 75%);
  border-color: rgba(255, 0, 51, 0.18);
  box-shadow: 0 10px 25px -10px rgba(20, 21, 43, 0.08), var(--shadow-sm);
}
.card-3d--gemini {
  top: 15px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  z-index: 3;
  width: 320px;
  height: 390px;
  background: linear-gradient(135deg, rgba(109, 77, 242, 0.04), #ffffff 65%);
  border-color: rgba(109, 77, 242, 0.25);
  box-shadow: 0 25px 55px -15px rgba(20, 21, 43, 0.15), var(--shadow-lg);
}

/* Hover effects: Cards fan out nicely and flatten slightly */
@media (hover: hover) {
  .hero-cards-3d:hover .card-3d--spotify {
    transform: translateX(-400px) translateY(-10px) rotate(-10deg) scale(0.96);
    box-shadow: 0 15px 35px -12px rgba(29, 185, 84, 0.15), var(--shadow-sm);
  }
  .hero-cards-3d:hover .card-3d--youtube {
    transform: translateX(80px) translateY(-10px) rotate(10deg) scale(0.96);
    box-shadow: 0 15px 35px -12px rgba(255, 0, 51, 0.12), var(--shadow-sm);
  }
  .hero-cards-3d:hover .card-3d--gemini {
    transform: translateX(-50%) translateY(-15px) scale(1.03);
    box-shadow: 0 35px 70px -15px rgba(20, 21, 43, 0.22), var(--shadow-lg);
  }
  .card-3d:hover {
    z-index: 10 !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    background: #ffffff !important;
    box-shadow: 0 20px 45px -12px rgba(99, 102, 241, 0.22), var(--shadow-sm) !important;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                filter 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.3s,
                z-index 0s 0s;
  }
}

/* Delivery simulator */
.delivery-simulator {
  flex: 1;
  background: var(--bg-soft);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-sm);
  margin: 12px 0 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 106px;
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.sim-step {
  display: none;
  flex-direction: column;
  gap: 6px;
  animation: simFadeIn 0.3s ease forwards;
}
.sim-step.active {
  display: flex;
}
@keyframes simFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.sim-label {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sim-input {
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
  width: fit-content;
  min-width: 140px;
  height: 22px;
}
.sim-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: simSpin 0.8s linear infinite;
  align-self: center;
  margin-bottom: 4px;
}
@keyframes simSpin {
  to { transform: rotate(360deg); }
}
.sim-success-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-weight: 700;
}
.sim-success-badge .icon {
  width: 16px;
  height: 16px;
  color: var(--success);
}
.sim-key {
  font-family: monospace;
  font-size: 11px;
  background: #E9F8EF;
  color: var(--success);
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 4px;
  border: 1px solid rgba(18, 161, 80, 0.15);
  width: fit-content;
}

/* Full-width trust and pay strip at the bottom of hero */
.hero-bottom-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-bottom-strip .trust-strip {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.hero-bottom-strip .pay-row {
  margin-top: 0;
}

/* ---------------- Brands marquee ---------------- */
.marquee { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: scroll 110s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-logo { height: 30px; display: grid; place-items: center; opacity: .72; transition: opacity .2s; }
.marquee-logo img { height: 28px; width: auto; }
.marquee-logo:hover { opacity: 1; }
@keyframes scroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------------- Catalog ---------------- */
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.toolbar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; flex: 1; min-width: 0; }
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  height: 38px;
  width: 240px;
  transition: border-color 0.2s, box-shadow 0.2s, width 0.2s;
}
.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  width: 280px;
}
.search-box input {
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 0 36px 0 38px;
}
.search-icon {
  position: absolute;
  left: 13px;
  color: var(--text-dim);
  pointer-events: none;
  width: 16px;
  height: 16px;
}
.search-clear {
  position: absolute;
  right: 8px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.search-clear:hover {
  color: var(--text);
  background: var(--border);
}
.search-clear .icon {
  width: 12px;
  height: 12px;
}

.catalog-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 480px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.ces-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-dim);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.ces-icon .icon {
  width: 26px;
  height: 26px;
}
.catalog-empty-state h3 {
  font-size: 19px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 8px;
}
.catalog-empty-state p {
  font-size: 14.5px;
  color: var(--text-soft);
  margin-bottom: 20px;
  line-height: 1.5;
}

.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; padding: 9px 15px; border-radius: 100px; background: #fff; border: 1px solid var(--border); color: var(--text-soft); transition: all .16s; }
.filter-tab .icon { width: 16px; height: 16px; }
.filter-tab:hover { color: var(--text); border-color: var(--border-2); }
.filter-tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -10px rgba(109,77,242,.7); }

.duration-switch { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 100px; padding: 4px; }
.duration-switch button { position: relative; font-size: 13.5px; font-weight: 650; padding: 8px 14px; border-radius: 100px; color: var(--text-soft); transition: color .2s, background .2s, box-shadow .2s; }
.duration-switch button.active { color: #fff; background: var(--grad); box-shadow: 0 4px 10px rgba(99,102,241,.2); }
.duration-switch button .ds-note { position: absolute; top: -8px; right: -4px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; background: var(--success); color: #fff; padding: 2px 6px; border-radius: 100px; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: var(--shadow); }
.pc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.pc-logo { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; background: var(--bg-soft); border: 1px solid var(--border); }
.pc-logo img { width: 30px; height: 30px; }
.pc-logo .fallback { font-weight: 800; font-size: 22px; color: var(--brand); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 100px; letter-spacing: .01em; }
.badge .icon { width: 12px; height: 12px; }
.badge--hot   { background: #FFF1EC; color: #E0612F; }
.badge--new   { background: #EEF0FF; color: #5A56E0; }
.badge--value { background: #E9F8EF; color: #12A150; }
.badge--low   { background: #FFF6E5; color: #C98A12; }

.pc-name { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.pc-tagline { font-size: 13px; color: var(--text-soft); margin: 5px 0 11px; min-height: 36px; }
.pc-rating { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-soft); margin-bottom: 11px; }
.pc-rating .stars { display: inline-flex; color: var(--gold); }
.pc-rating .stars .icon { width: 13px; height: 13px; }
.stars-compact { display: none; }
.pc-delivery { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dim); margin-bottom: 14px; }
.pc-delivery .icon { width: 13px; height: 13px; color: var(--success); }
.pc-bottom { margin-top: auto; }
.pc-price-row { display: flex; align-items: baseline; gap: 7px; }
.pc-price { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pc-original { font-size: 13px; color: var(--text-dim); text-decoration: line-through; }
.pc-save { font-size: 11.5px; font-weight: 700; color: var(--success); margin: 3px 0 13px; }
.pc-add { width: 100%; }

/* ---------------- Steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.step-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand-ink); border: 1px solid rgba(99,102,241,.16); margin-bottom: 16px; }
.step-ico .icon { width: 24px; height: 24px; }
.step .num { position: absolute; top: 22px; right: 24px; font-size: 30px; font-weight: 800; color: var(--bg-tint); letter-spacing: -.04em; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.step p { color: var(--text-soft); font-size: 14.5px; }
.step-arrow { position: absolute; right: -20px; top: 50%; transform: translateY(-50%); color: var(--border-2); z-index: 2; }
.step-arrow .icon { width: 22px; height: 22px; }

/* ---------------- Why ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform .2s, box-shadow .2s; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand-ink); margin-bottom: 14px; }
.why-ico .icon { width: 23px; height: 23px; }
.why-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.why-card p { color: var(--text-soft); font-size: 14px; }

/* ---------------- Reviews ---------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.review-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; flex-shrink: 0; }
.review-name { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.review-meta { font-size: 12px; color: var(--text-dim); }
.verified { display: inline-flex; align-items: center; gap: 3px; color: var(--success); font-size: 11.5px; font-weight: 600; }
.verified .icon { width: 13px; height: 13px; }
.review-stars { display: inline-flex; color: var(--gold); margin-bottom: 9px; }
.review-stars .icon { width: 15px; height: 15px; }
.review-text { font-size: 14px; color: var(--text-soft); }
.review-product { margin-top: 13px; font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.review-product img { width: 16px; height: 16px; }

.reviews-actions { display: flex; justify-content: center; margin-top: 32px; }

/* Review form (modal) */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.input, .textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-2); border-radius: 11px;
  font-family: inherit; font-size: 14.5px; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,.14); }
.textarea { resize: vertical; min-height: 96px; }
.star-input { display: inline-flex; gap: 4px; }
.star-input button { color: var(--border-2); transition: color .15s, transform .15s; }
.star-input button .icon { width: 26px; height: 26px; }
.star-input button:hover { transform: scale(1.12); }
.star-input button.on { color: var(--gold); }

/* ---------------- Promo capture ---------------- */
.promo { background: var(--grad); border-radius: var(--radius-lg); padding: 50px; color: #fff; position: relative; overflow: hidden; }
.promo::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; background: rgba(255,255,255,.12); border-radius: 50%; }
.promo-inner { position: relative; z-index: 1; max-width: 560px; }
.promo .icon-badge { width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: 18px; }
.promo .icon-badge .icon { width: 26px; height: 26px; }
.promo h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.promo p { color: rgba(255,255,255,.86); font-size: 16px; margin: 12px 0 26px; }
.promo-form { display: flex; gap: 10px; flex-wrap: wrap; }
.promo-form .input { flex: 1; min-width: 220px; border: none; padding: 15px 18px; }
.promo-form .btn { background: #fff; color: var(--brand-ink); }
.promo-form .btn:hover { background: #EEF2FF; }
.promo-note { margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,.72); }
.promo-success { display: none; align-items: center; gap: 14px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); border-radius: 14px; padding: 18px 20px; }
.promo-success.show { display: flex; }
.promo-success .code { font-size: 22px; font-weight: 800; letter-spacing: .08em; background: #fff; color: var(--brand-ink); padding: 8px 16px; border-radius: 10px; }

/* ---------------- FAQ ---------------- */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 11px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item.open { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; font-size: 15.5px; font-weight: 650; text-align: left; }
.faq-q .icon { width: 20px; height: 20px; color: var(--brand); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--text-soft); font-size: 14.5px; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-about p { color: var(--text-soft); font-size: 14px; margin: 14px 0; max-width: 320px; }
.footer-col h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-soft); font-size: 14px; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--brand-ink); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-dim); }
.footer-bottom .secure { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom .secure .icon { width: 15px; height: 15px; }

/* ---------------- Cart drawer ---------------- */
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(20,21,43,.4); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 210; width: min(420px, 100vw); background: #fff; border-left: 1px solid var(--border); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); }
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-size: 18px; font-weight: 700; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-empty { text-align: center; padding: 56px 20px; color: var(--text-dim); }
.cart-empty .icon { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--border-2); }
.cart-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item-logo { width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--border); }
.cart-item-logo img { width: 26px; height: 26px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info b { font-size: 14px; font-weight: 650; }
.cart-item-info small { display: block; color: var(--text-dim); font-size: 12px; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty button { width: 26px; height: 26px; border: 1px solid var(--border-2); border-radius: 8px; display: grid; place-items: center; color: var(--text-soft); transition: border-color .2s, color .2s; }
.qty button:hover { border-color: var(--brand); color: var(--brand-ink); }
.qty button .icon { width: 14px; height: 14px; }
.qty span { font-size: 13.5px; min-width: 18px; text-align: center; font-weight: 600; }
.cart-item-right { text-align: right; }
.cart-item-price { font-weight: 700; color: var(--brand-ink); font-size: 14.5px; }
.cart-item-remove { color: var(--text-dim); margin-top: 8px; transition: color .2s; }
.cart-item-remove:hover { color: var(--danger); }
.cart-item-remove .icon { width: 16px; height: 16px; }
.cart-footer { padding: 18px 22px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.cart-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-soft); margin-bottom: 8px; }
.cart-line .save { color: var(--success); font-weight: 650; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 16px; }
.cart-total b { font-size: 23px; font-weight: 800; }
.cart-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--text-dim); margin-top: 11px; }
.cart-secure .icon { width: 14px; height: 14px; }

/* ---------------- Modal (product detail / forms) ---------------- */
.modal-overlay { position: fixed; inset: 0; z-index: 220; background: rgba(20,21,43,.5); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { width: 100%; max-width: 760px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: transform .28s cubic-bezier(.34,1.3,.6,1); }
.modal-overlay.open .modal { transform: none; }
.modal-sm { max-width: 480px; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 3; }
.modal-pad { padding: 28px; }

.pd-head { display: flex; gap: 18px; align-items: flex-start; padding: 28px 28px 0; }
.pd-logo { width: 78px; height: 78px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0; background: var(--bg-soft); border: 1px solid var(--border); }
.pd-logo img { width: 46px; height: 46px; }
.pd-logo .fallback { font-weight: 800; font-size: 34px; color: var(--brand); }
.pd-head-info { flex: 1; }
.pd-name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.pd-rating { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-soft); margin-top: 6px; }
.pd-rating .stars { display: inline-flex; color: var(--gold); }
.pd-rating .stars .icon { width: 15px; height: 15px; }
.pd-desc { color: var(--text-soft); font-size: 15px; padding: 18px 28px 0; }
.pd-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; padding: 18px 28px 0; }
.pd-feature { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); }
.pd-feature .icon { width: 17px; height: 17px; color: var(--success); }
.pd-buy { margin: 24px 28px 28px; padding: 20px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.pd-buy-label { font-size: 13px; font-weight: 650; color: var(--text-soft); margin-bottom: 9px; }
.pd-durations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.pd-dur { position: relative; padding: 12px 6px; border: 1.5px solid var(--border-2); border-radius: 12px; text-align: center; transition: border-color .18s, background .18s; }
.pd-dur b { display: block; font-size: 14px; font-weight: 700; }
.pd-dur small { font-size: 11px; color: var(--text-dim); }
.pd-dur.active { border-color: var(--brand); background: var(--bg-tint); }
.pd-dur .ds-note { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 8.5px; font-weight: 800; text-transform: uppercase; background: var(--success); color: #fff; padding: 2px 6px; border-radius: 100px; white-space: nowrap; }
.pd-buy-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pd-price-block .row { display: flex; align-items: baseline; gap: 8px; }
.pd-price-block .price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.pd-price-block .orig { font-size: 15px; color: var(--text-dim); text-decoration: line-through; }
.pd-price-block .save { font-size: 12.5px; font-weight: 700; color: var(--success); }
.pd-buy-actions { display: flex; align-items: center; gap: 10px; }
.pd-qty { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-2); border-radius: 11px; padding: 5px; }
.pd-qty button { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--text-soft); }
.pd-qty button:hover { background: #fff; color: var(--brand-ink); }
.pd-qty button .icon { width: 15px; height: 15px; }
.pd-qty span { min-width: 22px; text-align: center; font-weight: 700; }

.modal-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.modal-subtitle { color: var(--text-soft); font-size: 14.5px; margin-bottom: 20px; }

/* ---------------- Toast ---------------- */
/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(120px) scale(0.96);
  z-index: 3000;
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 14px 20px 14px 14px;
  min-width: 320px; max-width: 440px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.1);
  transition: transform .42s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
  opacity: 0;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.toast .toast-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.toast .toast-ico .icon { width: 18px; height: 18px; }
.toast b { font-size: 14px; font-weight: 700; color: var(--text); display: block; }
.toast small { display: block; color: var(--text-soft); font-size: 12.5px; margin-top: 1px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Cart Floating Bar (Island) ---- */
.cart-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 2400;
  width: calc(100% - 32px);
  max-width: 600px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 99px;
  box-shadow: 0 20px 48px -10px rgba(99, 102, 241, 0.25), 0 8px 16px -4px rgba(20, 21, 43, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}
.cart-bar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cart-bar.cb-bump {
  animation: cbBump 0.5s ease-out;
}
@keyframes cbBump {
  0% { transform: translateX(-50%) translateY(0) scale(1); }
  25% { transform: translateX(-50%) translateY(-10px) scale(1.04); }
  50% { transform: translateX(-50%) translateY(4px) scale(0.97); }
  75% { transform: translateX(-50%) translateY(-2px) scale(1.01); }
  100% { transform: translateX(-50%) translateY(0) scale(1); }
}
.cb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 20px;
  gap: 16px;
}
.cb-left {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  min-width: 0;
  flex: 1;
}
.cb-cart-ico {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--brand);
  flex-shrink: 0;
}
.cb-cart-ico .icon {
  width: 20px;
  height: 20px;
}
.cb-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}
.cb-info {
  min-width: 0;
}
.cb-title {
  display: block;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--text);
  line-height: 1.2;
}
.cb-summary {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.cb-logos {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.cb-logo-wrap {
  margin-left: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.cb-logo-wrap:first-child {
  margin-left: 0;
}
.cb-logo-item {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.cb-logo-wrap .fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  background: var(--brand);
}
.cb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 0 20px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.cb-btn .icon {
  width: 16px;
  height: 16px;
}
.cb-btn--ghost {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
}
.cb-btn--ghost:hover {
  background: var(--bg-tint);
  border-color: var(--border-2);
}
.cb-btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.cb-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}
.cb-btn--primary:active {
  transform: translateY(0);
}
@media (max-width: 520px) {
  .cart-bar {
    bottom: 16px;
    border-radius: 20px;
    width: calc(100% - 24px);
  }
  .cb-inner {
    padding: 10px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .cb-left {
    width: 100%;
    flex: none;
  }
  .cb-logos {
    display: none;
  }
  .cb-actions {
    width: 100%;
    gap: 8px;
  }
  .cb-btn {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
}

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Mobile menu ---------------- */
.mobile-menu { position: fixed; inset: 0; z-index: 250; background: #fff; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; }
.mobile-menu.open { transform: translateX(0); }
.mm-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.mm-body { padding: 16px 22px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.mm-body > a { font-size: 17px; font-weight: 600; padding: 14px 14px; border-radius: 12px; color: var(--text); }
.mm-body > a:hover { background: var(--bg-soft); }
.mm-section { margin-top: 18px; }
.mm-section h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); margin: 0 14px 8px; }
.mm-options { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 8px; }
.mm-opt { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border-2); border-radius: 100px; font-size: 14px; font-weight: 600; color: var(--text-soft); cursor: pointer; }
.mm-opt.active { background: var(--bg-tint); color: var(--brand-ink); border-color: transparent; }

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

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-visual { max-width: 440px; margin: 0 auto; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav { height: 60px; gap: 12px; }
  .nav-links, .nav-right .dd, .nav-right .btn-cta-desktop { display: none; }
  .burger { display: grid; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pc-tagline { min-height: 0; display: none; }
  .pc-logo { width: 46px; height: 46px; }
  .pc-name { font-size: 15px; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .step .num { font-size: 26px; }
  .promo { padding: 32px 24px; }
  .pd-features { grid-template-columns: 1fr; }
  .pd-durations { grid-template-columns: repeat(2, 1fr); }
  .pd-head { flex-direction: column; }
  .pd-buy-bottom { flex-direction: column; align-items: stretch; }
  .pd-buy-actions { justify-content: space-between; }
  .catalog-toolbar { gap: 14px; }
  .toolbar-left { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; width: 100%; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { flex-shrink: 0; }
  .duration-switch { width: 100%; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* --- Hero: swipeable mobile --- */
  .hero { padding: 40px 0 16px; }
  .hero-grid { display: flex !important; flex-direction: column !important; gap: 0 !important; }
  .hero-copy { display: contents !important; }
  .hero-eyebrow { order: 1; margin-bottom: 0 !important; }
  .hero-visual {
    order: 2;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 0;
    overflow: visible !important;
  }
  .hero h1 { order: 3; }
  .hero .lead { order: 4; margin: 10px 0 14px; font-size: 16.5px; }
  .hero-cta { order: 5; }
  .hero-proof { order: 6; margin-top: 14px; }
  .section-head { margin-bottom: 20px; }
  .marquee { padding: 14px 0; }
  .section#catalog { padding-top: 24px; }
  .hero-cards-3d {
    display: block !important;
    height: 375px;
    transform: none;
    margin: 10px auto 8px;
    max-width: 290px;
    width: 100%;
    perspective: none;
    position: relative;
  }
  .hero-cards-3d .card-3d {
    position: absolute;
    width: 290px !important;
    height: 350px !important;
    left: 50% !important;
    background: #ffffff !important; /* Fully opaque on mobile to prevent overlay text bleed-through */
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(20, 21, 43, 0.08);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease, border-color 0.3s, box-shadow 0.4s;
    display: flex !important;
  }
  .hero-cards-3d .card-3d.pos-left {
    top: 5px;
    z-index: 1;
    opacity: 0.65;
    transform: translateX(-225px) rotate(-6deg) scale(0.85) !important;
  }
  .hero-cards-3d .card-3d.pos-right {
    top: 5px;
    z-index: 2;
    opacity: 0.75;
    transform: translateX(-65px) rotate(6deg) scale(0.85) !important;
  }
  .hero-cards-3d .card-3d.pos-center {
    top: 15px;
    z-index: 3;
    opacity: 1;
    transform: translateX(-50%) scale(1) !important;
  }

  /* Brand specifics based on position */
  .hero-cards-3d .card-3d.pos-left.card-3d--spotify,
  .hero-cards-3d .card-3d.pos-right.card-3d--spotify,
  .hero-cards-3d .card-3d.pos-center.card-3d--spotify {
    border-color: rgba(29, 185, 84, 0.18);
  }
  .hero-cards-3d .card-3d.pos-left.card-3d--youtube,
  .hero-cards-3d .card-3d.pos-right.card-3d--youtube,
  .hero-cards-3d .card-3d.pos-center.card-3d--youtube {
    border-color: rgba(255, 0, 51, 0.18);
  }
  .hero-cards-3d .card-3d.pos-left.card-3d--gemini,
  .hero-cards-3d .card-3d.pos-right.card-3d--gemini,
  .hero-cards-3d .card-3d.pos-center.card-3d--gemini {
    border-color: rgba(109, 77, 242, 0.25);
  }

  /* Active center card premium shadows */
  .hero-cards-3d .card-3d.pos-center.card-3d--spotify {
    box-shadow: 0 20px 45px -12px rgba(29, 185, 84, 0.22), var(--shadow-lg) !important;
    border-color: rgba(29, 185, 84, 0.3) !important;
  }
  .hero-cards-3d .card-3d.pos-center.card-3d--youtube {
    box-shadow: 0 20px 45px -12px rgba(255, 0, 51, 0.22), var(--shadow-lg) !important;
    border-color: rgba(255, 0, 51, 0.3) !important;
  }
  .hero-cards-3d .card-3d.pos-center.card-3d--gemini {
    box-shadow: 0 20px 45px -12px rgba(109, 77, 242, 0.22), var(--shadow-lg) !important;
    border-color: rgba(109, 77, 242, 0.35) !important;
  }

  /* Tap press effect on center card */
  .hero-cards-3d .card-3d.pos-center:active {
    transform: translateX(-50%) translateY(-6px) scale(1.02) !important;
    box-shadow: 0 25px 50px -10px rgba(109, 77, 242, 0.28), var(--shadow-lg) !important;
  }


  .fc-1, .fc-2 { display: none; }

  /* Увеличение line-height для заголовка во избежание наложения строк на мобильных */
  .hero h1 { line-height: 1.18; }

  .search-box { width: 100%; }
  .search-box:focus-within { width: 100%; }

  /* Горизонтальный скролл на мобильных для блоков ниже каталога (Чому ми / Відгуки) */
  .why-grid, .reviews-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 10px;
    scroll-padding-right: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -10px;
    padding: 0 10px 12px;
  }
  .why-grid::-webkit-scrollbar, .reviews-grid::-webkit-scrollbar {
    display: none;
  }
  .why-card, .review-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }
  .hero-bottom-strip {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { padding: 14px 12px; border-radius: 14px; min-height: 0; }
  .product-card:hover { transform: none; }
  .pc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
  .pc-logo { width: 44px; height: 44px; border-radius: 11px; }
  .pc-logo img { width: 26px; height: 26px; }
  .pc-logo .fallback { font-size: 19px; }
  .badge { font-size: 9px; padding: 3px 7px; gap: 3px; }
  .badge .icon { width: 10px; height: 10px; }
  .pc-name { font-size: 14px; line-height: 1.3; margin-bottom: 4px; font-weight: 700; }
  .stars-stars { display: none !important; }
  .stars-compact { display: inline-flex !important; align-items: center; gap: 3px; font-size: 11px; margin-bottom: 5px; }
  .stars-compact .icon { width: 11px; height: 11px; color: var(--gold); }
  .pc-delivery { display: inline-flex !important; margin-bottom: 8px; font-size: 10px; gap: 4px; }
  .pc-delivery .icon { width: 12px; height: 12px; }
  .pc-tagline { display: none !important; }
  .pc-bottom { display: block; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
  .pc-price-row { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
  .pc-price { font-size: 15.5px; font-weight: 800; }
  .pc-original { font-size: 11px; text-decoration: line-through; color: var(--text-dim); }
  .pc-save { display: block !important; margin: 3px 0 8px; font-size: 9.5px; font-weight: 700; color: var(--success); line-height: 1.2; }
  .btn.pc-add {
    width: 100%;
    height: 36px;
    padding: 0 8px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin: 2px 0 0;
  }
  .btn.pc-add:hover { transform: none !important; }
  .btn.pc-add .icon { width: 13px; height: 13px; margin-right: 5px; color: #fff; }
  .pc-add-text { display: inline !important; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .modal-pad { padding: 22px; }
  .pd-head { padding: 22px 22px 0; }
  .pd-desc, .pd-features { padding-left: 22px; padding-right: 22px; }
  .pd-buy { margin: 20px 22px 22px; }
  .hero-proof { gap: 11px; }
  .proof-avatar { width: 34px; height: 34px; }
  .fc-1, .fc-2 { display: none; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero h1 .grad, .btn--shine::after, .eyebrow-pulse::after, .floating-chip { animation: none; }
  .hero-copy > *, .hero-visual { opacity: 1; transform: none; animation: none; }
}

/* User Profile & Checkout Custom Styling */
/* ======================================================
   PROFILE MODAL — новый дизайн
   ====================================================== */
#profileModal {
  display: flex; flex-direction: column;
  max-height: 90vh; overflow: hidden;
  padding: 0 !important;
}

/* --- Шапка профиля --- */
.pm-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-soft);
  position: relative;
}
.pm-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800;
  flex-shrink: 0; letter-spacing: 0.5px;
}
.pm-header-info { flex: 1; min-width: 0; }
.pm-header-name { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.pm-header-email { display: block; font-size: 11.5px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-logout-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--border-2);
  border-radius: 8px; padding: 5px 10px;
  font-size: 12px; font-weight: 600; color: var(--text-soft);
  cursor: pointer; transition: all .18s; flex-shrink: 0;
}
.pm-logout-btn .icon { width: 12px; height: 12px; }
.pm-logout-btn:hover { color: var(--danger); border-color: var(--danger); background: rgba(239,68,68,.05); }
.pm-close { position: absolute; top: 12px; right: 12px; }

/* --- Тело --- */
.pm-body {
  flex: 1; overflow-y: auto; padding: 16px 18px 20px;
  scrollbar-width: thin; scrollbar-color: var(--border-2) transparent;
}
.pm-body::-webkit-scrollbar { width: 4px; }
.pm-body::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }

/* --- Лоадер --- */
.pm-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 50px 20px; color: var(--text-dim); font-size: 13.5px; }
.pm-spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.pm-spinner-sm {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
}
.pm-error { text-align: center; padding: 30px 20px; color: var(--danger); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* --- Пустой кабинет --- */
.pm-empty { text-align: center; padding: 50px 20px 30px; }
.pm-empty-icon { width: 56px; height: 56px; margin: 0 auto 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; display: grid; place-items: center; color: var(--text-dim); }
.pm-empty-icon .icon { width: 26px; height: 26px; }
.pm-empty-title { font-size: 14px; color: var(--text-soft); margin-bottom: 18px; }

/* --- Заголовок списка --- */
.pm-orders-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pm-orders-title { font-size: 14px; font-weight: 700; color: var(--text); }
.pm-orders-count { background: var(--bg-soft); border: 1px solid var(--border-2); border-radius: 20px; padding: 1px 9px; font-size: 11.5px; font-weight: 700; color: var(--brand); }
.pm-orders-list { display: flex; flex-direction: column; gap: 12px; }

/* --- Карточка заказа --- */
.pm-order-card {
  border: 1px solid var(--border-2);
  border-radius: 14px;
  background: var(--bg-soft);
  overflow: hidden;
  transition: box-shadow .18s;
}
.pm-order-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.09); }
.pm-order-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.pm-order-num-wrap { display: flex; flex-direction: column; gap: 1px; }
.pm-order-num { font-size: 14px; font-weight: 800; color: var(--text); }
.pm-order-date { font-size: 11px; color: var(--text-dim); }

/* Статус-чипы */
.pm-status-chip { display: inline-flex; align-items: center; border-radius: 20px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pms-pending    { background: rgba(245,158,11,.12); color: #D97706; }
.pms-paid       { background: rgba(16,185,129,.12);  color: #059669; }
.pms-processing { background: rgba(99,102,241,.12);  color: var(--brand); }
.pms-delivered,
.pms-completed  { background: rgba(16,185,129,.15);  color: #047857; }
.pms-refunded   { background: rgba(107,114,128,.12); color: var(--text-soft); }

/* Товары в заказе */
.pm-items { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.pm-item { display: flex; align-items: center; gap: 10px; }
.pm-item-logo { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; flex-shrink: 0; background: var(--bg); padding: 3px; border: 1px solid var(--border); }
.pm-item-logo--fallback { width: 28px; height: 28px; border-radius: 6px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.pm-item-info { flex: 1; min-width: 0; }
.pm-item-name { display: block; font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-item-sub { font-size: 11px; color: var(--text-dim); }
.pm-item-price { font-size: 13px; font-weight: 700; color: var(--brand); flex-shrink: 0; }

/* Итого */
.pm-order-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 12px;
  font-size: 13px; color: var(--text-soft);
}
.pm-order-total b { font-size: 14.5px; font-weight: 800; color: var(--text); }

/* Ключи */
.pm-keys {
  margin: 0 10px 12px;
  background: var(--bg);
  border: 1px dashed var(--border-2);
  border-radius: 10px;
  padding: 10px 12px;
}
.pm-keys-title { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--text-soft); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.pm-keys-title .icon { width: 13px; height: 13px; color: var(--brand); }
.pm-key-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pm-key-row:last-child { margin-bottom: 0; }
.pm-key-dur { flex-shrink: 0; background: rgba(99,102,241,.1); color: var(--brand); border-radius: 5px; padding: 2px 7px; font-size: 11px; font-weight: 700; }
.pm-key-val { flex: 1; font-family: monospace; font-size: 12px; font-weight: 600; color: var(--brand-ink); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-copy-btn { flex-shrink: 0; background: none; border: 1px solid var(--border-2); border-radius: 6px; padding: 5px; cursor: pointer; color: var(--brand); display: grid; place-items: center; transition: all .15s; }
.pm-copy-btn .icon { width: 13px; height: 13px; }
.pm-copy-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: scale(1.05); }

/* Статус-бары */
.pm-status-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 0 10px 12px; border-radius: 10px;
  padding: 10px 12px; font-size: 12.5px; font-weight: 500;
}
.pm-status-bar .icon { width: 15px; height: 15px; flex-shrink: 0; }
.pm-status-bar--processing { background: rgba(99,102,241,.07); color: var(--brand); border: 1px solid rgba(99,102,241,.15); }
.pm-status-bar--pending { background: rgba(245,158,11,.07); color: #D97706; border: 1px solid rgba(245,158,11,.2); }

/* --- Экран авторизации --- */
.pm-auth {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 24px 28px; text-align: center;
}
.pm-auth-icon {
  width: 60px; height: 60px; border-radius: 18px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(99,102,241,.3);
}
.pm-auth-icon .icon { width: 28px; height: 28px; }
.pm-auth-title { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.pm-auth-sub { font-size: 13.5px; color: var(--text-soft); margin-bottom: 24px; line-height: 1.5; }
.pm-auth-form { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.pm-input-wrap { position: relative; }
.pm-input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.pm-input-icon .icon { width: 16px; height: 16px; }
.pm-input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-soft); border: 1.5px solid var(--border-2);
  border-radius: 12px; padding: 13px 14px 13px 38px;
  font-size: 14px; color: var(--text); outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.pm-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.pm-otp-input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-soft); border: 2px solid var(--border-2);
  border-radius: 14px; padding: 16px;
  font-size: 28px; font-weight: 800; letter-spacing: 10px; text-align: center;
  color: var(--brand-ink); outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.pm-otp-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.pm-otp-input::placeholder { color: var(--text-dim); letter-spacing: 4px; font-size: 22px; }
.pm-auth-btn { border-radius: 12px !important; padding: 14px !important; font-size: 15px !important; font-weight: 700 !important; }
.pm-back-btn { color: var(--text-soft) !important; font-size: 13px !important; }
.pm-auth-hint { font-size: 12px; color: var(--text-dim); margin-top: 12px; display: flex; align-items: center; gap: 5px; }
.pm-auth-hint .icon { width: 12px; height: 12px; color: #10b981; flex-shrink: 0; }

/* old .profile-* and .order-card kept for checkout modal compatibility */
.profile-user-info { display: none; }
.profile-email { font-weight: 700; color: var(--brand-ink); font-size: 14.5px; }
.order-list { display: flex; flex-direction: column; gap: 14px; }
.order-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: var(--bg-soft); }
.order-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.order-card-num { font-weight: 700; font-size: 14px; }
.order-card-date { font-size: 11px; color: var(--text-dim); }
.order-card-items { font-size: 13px; margin-bottom: 8px; color: var(--text-soft); }
.order-card-item { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid rgba(0,0,0,0.02); }
.order-card-keys { margin-top: 10px; padding: 10px; background: var(--bg); border: 1px dashed var(--border-2); border-radius: 8px; }
.order-card-key-title { font-size: 11.5px; font-weight: 700; color: var(--text-soft); margin-bottom: 6px; }
.order-card-key-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: monospace; font-size: 11px; margin-bottom: 6px; }
.order-card-key-item:last-child { margin-bottom: 0; }
.order-card-key-val { background: var(--bg-soft); padding: 4px 8px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; border: 1px solid var(--border); color: var(--brand-ink); font-weight: 600; }
.btn-copy { border: none; background: none; cursor: pointer; color: var(--brand); padding: 4px; display: grid; place-items: center; transition: color 0.2s, transform 0.1s; }
.btn-copy:hover { color: var(--brand-ink); transform: scale(1.1); }
.btn-copy:active { transform: scale(0.95); }
.checkout-summary { margin-bottom: 20px; padding: 14px; background: var(--bg-soft); border-radius: var(--radius); border: 1px solid var(--border); }
.checkout-summary-title { font-size: 13px; font-weight: 750; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-soft); }
.checkout-summary-item { display: flex; justify-content: space-between; font-size: 13.5px; padding: 4px 0; color: var(--text); }
.checkout-summary-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 800; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; color: var(--brand-ink); }
.payment-methods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 20px; }
.payment-method-card { border: 1.5px solid var(--border-2); border-radius: 10px; padding: 10px 4px; text-align: center; cursor: pointer; font-size: 11.5px; font-weight: 650; color: var(--text-soft); transition: all 0.2s; }
.payment-method-card:hover { border-color: var(--border-2); color: var(--text); }
.payment-method-card.active { border-color: var(--brand); background: var(--bg-tint); color: var(--brand-ink); }
.order-status-badge { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 100px; text-transform: capitalize; }
.status-pending { background: #FFF6E5; color: #C98A12; }
.status-paid { background: #EEF0FF; color: #5A56E0; }
.status-processing { background: #FFF1EC; color: #E0612F; }
.status-delivered, .status-completed { background: #E9F8EF; color: #12A150; }
.status-refunded { background: #FCE8E6; color: #E5484D; }

/* Prevent auto-zooming on focus in iOS and other mobile devices */
@media screen and (max-width: 768px) {
  .input, .textarea {
    font-size: 16px !important;
  }
}


/* Plan: unavailable duration button */
.pd-dur--disabled{opacity:.45;cursor:not-allowed;background:var(--bg-soft);}
.pd-dur--disabled b,.pd-dur--disabled small{color:var(--text-dim)!important;}
.pd-dur-unavail{display:block;font-size:9.5px;color:var(--danger);font-weight:700;margin-top:2px;}
