/* ============================================
   STORE v3 — Multi-Tier Design System
   ============================================ */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --bg: #0C0F14;
  --bg2: #101319;
  --card: #141A22;
  --card2: #1a212b;
  --brd: #1F2A36;
  --txt: #E8EAED;
  --txt2: #A3A8B0;
  --txt3: #757B85;
  --blue: #2A9D8F;
  --blue2: #21867A;
  --green: #2A9D8F;
  --green2: #21867A;
  --purple: #C9A66B;
  --orange: #C9A66B;
  --orange2: #B5925A;
  --red: #ef4444;
  --indigo: #1F2A36;
  --cyan: #2A9D8F;
  --emerald: #2A9D8F;
  --rose: #C9A66B;
  --r: 16px;
  --t: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font); color: var(--txt); background: var(--bg);
  min-height: 100vh; overflow-x: hidden; line-height: 1.6;
}

body.light {
  --bg: #f5f7fb;
  --bg2: #eef2f7;
  --card: #ffffff;
  --card2: #f7f9fc;
  --brd: #d9e1ec;
  --txt: #0f1724;
  --txt2: #4f5f73;
  --txt3: #6d7a8a;
}

/* BG */
#particleCanvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.8;
}
.bg-noise {
  position: fixed; inset: 0; opacity: 0.35; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}
body.light .bg-noise { opacity: 0.12; }
.bg-orb { display: none; }
.bg-orb--1 { display: none; }
.bg-orb--2 { display: none; }

/* LAYOUT */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }

/* HEADER */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 15, 20, 0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--brd);
}
body.light .hdr {
  background: rgba(245, 247, 251, 0.88);
}
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 16px; }
.hdr__logo { display: flex; align-items: center; gap: 10px; color: var(--txt); text-decoration: none; font-weight: 800; font-size: 1.15rem; white-space: nowrap; min-width: 0; }
.hdr__logo:hover { color: var(--txt); }
.sl-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #f5f7fa;
}
.sl-brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.22), rgba(201, 166, 107, 0.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 6px 18px rgba(42, 157, 143, 0.16);
}
.sl-brand__letters {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  transform: translateX(-0.5px);
}
.sl-brand__word {
  font-family: var(--font);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  color: currentColor;
}

/* Общий стиль для всех полей ввода */
input:not([type="checkbox"]):not([type="radio"]), .input {
  width: 100%; height: 56px; background: rgba(0, 0, 0, 0.4) !important; 
  border: 1px solid rgba(255, 255, 255, 0.1) !important; border-radius: 14px !important;
  padding: 0 24px; color: #fff !important; font-family: var(--font); font-size: 1.1rem !important;
  transition: all 0.3s ease !important; outline: none !important;
}
body.light input:not([type="checkbox"]):not([type="radio"]),
body.light .input {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(15, 23, 36, 0.1) !important;
  color: #0f1724 !important;
}
input:focus, .input:focus { 
  border-color: var(--blue) !important; 
  background: rgba(59, 130, 246, 0.08) !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3) !important; 
}
input::placeholder { color: rgba(255, 255, 255, 0.3); }
body.light input::placeholder,
body.light .input::placeholder { color: rgba(15, 23, 36, 0.35); }

.hdr__search { flex: 1; max-width: 400px; position: relative; display: flex; align-items: center; }
.hdr__search svg { position: absolute; left: 26px; width: 18px; height: 18px; color: var(--txt3); pointer-events: none; z-index: 5; }
.hdr__search input { padding-left: 72px !important; border-radius: 100px !important; height: 44px !important; }

.search-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: rgba(23, 23, 23, 0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
  padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  display: flex; flex-direction: column; gap: 4px; z-index: 1000;
  opacity: 0; pointer-events: none; transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}
