/* ══════════════════════════════════════════════════════════════
   notTao — 3D Text Intros · Landing + Legal pages
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:      #ff0042;
  --accent2:     #ff2e63;
  --accent3:     #ff5c7a;
  --accent-dim:  rgba(255,0,66,0.12);
  --accent-glow: rgba(255,0,66,0.38);
  --bg:          #08080d;
  --bg2:         #0f0f16;
  --bg3:         #16161f;
  --border:      #1e1e2a;
  --border2:     #2a2a3a;
  --text:        #e4e4ee;
  --text-dim:    #9a9ab0;
  --text-muted:  #55556a;
  --green:       #34d399;
  --red:         #ff5b6a;
  --font:        'Inter', system-ui, sans-serif;
  --radius:      14px;
  --radius-lg:   22px;
  --grad:        linear-gradient(120deg, var(--accent) 0%, var(--accent2) 55%, var(--accent3) 100%);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ══ NAV ══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,8,13,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
  justify-self: start;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand .dot {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--grad);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.brand-logo { height: 80px; width: auto; display: block; }
@media (max-width: 720px) { .brand-logo { height: 56px; } }
.nav-links { display: flex; align-items: center; gap: 26px; justify-self: center; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 12px; justify-self: end; }
.lang-toggle {
  display: flex;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  overflow: hidden;
}
.lang-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.15s;
  border: none;
  background: none;
  font-family: var(--font);
}
.lang-btn.active { background: var(--accent); color: #fff; }

@media (max-width: 720px) {
  .nav { padding: 10px 18px; }
  .nav-links { display: none; }
}

/* ══ BUTTONS ══════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px var(--accent-glow);
  text-decoration: none;
  color: #fff;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--accent); background: var(--bg3); text-decoration: none; color: var(--text); }

/* ══ HERO ═════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: -8%;
  background: url(../img/pattern.png) repeat;
  background-size: 440px auto;
  background-position: var(--patx, 0px) var(--paty, 0px);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
  will-change: background-position;
}
.hero::before {
  content: '';
  position: absolute;
  top: 8%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  max-width: 120vw;
  background: radial-gradient(ellipse, rgba(255,0,66,0.18) 0%, rgba(255,46,99,0.10) 40%, transparent 72%);
  pointer-events: none;
  z-index: 1;
}
.hero > * { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(255,0,66,0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(38px, 8vw, 82px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: 22px; font-size: 13px; color: var(--text-muted); }

/* ══ SECTIONS ═════════════════════════════════════════════════ */
section { padding: 90px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* ══ GALLERY ══════════════════════════════════════════════════ */
.gallery-bg { background: linear-gradient(180deg, transparent, rgba(255,0,66,0.03), transparent); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.gallery-grid.collapsed .intro-card:nth-child(n+6) { display: none; }
.gallery-more { text-align: center; margin-top: 30px; }
.intro-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border2);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.intro-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 46px rgba(0,0,0,0.55);
}
.intro-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.intro-card:hover img { transform: scale(1.05); }
.intro-card .fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 30px; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  z-index: 0;
}
.intro-card img { position: relative; z-index: 1; }
.intro-card .tag {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  background: rgba(8,8,13,0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  color: #f4f4f8;
}
.intro-card .play {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  transform: translate(-50%,-50%) scale(0.85);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(8,8,13,0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all 0.25s;
}
.intro-card:hover .play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.intro-card .play::after {
  content: ''; margin-left: 3px;
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,4,8,0.9);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,0.7); }
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ══ PRICING ══════════════════════════════════════════════════ */
.pricing-bg { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.price-title .price-spark { color: var(--accent); font-size: 0.4em; vertical-align: top; margin-left: 7px; display: inline-block; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; } }
.plan {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.plan:hover { transform: translateY(-4px); border-color: #3a3a4d; }
.plan.selected {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(255,0,66,0.10), var(--bg3) 62%);
  transform: translateY(-6px);
  box-shadow: 0 0 0 2px var(--accent), 0 20px 46px rgba(255,0,66,0.20);
}
.plan.selected::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at top, rgba(255,0,66,0.12), transparent 60%);
  pointer-events: none;
}
.plan.selected::after {
  content: '✓'; position: absolute; top: 14px; right: 16px; z-index: 3;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.plan > * { position: relative; z-index: 1; }
.plan-badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 15px; border-radius: 20px;
  white-space: nowrap; box-shadow: 0 6px 18px rgba(255,0,66,0.28);
}
/* "Fastest / Más rápida" badge on the priority plan → purple */
.plan[data-plan-key="priority"] .plan-badge {
  background: linear-gradient(120deg, #7a4bd0, #a06bff);
  box-shadow: 0 6px 18px rgba(140,90,240,0.30);
}
.plan-name {
  font-size: 21px; font-weight: 800;
  letter-spacing: -0.01em; text-transform: none;
  color: var(--text); line-height: 1.15;
}
.plan.selected .plan-name { color: var(--text); }
.plan-price { font-size: 52px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.plan-price sup { font-size: 24px; vertical-align: top; margin-top: 8px; display: inline-block; color: var(--text-dim); }
.plan-price small { font-size: 14px; font-weight: 700; color: var(--text-muted); }
.plan.selected .plan-price small { color: var(--accent); }
.plan-divider { height: 1px; background: var(--border2); margin: 22px 0; }
.plan-features { list-style: none; margin-bottom: 24px; }
.plan-features li {
  font-size: 14px; color: var(--text-dim);
  padding: 7px 0; display: flex; align-items: flex-start; gap: 10px;
}
.plan-features li.no { color: var(--text-muted); }
.plan-features .ic { flex-shrink: 0; font-size: 14px; line-height: 1.5; }
.plan-features li .ic.yes { color: var(--green); }
.plan-features li .ic.nope { color: var(--red); }
.plan-features li.time { color: var(--text); font-weight: 600; }
.plan-features li.time .ic { color: var(--accent); }
.plan-cta {
  display: block; width: 100%; text-align: center;
  padding: 13px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; cursor: pointer;
  border: none; font-family: var(--font); text-decoration: none;
  background: var(--bg2); border: 1px solid var(--border2); color: var(--text);
  transition: all 0.2s;
}
.plan-cta:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.plan.selected .plan-cta { background: var(--grad); color: #fff; border: none; }
.plan.selected .plan-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }

/* ══ CHOOSE / STEPS ═══════════════════════════════════════════ */
.choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
}
@media (max-width: 700px) { .choose-grid { grid-template-columns: 1fr; max-width: 360px; } }
.choose-card {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.choose-card .emoji { font-size: 34px; margin-bottom: 12px; }
.choose-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.choose-card p { font-size: 13px; color: var(--text-dim); }

/* ══ INFO CARDS (description) ═════════════════════════════════ */
.info-wrap { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.info-card {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.info-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.info-card h3 .ic { color: var(--accent); }
.info-card p { font-size: 14.5px; color: var(--text-dim); }
.info-card p + p { margin-top: 10px; }
.info-card.warn { border-color: rgba(255,91,106,0.35); background: linear-gradient(160deg, rgba(255,91,106,0.06), var(--bg3)); }
.info-card.warn h3 .ic { color: var(--red); }
.info-card a { font-weight: 600; }

/* ══ FAQ ══════════════════════════════════════════════════════ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border2); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 20px 0; font-size: 15px; font-weight: 600; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font); gap: 16px;
}
.faq-q::after { content: '+'; color: var(--accent); font-size: 22px; flex-shrink: 0; }
.faq-q.open::after { content: '−'; }
.faq-a { display: none; padding: 0 0 18px; font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.faq-a.open { display: block; }

/* ══ FINAL CTA ════════════════════════════════════════════════ */
.cta-band { text-align: center; }
.cta-band .cta-inner {
  max-width: 780px; margin: 0 auto;
  background: linear-gradient(160deg, rgba(255,0,66,0.10), rgba(255,46,99,0.06));
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 54px 32px;
}

/* ══ LEGAL PAGES ══════════════════════════════════════════════ */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 140px 24px 90px;
}
.legal h1 {
  font-size: clamp(30px, 6vw, 46px);
  font-weight: 900; letter-spacing: -0.02em; margin-bottom: 12px;
}
.legal .updated { color: var(--text-muted); font-size: 13px; margin-bottom: 40px; }
.legal h2 {
  font-size: 20px; font-weight: 800; margin: 38px 0 14px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal p { color: var(--text-dim); margin-bottom: 14px; font-size: 15px; }
.legal ul { color: var(--text-dim); margin: 0 0 16px 22px; font-size: 15px; }
.legal li { margin-bottom: 10px; }
.legal strong { color: var(--text); }
.legal .intro-lead {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 30px;
  color: var(--text-dim);
}

/* Contact cards */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-top: 34px;
}
.contact-card {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 24px; text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); text-decoration: none; }
.contact-card .ico { width: 44px; height: 44px; margin: 0 auto 14px; }
.contact-card .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700; margin-bottom: 6px; }
.contact-card .value { font-size: 15px; font-weight: 700; color: var(--text); word-break: break-word; }

/* ══ FOOTER ═══════════════════════════════════════════════════ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border2);
  padding: 54px 24px 20px;
}

/* brand hero — heart flanked by sparkles + fading lines */
.footer-hero { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 620px; margin: 0 auto; }
.footer-hero .fh-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border2)); }
.footer-hero .fh-line:last-child { background: linear-gradient(90deg, var(--border2), transparent); }
.footer-hero .fh-spark { color: var(--accent); font-size: 15px; display: inline-flex; }
.footer-heart { height: 92px; width: auto; }
.footer-tagline { text-align: center; font-size: 14px; color: var(--text-dim); margin: 12px auto 40px; max-width: 460px; line-height: 1.5; }

