/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #080b10;
  --bg2:        #0d1117;
  --bg3:        #131920;
  --bg4:        #1a2232;
  --green:      #4ade80;
  --green2:     #16a34a;
  --green-glow: rgba(74,222,128,0.18);
  --gold:       #f59e0b;
  --gold-glow:  rgba(245,158,11,0.18);
  --blue:       #38bdf8;
  --blue-glow:  rgba(56,189,248,0.18);
  --purple:     #a78bfa;
  --purple-glow:rgba(167,139,250,0.18);
  --text:       #f1f5f9;
  --text2:      #94a3b8;
  --border:     rgba(255,255,255,0.07);
  --border2:    rgba(255,255,255,0.12);
  --radius:     16px;
  --radius-sm:  10px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--green); }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border2); }

/* ============================================================
   CANVAS BACKGROUND
   ============================================================ */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(8,11,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Comfortaa', cursive;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.logo__icon { font-size: 22px; }

.nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav__link {
  color: var(--text2);
  font-size: 15px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  color: var(--green);
  padding: 9px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: all .2s;
  flex-shrink: 0;
}
.cart-btn:hover {
  background: rgba(74,222,128,0.18);
  border-color: rgba(74,222,128,0.5);
  transform: translateY(-1px);
}

.cart-count {
  background: var(--green);
  color: #000;
  font-weight: 800;
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  padding-top: 68px;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 600px; height: 600px;
  background: rgba(74,222,128,0.07);
  top: -200px; left: -100px;
  animation: glowPulse 8s ease-in-out infinite;
}
.hero__glow--2 {
  width: 500px; height: 500px;
  background: rgba(167,139,250,0.06);
  top: 100px; right: -150px;
  animation: glowPulse 10s ease-in-out infinite reverse;
}
.hero__glow--3 {
  width: 400px; height: 400px;
  background: rgba(56,189,248,0.05);
  bottom: 0; left: 40%;
  animation: glowPulse 12s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px 60px;
  max-width: 760px;
  margin: 0 auto;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  animation: fadeDown .6s ease both;
}

.hero__title {
  font-family: 'Comfortaa', cursive;
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  animation: fadeDown .7s .1s ease both;
}

.hero__title-gradient {
  background: linear-gradient(135deg, var(--green), #60efff, var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: gradShift 4s linear infinite;
}

@keyframes gradShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero__sub {
  color: var(--text2);
  font-size: 17px;
  margin-bottom: 36px;
  animation: fadeDown .7s .2s ease both;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeDown .7s .3s ease both;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 32px;
  backdrop-filter: blur(10px);
  animation: fadeDown .7s .4s ease both;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}
.hero__stat-num {
  font-family: 'Comfortaa', cursive;
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}
.hero__stat-label {
  font-size: 12px;
  color: var(--text2);
  font-weight: 500;
}
.hero__stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: scrollBounce 1.6s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-tag {
  display: inline-block;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.2);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Comfortaa', cursive;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--text2);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all .2s;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--green2), var(--green));
  color: #000;
  box-shadow: 0 4px 24px rgba(74,222,128,0.3);
}
.btn--primary:hover {
  box-shadow: 0 6px 36px rgba(74,222,128,0.5);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn--buy {
  background: rgba(74,222,128,0.1);
  color: var(--green);
  border: 1px solid rgba(74,222,128,0.3);
  padding: 9px 20px;
  font-size: 13px;
  border-radius: 8px;
  white-space: nowrap;
}
.btn--buy:hover { background: rgba(74,222,128,0.2); border-color: var(--green); }

.btn--buy-gold {
  background: rgba(245,158,11,0.1);
  color: var(--gold);
  border-color: rgba(245,158,11,0.3);
}
.btn--buy-gold:hover { background: rgba(245,158,11,0.2); border-color: var(--gold); }

.btn--buy-blue {
  background: rgba(56,189,248,0.1);
  color: var(--blue);
  border-color: rgba(56,189,248,0.3);
}
.btn--buy-blue:hover { background: rgba(56,189,248,0.2); border-color: var(--blue); }

.btn--buy-purple {
  background: rgba(167,139,250,0.1);
  color: var(--purple);
  border-color: rgba(167,139,250,0.3);
}
.btn--buy-purple:hover { background: rgba(167,139,250,0.2); border-color: var(--purple); }

.w100 { width: 100%; }

/* ============================================================
   CATALOG
   ============================================================ */
.catalog {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

/* TABS */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 44px;
  justify-content: center;
  flex-wrap: wrap;
}

.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 11px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: all .25s;
}
.tab:hover { border-color: var(--border2); color: var(--text); background: var(--bg4); }
.tab.active {
  background: rgba(74,222,128,0.12);
  border-color: rgba(74,222,128,0.4);
  color: var(--green);
}
.tab__icon { font-size: 16px; }

/* PRODUCTS */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.products.hidden { display: none; }
/* В «Косметике» мало карточек — ставим их по центру, а не прижимаем влево */
#tab-cosmetic {
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  justify-content: center;
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  position: relative;
  background: rgba(13,17,23,0.8);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(74,222,128,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(74,222,128,0.07);
}

.card--gold {
  background: rgba(13,17,23,0.85);
  border-color: rgba(245,158,11,0.2);
}
.card--gold:hover {
  border-color: rgba(245,158,11,0.5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(245,158,11,0.1);
}

.card--elite {
  background: rgba(10,8,20,0.9);
  border-color: rgba(167,139,250,0.2);
}
.card--elite:hover {
  border-color: rgba(167,139,250,0.5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 50px rgba(167,139,250,0.12);
}

/* glow top-left corner */
.card__glow {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,222,128,0.12), transparent 70%);
  pointer-events: none;
}
.card__glow--gold  { background: radial-gradient(circle, rgba(245,158,11,0.12), transparent 70%); }
.card__glow--purple{ background: radial-gradient(circle, rgba(167,139,250,0.14), transparent 70%); }

/* ribbon */
.card__ribbon {
  position: absolute;
  top: 18px;
  right: -28px;
  background: linear-gradient(135deg, var(--gold), #fde68a);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 36px;
  transform: rotate(45deg);
  transform-origin: center;
  box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}
.card__ribbon--purple {
  background: linear-gradient(135deg, var(--purple), #c4b5fd);
  box-shadow: 0 2px 8px rgba(167,139,250,0.4);
}

/* top row */
.card__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card__icon-wrap--green  { background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.2); }
.card__icon-wrap--gold   { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.2); }
.card__icon-wrap--blue   { background: rgba(56,189,248,0.12); border: 1px solid rgba(56,189,248,0.2); }
.card__icon-wrap--purple { background: rgba(167,139,250,0.12); border: 1px solid rgba(167,139,250,0.2); }

.card__icon { font-size: 28px; }

.card__title {
  font-family: 'Comfortaa', cursive;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.card__sub {
  font-size: 12px;
  color: var(--text2);
  margin-top: 4px;
}

/* perks */
.card__perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card__perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #cbd5e1;
}

.perk-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.perk-dot--green  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.perk-dot--gold   { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.perk-dot--blue   { background: var(--blue); box-shadow: 0 0 6px var(--blue); }
.perk-dot--purple { background: var(--purple); box-shadow: 0 0 6px var(--purple); }

/* footer */
.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.card__price-block {
  display: flex;
  flex-direction: column;
}

.card__price {
  font-family: 'Comfortaa', cursive;
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}
.card__price--gold   { color: var(--gold); }
.card__price--blue   { color: var(--blue); }
.card__price--purple { color: var(--purple); }

.card__period {
  font-size: 11px;
  color: var(--text2);
  margin-top: 3px;
}

/* ============================================================
   HOW TO BUY
   ============================================================ */
.howto {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  text-align: center;
  padding: 20px;
  position: relative;
}

.step__num {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: rgba(74,222,128,0.4);
  margin-bottom: 16px;
}

.step__icon {
  font-size: 44px;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(74,222,128,0.3));
}

.step__title {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--text);
}
.step__desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

