:root {
  --bg: #050608;
  --bg-2: #0a0b10;
  --ink: #e9ecf3;
  --muted: #8e95a8;
  --dim: #5a6175;
  --panel: rgba(18, 21, 32, 0.72);
  --panel-2: rgba(12, 15, 24, 0.8);
  --border: rgba(255, 60, 80, 0.15);
  --border-hi: rgba(255, 60, 80, 0.35);
  --neon: #ff2d4a;
  --neon-2: #ff1744;
  --neon-glow: 0 0 18px rgba(255, 45, 74, 0.65), 0 0 40px rgba(255, 23, 68, 0.35);
  --red-smoke: rgba(255, 60, 80, 0.25);
  --gold: #ffc857;
  --green: #2ee88a;
  --red: #ff1744;
  --yellow: #ffd166;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--neon); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
a:hover { color: var(--neon-2); border-bottom-color: var(--neon-2); }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 900; letter-spacing: 0.02em; margin: 0 0 0.5em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 4vw + 0.5rem, 3.4rem); line-height: 1.1; text-shadow: 2px 2px 0 rgba(255,23,68,0.3); }
h2 { font-size: clamp(1.5rem, 2vw + 0.5rem, 2.2rem); text-shadow: 1px 1px 0 rgba(255,23,68,0.25); }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1rem; color: #cdd3e2; }
small, .small { font-size: 0.86rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
code { background: rgba(255,45,74,0.1); padding: 2px 6px; border-radius: 6px; color: #ff8fa0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; }

/* ====== Background effects ====== */
.bg-smoke, .bg-grid { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.bg-smoke {
  background:
    radial-gradient(60% 40% at 80% 20%, rgba(255, 60, 80, 0.28), transparent 70%),
    radial-gradient(45% 35% at 10% 85%, rgba(255, 45, 74, 0.18), transparent 70%),
    radial-gradient(30% 30% at 50% 50%, rgba(255, 80, 100, 0.12), transparent 70%);
  filter: blur(40px);
}
.bg-grid {
  background-image:
    linear-gradient(rgba(255,45,74,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,45,74,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.9), transparent 70%);
}

/* ====== Layout ====== */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 780px; }
.section { padding: 3.5rem 0; position: relative; }
.section::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, #ff2d4a, transparent);
  box-shadow: 0 0 12px rgba(255,45,74,0.6), inset 0 0 8px rgba(255,45,74,0.3);
}
.section:first-of-type::before { display: none; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h1, .section-head h2 { margin-bottom: 0.5rem; }
.main-wrap { min-height: 60vh; }

/* ====== Top nav ====== */
.top-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 6, 8, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 0;
  background: #ff1744;
  border: 2px solid #ff2d4a;
  position: relative;
  box-shadow: 2px 2px 0 rgba(255, 45, 74, 0.5);
}
.brand-mark::after {
  content: ''; position: absolute; inset: 4px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,0.45) 0 2px, transparent 2px 4px);
}
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: white; }
.brand-dot { color: #ff1744; }
.main-links { display: flex; gap: 1.25rem; }
.main-links a { color: #c7cfde; font-weight: 500; font-size: 0.95rem; }
.main-links a:hover { color: white; }
.nav-cta { display: flex; gap: 0.5rem; align-items: center; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); border-radius: 8px; padding: 8px; gap: 4px; flex-direction: column; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: white; display: block; }
@media (max-width: 960px) {
  .top-nav .main-links { display: none; }
  .top-nav .nav-toggle { display: inline-flex; }
  body.menu-open .top-nav .main-links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(10,11,16,0.96); padding: 1rem; flex-direction: column; border-bottom: 1px solid var(--border);
  }
  .top-nav .nav-cta { display: none; }
  body.menu-open .top-nav .nav-cta { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 330px; left: 0; right: 0; background: rgba(10,11,16,0.96); padding: 0 1rem 1rem; gap: 0.5rem;}
}