/* columns */
.footer-cols {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px;
  max-width: 1180px; margin: 0 auto 40px; align-items: start;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-h { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.footer-col-h i { color: var(--accent); font-size: 17px; display: inline-flex; }
.footer-col a { font-size: 13.5px; color: var(--text-dim); transition: color .15s; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-col-text { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; margin: -2px 0 6px; }
.footer-social-link { display: inline-flex; align-items: center; gap: 9px; }
.footer-social-link i { font-size: 16px; color: var(--text-muted); display: inline-flex; transition: color .15s; }
.footer-social-link:hover i { color: var(--accent); }
.footer-help-btn {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 13px; font-weight: 700; color: var(--text) !important;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 12px; padding: 10px 16px;
  transition: border-color .15s, transform .15s;
}
.footer-help-btn:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.footer-help-btn i { color: var(--accent); }

/* bottom bar */
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1180px; margin: 0 auto; padding-top: 22px; border-top: 1px solid var(--border2);
}
.footer-copy { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.footer-copy i { color: var(--accent); font-size: 13px; }
@media (max-width: 860px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }

/* compact footer used on legal / secondary pages (no columns) */
.footer-brand { display: block; text-align: center; margin-bottom: 14px; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.footer-links a { font-size: 13px; color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); text-decoration: none; }
footer > .footer-copy { display: flex; justify-content: center; text-align: center; }

/* ══ ANIM ═════════════════════════════════════════════════════ */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.floaty { animation: floaty 5s ease-in-out infinite; }
@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(40px) scale(0.9); }
  60%  { opacity: 1; transform: translateY(-6px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.fade-up   { animation: fadeUp 0.85s cubic-bezier(.34,1.56,.64,1) both; }
.fade-up-2 { animation: fadeUp 0.85s cubic-bezier(.34,1.56,.64,1) 0.14s both; }
.fade-up-3 { animation: fadeUp 0.85s cubic-bezier(.34,1.56,.64,1) 0.28s both; }

/* ══ SCROLL REVEAL — pricing cards (cartoon bounce) ═══════════ */
.plan.reveal {
  opacity: 0;
  translate: 0 60px;
  scale: 0.90;
  transition:
    transform 0.2s, border-color 0.2s, box-shadow 0.2s,
    opacity 0.5s ease,
    translate 0.8s cubic-bezier(.34,1.7,.5,1),
    scale 0.8s cubic-bezier(.34,1.7,.5,1);
}
.plan.reveal.in { opacity: 1; translate: 0 0; scale: 1; }

/* section heading reveal */
.reveal-head {
  opacity: 0; translate: 0 34px;
  transition: opacity 0.5s ease, translate 0.7s cubic-bezier(.34,1.56,.64,1);
}
.reveal-head.in { opacity: 1; translate: 0 0; }

/* ══ PRELOADER ════════════════════════════════════════════════ */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at center, #14060d 0%, var(--bg) 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  height: 96px; width: auto;
  filter: drop-shadow(0 0 26px var(--accent-glow));
  animation: plPulse 1.3s ease-in-out infinite;
}
.preloader-bar {
  width: 160px; height: 4px; border-radius: 4px;
  background: var(--bg3); overflow: hidden; position: relative;
}
.preloader-bar::after {
  content: ''; position: absolute; top: 0; left: -45%; width: 45%; height: 100%;
  border-radius: 4px; background: var(--grad);
  animation: plBar 1.05s ease-in-out infinite;
}
@keyframes plPulse {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50%      { transform: scale(1.09) rotate(3deg); }
}
@keyframes plBar { 0% { left: -45%; } 100% { left: 100%; } }

/* ══ BUTTON PRESS BOUNCE ══════════════════════════════════════ */
@keyframes btnPop { 0% { scale: 1; } 25% { scale: 0.9; } 55% { scale: 1.06; } 100% { scale: 1; } }
.pop-anim { animation: btnPop 0.38s cubic-bezier(.34,1.7,.5,1); }

/* ══ ORDER MODAL ══════════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(4,4,8,0.72); backdrop-filter: blur(8px);
}
.modal.open { display: flex; animation: modalFade 0.25s ease; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  width: 100%; max-width: 520px; position: relative;
  background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius-lg);
  padding: 30px; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,0,66,0.14);
  animation: modalPop 0.4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalPop { from { opacity: 0; translate: 0 30px; scale: 0.94; } to { opacity: 1; translate: 0 0; scale: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border2); color: var(--text);
  cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.modal-title { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 4px; }
.modal-sub { font-size: 14px; color: var(--text-dim); margin-bottom: 22px; }
.ord-field { margin-bottom: 14px; }
.ord-field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 6px; }
.ord-field input, .ord-field textarea {
  width: 100%; background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px;
  padding: 11px 13px; color: var(--text); font-family: var(--font); font-size: 14px;
  outline: none; transition: border-color 0.15s;
}
.ord-field input:focus, .ord-field textarea:focus { border-color: var(--accent); }
.ord-field input[readonly] { color: var(--accent); font-weight: 700; cursor: default; }
.ord-field textarea { resize: vertical; min-height: 60px; }
.ord-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .ord-row { grid-template-columns: 1fr; } }
.order-actions { display: flex; gap: 10px; margin-top: 8px; }
.order-submit {
  flex: 1; background: var(--grad); color: #fff; border: none; border-radius: 12px;
  padding: 13px; font-weight: 800; font-family: var(--font); font-size: 15px; cursor: pointer;
  transition: box-shadow 0.2s, scale 0.3s;
}
.order-submit:hover { box-shadow: 0 8px 24px var(--accent-glow); }
.order-cancel {
  background: var(--bg3); border: 1px solid var(--border2); color: var(--text);
  border-radius: 12px; padding: 13px 20px; font-weight: 700; font-family: var(--font); cursor: pointer;
}
.ord-hint { font-size: 12px; color: var(--text-muted); margin-top: 16px; line-height: 1.5; }

/* ══ CTA NEON (Ready for your intro) ══════════════════════════ */
@property --ctaA { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.cta-neo {
  position: relative; max-width: 880px; margin: 0 auto;
  border-radius: 28px; padding: 62px 40px; text-align: center;
  background: linear-gradient(160deg, rgba(255,0,66,0.06), rgba(20,6,14,0.4));
  box-shadow: 0 0 46px rgba(255,0,66,0.18), inset 0 0 60px rgba(255,0,66,0.05);
  overflow: hidden;
}
.cta-neo::before {  /* pattern texture inside */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url(../img/pattern.png) repeat; background-size: 300px auto; opacity: 0.14;
}
.cta-neo::after {  /* animated lightning trace around the border */
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 28px;
  padding: 2px;
  background: conic-gradient(from var(--ctaA),
      rgba(255,0,66,0.25) 0deg,
      rgba(255,0,66,0.25) 250deg,
      #ff2e63 300deg, #ffd0e0 322deg, #ff2e63 344deg,
      rgba(255,0,66,0.25) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 6px rgba(255,46,99,0.8));
  animation: ctaTrace 2.6s linear infinite;
}
@keyframes ctaTrace { to { --ctaA: 360deg; } }
.cta-neo > * { position: relative; z-index: 1; }

.cta-neo .cta-title { font-size: clamp(34px, 6vw, 56px); margin-bottom: 14px; }
.cta-neo .cta-sub { font-size: 17px; color: var(--text-dim); max-width: 560px; margin: 0 auto 8px; }
.cta-neo .cta-sub b { color: var(--accent); }

.cta-pills { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 24px 0 28px; }
.cta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(18,8,13,0.6); border: 1px solid var(--border2); border-radius: 30px;
  padding: 9px 18px; font-size: 14px; font-weight: 600; color: var(--text);
}
.cta-pill svg { width: 16px; height: 16px; fill: var(--accent); flex-shrink: 0; }

.cta-neon {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 18px;
  padding: 16px 42px; border-radius: 40px; border: none; cursor: pointer;
  font-family: var(--font); text-decoration: none;
  box-shadow: 0 0 22px var(--accent-glow), 0 0 60px rgba(255,0,66,0.4);
  transition: box-shadow 0.25s, scale 0.3s;
}
.cta-neon:hover { box-shadow: 0 0 32px var(--accent), 0 0 84px rgba(255,0,66,0.55); color: #fff; text-decoration: none; }
.cta-neon .spark { font-size: 15px; opacity: 0.9; }

.cta-ghost {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer;
  background: none; border: none; font-family: var(--font);
}
.cta-ghost:hover { text-decoration: none; filter: brightness(1.2); }
.cta-ghost .play {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.cta-ghost .play::after { content: ''; margin-left: 2px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--accent); }

.cta-spark { position: absolute; z-index: 1; fill: var(--accent); opacity: 0.9; animation: sparkTwinkle 2.4s ease-in-out infinite; }
.cta-spark.s1 { top: 26px; left: 34px; width: 30px; }
.cta-spark.s2 { top: 30px; right: 40px; width: 22px; animation-delay: .5s; }
.cta-spark.s3 { bottom: 40px; left: 52px; width: 20px; animation-delay: 1s; }
.cta-spark.s4 { bottom: 32px; right: 46px; width: 28px; animation-delay: 1.5s; }
@keyframes sparkTwinkle { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }

/* ══ MINECRAFT RIGS ═══════════════════════════════════════════ */
.rig-discontinued {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(160deg, rgba(255,170,60,0.12), rgba(255,90,60,0.06));
  border: 1px solid rgba(255,170,60,0.45); border-radius: 14px;
  padding: 16px 22px; color: #ffd7a3; font-size: 14.5px; font-weight: 600; line-height: 1.5;
}
.rig-discontinued .ic { font-size: 24px; flex-shrink: 0; }

.rigs-list { display: flex; flex-direction: column; gap: 26px; max-width: 960px; margin: 0 auto; }
.rig-beta {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  background: linear-gradient(120deg, #ffb03c, #ff5a3c); color: #241200;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 11px; border-radius: 20px;
}
.rig-media .rig-beta-corner {
  position: absolute; top: 12px; right: 12px; z-index: 2; margin: 0;
  box-shadow: 0 4px 14px rgba(255,90,60,0.4);
}
.rig-desc .rig-warn-line {
  color: #ffcf8a; font-weight: 600; font-size: 13px;
  background: rgba(255,170,60,0.08); border: 1px solid rgba(255,170,60,0.32);
  border-radius: 8px; padding: 9px 13px; margin-bottom: 14px;
}
.rig-card {
  display: grid; grid-template-columns: 320px 1fr;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.rig-card:hover { border-color: var(--accent); transform: translateY(-3px); }
@media (max-width: 780px) { .rig-card { grid-template-columns: 1fr; } }
.rig-media {
  position: relative; min-height: 240px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.rig-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.rig-media .ph { font-weight: 900; font-size: 26px; color: rgba(255,255,255,0.92); text-align: center; padding: 20px; text-shadow: 0 2px 14px rgba(0,0,0,0.5); z-index: 0; }
.rig-file-badge {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  background: rgba(8,8,13,0.78); border: 1px solid var(--border2); border-radius: 8px;
  padding: 5px 11px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; color: var(--accent);
  backdrop-filter: blur(6px);
}
.rig-body { padding: 28px 30px; }
.rig-body h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.rig-tag { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 16px; }
.rig-desc .rig-lead { color: var(--text); font-weight: 600; margin-bottom: 12px; font-size: 15px; }
.rig-desc h4 {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); margin: 16px 0 8px;
}
.rig-desc p { color: var(--text-dim); font-size: 14px; margin-bottom: 8px; line-height: 1.6; }
.rig-desc ul { list-style: none; margin: 0 0 8px; padding: 0; }
.rig-desc li { color: var(--text-dim); font-size: 14px; padding: 3px 0 3px 20px; position: relative; }
.rig-desc li::before { content: '▸'; position: absolute; left: 2px; color: var(--accent); }
.rig-desc li.rig-bug { color: #ffb0b8; }
.rig-desc li.rig-bug::before { content: '⚠'; left: 0; }
.rig-desc .rig-file-note { color: var(--text); font-weight: 700; margin-top: 14px; font-size: 13px; }
.rig-get {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  background: var(--grad); color: #fff; font-weight: 700; padding: 11px 22px;
  border-radius: 12px; text-decoration: none; font-size: 14px;
  transition: box-shadow 0.2s, scale 0.3s;
}
.rig-get:hover { box-shadow: 0 8px 24px var(--accent-glow); color: #fff; text-decoration: none; }

/* ══ HOME REVIEWS ═════════════════════════════════════════════ */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.review-item { background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 24px 26px; transition: transform .2s, border-color .2s; }
.review-item:hover { transform: translateY(-3px); border-color: var(--accent); }
.review-item .rv-video { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: var(--bg); }
.review-item .rv-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.review-item .rv-stars { color: #f5a623; font-size: 17px; letter-spacing: 2px; margin-bottom: 12px; }
.review-item .rv-stars .off { color: var(--border2); }
.review-item .rv-body { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; margin-bottom: 14px; }
.review-item .rv-name { font-size: 13px; font-weight: 800; color: var(--text); }
.review-item .rv-name::before { content: '— '; color: var(--accent); }

/* ══ ORDER EXTRAS (account) ═══════════════════════════════════ */
.order-actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.o-act { font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 10px; cursor: pointer; font-family: var(--font); border: 1px solid var(--border2); background: var(--bg2); color: var(--text-dim); transition: all .15s; }
.o-act:hover { color: var(--text); border-color: var(--border2); }
.o-act.danger:hover { border-color: var(--red); color: var(--red); }
.o-act.approve { background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.4); color: #34d399; }
.o-act.change { background: rgba(245,166,35,0.12); border-color: rgba(245,166,35,0.4); color: #f5a623; }

.o-block { margin-top: 16px; background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 16px 18px; }
.o-block h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 10px; }
.o-block .embed { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.o-block .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.o-links { display: flex; gap: 10px; flex-wrap: wrap; }
.o-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; padding: 10px 18px; border-radius: 10px; text-decoration: none; }
.o-link.watch { background: var(--grad); color: #fff; }
.o-link.dl { background: rgba(52,211,153,0.15); color: #34d399; border: 1px solid rgba(52,211,153,0.4); }
.o-msg { font-size: 13.5px; color: var(--text-dim); font-style: italic; margin-top: 8px; }

.timeline { list-style: none; margin: 14px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 13px; }
.timeline li::before { content: ''; position: absolute; left: 3px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.timeline li::after { content: ''; position: absolute; left: 7px; top: 13px; bottom: -2px; width: 1px; background: var(--border2); }
.timeline li:last-child::after { display: none; }
.timeline .tl-when { color: var(--text-muted); font-size: 11.5px; }
.timeline .tl-what { color: var(--text); font-weight: 600; }

/* review widget */
.review-card { background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 24px 26px; margin-bottom: 30px; }
.stars-pick { display: flex; gap: 6px; margin: 8px 0 14px; }
.stars-pick span { font-size: 30px; color: var(--border2); cursor: pointer; transition: color .12s, transform .12s; }
.stars-pick span.on, .stars-pick span:hover { color: #f5a623; }
.stars-pick span:hover { transform: scale(1.15); }

/* ══ AUTH NAV LINKS ═══════════════════════════════════════════ */
.nav-auth-link {
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  background: none; border: none; cursor: pointer; font-family: var(--font);
  text-decoration: none; padding: 6px 8px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-auth-link:hover { color: var(--text); text-decoration: none; }
.nav-auth-dash { color: var(--accent); }
.nav-auth-out { color: var(--text-muted); }

/* ══ AUTH PAGES (login) ═══════════════════════════════════════ */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 24px 60px; }
.auth-card {
  width: 100%; max-width: 420px; position: relative;
  background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius-lg);
  padding: 34px 32px; box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 46px rgba(255,0,66,0.10);
}
.auth-logo { height: 54px; width: auto; display: block; margin: 0 auto 20px; }
.auth-title { font-size: 24px; font-weight: 900; text-align: center; margin-bottom: 4px; }
.auth-sub { font-size: 14px; color: var(--text-dim); text-align: center; margin-bottom: 24px; }
.auth-tabs { display: flex; background: var(--bg3); border: 1px solid var(--border2); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.auth-tab { flex: 1; text-align: center; padding: 9px; font-size: 13px; font-weight: 700; color: var(--text-dim); border-radius: 9px; cursor: pointer; transition: all .15s; }
.auth-tab.on { background: var(--grad); color: #fff; }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); margin-bottom: 6px; }
.auth-field input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px;
  padding: 12px 13px; color: var(--text); font-family: var(--font); font-size: 14px; outline: none; transition: border-color .15s;
}
.auth-field input:focus { border-color: var(--accent); }
.auth-btn {
  width: 100%; background: var(--grad); color: #fff; border: none; border-radius: 12px;
  padding: 13px; font-weight: 800; font-family: var(--font); font-size: 15px; cursor: pointer; margin-top: 6px;
  transition: box-shadow .2s, scale .3s;
}
.auth-btn:hover { box-shadow: 0 8px 24px var(--accent-glow); }
.auth-alt { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-dim); }
.auth-alt a, .auth-link { color: var(--accent); cursor: pointer; font-weight: 600; }
.auth-msg { margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 13px; display: none; }
.auth-msg.show { display: block; }
.auth-msg.err { background: rgba(255,91,106,0.12); border: 1px solid rgba(255,91,106,0.4); color: #ffb0b8; }
.auth-msg.ok { background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.4); color: #9ff0cf; }

/* ══ ACCOUNT / ORDERS ═════════════════════════════════════════ */
.acct { max-width: 820px; margin: 0 auto; padding: 130px 24px 90px; }
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.acct-head h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 900; letter-spacing: -0.02em; }
.acct-hi { color: var(--text-dim); font-size: 14px; margin-bottom: 34px; }
.acct-empty { background: var(--bg3); border: 1px dashed var(--border2); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--text-dim); }
.order-card { background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 24px 26px; margin-bottom: 18px; }
.order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.order-name { font-size: 18px; font-weight: 800; }
.order-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.order-status {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  padding: 5px 12px; border-radius: 20px; white-space: nowrap;
  background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(255,0,66,0.3);
}
.order-status.delivered { background: rgba(52,211,153,0.12); color: #34d399; border-color: rgba(52,211,153,0.4); }
.order-status.cancelled { background: rgba(255,91,106,0.12); color: #ff8b95; border-color: rgba(255,91,106,0.4); }

/* tracking bar */
.track { margin-top: 20px; }
.track-rail { position: relative; height: 8px; background: var(--bg); border: 1px solid var(--border2); border-radius: 8px; }
.track-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 8px; background: var(--grad); box-shadow: 0 0 12px var(--accent-glow); transition: width 1.1s cubic-bezier(.34,1.25,.5,1); }
.track-fill.cancelled { background: linear-gradient(90deg,#ff5b6a,#c70036); }
.track-dots { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 1px; }
.track-dots .d { width: 16px; height: 16px; border-radius: 50%; background: var(--bg2); border: 2px solid var(--border2); transition: all .35s; }
.track-dots .d.done { background: var(--grad); border-color: transparent; box-shadow: 0 0 10px var(--accent-glow); }
.track-labels { display: flex; justify-content: space-between; margin-top: 12px; }
.track-labels span { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.track-labels span:first-child { text-align: left; }
.track-labels span:last-child { text-align: right; }
.track-labels span.done { color: var(--text); }

/* ══ CUSTOM DIALOGS (ui.js) ═══════════════════════════════════ */
.ui-overlay {
  position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(4,4,8,0.72); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.2s;
}
.ui-overlay.show { opacity: 1; }
.ui-box {
  width: 100%; max-width: 400px; text-align: center;
  background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 46px rgba(255,0,66,0.10);
  transform: translateY(14px) scale(0.96); transition: transform 0.28s cubic-bezier(.34,1.56,.64,1);
}
.ui-overlay.show .ui-box { transform: translateY(0) scale(1); }
.ui-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.ui-text { font-size: 14.5px; color: var(--text-dim); line-height: 1.55; }
.ui-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.ui-btn { border: none; cursor: pointer; font-family: var(--font); font-weight: 700; font-size: 14px; padding: 12px 22px; border-radius: 12px; transition: box-shadow .2s, scale .25s; }
.ui-btn:active { scale: .94; }
.ui-btn-primary { background: var(--grad); color: #fff; }
.ui-btn-primary:hover { box-shadow: 0 8px 22px var(--accent-glow); }
.ui-btn-ghost { background: var(--bg3); border: 1px solid var(--border2); color: var(--text); }
.ui-input { width: 100%; background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px; padding: 11px 13px; color: var(--text); font-family: var(--font); font-size: 14px; outline: none; resize: vertical; }
.ui-input:focus { border-color: var(--accent); }
.ui-check { width: 76px; height: 76px; margin: 0 auto 8px; }
.ui-check svg { width: 100%; height: 100%; }
.ui-check-c { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: uiCircle .5s cubic-bezier(.65,0,.45,1) forwards; }
.ui-check-k { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: uiCheck .35s .45s cubic-bezier(.65,0,.45,1) forwards; }
@keyframes uiCircle { to { stroke-dashoffset: 0; } }
@keyframes uiCheck { to { stroke-dashoffset: 0; } }
.ui-success .ui-check { filter: drop-shadow(0 0 12px var(--accent-glow)); }

.ui-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); z-index: 600;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 12px; padding: 12px 20px;
  font-size: 14px; font-weight: 600; color: var(--text); opacity: 0; transition: all .3s;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.ui-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ui-toast.err { border-color: rgba(255,91,106,0.5); color: #ffb0b8; }
.ui-toast.ok { border-color: rgba(52,211,153,0.5); color: #9ff0cf; }

/* ══ PASSWORD FIELD (toggle + strength) ═══════════════════════ */
.pw-wrap { position: relative; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 6px; color: var(--text-dim); display: flex;
}
.pw-toggle:hover { color: var(--accent); }
.pw-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.pw-strength { margin-top: 10px; }
.pw-bars { display: flex; gap: 5px; }
.pw-bars span { flex: 1; height: 5px; border-radius: 4px; background: var(--bg3); transition: background .25s; }
.pw-bars.s1 span:nth-child(1) { background: #ff5b6a; }
.pw-bars.s2 span:nth-child(-n+2) { background: #f5a623; }
.pw-bars.s3 span:nth-child(-n+3) { background: #ffd93b; }
.pw-bars.s4 span { background: #16b981; }
.pw-label { font-size: 12px; font-weight: 700; margin-top: 7px; color: var(--text-dim); }
.pw-rules { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; }
.pw-rules li { font-size: 11.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.pw-rules li::before { content: '○'; font-size: 12px; }
.pw-rules li.ok { color: #16b981; }
.pw-rules li.ok::before { content: '✓'; }

/* ══ REMEMBER ME ══════════════════════════════════════════════ */
.remember-row { display: flex; align-items: center; gap: 9px; margin: 4px 0 14px; font-size: 13px; color: var(--text-dim); cursor: pointer; user-select: none; }
.remember-row input { position: absolute; opacity: 0; }
.remember-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border2); background: var(--bg3); display: inline-flex; align-items: center; justify-content: center; transition: all .15s; flex-shrink: 0; }
.remember-row input:checked + .remember-box { background: var(--grad); border-color: transparent; }
.remember-box::after { content: '✓'; color: #fff; font-size: 13px; font-weight: 800; opacity: 0; transition: opacity .15s; }
.remember-row input:checked + .remember-box::after { opacity: 1; }

/* ══ OTP CODE INPUT ═══════════════════════════════════════════ */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 8px 0 6px; }
.otp-inputs input {
  width: 46px; height: 56px; text-align: center; font-size: 24px; font-weight: 800;
  background: var(--bg3); border: 1.5px solid var(--border2); border-radius: 12px; color: var(--text);
  font-family: var(--font); outline: none; transition: border-color .15s;
}
.otp-inputs input:focus { border-color: var(--accent); }
.otp-timer { text-align: center; font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.otp-timer b { color: var(--accent); }

/* button loading spinner */
.auth-btn.loading, .order-submit.loading { color: transparent; position: relative; pointer-events: none; }
.auth-btn.loading::after, .order-submit.loading::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .cta-neo::after, .preloader-logo, .preloader-bar::after, .cta-spark { animation: none; }
  .track-fill { transition: none; }
}

/* ══ CURRENCY TOGGLE ══════════════════════════════════════════ */
.cur-toggle {
  display: inline-flex; border-radius: 999px; overflow: hidden;
  background: var(--bg3); border: 1px solid var(--border2);
}
.cur-btn {
  border: none; background: transparent; color: var(--text-dim);
  font-family: var(--font); font-weight: 800; font-size: 11.5px; letter-spacing: .02em;
  padding: 6px 11px; cursor: pointer; transition: background .15s, color .15s;
}
.cur-btn.active { background: var(--accent); color: #fff; }
@media (max-width: 720px) { .cur-toggle { display: none; } }

/* ══ CART BUTTON + BADGE ══════════════════════════════════════ */
.cart-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg3); border: 1px solid var(--border2); color: var(--text);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 17px; transition: border-color .15s, color .15s, transform .1s;
}
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-btn:active { transform: scale(.94); }
.cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* ══ CART DRAWER ══════════════════════════════════════════════ */
.cart-backdrop {
  position: fixed; inset: 0; z-index: 350; background: rgba(4,4,8,.6);
  backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 360; height: 100%;
  width: 380px; max-width: 90vw; display: flex; flex-direction: column;
  background: var(--bg2); border-left: 1px solid var(--border2);
  box-shadow: -20px 0 60px rgba(0,0,0,.5);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--border);
}
.cart-head h3 { font-size: 18px; font-weight: 900; letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; }
.cart-head h3 i { color: var(--accent); }
.cart-x {
  width: 34px; height: 34px; border-radius: 50%; background: var(--bg3);
  border: 1px solid var(--border2); color: var(--text); cursor: pointer; font-size: 16px;
}
.cart-items { flex: 1; overflow-y: auto; padding: 12px 18px; }
.cart-empty { text-align: center; color: var(--text-dim); font-size: 14.5px; padding: 48px 12px; }
.cart-empty a { color: var(--accent); font-weight: 700; }
.cart-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}
.cart-item-main { flex: 1; min-width: 0; }
.cart-item-plan { font-weight: 800; font-size: 14.5px; }
.cart-item-text { font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-right { display: flex; align-items: center; gap: 10px; }
.cart-item-price { font-weight: 800; font-size: 14px; color: var(--text); white-space: nowrap; }
.cart-item-rm {
  width: 30px; height: 30px; border-radius: 8px; background: transparent;
  border: 1px solid var(--border2); color: var(--text-muted); cursor: pointer; font-size: 13px;
  transition: color .15s, border-color .15s;
}
.cart-item-rm:hover { color: var(--accent); border-color: var(--accent); }
.cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; font-weight: 700; }
.cart-total-row small { color: var(--text-muted); font-weight: 600; }
.cart-total-val { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.cart-checkout {
  width: 100%; background: var(--grad); color: #fff; border: none; border-radius: 12px;
  padding: 14px; font-weight: 800; font-family: var(--font); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: box-shadow .2s; position: relative;
}
.cart-checkout:hover { box-shadow: 0 8px 24px var(--accent-glow); }
.cart-checkout.loading { color: transparent; pointer-events: none; }
.cart-checkout.loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; top: 50%; left: 50%;
  margin: -9px 0 0 -9px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: btnSpin .7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ══ CHECKOUT MODAL ═══════════════════════════════════════════ */
.co-check {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff;
  background: linear-gradient(135deg,#16b981,#0e9f6e); box-shadow: 0 8px 24px rgba(22,185,129,.35);
}
#checkout-modal .modal-title, #checkout-modal .modal-sub { text-align: center; }
.co-orderbox {
  margin: 20px 0; padding: 16px; border-radius: 14px; text-align: center;
  background: var(--accent-dim); border: 1px dashed var(--accent);
}
.co-orderlabel { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.co-orderrow { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
.co-orderno { font-size: 26px; font-weight: 900; letter-spacing: .04em; color: var(--text); }
.co-copy {
  background: var(--bg3); border: 1px solid var(--border2); color: var(--text);
  border-radius: 8px; padding: 6px 12px; font-family: var(--font); font-weight: 700; font-size: 12px; cursor: pointer;
}
.co-copy:hover { border-color: var(--accent); color: var(--accent); }
.co-steps { margin: 4px 0 18px; padding-left: 20px; }
.co-steps li { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; margin-bottom: 9px; }
.co-steps li b { color: var(--text); background: var(--bg3); padding: 1px 7px; border-radius: 6px; letter-spacing: .03em; }
.co-totalrow {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 18px;
  font-weight: 700;
}
.co-total-val { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.co-pay {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; background: #0070ba; color: #fff; border-radius: 12px; padding: 14px;
  font-weight: 800; font-size: 15px; text-decoration: none; transition: background .2s, box-shadow .2s;
}
.co-pay:hover { background: #005ea6; box-shadow: 0 8px 24px rgba(0,112,186,.4); color: #fff; text-decoration: none; }
.co-track { display: block; text-align: center; margin-top: 14px; color: var(--text-dim); font-weight: 700; font-size: 13.5px; }
.co-track:hover { color: var(--accent); }

/* Guest vs. account picker */
.co-mode-list { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; text-align: left; }
.co-mode {
  display: flex; align-items: center; gap: 14px; width: 100%; cursor: pointer;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 14px; padding: 16px 18px;
  font-family: var(--font); color: var(--text); transition: border-color .18s, transform .18s, box-shadow .18s;
}
.co-mode:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.co-mode i { font-size: 20px; color: var(--accent); flex-shrink: 0; }
.co-mode span { display: flex; flex-direction: column; gap: 3px; }
.co-mode b { font-size: 14.5px; font-weight: 800; }
.co-mode small { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.co-mode-primary { background: var(--grad, linear-gradient(135deg,#ff2e63,#ff6b3d)); border-color: transparent; }
.co-mode-primary b, .co-mode-primary small, .co-mode-primary i { color: #fff; }
.co-mode-primary small { opacity: .9; }

/* Guest email note + guest proof note in checkout */
.co-email-note { font-size: 12px; color: var(--text-muted); line-height: 1.45; margin-top: 6px; }
.co-guest-proof {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 16px;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 12px;
  padding: 14px 16px; font-size: 13px; color: var(--text-dim); line-height: 1.5; text-align: left;
}
.co-guest-proof i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
input.co-item-err { border-color: #ff5b6a !important; }

/* ══ FOOTER ORDER TRACKING ════════════════════════════════════ */
.footer-track {
  width: 100%; max-width: 560px; margin: 0 auto 34px; padding: 24px 26px;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius-lg);
  text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.footer-track-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.footer-track-sub { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin-bottom: 16px; }
.track-form { display: flex; gap: 10px; flex-wrap: wrap; }
.track-input {
  flex: 1 1 160px; min-width: 0; font-family: var(--font); font-size: 14px; color: var(--text);
  background: var(--bg2); border: 1px solid var(--border2); border-radius: 12px; padding: 12px 14px; outline: none;
  transition: border-color .18s;
}
.track-input:focus { border-color: var(--accent); }
.track-btn {
  flex: 0 0 auto; font-family: var(--font); font-weight: 800; font-size: 14px; color: #fff; cursor: pointer;
  background: var(--grad); border: none; border-radius: 12px; padding: 12px 24px; transition: transform .18s, box-shadow .18s;
}
.track-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255,0,66,.3); }
.track-result { display: none; margin-top: 18px; text-align: left; }
.track-result.show { display: block; }
.track-result.err { color: #ff8b95; font-size: 13.5px; text-align: center; line-height: 1.5; }
.track-loading { text-align: center; color: var(--text-dim); font-size: 13.5px; }
.track-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.track-ono { font-size: 15px; font-weight: 900; letter-spacing: .02em; }
.track-date { font-size: 12px; color: var(--text-muted); }
.track-items { display: flex; flex-direction: column; gap: 10px; }
.track-item { background: var(--bg2); border: 1px solid var(--border2); border-radius: 12px; padding: 14px 16px; }
.track-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.track-item-name { font-size: 14.5px; font-weight: 800; word-break: break-word; }
.track-pill { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 4px 11px; border-radius: 20px; white-space: nowrap; }
.track-item-plan { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.track-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.track-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--accent);
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px; padding: 7px 12px; text-decoration: none;
}
.track-link:hover { border-color: var(--accent); }
.track-msg { font-size: 13px; color: var(--text-dim); margin-top: 10px; line-height: 1.5; }
@media (max-width: 480px) { .track-btn { flex: 1 1 100%; } }

/* ══ FOOTER ATTRIBUTION ═══════════════════════════════════════ */
.footer-attrib { margin-top: 8px; font-size: 11.5px; color: var(--text-muted); }
.footer-attrib a { color: var(--text-dim); }
.footer-attrib a:hover { color: var(--accent); }

/* order number chip (account cards) */
.order-no { margin-top: 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--accent); }

/* ══ CART: coupon + discount rows ═════════════════════════════ */
.coupon-row { display: flex; gap: 8px; margin-bottom: 10px; }
.coupon-input {
  flex: 1; background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px;
  padding: 10px 12px; color: var(--text); font-family: var(--font); font-size: 13px; outline: none;
  text-transform: uppercase; letter-spacing: .04em;
}
.coupon-input:focus { border-color: var(--accent); }
.coupon-apply {
  background: var(--bg3); border: 1px solid var(--border2); color: var(--text);
  border-radius: 10px; padding: 0 16px; font-weight: 800; font-size: 13px; font-family: var(--font); cursor: pointer;
}
.coupon-apply:hover { border-color: var(--accent); color: var(--accent); }
.coupon-msg { font-size: 12px; min-height: 0; margin-bottom: 6px; color: var(--text-muted); }
.coupon-msg.err { color: var(--red); }
.coupon-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.4); border-radius: 10px;
  padding: 9px 13px; font-weight: 800; font-size: 13px; color: #34d399;
}
.coupon-applied button { background: none; border: none; color: var(--text-dim); font-weight: 700; font-size: 12px; cursor: pointer; font-family: var(--font); }
.coupon-applied button:hover { color: var(--red); }
.cart-save-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #34d399; margin-bottom: 8px; }
.cart-item-price s { color: var(--text-muted); font-weight: 600; font-size: 12px; }
.cart-item-price b.free { color: #34d399; }
.cart-orig { color: var(--text-muted); font-size: 15px; font-weight: 600; margin-right: 4px; }

/* ══ CHECKOUT: free state + payment-proof dropzone ════════════ */
.modal.co-free .co-pay, .modal.co-free .co-orderbox { }
.modal.co-free .co-check { background: linear-gradient(135deg,#a06bff,#7b3ff2); box-shadow: 0 8px 24px rgba(123,63,242,.35); }
.modal.co-free .co-pay { display: none; }
.co-proof { margin-top: 18px; }
.pz-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); margin-bottom: 9px; display: flex; align-items: center; gap: 7px; }
.pz-title i { color: var(--accent); }
.pz-drop {
  position: relative; border: 1.5px dashed var(--border2); border-radius: 14px; background: var(--bg3);
  padding: 22px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
  display: flex; flex-direction: column; align-items: center; gap: 8px; outline: none;
}
.pz-drop:hover, .pz-drop:focus { border-color: var(--accent); }
.pz-drop.drag { border-color: var(--accent); background: var(--accent-dim); }
.pz-drop > i { font-size: 26px; color: var(--text-muted); }
.pz-hint { font-size: 12.5px; color: var(--text-dim); max-width: 260px; line-height: 1.4; }
.pz-preview:empty { display: none; }
.pz-preview img { max-width: 100%; max-height: 200px; border-radius: 10px; margin-top: 6px; border: 1px solid var(--border2); }
.pz-status { font-size: 12.5px; font-weight: 700; color: var(--text-dim); min-height: 0; }
.pz-status.ok { color: #34d399; }
.pz-status.err { color: var(--red); }
.pz-drop.busy { opacity: .7; pointer-events: none; }
.pz-drop.has { border-style: solid; border-color: rgba(52,211,153,.4); }

/* ══ ACCOUNT / PROFILE redesign ═══════════════════════════════ */
.profile-hero {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(160deg, rgba(255,0,66,0.09), var(--bg3) 70%);
  border: 1px solid var(--border2); border-radius: var(--radius-lg);
  padding: 26px 28px; margin-bottom: 16px;
}
.profile-avatar {
  width: 66px; height: 66px; border-radius: 20px; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900;
  box-shadow: 0 10px 26px var(--accent-glow); flex-shrink: 0;
}
.profile-info { flex: 1; min-width: 0; }
.profile-info h1 { font-size: clamp(22px, 4vw, 32px); font-weight: 900; letter-spacing: -0.02em; }
.profile-email { color: var(--text-dim); font-size: 14px; margin-top: 3px; word-break: break-word; }
.profile-logout {
  background: var(--bg3); border: 1px solid var(--border2); color: var(--text);
  border-radius: 12px; padding: 11px 18px; font-weight: 700; font-family: var(--font); font-size: 13px; cursor: pointer;
}
.profile-logout:hover { border-color: var(--accent); color: var(--accent); }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; }
.pf-stat { background: var(--bg3); border: 1px solid var(--border2); border-radius: 16px; padding: 18px 14px; text-align: center; }
.pf-num { display: block; font-size: 28px; font-weight: 900; line-height: 1; }
.pf-lbl { display: block; font-size: 11.5px; color: var(--text-dim); margin-top: 7px; font-weight: 600; }
.orders-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.orders-h { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }

/* collapsible order card */
.order-card { padding: 0; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.order-header {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: var(--font);
  color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px;
}
.order-header:hover { background: var(--bg2); }
.order-header-main { min-width: 0; }
.order-header-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.order-chevron { transition: transform .3s; color: var(--text-dim); display: flex; font-size: 20px; }
.order-card.open .order-chevron { transform: rotate(180deg); }
.order-no-row { margin-top: 6px; }
.order-no-row .order-no { margin-top: 0; }
.order-body { max-height: 0; overflow: hidden; transition: max-height .38s ease; padding: 0 24px; }
.order-card.open .order-body { max-height: 6000px; padding: 4px 24px 24px; }
.order-card.needs-you { border-color: rgba(255,0,66,.45); box-shadow: 0 0 0 1px rgba(255,0,66,.18); }
.order-card.needs-you .order-name::after {
  content: '●'; color: var(--accent); font-size: 11px; vertical-align: middle; margin-left: 8px;
}
.proof-thumb { display: inline-block; }
.proof-thumb img { max-width: 240px; max-height: 220px; border-radius: 10px; border: 1px solid var(--border2); display: block; }
@media (max-width: 560px) { .profile-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; } .pf-num { font-size: 22px; } }

/* ══ MOBILE NAV / HAMBURGER ═══════════════════════════════════ */
.nav-burger {
  display: none; width: 40px; height: 40px; border-radius: 12px; padding: 0;
  background: var(--bg3); border: 1px solid var(--border2); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; right: 0; z-index: 250; width: min(330px, 86vw); height: 100%;
  background: var(--bg2); border-left: 1px solid var(--border2); box-shadow: -20px 0 60px rgba(0,0,0,.5);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  padding: 92px 26px 30px; overflow-y: auto; display: flex; flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-backdrop {
  position: fixed; inset: 0; z-index: 240; background: rgba(4,4,8,.6); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
body.menu-open .mobile-menu-backdrop { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }
.mm-links { display: flex; flex-direction: column; }
.mm-links a { font-size: 17px; font-weight: 700; color: var(--text); padding: 15px 4px; border-bottom: 1px solid var(--border); transition: color .15s, padding-left .15s; }
.mm-links a:hover { color: var(--accent); padding-left: 8px; text-decoration: none; }
.mm-controls { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.mm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mm-lbl { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.mobile-menu .cur-toggle { display: inline-flex; }
.mobile-menu .lang-toggle .lang-btn { padding: 7px 14px; font-size: 13px; }

@media (max-width: 720px) {
  .nav-burger { display: flex; }
  .nav-right .lang-toggle { display: none; }   /* moved into the menu */
  .nav-right { gap: 8px; }
}

/* ══ CONSOLIDATED MOBILE POLISH ═══════════════════════════════ */
@media (max-width: 600px) {
  .btn-primary, .btn-secondary { font-size: 14px; padding: 12px 20px; }
  .section-title { font-size: clamp(24px, 7vw, 34px); }
  .hero { padding: 120px 20px 70px; }
  .cta-neo { padding: 44px 22px; }
}
@media (max-width: 480px) {
  .modal { padding: 14px; align-items: flex-end; }
  .modal-card { padding: 24px 18px; max-height: 94vh; border-radius: 22px 22px 16px 16px; }
  .order-actions { flex-direction: column; }
  .order-actions .order-cancel { width: 100%; }
  .co-orderno { font-size: 22px; }
  .co-orderrow { flex-wrap: wrap; }
}
@media (max-width: 460px) {
  .cart-drawer { width: 100vw; max-width: 100vw; border-left: none; }
}
/* account profile hero on phones */
@media (max-width: 560px) {
  .profile-hero { padding: 20px; gap: 14px; }
  .profile-avatar { width: 54px; height: 54px; font-size: 24px; border-radius: 16px; }
  .profile-logout { width: 100%; order: 3; }
  .order-header { padding: 16px 18px; }
  .order-card.open .order-body { padding: 4px 18px 20px; }
  .order-body { padding: 0 18px; }
  .acct { padding: 110px 16px 70px; }
}

/* ══ HOME PROMO BANNER ════════════════════════════════════════ */
.promo-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 44px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 46px 0 16px; overflow: hidden;
  background: linear-gradient(90deg, var(--accent), var(--accent2) 55%, var(--accent3));
  color: #fff; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 4px 20px rgba(255,0,66,.28);
}
.promo-bar-inner { display: flex; align-items: center; gap: 12px; min-width: 0; }
.promo-emoji { font-size: 16px; }
.promo-deal { font-weight: 900; white-space: nowrap; }
.promo-use { display: inline-flex; align-items: center; gap: 8px; opacity: .96; white-space: nowrap; }
.promo-code-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: rgba(255,255,255,.2); border: 1px dashed rgba(255,255,255,.65); color: #fff;
  font-family: var(--font); font-weight: 800; font-size: 12.5px; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 8px; transition: background .15s;
}
.promo-code-btn:hover { background: rgba(255,255,255,.34); }
.promo-bar-actions { position: absolute; right: 10px; display: flex; align-items: center; gap: 8px; }
.promo-bar-cta {
  background: #fff; color: var(--accent); border: none; border-radius: 999px;
  font-family: var(--font); font-weight: 800; font-size: 12.5px; padding: 6px 16px; cursor: pointer; transition: transform .12s;
}
.promo-bar-cta:hover { transform: translateY(-1px); }
.promo-bar-x { background: rgba(255,255,255,.16); border: none; color: #fff; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1; }
.promo-bar-x:hover { background: rgba(255,255,255,.32); }
body.has-promo .nav { top: 44px; }
@media (max-width: 720px) {
  .promo-bar { height: 42px; font-size: 12px; padding: 0 12px; gap: 10px; justify-content: space-between; }
  .promo-use-lbl { display: none; }
  .promo-bar-cta { display: none; }
  .promo-bar-actions { position: static; }
  body.has-promo .nav { top: 42px; }
}

/* ══ CHECKOUT: MercadoPago + divider ══════════════════════════ */
/* MercadoPago rebranded to yellow — dark navy text/logo on yellow */
.co-mp { background: #ffe600; color: #2c2c54; margin-bottom: 0; }
.co-mp:hover { background: #ffd500; box-shadow: 0 8px 24px rgba(255,214,0,.45); color: #2c2c54; }
.co-mp.loading { color: transparent; pointer-events: none; position: relative; }
.co-mp.loading::after { content: ''; position: absolute; width: 18px; height: 18px; top: 50%; left: 50%; margin: -9px 0 0 -9px; border: 2px solid rgba(0,0,0,.2); border-top-color: #2c2c54; border-radius: 50%; animation: btnSpin .7s linear infinite; }
.co-or { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 14px 0; }
.co-or::before, .co-or::after { content: ''; flex: 1; height: 1px; background: var(--border2); }
.co-pay.co-pay-alt { background: var(--bg3); border: 1px solid var(--border2); color: var(--text); }
.co-pay.co-pay-alt:hover { border-color: #0070ba; background: var(--bg3); color: var(--text); box-shadow: none; }

/* ══ ACCOUNT: pending-payment block ═══════════════════════════ */
.pay-block { border-color: rgba(255,0,66,.35); background: linear-gradient(160deg, rgba(255,0,66,0.05), var(--bg2)); }
.pay-block .pay-total { font-size: 15px; margin-bottom: 13px; color: var(--text-dim); }
.pay-block .pay-total b { font-weight: 900; color: var(--text); font-size: 16px; }
.pay-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  border: none; border-radius: 12px; padding: 13px; font-family: var(--font); font-weight: 800; font-size: 14.5px;
  cursor: pointer; text-decoration: none; transition: box-shadow .2s, background .2s, border-color .2s;
}
.pay-mp { background: #ffe600; color: #2c2c54; }
.pay-mp:hover { background: #ffd500; box-shadow: 0 8px 22px rgba(255,214,0,.4); }
.pay-mp.loading { color: transparent; position: relative; pointer-events: none; }
.pay-mp.loading::after { content: ''; position: absolute; width: 18px; height: 18px; top: 50%; left: 50%; margin: -9px 0 0 -9px; border: 2px solid rgba(0,0,0,.2); border-top-color: #2c2c54; border-radius: 50%; animation: btnSpin .7s linear infinite; }
.pay-pp { background: #0070ba; color: #fff; }
.pay-pp:hover { background: #005ea6; color: #fff; text-decoration: none; box-shadow: 0 8px 22px rgba(0,112,186,.35); }
.pay-pp.alt { background: var(--bg3); border: 1px solid var(--border2); color: var(--text); }
.pay-pp.alt:hover { border-color: #0070ba; background: var(--bg3); color: var(--text); box-shadow: none; }
.pay-or { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 10px 0; }
.pay-or::before, .pay-or::after { content: ''; flex: 1; height: 1px; background: var(--border2); }
.pay-hint { font-size: 12px; color: var(--text-muted); margin-top: 12px; line-height: 1.5; }

/* MercadoPago "auto-confirm" note in the checkout steps */
.co-steps .co-mp-auto { display: block; margin-top: 6px; color: var(--text); background: rgba(255,230,0,.10); border: 1px solid rgba(255,230,0,.32); padding: 6px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; }

/* ══ ACCOUNT: payment chips + summary ═════════════════════════ */
.order-badges { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.order-badges:empty { display: none; }
.pay-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.pay-chip i { font-size: 12px; }
.pay-chip.awaiting { color: #e0b020; background: rgba(224,176,32,.12); border: 1px solid rgba(224,176,32,.4); }
.pay-chip.proc { color: #22b8cf; background: rgba(34,184,207,.12); border: 1px solid rgba(34,184,207,.4); }
.pay-chip.paid { color: #34d399; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.4); }
.pay-summary .o-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 18px; }
.pay-summary .o-field .k { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 3px; }
.pay-summary .o-field .v { color: var(--text); font-weight: 600; font-size: 13.5px; }

/* ══ COMBINED LOCALE SELECTOR (currency + language) ═══════════ */
.locale-dd { position: relative; }
.locale-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: var(--bg3); border: 1px solid var(--border2); color: var(--text);
  font-family: var(--font); font-weight: 700; font-size: 12.5px; padding: 8px 12px; border-radius: 10px;
}
.locale-btn:hover { border-color: var(--accent); }
.locale-btn > i:first-child { color: var(--accent); font-size: 14px; }
.locale-btn .caret { font-size: 14px; color: var(--text-dim); transition: transform .2s; }
.locale-dd.open .locale-btn .caret { transform: rotate(180deg); }
.locale-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 156px; z-index: 120;
  background: var(--bg2); border: 1px solid var(--border2); border-radius: 12px; padding: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5); display: none; flex-direction: column; gap: 2px;
}
.locale-dd.open .locale-menu { display: flex; animation: modalFade .15s ease; }
.locale-menu button {
  text-align: left; background: none; border: none; color: var(--text-dim);
  font-family: var(--font); font-weight: 700; font-size: 13px; padding: 9px 12px; border-radius: 8px; cursor: pointer;
}
.locale-menu button:hover { background: var(--bg3); color: var(--text); }
.locale-menu button.on { background: var(--accent-dim); color: var(--accent); }
@media (max-width: 720px) { .nav-right .locale-dd { display: none; } }
.mm-locale { margin-top: 4px; }
.mm-locale .mm-lbl { display: block; margin-bottom: 10px; }
.locale-menu-m { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.locale-menu-m button {
  background: var(--bg3); border: 1px solid var(--border2); color: var(--text-dim);
  font-family: var(--font); font-weight: 700; font-size: 13px; padding: 11px; border-radius: 10px; cursor: pointer;
}
.locale-menu-m button.on { background: var(--grad); border-color: transparent; color: #fff; }

/* ══ PRICING REDESIGN ═════════════════════════════════════════ */
.plan { text-align: left; }
.plan-features { text-align: left; }
/* header row: icon tile + name/tag */
.plan-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.plan-headtext { min-width: 0; }
.plan-ic {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 25px;
  background: rgba(160,107,255,0.14); color: #b98bff;   /* default (chill/priority) purple */
}
/* per-plan icon tints, matching the mockup */
.plan[data-plan-key="advanced"] .plan-ic { background: rgba(255,0,66,0.16); color: #ff3d73; }
.plan[data-plan-key="priority"] .plan-ic { background: rgba(160,107,255,0.14); color: #b98bff; }
.plan.selected .plan-ic { box-shadow: 0 8px 22px rgba(255,0,66,0.22); }
.plan-tag { font-size: 12.5px; color: var(--text-dim); margin: 3px 0 0; line-height: 1.4; }
.plan-once { font-size: 11.5px; color: var(--text-muted); font-weight: 600; margin-top: 6px; letter-spacing: .02em; }
.plan-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.plan-cta i { font-size: 15px; }

/* ══ CHECKOUT WIZARD ══════════════════════════════════════════ */
.co-wizard { max-width: 560px; }
.co-progress { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 22px; }
.co-prog-step { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.co-prog-step b { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg3); border: 1px solid var(--border2); font-size: 12px; }
.co-prog-step.on { color: var(--text); }
.co-prog-step.on b { background: var(--grad); border-color: transparent; color: #fff; }
.co-prog-line { width: 44px; height: 2px; background: var(--border2); border-radius: 2px; }
#co-email { color: var(--text-dim); cursor: not-allowed; }
.co-item-form { border: 1px solid var(--border2); border-radius: 14px; padding: 16px 16px 4px; margin-bottom: 14px; background: var(--bg3); }
.co-item-form.co-item-err { border-color: rgba(255,91,106,.6); }
.co-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.co-item-name { font-weight: 800; font-size: 15px; }
.co-item-price { font-weight: 800; color: var(--accent); }
.ord-field .req { color: var(--accent); }
#co-methods { display: flex; flex-direction: column; }
#co-pay-total { margin: 16px 0 4px; }
.co-back-btn { margin-top: 16px; background: none; border: none; color: var(--text-dim); font-family: var(--font); font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.co-back-btn:hover { color: var(--text); }
.co-free-btn { background: linear-gradient(135deg,#a06bff,#7b3ff2); color: #fff; }
.co-free-btn:hover { box-shadow: 0 8px 24px rgba(123,63,242,.4); color: #fff; }
/* MercadoPago button — yellow with the real logo */
.co-mp .co-mp-logo, .pay-mp .co-mp-logo { height: 20px; width: auto; display: block; }
.co-mp span, .pay-mp span { font-weight: 800; }

/* ══ FOOTER PAYMENT METHODS ═══════════════════════════════════ */
.footer-pay { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0 6px; }
.footer-pay-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.footer-pay-logos { display: flex; align-items: center; gap: 14px; }
.pay-logo { background: #fff; border-radius: 9px; padding: 8px 14px; height: 38px; display: flex; align-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.pay-logo img { height: 21px; width: auto; display: block; }

/* ══ LIGHT THEME ══════════════════════════════════════════════ */
:root[data-theme="light"] {
  --accent:      #ff0042;
  --accent2:     #ff2e63;
  --accent3:     #ff5c7a;
  --accent-dim:  rgba(255,0,66,0.08);
  --accent-glow: rgba(255,0,66,0.22);
  --bg:          #fef7ef;
  --bg2:         #ffffff;
  --bg3:         #f6ece0;
  --border:      #ecdfd0;
  --border2:     #e2d3c0;
  --text:        #1b1b24;
  --text-dim:    #6a6472;
  --text-muted:  #9a9184;
}
:root[data-theme="light"] .nav { background: rgba(254,247,239,0.85); border-bottom-color: var(--border); }
:root[data-theme="light"] #preloader { background: radial-gradient(ellipse at center, #ffe6ec 0%, var(--bg) 70%); }
:root[data-theme="light"] .hero::after { opacity: 0.05; }
:root[data-theme="light"] .cta-neo::before { opacity: 0.06; }
/* the feature pills use a hardcoded dark background — lighten them on the light card */
:root[data-theme="light"] .cta-pill {
  background: rgba(255,255,255,0.66);
  border-color: var(--border2);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(120,60,40,0.06);
}
/* soften the heavy dark shadows on a light surface */
:root[data-theme="light"] .modal-card,
:root[data-theme="light"] .cart-drawer,
:root[data-theme="light"] .mobile-menu,
:root[data-theme="light"] .ui-box,
:root[data-theme="light"] .auth-card,
:root[data-theme="light"] .locale-menu { box-shadow: 0 26px 70px rgba(120,60,40,0.16), 0 0 0 1px rgba(255,0,66,0.08); }
:root[data-theme="light"] .plan,
:root[data-theme="light"] .order-card,
:root[data-theme="light"] .pf-stat,
:root[data-theme="light"] .info-card { box-shadow: 0 8px 24px rgba(120,60,40,0.06); }
:root[data-theme="light"] .promo-bar { box-shadow: 0 4px 20px rgba(255,0,66,.22); }

/* ══ THEME TOGGLE BUTTON ══════════════════════════════════════ */
.theme-btn {
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  background: var(--bg3); border: 1px solid var(--border2); color: var(--text);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: border-color .15s, color .15s, transform .1s;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn:active { transform: scale(.92); }
.theme-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.theme-btn-m {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--bg3); border: 1px solid var(--border2); color: var(--text);
  font-family: var(--font); font-weight: 700; font-size: 13px; padding: 9px 14px; border-radius: 10px;
}
.theme-btn-m:hover { border-color: var(--accent); color: var(--accent); }