.step__line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  flex-shrink: 0;
  margin-bottom: 10px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  background: rgba(13,17,23,0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color .2s;
}
.faq__item:hover { border-color: var(--border2); }
.faq__item.open { border-color: rgba(74,222,128,0.3); }

.faq__q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color .2s;
}
.faq__q:hover { color: var(--green); }

.faq__arrow {
  flex-shrink: 0;
  color: var(--text2);
  transition: transform .3s, color .2s;
  display: flex;
}
.faq__item.open .faq__arrow { transform: rotate(180deg); color: var(--green); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.75;
  padding: 0 24px;
}
.faq__a.open { max-height: 200px; padding: 0 24px 20px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__logo { display: flex; flex-direction: column; gap: 8px; }
.footer__copy { font-size: 13px; color: var(--text2); }

.footer__links { display: flex; gap: 8px; flex-wrap: wrap; }

.footer__link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg3);
  transition: all .2s;
}
.footer__link:hover { color: var(--text); border-color: var(--border2); background: var(--bg4); }

/* ============================================================
   CART SIDEBAR
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: rgba(10,13,18,0.97);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
.cart.open { right: 0; }

.cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  font-weight: 700;
}

.cart__close {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.cart__close:hover { color: var(--text); background: rgba(255,255,255,0.1); }

.cart__items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  color: var(--text2);
  text-align: center;
}
.cart__empty-icon { font-size: 52px; opacity: 0.4; }
.cart__empty p { font-size: 15px; font-weight: 600; color: var(--text); }
.cart__empty span { font-size: 13px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  animation: slideIn .2s ease;
}
@keyframes slideIn {
  from { transform: translateX(16px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.ci-icon { font-size: 30px; }
.ci-info { flex: 1; }
.ci-name { font-weight: 600; font-size: 14px; }
.ci-price { font-size: 13px; color: var(--green); margin-top: 2px; }

.ci-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ci-qty button {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 7px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  font-family: 'Inter', sans-serif;
}
.ci-qty button:hover { background: var(--green); color: #000; border-color: var(--green); }
.ci-qty span { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }

.cart__summary {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart__total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  color: var(--text2);
}
.cart__total-price {
  font-family: 'Comfortaa', cursive;
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: rgba(10,13,18,0.98);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 36px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  animation: popIn .28s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.modal__close:hover { color: var(--text); background: rgba(255,255,255,0.1); }

.modal__title {
  font-family: 'Comfortaa', cursive;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
  line-height: 1.4;
}

/* form */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 10px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  font-size: 17px;
  pointer-events: none;
}
.input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 13px 14px 13px 44px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.input:focus {
  border-color: rgba(74,222,128,0.5);
  background: rgba(74,222,128,0.04);
}
.input::placeholder { color: var(--text2); }