/* ====== App nav (signed-in dashboard/admin) ====== */
.app-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.app-nav .nav-email { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-nav-toggle { display: none; }
@media (max-width: 900px) {
  .app-nav-toggle { display: inline-flex; }
  .app-nav .nav-cta .nav-email { display: none; }
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.3rem; border-radius: 0; font-weight: 900; font-size: 0.9rem;
  cursor: pointer; border: 2px solid; transition: all 0.1s ease;
  text-decoration: none; white-space: nowrap; letter-spacing: 0.05em; text-transform: uppercase;
  position: relative; overflow: hidden;
}
.btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); opacity: 0; transition: opacity 0.1s; pointer-events: none; }
.btn:hover::before { opacity: 1; }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary {
  background: #ff1744;
  color: #000;
  border-color: #ff2d4a;
  box-shadow: 2px 2px 0 rgba(255,45,74,0.4);
}
.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 rgba(255,45,74,0.4);
  background: #ff2a50;
  border-color: #ffff00;
}
.btn-primary:active { transform: translate(4px, 4px); }
.btn-outline { background: transparent; border-color: #ff1744; color: #ff2d4a; }
.btn-outline:hover { background: rgba(255,23,68,0.15); color: white; border-color: #ff2d4a; transform: translate(1px, 1px); box-shadow: 1px 1px 0 #ff1744; }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn-ghost:hover { color: #ff2d4a; border-color: #ff1744; }
.btn-danger { background: transparent; color: #ff1744; border-color: #ff1744; }
.btn-danger:hover { background: rgba(255,23,68,0.2); color: white; transform: translate(1px, 1px); box-shadow: 1px 1px 0 #ff1744; }
.user-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-buy {
  display: block; width: 100%;
  background: #ff1744;
  color: #000; border: 2px solid #ff2d4a;
  padding: 0.65rem 0.9rem; border-radius: 0; cursor: pointer;
  font-weight: 900; font-size: 0.85rem;
  box-shadow: 2px 2px 0 rgba(255,45,74,0.4);
  transition: all 0.1s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-buy:hover { background: #ff2a50; box-shadow: 0 0 0 rgba(255,45,74,0.4); transform: translate(2px, 2px); }

/* ====== Telegram Float ====== */
.telegram-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.telegram-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088cc, #005fa3);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.telegram-btn:hover {
  background: linear-gradient(135deg, #0099dd, #0066b3);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.5);
}

.telegram-btn:active {
  transform: scale(0.95);
}

.telegram-btn svg {
  width: 30px;
  height: 30px;
}

.tg-label {
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ====== Pills / badges ====== */
.pill {
  display: inline-block; font-size: 0.75rem; padding: 0.35rem 0.9rem;
  border-radius: 0; border: 1px solid #ff1744; color: #ff2d4a;
  background: rgba(255,45,74,0.1);
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pill-neon { border-color: #ff2d4a; color: #ffff99; background: rgba(255,255,0,0.08); }
.pill-admin { background: rgba(255,200,87,0.12); color: var(--gold); border-color: rgba(255,200,87,0.5); border-radius: 0; }
.sandbox-pill {
  font-size: 0.7rem; padding: 0.3rem 0.7rem; border-radius: 0;
  background: rgba(255,200,87,0.12); color: var(--gold);
  border: 1px solid rgba(255,200,87,0.6); letter-spacing: 0.1em; font-weight: 800;
  text-transform: uppercase;
}

/* ====== Hero ====== */
.hero { padding: 5rem 0 3rem; position: relative; }
.hero-inner { text-align: center; max-width: 900px; }
.hero-title { margin: 0 auto 1rem; }
.gradient-text {
  background: linear-gradient(90deg, #ffff00, #ff2d4a, #ff1744);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 900;
}
.hero-sub { font-size: 1.1rem; color: #c2c8d8; max-width: 640px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.trust-row { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; align-items: center; }
.trust-item strong { color: white; font-size: 1.1rem; }
.hero-glow {
  position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
  width: 70%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(255,45,74,0.25), transparent 60%);
  filter: blur(50px); pointer-events: none; z-index: -1;
}

/* ====== Product grid (card catalog) ====== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
@media (min-width: 1400px) { .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; } }

.product-tile {
  background: linear-gradient(180deg, rgba(18,21,32,0.8), rgba(12,15,24,0.8));
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 0.85rem;
  display: flex; flex-direction: column; gap: 0.45rem;
  transition: all 0.15s ease;
  position: relative; overflow: hidden;
}
.product-tile::before {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(135deg, transparent 70%, rgba(255,45,74,0.3));
  border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.2s;
}
.product-tile:hover { transform: translateY(-3px); border-color: var(--border-hi); box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 22px rgba(255,45,74,0.3); }
.product-tile:hover::before { opacity: 1; }
.product-thumb { aspect-ratio: 1.58 / 1; border-radius: 10px; overflow: hidden; margin-bottom: 0.3rem; background: #0b0f19; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-placeholder { background: linear-gradient(135deg, #0b2a5c, #1c4a95); }
.catalog-thumb { width: 80px; height: 50px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.row-actions { display: flex; gap: 0.4rem; align-items: center; }
.product-brand { color: white; font-weight: 700; font-size: 0.95rem; margin: 0.15rem 0 0; }
.product-title { color: white; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.05em; }
.rating { display: flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; }
.stars { color: var(--gold); letter-spacing: 1px; text-shadow: 0 0 6px rgba(255,200,87,0.5); }
.rating-num { color: #dfe4f0; }
.social-proof { font-size: 0.78rem; color: #c1c8d9; }
.availability { font-size: 0.78rem; color: #b5bdcf; }
.availability .stock { color: var(--green); font-weight: 700; }

/* Card face rendering (the glossy card visuals) */
.card-face {
  position: relative; width: 100%; height: 100%;
  border-radius: 10px; padding: 10px 12px 12px;
  color: white; overflow: hidden;
  background: linear-gradient(135deg, #0d1a2b, #111c2e);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 6px 14px rgba(0,0,0,0.4);
  display: flex; flex-direction: column; justify-content: space-between;
}
.card-face::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 50%);
  pointer-events: none;
}
.card-face .chip {
  width: 30px; height: 22px; border-radius: 5px;
  background: linear-gradient(135deg, #ffd27a, #b48a3f);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3);
}
.card-face .waves {
  position: absolute; right: 10px; top: 12px; width: 18px; height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 35%, rgba(255,255,255,0.6) 36%, rgba(255,255,255,0.6) 42%, transparent 43% 55%, rgba(255,255,255,0.45) 56% 62%, transparent 63%);
}
.card-face .face-brand { position: absolute; bottom: 8px; right: 10px; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.95; }
.card-face .face-number { font-size: 0.7rem; letter-spacing: 0.12em; opacity: 0.9; }
.card-face .face-foot { display: flex; gap: 0.75rem; font-size: 0.62rem; opacity: 0.9; }
.card-face .face-label { display: block; font-size: 0.5rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.1em; }

.thumb-amex-gold .card-face { background: linear-gradient(135deg, #b8922f, #d9b15c); }
.thumb-amex-green .card-face { background: linear-gradient(135deg, #19533e, #2a8563); }
.thumb-amex-plat .card-face { background: linear-gradient(135deg, #9fa4ae, #d7dce5); color: #1a1f2b; }
.thumb-amex-plat .card-face .face-label { color: #2b3040; }
.thumb-visa-plat .card-face { background: linear-gradient(135deg, #0b2a5c, #1c4a95); }
.thumb-visa-classic .card-face { background: linear-gradient(135deg, #0e3062, #1a5cb8); }
.thumb-visa-gold .card-face { background: linear-gradient(135deg, #182638, #2c3e5a); }
.thumb-visa-sig .card-face { background: linear-gradient(135deg, #141821, #272d3b); }
.thumb-visa-inf .card-face { background: linear-gradient(135deg, #131826, #252b3d); }
.thumb-discover .card-face { background: linear-gradient(135deg, #ff5e3a, #f78c1d); }
.thumb-discover2 .card-face { background: linear-gradient(135deg, #3a1c71, #d76d77, #ffaf7b); }
.thumb-diners .card-face { background: linear-gradient(135deg, #1d2735, #37475d); }
.thumb-mc-plat .card-face { background: linear-gradient(135deg, #b7bcc7, #dde0e6); color: #1a1f2b; }
.thumb-mc-plat .card-face .face-label { color: #2b3040; }
.thumb-mc-std .card-face { background: linear-gradient(135deg, #dadde3, #f0f2f6); color: #1a1f2b; }
.thumb-mc-std .card-face .face-label { color: #2b3040; }

.bg-visa .card-face,
.card-face.bg-visa { background: linear-gradient(135deg, #0b2a5c, #1c4a95); }
.card-face.bg-mastercard { background: linear-gradient(135deg, #b7bcc7, #dde0e6); color: #1a1f2b; }
.card-face.bg-amex { background: linear-gradient(135deg, #19533e, #2a8563); }
.card-face.bg-discover { background: linear-gradient(135deg, #ff5e3a, #f78c1d); }

/* ====== Use cases ====== */
.usecase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.usecase {
  padding: 1.25rem; border-radius: 0;
  background: var(--panel); border: 2px solid var(--border);
  transition: all 0.1s;
}
.usecase:hover { border-color: var(--border-hi); transform: translate(-2px, -2px); box-shadow: 2px 2px 0 rgba(255,45,74,0.2); }
.uc-ico { font-size: 1.75rem; margin-bottom: 0.4rem; }

/* ====== Pricing ====== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.pricing-grid-wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plan-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(180deg, rgba(18,21,32,0.8), rgba(12,15,24,0.85));
  border: 2px solid var(--border);
  border-radius: 0;
  transition: all 0.15s;
}
.plan-card:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.plan-featured { border-color: rgba(255,45,74,0.5); box-shadow: 0 0 26px rgba(255,45,74,0.35); }
.plan-current { outline: 2px solid rgba(46,232,138,0.4); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 0.25rem 0.85rem; background: #ff1744;
  color: #000; border-radius: 0; font-size: 0.7rem; font-weight: 900;
  border: 2px solid #ff2d4a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.plan-price { margin: 0.5rem 0 1rem; }
.price-amt { font-size: 2.2rem; font-weight: 800; color: white; }
.price-per { color: var(--muted); margin-left: 0.25rem; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.plan-feats li { position: relative; padding: 0.3rem 0 0.3rem 1.35rem; color: #cfd5e4; font-size: 0.92rem; border-bottom: 1px dashed rgba(120,160,255,0.08); }
.plan-feats li::before { content: '✓'; position: absolute; left: 0; top: 0.3rem; color: #ff2d4a; font-weight: bold; }

/* ====== Security grid ====== */
.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.sec-item { padding: 1.25rem; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.sec-ico { font-size: 1.75rem; margin-bottom: 0.4rem; }

/* ====== CTA band ====== */
.cta-band {
  background: linear-gradient(135deg, rgba(255,45,74,0.12), rgba(255,23,68,0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner { text-align: center; }

/* ====== Footer ====== */
.site-footer { padding: 3rem 0 1.5rem; border-top: 1px solid var(--border); background: rgba(5,6,8,0.6); margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-grid h4 { color: white; font-size: 0.95rem; margin-bottom: 0.75rem; }
.footer-grid a { display: block; color: var(--muted); padding: 0.2rem 0; font-size: 0.92rem; }
.footer-grid a:hover { color: white; }
.footer-brand { margin-bottom: 0.75rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--border); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ====== Forms ====== */
label { display: block; margin-bottom: 0.9rem; color: var(--ink); font-size: 0.92rem; font-weight: 500; }
input, select, textarea {
  width: 100%; margin-top: 0.35rem;
  background: rgba(10, 13, 22, 0.9);
  border: 2px solid var(--border);
  color: var(--ink);
  padding: 0.7rem 0.9rem; border-radius: 0;
  font: inherit; font-size: 0.95rem;
  transition: all 0.1s;
  font-weight: 500;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #ff2d4a;
  box-shadow: 0 0 0 3px rgba(255,45,74,0.16), 0 0 18px rgba(255,45,74,0.3);
}
input:disabled { opacity: 0.6; cursor: not-allowed; }
textarea { font-family: inherit; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.inline-form { display: flex; gap: 0.5rem; align-items: flex-end; flex-wrap: wrap; }
.inline-form input, .inline-form textarea, .inline-form select { margin-top: 0; width: auto; flex: 1 1 200px; }
.check { display: flex; align-items: center; gap: 0.5rem; color: #c3c9da; font-size: 0.92rem; }
.check input { width: auto; margin: 0; }
.form-card, .form-wide { display: block; }

/* ====== Auth ====== */
.auth-section { display: flex; justify-content: center; padding-top: 4rem; }
.auth-card {
  width: 100%; max-width: 440px;
  background: linear-gradient(180deg, rgba(18,21,32,0.85), rgba(10,12,20,0.95));
  border: 1px solid var(--border-hi); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-lg), 0 0 40px rgba(255,45,74,0.15);
}
.auth-card h1 { font-size: 1.6rem; }
.auth-hint { margin-top: 1.5rem; padding: 0.9rem 1rem; background: rgba(255,45,74,0.08); border: 1px dashed rgba(255,45,74,0.25); border-radius: 10px; }

/* ====== Flash ====== */
.flash-wrap { padding-top: 1rem; }
.flash { padding: 0.85rem 1.1rem; border-radius: 0; margin-bottom: 0.5rem; font-size: 0.9rem; border: 2px solid; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.flash-success { background: rgba(46,232,138,0.12); border-color: #2ee88a; color: #a7f3cc; }
.flash-error { background: rgba(255,85,118,0.15); border-color: #ff1744; color: #ff9eb2; }
.flash-info { background: rgba(255,45,74,0.15); border-color: #ff2d4a; color: #ffaacc; }

/* ====== Panels ====== */
.panel {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
}
.panel::before { content: ''; position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-top: 2px solid #ff1744; border-right: 2px solid #ff1744; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 1rem; }
.panel-quiet { background: transparent; }
.panel-alert { border-color: rgba(255,209,102,0.4); background: rgba(255,209,102,0.06); }
.panel-ok { border-color: rgba(46,232,138,0.4); background: rgba(46,232,138,0.06); }

/* ====== Dashboard shell ====== */
.page-dashboard .container, .page-admin .container { max-width: 1440px; }
.dash-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; padding-top: 1.5rem; padding-bottom: 3rem; }
@media (max-width: 900px) {
  .dash-wrap { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  body.menu-open .dash-side { display: block; }
}
.dash-side {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem;
  height: fit-content; position: sticky; top: 84px;
}
@media (max-width: 900px) { .dash-side { position: static; } }
.side-user { display: flex; align-items: center; gap: 0.65rem; padding: 0.25rem 0.5rem 0.9rem; border-bottom: 1px solid var(--border); }
.avatar {
  width: 38px; height: 38px; border-radius: 0;
  background: #ff1744;
  color: #000; display: flex; align-items: center; justify-content: center; font-weight: 900;
  border: 2px solid #ff2d4a;
  box-shadow: 2px 2px 0 rgba(255, 45, 74, 0.4);
}
.admin-avatar { background: linear-gradient(135deg, var(--gold), #ff9b3a); color: #2a1a00; box-shadow: 0 0 16px rgba(255,200,87,0.5); }
.side-who { display: flex; flex-direction: column; overflow: hidden; }
.side-name { font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-nav { display: flex; flex-direction: column; gap: 0.1rem; padding-top: 0.7rem; }
.side-nav a {
  padding: 0.55rem 0.75rem; border-radius: 9px; color: #c4cbdc; font-size: 0.93rem;
}
.side-nav a:hover { background: rgba(255,45,74,0.12); color: white; border-left: 2px solid #ff1744; }
.side-nav a.active { background: rgba(255,45,74,0.18); color: white; border-left: 3px solid #ff2d4a; font-weight: 700; }
.side-divider { height: 1px; background: var(--border); margin: 0.6rem 0.5rem; }
.admin-link { color: var(--gold) !important; font-weight: 600; }
.side-logout { padding: 0.55rem 0.75rem; border-radius: 9px; color: #ff9bb0 !important; font-size: 0.93rem; }
.side-logout:hover { background: rgba(255,85,118,0.12); color: white !important; }

.dash-main { min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.dash-head h1 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.back-link { font-size: 0.88rem; color: var(--muted); display: inline-block; margin-bottom: 0.4rem; }

/* Stat cards */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: linear-gradient(180deg, rgba(18,21,32,0.8), rgba(12,15,24,0.8));
  border: 2px solid var(--border); border-radius: 0; padding: 1rem 1.1rem;
}
.stat-card.wide { grid-column: span 2; }
.stat-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-val { font-size: 1.7rem; font-weight: 800; color: white; margin-top: 0.15rem; }
.stat-val.big { font-size: 2.4rem; }
.stat-link { display: block; margin-top: 0.45rem; font-size: 0.85rem; }

.dash-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (max-width: 900px) { .dash-row { grid-template-columns: 1fr; } }

/* Mini cards */
.mini-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; }
.mini-card {
  padding: 0.1rem; border-radius: 0; color: white; text-decoration: none;
  display: flex; flex-direction: column; gap: 0.4rem; position: relative;
  background: linear-gradient(135deg, #2a0f15, #1f0a0f);
  border: 2px solid var(--border);
  transition: transform 0.1s;
  overflow: hidden;
}
.mini-card:hover { transform: translate(-2px, -2px); border-color: var(--border-hi); color: white; box-shadow: 2px 2px 0 rgba(255,45,74,0.3); }
.mini-card .mc-brand { padding: 0.5rem 0.7rem 0; font-weight: 700; letter-spacing: 0.08em; font-size: 0.7rem; opacity: 0.8; }
.mini-card .mc-pan { padding: 0 0.7rem; letter-spacing: 0.1em; font-size: 0.9rem; }
.mini-card .mc-foot { padding: 0.5rem 0.7rem 0.6rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; background: rgba(0,0,0,0.2); }

/* My cards grid */
.cards-my { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.my-card { display: flex; flex-direction: column; gap: 0.6rem; text-decoration: none; color: inherit; }
.my-card .card-face { aspect-ratio: 1.58/1; padding: 14px 16px; }
.my-card .card-face .face-number { font-size: 1rem; letter-spacing: 0.18em; }
.my-card .card-face .face-foot { font-size: 0.7rem; }
.my-card .card-face .chip { width: 34px; height: 26px; }
.my-card-meta { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.my-card.status-frozen .card-face { filter: grayscale(0.4) brightness(0.7); }
.my-card.status-pending .card-face { opacity: 0.75; }
.my-card.status-cancelled .card-face { opacity: 0.45; filter: grayscale(1); }

/* Card detail */
.card-view-row { display: grid; grid-template-columns: 400px 1fr; gap: 1.5rem; margin-bottom: 1.25rem; align-items: start; }
.card-view-row .card-face { aspect-ratio: 1.58/1; padding: 18px 22px; }
.card-view-row .card-face .face-number { font-size: 1.3rem; letter-spacing: 0.22em; }
.card-view-row .card-face .face-foot { gap: 1.25rem; }
@media (max-width: 800px) { .card-view-row { grid-template-columns: 1fr; } }
.card-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }

/* Status pills */
.status-pill {
  display: inline-block; padding: 0.25rem 0.65rem; border-radius: 0;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800;
  background: rgba(255,45,74,0.12); border: 1px solid rgba(255,45,74,0.4); color: #ff2d4a;
}
.status-pill.status-active, .status-pill.status-verified, .status-pill.status-completed, .status-pill.status-paid { background: rgba(46,232,138,0.1); border-color: rgba(46,232,138,0.4); color: #a7f3cc; }
.status-pill.status-pending, .status-pill.status-open { background: rgba(255,209,102,0.1); border-color: rgba(255,209,102,0.4); color: #ffe29a; }
.status-pill.status-frozen { background: rgba(170,210,255,0.1); border-color: rgba(170,210,255,0.35); color: #b8d7ff; }
.status-pill.status-cancelled, .status-pill.status-rejected, .status-pill.status-expired, .status-pill.status-closed, .status-pill.status-unverified { background: rgba(255,85,118,0.08); border-color: rgba(255,85,118,0.3); color: #ff9eb2; }

/* Transaction list */
.tx-list { list-style: none; padding: 0; margin: 0; }
.tx-item { display: flex; justify-content: space-between; align-items: center; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
.tx-item:last-child { border-bottom: none; }
.tx-merch { color: white; font-weight: 500; }
.tx-amt { font-weight: 700; font-family: ui-monospace, monospace; }
.tx-amt.credit, .credit { color: var(--green); }
.tx-amt.debit, .debit { color: #ff9eb2; }

/* Data tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; border: 2px solid var(--border); }
.data-table th, .data-table td { padding: 0.85rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table thead { background: rgba(255,45,74,0.08); border-bottom: 2px solid var(--border); }
.data-table thead th { color: #ff2d4a; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.data-table tbody tr:hover { background: rgba(255,45,74,0.08); }
.data-table td.right, .data-table th.right { text-align: right; }
.data-table .nowrap { white-space: nowrap; }

/* Misc */
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin: 1rem 0; }
@media (max-width: 640px) { .kv-grid { grid-template-columns: 1fr; } }
.empty { text-align: center; padding: 2rem 1rem; }
.sandbox-note { margin: 1rem 0; padding: 0.75rem 0.9rem; background: rgba(255,209,102,0.07); border: 1px dashed rgba(255,209,102,0.35); border-radius: 10px; font-size: 0.88rem; color: #ffe29a; }
.legal h2 { margin-top: 1.75rem; }
.legal p, .legal ul { color: #c4cbdc; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.faq-item { border: 2px solid var(--border); border-radius: 0; padding: 1rem 1.1rem; margin-bottom: 0.75rem; background: var(--panel); }
.faq-item summary { cursor: pointer; font-weight: 800; color: white; outline: none; text-transform: uppercase; letter-spacing: 0.03em; }
.faq-item p { margin-top: 0.5rem; }
.support-contact { margin-bottom: 2rem; }
.support-contact p { margin-bottom: 1.2rem; }
.support-contact .btn { margin-top: 0.5rem; }
.ticket-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.ticket { padding: 0.9rem 1rem; border: 2px solid var(--border); border-radius: 0; background: rgba(12,15,24,0.5); }
.ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.ticket-reply { margin-top: 0.65rem; padding: 0.75rem 0.9rem; background: rgba(255,45,74,0.1); border-left: 3px solid #ff2d4a; border-radius: 0; font-weight: 500; }
.checkout-line { display: flex; justify-content: space-between; padding: 0.5rem 0; color: #c4cbdc; border-bottom: 1px dashed var(--border); }
.checkout-total { display: flex; justify-content: space-between; padding: 0.8rem 0 0.3rem; font-weight: 800; color: white; font-size: 1.1rem; }
.checkout-form { margin-top: 1.2rem; }
.lead { font-size: 1.05rem; }

.product-link { display: block; color: inherit; text-decoration: none; }
.product-link:hover .product-title { color: #ff2d4a; }

.product-detail { display: grid; grid-template-columns: minmax(260px, 1fr) 1.4fr; gap: 1.5rem; align-items: start; }
.product-detail-media { position: sticky; top: 1.2rem; }
.product-detail-media img { width: 100%; border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,0.35); }
.product-detail-media .card-face { width: 100%; aspect-ratio: 1.586 / 1; }
.product-detail-info h2 { margin: 0 0 1rem; font-size: 1.15rem; letter-spacing: 0.12em; color: #fff; }
.detail-list { display: grid; grid-template-columns: minmax(130px, 0.6fr) 1fr; gap: 0.55rem 1rem; margin: 0; font-size: 0.95rem; }
.detail-list dt { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; align-self: center; }
.detail-list dd { margin: 0; color: #eef2fb; font-weight: 500; padding: 0.35rem 0; border-bottom: 1px dashed var(--border); }
.purchase-form { display: flex; gap: 0.75rem; align-items: end; margin-top: 1.25rem; flex-wrap: wrap; }
.qty-label { display: flex; flex-direction: column; gap: 0.35rem; color: var(--muted); font-size: 0.85rem; }
.qty-label input { width: 100px; }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1rem; }

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-detail-media { position: static; max-width: 420px; }
}

@media (max-width: 560px) {
  .stat-card.wide { grid-column: span 1; }
  .card-view-row .card-face .face-number { font-size: 1.05rem; }
  .detail-list { grid-template-columns: 1fr; gap: 0.2rem; }
  .detail-list dt { padding-top: 0.5rem; }
  .detail-list dd { padding-bottom: 0.5rem; }
}

/* ====== MATRIX HERO ====== */
.matrix-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: #000;
  padding: 1.5rem 0;
  margin: 0;
}

.matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.matrix-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 700px;
  padding: 0 2rem 2rem 2rem;
  pointer-events: auto;
}

.matrix-message {
  animation: matrixFadeIn 2s ease-out forwards;
}

.matrix-title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffff00;
  margin: 0 0 1.5rem;
  text-shadow:
    0 0 10px #ff1744,
    0 0 20px rgba(255, 23, 68, 0.8),
    0 0 40px rgba(255, 23, 68, 0.5);
  border: 3px solid #ff1744;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  position: relative;
}

.matrix-title::before {
  content: '> ';
  color: #00ff00;
}

.matrix-title::after {
  content: ' <';
  color: #00ff00;
}

.matrix-subtitle {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00ff00;
  margin: 0 0 1rem;
  text-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
  animation: matrixGlitch 2s ease-in-out infinite;
}

.matrix-description {
  font-size: 1.1rem;
  color: #c0c0c0;
  margin: 0 0 2.5rem;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.matrix-btn {
  pointer-events: auto !important;
  display: inline-block;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #ff1744;
  color: #000;
  border: 3px solid #ffff00;
  position: relative;
  overflow: hidden;
  z-index: 25;
  box-shadow:
    0 0 20px rgba(255, 23, 68, 0.8),
    inset 0 0 20px rgba(255, 255, 0, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 48px;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
}

.matrix-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 0, 0.3), transparent);
  z-index: -1;
  animation: matrixScan 3s infinite;
}

.matrix-btn:hover {
  transform: translate(3px, 3px) !important;
  box-shadow:
    0 6px 0 rgba(255, 23, 68, 0.6),
    0 0 30px rgba(255, 23, 68, 1),
    inset 0 0 30px rgba(255, 255, 0, 0.3);
  background: #ff2a50;
}

.matrix-btn:active {
  transform: translate(6px, 6px) !important;
  box-shadow:
    0 0 0 rgba(255, 23, 68, 0.6),
    0 0 40px rgba(255, 23, 68, 1),
    inset 0 0 40px rgba(255, 255, 0, 0.4);
}

@keyframes matrixFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes matrixGlitch {
  0%, 100% {
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    transform: translateX(0);
  }
  25% {
    text-shadow: 0 0 20px rgba(255, 23, 68, 0.6);
    transform: translateX(2px);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    transform: translateX(-2px);
  }
  75% {
    text-shadow: 0 0 20px rgba(255, 23, 68, 0.6);
    transform: translateX(1px);
  }
}

@keyframes matrixScan {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ====== MATRIX FORM STYLES ====== */
.matrix-form {
  width: 100%;
  max-width: 500px;
  margin: 2rem auto 0;
  pointer-events: auto !important;
  padding: 2.5rem;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #ff1744;
  border-radius: 0;
  box-shadow: 0 0 30px rgba(255, 23, 68, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 20;
  box-sizing: border-box;
}

.matrix-form-group {
  margin-bottom: 1.5rem;
  animation: matrixFadeIn 1s ease-out forwards;
  position: relative;
  z-index: 21;
  width: 100%;
  box-sizing: border-box;
}

.matrix-form-group:nth-child(2) {
  animation-delay: 0.2s;
}

.matrix-form-group:nth-child(3) {
  animation-delay: 0.4s;
}

.matrix-label {
  display: block;
  color: #00ff00;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
  position: relative;
  z-index: 21;
}

.matrix-input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: rgba(0, 0, 0, 0.85);
  border: 2px solid #ff1744;
  border-radius: 0;
  color: #fff;
  font-size: 0.95rem;
  font-family: "Courier New", monospace;
  font-weight: 500;
  transition: all 0.15s;
  box-shadow: 0 0 15px rgba(255, 23, 68, 0.4), inset 0 0 5px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 21;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.matrix-input:focus {
  outline: none;
  border-color: #ffff00;
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.6), inset 0 0 10px rgba(255, 255, 0, 0.1);
}

.matrix-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.matrix-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 560px) {
  .matrix-form-row {
    grid-template-columns: 1fr;
  }
}

.matrix-checkbox {
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto !important;
  animation: matrixFadeIn 1.2s ease-out forwards;
  position: relative;
  z-index: 21;
}

.matrix-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #ff1744;
  position: relative;
  z-index: 22;
  flex-shrink: 0;
}

.matrix-checkbox label {
  color: #c0c0c0;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 0;
  position: relative;
  z-index: 21;
}

.matrix-link {
  color: #ffff00;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: all 0.15s;
  text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.matrix-link:hover {
  color: #ff2d4a;
  border-bottom-color: #ff2d4a;
  text-shadow: 0 0 15px rgba(255, 45, 74, 0.8);
}

.matrix-footer-text {
  color: #c0c0c0;
  font-size: 0.95rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 21;
}

.matrix-demo-hint {
  margin-top: 2.5rem;
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #00ff00;
  border-radius: 0;
  text-align: left;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  animation: matrixFadeIn 1.4s ease-out forwards;
  position: relative;
  z-index: 21;
  box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.2);
}

.matrix-demo-label {
  color: #00ff00;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

.matrix-demo-line {
  color: #7fff7f;
  margin-bottom: 0.4rem;
  padding-left: 1rem;
}

.matrix-demo-line::before {
  content: '> ';
  color: #00ff00;
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ====== DESKTOP RESPONSIVE (> 1024px) ====== */
@media (min-width: 1025px) {
  .matrix-content {
    max-width: 700px;
  }

  .matrix-form {
    max-width: 500px;
    padding: 2.5rem;
    margin: 2rem auto 0;
  }

  .matrix-title {
    font-size: clamp(3rem, 10vw, 5rem);
    margin: 0 0 1.5rem;
  }

  .matrix-subtitle {
    font-size: 1.5rem;
  }

  .matrix-btn {
    display: inline-block;
    width: auto;
    padding: 1.2rem 2.5rem;
  }
}

/* ====== TABLET RESPONSIVE (768px - 1024px) ====== */
@media (min-width: 768px) and (max-width: 1024px) {
  .matrix-hero {
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .matrix-content {
    max-width: 600px;
    padding: 0 1.5rem;
  }

  .matrix-form {
    max-width: 100%;
    padding: 2rem;
    margin: 2rem 0 0 0;
  }

  .matrix-title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    padding: 1.2rem;
    margin: 0 0 1rem;
  }

  .matrix-subtitle {
    font-size: 1.3rem;
  }

  .matrix-form-group {
    margin-bottom: 1.2rem;
  }

  .matrix-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

/* ====== MOBILE RESPONSIVE (600px - 768px) ====== */
@media (max-width: 768px) {
  .matrix-hero {
    padding: 1rem 0.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: auto;
    padding-top: 2rem;
  }

  .matrix-content {
    max-width: 100%;
    padding: 0 0.75rem;
    width: 100%;
  }

  .matrix-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    margin: 0 0 0.8rem;
    padding: 0.9rem;
    border: 2px solid #ff1744;
    line-height: 1.2;
  }

  .matrix-subtitle {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
  }

  .matrix-description {
    font-size: 0.9rem;
    margin: 0 0 1.2rem;
    padding: 0;
  }

  .matrix-form {
    max-width: 100%;
    width: 100%;
    padding: 1.25rem;
    margin: 1rem 0 0 0;
    border: 2px solid #ff1744;
    box-sizing: border-box;
  }

  .matrix-form-group {
    margin-bottom: 0.9rem;
  }

  .matrix-label {
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
  }

  .matrix-input {
    padding: 0.7rem 0.85rem;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
  }

  .matrix-form-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .matrix-checkbox {
    margin: 0.8rem 0;
    gap: 0.5rem;
  }

  .matrix-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
  }

  .matrix-checkbox label {
    font-size: 0.82rem;
    margin: 0;
  }

  .matrix-btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 0.3rem;
    min-height: 48px;
    touch-action: manipulation;
  }

  .matrix-btn::before {
    animation: none;
  }

  .matrix-footer-text {
    font-size: 0.82rem;
    margin-top: 0.8rem;
  }

  .matrix-demo-hint {
    margin-top: 1rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.72rem;
  }

  .matrix-demo-label {
    font-size: 0.72rem;
    margin-bottom: 0.5rem;
  }

  .matrix-demo-line {
    font-size: 0.72rem;
    margin-bottom: 0.2rem;
  }
}

/* ====== SMALL MOBILE (480px - 600px) ====== */
@media (max-width: 600px) {
  .matrix-hero {
    padding: 1rem 0.5rem;
    min-height: auto;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .matrix-content {
    padding: 0 0.5rem;
    width: 100%;
  }

  .matrix-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin: 0 0 0.6rem;
    padding: 0.8rem;
    border: 2px solid #ff1744;
  }

  .matrix-subtitle {
    font-size: 1rem;
    margin: 0 0 0.4rem;
  }

  .matrix-description {
    font-size: 0.85rem;
    margin: 0 0 1rem;
  }

  .matrix-form {
    max-width: 100%;
    width: 100%;
    padding: 1.1rem;
    margin: 0.9rem 0 0 0;
    box-sizing: border-box;
    border: 2px solid #ff1744;
  }

  .matrix-form-group {
    margin-bottom: 0.8rem;
  }

  .matrix-label {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
  }

  .matrix-input {
    padding: 0.65rem 0.8rem;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
  }

  .matrix-form-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .matrix-checkbox {
    margin: 0.75rem 0;
    gap: 0.5rem;
  }

  .matrix-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
  }

  .matrix-checkbox label {
    font-size: 0.8rem;
  }

  .matrix-btn {
    padding: 0.8rem 1.4rem;
    font-size: 0.85rem;
    min-height: 44px;
    width: 100%;
    margin-top: 0.2rem;
  }

  .matrix-footer-text {
    font-size: 0.8rem;
    margin-top: 0.7rem;
  }
}

/* ====== EXTRA SMALL MOBILE (< 480px) ====== */
@media (max-width: 480px) {
  .matrix-hero {
    padding: 1rem 0.3rem;
    min-height: auto;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .matrix-content {
    padding: 0 0.3rem;
    width: 100%;
  }

  .matrix-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    margin: 0 0 0.5rem;
    padding: 0.6rem;
    border: 2px solid #ff1744;
  }

  .matrix-title::before,
  .matrix-title::after {
    display: none;
  }

  .matrix-subtitle {
    font-size: 0.95rem;
    margin: 0 0 0.3rem;
  }

  .matrix-description {
    font-size: 0.8rem;
    margin: 0 0 0.9rem;
  }

  .matrix-form {
    max-width: 100%;
    width: 100%;
    padding: 1rem;
    margin: 0.8rem 0 0 0;
    box-sizing: border-box;
    border: 2px solid #ff1744;
  }

  .matrix-form-group {
    margin-bottom: 0.7rem;
  }

  .matrix-label {
    font-size: 0.78rem;
    margin-bottom: 0.3rem;
  }

  .matrix-input {
    padding: 0.6rem 0.75rem;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
  }

  .matrix-form-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .matrix-checkbox {
    margin: 0.7rem 0;
    gap: 0.4rem;
  }

  .matrix-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
  }

  .matrix-checkbox label {
    font-size: 0.78rem;
  }

  .matrix-btn {
    padding: 0.75rem 1.2rem;
    font-size: 0.8rem;
    min-height: 44px;
    width: 100%;
    margin-top: 0.2rem;
  }

  .matrix-footer-text {
    font-size: 0.78rem;
    margin-top: 0.6rem;
  }

  .matrix-demo-hint {
    margin-top: 0.8rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.65rem;
  }

  .matrix-demo-label {
    font-size: 0.65rem;
    margin-bottom: 0.4rem;
  }

  .matrix-demo-line {
    font-size: 0.65rem;
    margin-bottom: 0.15rem;
    padding-left: 0.4rem;
  }

  .main-wrap {
    min-height: auto;
  }

  .telegram-float {
    bottom: 1.5rem;
  }

  .telegram-btn {
    width: 50px;
    height: 50px;
  }

  .telegram-btn svg {
    width: 26px;
    height: 26px;
  }

  .tg-label {
    font-size: 0.75rem;
  }
}