body.light .search-dropdown {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 36, 0.08);
  box-shadow: 0 20px 50px rgba(20, 34, 54, 0.12);
}
.search-dropdown.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.sd-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 12px; color: var(--txt); cursor: pointer; transition: background 0.2s;
}
.sd-item:hover, .sd-item.active { background: rgba(255, 255, 255, 0.08); }
body.light .sd-item:hover,
body.light .sd-item.active { background: rgba(15, 23, 36, 0.06); }
.sd-item__icon {
  font-size: 1.2rem; width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center;
}
body.light .sd-item__icon { background: rgba(15, 23, 36, 0.06); }
.sd-item__title { font-weight: 600; font-size: 0.9rem; flex: 1; }
.sd-item__tag { font-size: 0.7rem; color: var(--green); background: rgba(16,185,129,0.1); padding: 3px 8px; border-radius: 100px; font-weight: 700; white-space: nowrap; }
.sd-empty { padding: 12px; text-align: center; color: var(--txt3); font-size: 0.85rem; }


.hdr__actions { display: flex; align-items: center; gap: 12px; }
.hdr__cart {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.05);
  color: var(--txt); transition: all var(--t); text-decoration: none; border: 1px solid transparent;
}
.hdr__cart:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.1); transform: translateY(-2px); }
.hdr__cart svg { width: 18px; height: 18px; }
.hdr__cart-badge {
  position: absolute; top: -6px; right: -6px; background: var(--green); color: #fff;
  font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}

.hdr__action-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 0 14px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,0.05); color: var(--txt);
  text-decoration: none; border: 1px solid var(--brd);
  font-size: 0.82rem; font-weight: 600; transition: all var(--t);
}
.hdr__action-btn:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); transform: translateY(-2px);
}
.hdr__action-btn svg { width: 18px; height: 18px; }

/* ICON BUTTONS */
.hdr__icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,0.05); color: var(--txt);
  border: 1px solid var(--brd); cursor: pointer; transition: all var(--t);
  text-decoration: none;
}
body.light .hdr__icon-btn {
  background: rgba(255,255,255,0.78);
}
.hdr__icon-btn:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); transform: translateY(-2px); color: var(--blue);
}
body.light .hdr__icon-btn:hover {
  background: rgba(255,255,255,1);
  border-color: rgba(15, 23, 36, 0.12);
}
.hdr__icon-btn svg { width: 20px; height: 20px; }