.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pay-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 14px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: all .2s;
}
.pay-btn__icon { font-size: 22px; }
.pay-btn:hover { border-color: rgba(74,222,128,0.3); color: var(--text); }
.pay-btn.active {
  background: rgba(74,222,128,0.1);
  border-color: rgba(74,222,128,0.5);
  color: var(--green);
}

.order-summary {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.os-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text2);
}
.os-total {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}
.os-total span { color: var(--green); }

/* success */
.success-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  text-align: center;
}

.success-anim {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: ringPulse .6s ease both;
}
@keyframes ringPulse {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-icon {
  font-size: 36px;
  font-weight: 700;
  color: var(--green);
  animation: iconPop .4s .2s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes iconPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-title {
  font-family: 'Comfortaa', cursive;
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.4;
}
.success-text { color: var(--text2); font-size: 14px; line-height: 1.8; }
.success-nick {
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text);
}
.success-nick b { color: var(--green); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(10,13,18,0.95);
  border: 1px solid rgba(74,222,128,0.4);
  color: var(--text);
  padding: 13px 26px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(74,222,128,0.15);
  backdrop-filter: blur(12px);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav { display: none; }
  .hero__title { font-size: 26px; }
  .hero__stats { padding: 16px 20px; flex-wrap: wrap; gap: 16px; }
  .hero__stat { padding: 0 16px; }
  .hero__stat-sep { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .step { max-width: 100%; }
  .step__line { width: 1px; height: 32px; background: linear-gradient(180deg, transparent, var(--border2), transparent); margin: 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .cart { width: 100vw; }
  .modal { padding: 24px 20px; }
  .pay-methods { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__stat-num { font-size: 14px; }
  .products { grid-template-columns: 1fr; }
}