body.light .sl-brand { color: #0e1116; }
body.light .sl-brand__mark {
  background: linear-gradient(135deg, rgba(14, 17, 22, 0.06), rgba(14, 17, 22, 0.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 4px 12px rgba(14, 17, 22, 0.08);
}

/* AURORA TEXT - Corporate Premium Version */
.aurora {
  color: #fff;
}

/* ============================================
   AFFILIATE SECTION
   ============================================ */
.sec--affiliate {
  padding: 80px 0 100px;
}

.affiliate-box {
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.affiliate-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.aff__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.aff__desc {
  color: var(--txt2);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.aff__features {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.aff__feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 12px;
}

.aff__btn {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: 12px;
}

/* BUTTONS */
.btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: none; color: var(--txt2);
  font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; padding: 0 16px 0 0; margin-bottom: 24px;
  transition: all var(--t); text-decoration: none;
}
.btn-back:hover { color: #fff; transform: translateX(-4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 24px; border-radius: 12px; font-family: var(--font);
  font-size: 0.95rem; font-weight: 600; text-decoration: none; border: none;
  cursor: pointer; transition: all var(--t); line-height: 1; white-space: nowrap;
}
.btn--primary, .btn--blue, .btn--green { 
  background: var(--blue); color: #fff; 
  box-shadow: 0 10px 24px rgba(42, 157, 143, 0.18), inset 0 1px 0 rgba(255,255,255,0.08); 
}
.btn--primary:hover, .btn--blue:hover, .btn--green:hover { 
  background: var(--blue2); transform: translateY(-3px); 
  box-shadow: 0 16px 34px rgba(42, 157, 143, 0.28), inset 0 1px 0 rgba(255,255,255,0.12); 
}
.btn--orange { background: var(--purple); color: #fff; box-shadow: 0 10px 24px rgba(201, 166, 107, 0.18), inset 0 1px 0 rgba(255,255,255,0.08); }
.btn--orange:hover { background: var(--orange2); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(201, 166, 107, 0.28), inset 0 1px 0 rgba(255,255,255,0.12); }
.btn--orange-outline {
  background: transparent; color: var(--orange); border: 1.5px solid rgba(245,158,11,0.3);
}
.btn--orange-outline:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--lg { padding: 14px 30px; font-size: 0.95rem; }
.btn--full { width: 100%; }
.btn--glow { animation: glow 2.5s ease-in-out infinite; }
@keyframes glow { 0%,100% { box-shadow: 0 4px 18px rgba(16,185,129,0.25); } 50% { box-shadow: 0 4px 32px rgba(16,185,129,0.5), 0 0 50px rgba(16,185,129,0.1); } }

/* SECTIONS */
.sec { padding: 64px 0; position: relative; z-index: 2; }
.sec--plans { background: linear-gradient(180deg, rgba(59,130,246,0.02), transparent 60%); }
.sec--cta { padding: 72px 0 56px; }
.sec__h2 { text-align: center; font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.sec__sub { text-align: center; color: var(--txt2); font-size: 0.92rem; margin-bottom: 36px; }

body.light .marketplace__h1,
body.light .sec__h2,
body.light .plan__name,
body.light .m-card__title,
body.light .trust-item,
body.light .btn-back,
body.light .ftr {
  color: var(--txt);
}

/* ============================================
   MARKETPLACE CATATLOG
   ============================================ */
.marketplace {
  padding: 120px 0 60px;
  position: relative;
  z-index: 2;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.marketplace__h1 {
  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.marketplace__sub {
  text-align: center;
  color: var(--txt2);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* FLOATING ICONS */
.floating-icons { display: flex; justify-content: center; gap: 16px; margin: -10px 0 35px; flex-wrap: wrap; }
.f-icon {
  font-size: 1.5rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--card); border: 1px solid var(--brd);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); animation: floatIcon 4s ease-in-out infinite;
}
.f-icon:nth-child(2) { animation-delay: 0.5s; }
.f-icon:nth-child(3) { animation-delay: 1s; }
.f-icon:nth-child(4) { animation-delay: 1.5s; }
.f-icon:nth-child(5) { animation-delay: 2s; }
.f-icon:nth-child(6) { animation-delay: 2.5s; }
@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(5deg); box-shadow: 0 8px 16px rgba(42, 157, 143, 0.2); }
}

/* TRUST BAR */
.trust-bar {
  display: flex; justify-content: center; gap: 40px;
  margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05);
}
.trust-item {
  display: flex; align-items: center; gap: 10px; color: var(--txt2); font-size: 0.9rem; font-weight: 500;
}
.trust-item svg { width: 22px; height: 22px; color: var(--blue); }

/* GRADIENT DIVIDER */
.gradient-divider {
  width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(42, 157, 143, 0.5), rgba(201, 166, 107, 0.5), transparent);
  margin: 0;
}

.m-card {
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.light .m-card {
  box-shadow: 0 16px 34px rgba(20, 34, 54, 0.06);
}

.m-card:hover {
  background: var(--card2);
  transform: translateY(-2px);
  border-color: rgba(42, 157, 143, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
body.light .m-card:hover {
  box-shadow: 0 22px 40px rgba(20, 34, 54, 0.12);
}

.m-card.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.m-card__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px; /* rounded rect instead of circle */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  background: #101319;
  border: 1px solid var(--brd);
  color: var(--txt);
}

.m-card:hover .m-card__icon-wrap {
  border-color: rgba(42, 157, 143, 0.3);
  color: var(--blue);
}

/* Reset individual neon colors to uniform */
.m-card--gpt, .m-card--claude, .m-card--grok, .m-card--canva { border-color: var(--brd); box-shadow: none; }
.m-card--gpt:hover, .m-card--claude:hover, .m-card--grok:hover, .m-card--canva:hover { border-color: rgba(42, 157, 143, 0.3); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }

.m-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.m-card__desc {
  font-size: 0.85rem;
  color: var(--txt2);
}

.m-card__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.m-card__tag--active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.m-card__tag--soon {
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}

/* ============================================
   PLANS — 3-column pricing
   ============================================ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.plan {
  overflow: hidden; position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 480px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008)), var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r);
  transition:
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease,
    background-color 0.45s ease;
}
body.light .plan {
  box-shadow: 0 14px 36px rgba(20, 34, 54, 0.06);
}
.plan::before,
.plan::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.plan::before {
  inset: auto 18px 0 18px;
  height: 120px;
  background: radial-gradient(circle at 50% 100%, rgba(255,255,255,0.09), transparent 72%);
  opacity: 0.28;
  transform: translateY(34px) scale(0.9);
  filter: blur(18px);
  transition: opacity 0.6s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan::after {
  inset: -35% auto auto -55%;
  width: 56%;
  height: 170%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.03) 42%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.03) 58%, transparent 100%);
  transform: translate3d(-140%, 0, 0) rotate(10deg);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.plan > * {
  position: relative;
  z-index: 1;
}

.plan:hover,
.plan:focus-within {
  transform: translateY(-12px) scale(1.018);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 28px 65px rgba(0,0,0,0.42);
}

.plan__top { display: none; }
.plan--popular .plan__top { display: block; height: 2px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--purple)); }
.plan:hover::before,
.plan:focus-within::before {
  opacity: 0.48;
  transform: translateY(12px) scale(1.06);
}

.plan:hover::after,
.plan:focus-within::after {
  opacity: 1;
  animation: plan-sheen 1.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.plan--blue:hover,
.plan--blue:focus-within {
  border-color: rgba(120, 143, 255, 0.22);
  box-shadow: 0 28px 65px rgba(0,0,0,0.42), 0 0 0 1px rgba(120, 143, 255, 0.08);
}

.plan--green:hover,
.plan--green:focus-within {
  border-color: rgba(42, 157, 143, 0.34);
  box-shadow: 0 30px 72px rgba(0,0,0,0.46), 0 0 0 1px rgba(42, 157, 143, 0.12);
}

.plan--orange:hover,
.plan--orange:focus-within {
  border-color: rgba(201, 166, 107, 0.34);
  box-shadow: 0 28px 65px rgba(0,0,0,0.42), 0 0 0 1px rgba(201, 166, 107, 0.12);
}

@keyframes plan-sheen {
  0% { transform: translate3d(-145%, 0, 0) rotate(10deg); }
  100% { transform: translate3d(265%, 0, 0) rotate(10deg); }
}

/* Popular badge */
.plan__badge {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  padding: 6px 12px !important; border-radius: 8px;
  font-size: 0.72rem !important; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(201, 166, 107, 0.15) !important; color: var(--purple) !important; border: 1px solid rgba(201, 166, 107, 0.3);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.plan__badge--soon {
  background: rgba(163, 168, 176, 0.1) !important; color: var(--txt2) !important; border: 1px solid rgba(163, 168, 176, 0.2);
}

.plan__body { padding: 40px 32px; flex: 1; display: flex; flex-direction: column; }

.plan__name { font-size: 1.65rem; font-weight: 800; margin-bottom: 4px; text-transform: none; letter-spacing: 0.05em; color: var(--txt); }

.plan__for { font-size: 0.7rem; color: var(--txt3); margin-bottom: 12px; font-weight: 700; text-transform: uppercase; opacity: 0.8; }
.plan__desc { font-size: 0.78rem; color: var(--txt2); line-height: 1.45; margin-bottom: 18px; opacity: 0.75; min-height: 40px; }

.plan__list { list-style: none; margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.plan__list li {
  padding: 0 0 0 20px; font-size: 0.78rem; color: var(--txt2);
  position: relative; line-height: 1.3;
}
.plan__list li::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.plan--blue .plan__list li::before { filter: hue-rotate(160deg); }
.plan--orange .plan__list li::before { filter: hue-rotate(320deg); }

/* Price row */
/* Toggle Switch */
.plan__selector {
  display: flex; background: rgba(0,0,0,0.3); border: 1px solid var(--brd);
  border-radius: 12px; padding: 4px; margin-bottom: 20px;
}
body.light .plan__selector {
  background: rgba(15, 23, 36, 0.04);
}
.plan__sel-btn {
  flex: 1; padding: 8px 4px; border-radius: 8px; border: none; background: transparent;
  color: var(--txt2); font-size: 0.7rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.plan__sel-btn.active { background: rgba(255,255,255,0.08); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
body.light .plan__sel-btn.active {
  background: #ffffff;
  color: #0f1724;
  box-shadow: 0 8px 18px rgba(20, 34, 54, 0.1);
}

.plan__prices {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.plan__price-row { display: flex; flex-direction: column; }
.plan__label { font-size: 0.62rem; color: var(--txt3); text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 1px; }
.plan__amount { font-size: 1.95rem; font-weight: 950; letter-spacing: -0.02em; color: #fff; line-height: 1; }
.plan__save-badge {
  background: rgba(16,185,129,0.12); color: var(--green2);
  padding: 4px 8px; border-radius: 8px; font-size: 0.75rem; font-weight: 900;
  border: 1px solid rgba(16,185,129,0.1);
}

/* Popular glow */
.plan--popular {
  border-color: rgba(16,185,129,0.2);
  box-shadow: 0 12px 36px rgba(0,0,0,0.28), 0 0 0 1px rgba(16,185,129,0.08);
  transform: scale(1.035);
  z-index: 5;
}
.plan--popular:hover {
  transform: scale(1.05) translateY(-14px);
  border-color: rgba(16,185,129,0.34);
}

/* STEPS */
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; }
.step { flex: 1; max-width: 220px; text-align: center; padding: 24px 14px; }
.step__n {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card2); border: 1px solid var(--blue);
  color: var(--blue); font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; line-height: 1; box-shadow: 0 4px 12px rgba(42, 157, 143, 0.1);
}
.step h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; color: var(--txt); }
.step p { font-size: 0.75rem; color: var(--txt2); line-height: 1.45; }
.step__line { width: 32px; height: 2px; background: var(--brd); margin-top: 40px; flex-shrink: 0; }

/* CTA */
.cta-box {
  text-align: center; max-width: 540px; margin: 0 auto; padding: 48px 32px;
  background: var(--card); border: 1px solid var(--brd); border-radius: var(--r);
  position: relative; overflow: hidden;
}
.cta-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--purple)); }
.cta-box h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.cta-box p { color: var(--txt2); margin-bottom: 22px; font-size: 0.88rem; }

/* FOOTER */
.ftr { text-align: center; padding: 24px 20px; color: var(--txt3); font-size: 0.72rem; border-top: 1px solid var(--brd); position: relative; z-index: 2; }

/* ============================================
   TELEGRAM FLOATING SUPPORT BUTTON
   ============================================ */
/* SCROLL REVEAL */.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .aff__features { flex-direction: column; align-items: center; gap: 12px; }
  .aff__feat { width: 100%; max-width: 250px; justify-content: center; }
}

@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .hdr .wrap { flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .hdr__logo { font-size: 1.3rem; }
  .sl-brand { gap: 10px; }
  .sl-brand__mark { width: 36px; height: 36px; border-radius: 11px; }
  .sl-brand__letters { font-size: 0.92rem; }
  .sl-brand__word { font-size: 1rem; letter-spacing: 0.01em; }
  .hdr__search { 
    flex: 1 1 100%; order: 3; max-width: none; 
    margin: 16px 0 4px; width: 100%; position: relative;
  }
  .hdr__search input { height: 56px !important; border-radius: 16px !important; font-size: 1rem !important; }
  .hdr__search svg { left: 24px !important; }
  .search-dropdown {
    left: 0; right: 0; width: 100%; box-sizing: border-box;
    z-index: 2000;
  }
  .sec { padding: 44px 0; }
  .sec__h2 { font-size: 1.4rem; }
  .sec__sub { font-size: 0.85rem; margin-bottom: 28px; }
  
  .marketplace { padding: 90px 0 40px; min-height: auto; }
  .marketplace__h1 { font-size: 2rem; }
  .marketplace__sub { font-size: 0.95rem; margin-bottom: 32px; }
  .catalog-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  
  .affiliate-box { padding: 32px 20px; }
  .aff__icon { font-size: 2rem; margin-bottom: 12px; }
  .aff__desc { font-size: 0.9rem; }
  
  .steps { flex-direction: column; align-items: center; }
  .step { max-width: 100%; padding: 18px 14px; }
  .step__line { width: 2px; height: 20px; margin: 0 auto; }

  .cta-box { padding: 36px 20px; }
  .cta-box h2 { font-size: 1.25rem; }
  .hdr__back { display: none; }
  
  /* Plans Mobile Overrides */
  .plan { min-height: auto !important; margin-bottom: 12px; }
  .plan__body { padding: 16px 14px; }
  .plan__name { font-size: 1.45rem; margin-bottom: 2px; }
  .plan__for { font-size: 0.65rem; margin-bottom: 8px; }
  .plan__desc { font-size: 0.75rem; margin-bottom: 12px; line-height: 1.35; min-height: 0; }
  .plan__list { margin-bottom: 14px; }
  .plan__list li { font-size: 0.75rem; padding-left: 18px; line-height: 1.25; }
  
  .plan__selector { 
    margin-bottom: 16px; border-radius: 100px; padding: 2px; 
    border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.4);
  }
  .plan__sel-btn { padding: 6px 4px; border-radius: 100px; font-size: 0.65rem; }
  .plan__sel-btn.active { background: rgba(255,255,255,0.12); }

  .plan__prices { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 14px; }
  .plan__price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .plan__amount { font-size: 1.65rem !important; line-height: 1.1; }
  .plan__label { font-size: 0.6rem; transform: translateY(-1px); }
  .plan__save-badge { 
    position: absolute; bottom: 84px; right: 14px; 
    padding: 3px 6px; font-size: 0.68rem; 
  }
  
  .plan--popular { transform: none !important; z-index: 1; }
  .plan:hover, .plan:focus-within { transform: translateY(-8px) !important; }
  .plan--popular:hover { transform: translateY(-10px) !important; }
}

@media (max-width: 420px) {
  .sl-brand__word { font-size: 0.88rem; }
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease;
}

.modal-card {
  background: var(--card2);
  backdrop-filter: blur(24px);
  border: 1px solid var(--brd);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 40px 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--txt3);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover { color: #fff; }

.modal-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; color: #fff; }
.modal-message { font-size: 0.95rem; color: var(--txt2); margin-bottom: 24px; line-height: 1.5; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Shared auth-input-group */
.auth-input-group { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  margin: 20px 0; 
}
.auth-input-group input { 
  display: block !important;
  width: 100% !important;
  height: 56px !important; 
  min-height: 56px !important;
  padding: 0 24px !important;
  font-size: 1.1rem !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
}
.auth-step { display: none; }
.auth-step.active { display: block; }
.auth-info { font-size: 0.8rem; color: var(--txt3); margin-top: 12px; }
.btn-link { background: transparent; border: none; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* --- PREMIUM SUBSCRIPTION MODAL (2025 UI) --- */
:root {
  --sub-bg-overlay: rgba(5, 5, 8, 0.85);
  --sub-bg-modal: #121216;
  --sub-border: rgba(255, 255, 255, 0.08);
  --sub-text-main: #F9FAFB;
  --sub-text-muted: #9CA3AF;
  
  --sub-accent: #6366F1;
  --sub-accent-hover: #4F46E5;
  --sub-accent-glow: rgba(99, 102, 241, 0.3);
  
  --sub-success: #10B981;
  --sub-error: #EF4444;
  --sub-transition: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  --sub-radius-modal: 24px;
  --sub-radius-element: 14px;
}

.subscription-modal-overlay {
  position: fixed; inset: 0;
  background: var(--sub-bg-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999;
  opacity: 0; pointer-events: none;
  transition: opacity var(--sub-transition);
}
.subscription-modal-overlay.active { opacity: 1; pointer-events: all; }

.subscription-modal {
  background: var(--sub-bg-modal);
  width: 100%; max-width: 420px;
  border-radius: var(--sub-radius-modal);
  border: 1px solid var(--sub-border);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 36px 32px; position: relative;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}
.subscription-modal-overlay.active .subscription-modal { transform: translateY(0) scale(1); }

.sub-modal-close {
  position: absolute; top: 18px; right: 18px;
  background: transparent; border: none; outline: none;
  color: var(--sub-text-muted); cursor: pointer;
  padding: 10px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--sub-transition);
}
.sub-modal-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--sub-text-main); }

.sub-modal-header { margin-bottom: 24px; text-align: center; }
.sub-modal-title { font-size: 1.35rem; font-weight: 700; color: var(--sub-text-main); margin-bottom: 6px; letter-spacing: -0.01em; }
.sub-modal-subtitle { font-size: 0.875rem; color: var(--sub-text-muted); font-weight: 500; }
.highlight-text { color: var(--sub-text-main); font-weight: 600; }

.sub-modal-price-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--sub-border);
  border-radius: var(--sub-radius-element);
  padding: 28px 0; text-align: center;
  margin-bottom: 28px;
}
.price-value { font-size: 2.5rem; font-weight: 800; color: var(--sub-text-main); letter-spacing: -0.03em; line-height: 1; }
.price-old { font-size: 1rem; color: var(--sub-text-muted); text-decoration: line-through; margin-top: 8px; font-weight: 500; }

.sub-modal-promo-section { margin-bottom: 32px; text-align: left; }
.promo-label { display: block; font-size: 0.8125rem; color: var(--sub-text-muted); font-weight: 500; margin-bottom: 8px; }

.promo-input-group {
  display: flex !important; align-items: center !important; gap: 8px !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--sub-radius-element) !important;
  padding: 6px 6px 6px 16px !important;
  box-sizing: border-box;
}
.promo-input-group:focus-within {
  border-color: var(--sub-accent) !important;
  box-shadow: 0 0 0 4px var(--sub-accent-glow) !important;
}
.promo-icon { color: var(--sub-text-muted); width: 18px; stroke-width: 2.2; flex-shrink: 0; }
.promo-input {
  flex: 1 1 0% !important; min-width: 0 !important; width: 100% !important;
  background: transparent !important; border: none !important; box-shadow: none !important;
  color: var(--sub-text-main) !important; font-size: 1rem !important;
  padding: 10px 0 !important; height: auto !important; margin: 0 !important;
  outline: none !important; font-family: inherit !important; font-weight: 500 !important;
}
.promo-input::placeholder { color: rgba(255,255,255,0.25) !important; font-weight: 400 !important; }

.btn-apply-promo {
  flex-shrink: 0 !important; white-space: nowrap !important;
  background: var(--sub-accent) !important; color: #fff !important;
  border: none !important; margin: 0 !important;
  border-radius: 10px; padding: 10px 18px;
  font-size: 0.8125rem; font-weight: 600;
  cursor: pointer; transition: all var(--sub-transition); height: 42px; display: flex !important; align-items: center !important; justify-content: center !important;
}
.btn-apply-promo:hover:not(:disabled) { background: var(--sub-accent-hover) !important; transform: translateY(-1px); }
.btn-apply-promo:disabled { opacity: 0.5; cursor: not-allowed; }

.promo-message { font-size: 0.8125rem; margin-top: 10px; text-align: left; display: none; padding-left: 4px; font-weight: 500; }
.promo-message.error { color: var(--sub-error); display: block; }
.promo-message.success { color: var(--sub-success); display: block; }

.btn-main-pay {
  width: 100%; background: var(--sub-accent); color: #fff;
  border: none; outline: none;
  border-radius: var(--sub-radius-element);
  font-size: 1.05rem; font-weight: 700; padding: 18px;
  cursor: pointer;
  box-shadow: 0 6px 16px var(--sub-accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all var(--sub-transition); 
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-main-pay:hover:not(:disabled) {
  background: var(--sub-accent-hover);
  box-shadow: 0 8px 20px var(--sub-accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.btn-main-pay:active:not(:disabled) { transform: translateY(1px); }
.btn-main-pay:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }

.sub-spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: sub-spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes sub-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .subscription-modal { width: 94%; padding: 28px 24px; border-radius: 20px; }
  .price-value { font-size: 2.2rem; }
  .btn-main-pay { padding: 16px; font-size: 1rem; }
  .promo-input { font-size: 1rem !important; }
}
