/* ==========================================================================
   KEYSES.SHOP - Cyber-Electric Dark Luxury Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-main: #060913;
  --bg-surface: #0b1124;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 34, 64, 0.85);
  --bg-glass: rgba(13, 20, 40, 0.7);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.35);
  --border-purple: rgba(168, 85, 247, 0.35);

  --accent-cyan: #00f0ff;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-crimson: #ef4444;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-glow-cyan: 0 0 25px rgba(0, 240, 255, 0.25);
  --shadow-glow-purple: 0 0 25px rgba(168, 85, 247, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Ambient Background Orbs */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
}

.orb-1 {
  top: -10%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0) 70%);
}

.orb-2 {
  top: 30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #a855f7 0%, rgba(168, 85, 247, 0) 70%);
}

.orb-3 {
  bottom: 5%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #00f0ff 0%, rgba(0, 240, 255, 0) 70%);
}

/* Base Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-cyan);
}

.logo-badge svg {
  width: 22px;
  height: 22px;
  color: #060913;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}

.brand-accent {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 140px;
  box-shadow: var(--shadow-card);
  display: none;
  z-index: 101;
}

.lang-dropdown.show {
  display: block;
}

.lang-option {
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.lang-option:hover, .lang-option.active {
  color: var(--text-main);
  background: rgba(0, 240, 255, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #060913;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 240, 255, 0.45);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* Make the complete sign-in control one uninterrupted hit target. */
#authContainer,
#loginBtn {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

#loginBtn {
  min-height: 38px;
  touch-action: manipulation;
}

#loginBtn > * {
  pointer-events: none;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 50px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

/* 3 Trust Pillars */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.trust-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  transition: var(--transition-smooth);
}

.trust-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

/* Catalog Filter & Search */
.catalog-section {
  padding: 60px 0 100px;
}

.catalog-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.catalog-search-bar {
  position: relative;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
}

.catalog-search-bar input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.catalog-search-bar input:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.catalog-search-bar .search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

/* Categories Pills */
.category-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cat-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-pill:hover, .cat-pill.active {
  color: #060913;
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 2px 14px rgba(0, 240, 255, 0.3);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), var(--shadow-glow-cyan);
}

.product-image-box {
  width: 100%;
  height: 210px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 28px 20px 18px;
  background: radial-gradient(circle at 50% 42%, rgba(0, 240, 255, 0.13), transparent 55%), #0d1428;
  overflow: hidden;
}

.product-logo-orbit {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  position: relative;
  isolation: isolate;
  perspective: 850px;
  box-shadow: 0 0 0 8px rgba(0,240,255,.05), 0 18px 42px rgba(0,0,0,.46);
  animation: productLogoFloat 4.2s ease-in-out infinite;
}

.product-logo-globe {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: productGlobeTurn 7.2s cubic-bezier(.65, 0, .35, 1) infinite;
  will-change: transform;
}

.product-logo-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: inset -12px -10px 24px rgba(4,8,22,.18), inset 8px 7px 18px rgba(255,255,255,.48);
}

.product-logo-front {
  padding: 25px;
  background: radial-gradient(circle at 34% 27%, #fff 0 18%, #f5f7fb 48%, #d9e0eb 100%);
}

.product-logo-back {
  transform: rotateY(180deg);
  align-content: center;
  gap: 0;
  color: #fff;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.28), transparent 21%),
    linear-gradient(145deg, #00dbe7 0%, #1267db 48%, #6d42d8 100%);
  text-shadow: 0 2px 12px rgba(0,0,0,.32);
}

.product-logo-back::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
}

.product-logo-back span {
  align-self: end;
  font: 800 1rem/1 var(--font-heading);
  letter-spacing: .12em;
}

.product-logo-back strong {
  align-self: start;
  color: #bffcff;
  font: 900 1.35rem/1.15 var(--font-heading);
  letter-spacing: .08em;
}

.product-logo-orbit::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -9px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from 0deg, #00f0ff, #6d5dfc, #ff3fb4, #00f0ff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .7;
}

.product-card:nth-child(3n+2) .product-logo-orbit { animation-delay: -.9s; }
.product-card:nth-child(3n) .product-logo-orbit { animation-delay: -1.8s; }
.product-card:nth-child(3n+2) .product-logo-globe { animation-delay: -2.4s; }
.product-card:nth-child(3n) .product-logo-globe { animation-delay: -4.8s; }

@keyframes productLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes productGlobeTurn {
  0%, 34% { transform: rotateY(0deg) rotateX(0deg); }
  48%, 82% { transform: rotateY(180deg) rotateX(3deg); }
  96%, 100% { transform: rotateY(360deg) rotateX(0deg); }
}

.product-logo-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 0.5s ease;
}

.product-card:hover .product-logo-front img {
  transform: scale(1.1) rotate(-2deg);
}

.product-card:hover .product-logo-orbit::before {
  animation: productRingSpin 1.6s linear infinite;
  opacity: 1;
}

.product-card:hover .product-logo-globe { animation-duration: 4.4s; }

@keyframes productRingSpin { to { transform: rotate(360deg); } }

.product-visual-label {
  max-width: 92%;
  overflow: hidden;
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0,0,0,.9);
}

@media (prefers-reduced-motion: reduce) {
  .product-logo-orbit,
  .product-logo-globe,
  .product-card:hover .product-logo-orbit::before { animation: none; }
}

/* KEYSES.AZ Digital Universe */
.universe-hero {
  min-height: 820px;
  padding: 150px 0 48px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 37%, rgba(70, 55, 230, .2), transparent 31%),
    radial-gradient(circle at 18% 28%, rgba(0, 224, 255, .11), transparent 29%),
    linear-gradient(180deg, #050711 0%, #080c1b 72%, #060913 100%);
}

.universe-stars, .universe-stars::before, .universe-stars::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.7) 0 1px, transparent 1.5px);
  background-size: 74px 74px;
  opacity: .22;
  z-index: -1;
}
.universe-stars::before { transform: translate(27px, 18px); background-size: 113px 113px; opacity: .4; }
.universe-stars::after { transform: translate(-19px, 31px); background-size: 167px 167px; opacity: .55; }

.universe-layout {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr);
  align-items: center;
  gap: 34px;
  min-height: 550px;
}

.universe-copy { position: relative; z-index: 4; }
.universe-copy .hero-title { max-width: 720px; text-align: left; font-size: clamp(3rem, 5.4vw, 6rem); line-height: .93; letter-spacing: -.055em; }
.universe-copy .hero-desc { max-width: 580px; margin: 24px 0 30px; text-align: left; font-size: 1.12rem; }
.universe-copy .hero-cta-group { justify-content: flex-start; }
.universe-kicker { margin: 24px 0 14px; color: #75f8ff; font-size: .76rem; font-weight: 800; letter-spacing: .22em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4dffac; box-shadow: 0 0 14px #4dffac; animation: universePulse 1.8s ease-in-out infinite; }
.universe-proof { display: flex; gap: 22px; margin-top: 34px; color: var(--text-muted); font-size: .78rem; }
.universe-proof span { display: grid; gap: 2px; }
.universe-proof b { color: #fff; font-size: 1.1rem; }

.keyverse { position: relative; width: min(590px, 45vw); aspect-ratio: 1; margin-inline: auto; perspective: 1000px; }
.keyverse::before { content: ''; position: absolute; inset: 17%; border-radius: 50%; background: radial-gradient(circle, rgba(0,240,255,.13), rgba(79,56,225,.08) 45%, transparent 70%); filter: blur(8px); animation: coreBreath 4s ease-in-out infinite; }
.orbit { position: absolute; inset: 13%; border: 1px solid rgba(112,231,255,.17); border-radius: 50%; transform: rotateX(67deg) rotateZ(-12deg); box-shadow: 0 0 36px rgba(0,225,255,.05); }
.orbit::after { content: ''; position: absolute; width: 7px; height: 7px; top: 48%; left: -4px; border-radius: 50%; background: #7ff8ff; box-shadow: 0 0 17px #21e9ff; }
.orbit-two { inset: 23% 5%; transform: rotateX(72deg) rotateZ(52deg); }
.orbit-three { inset: 6% 26%; transform: rotateY(65deg) rotateZ(18deg); }

.keyverse-core { position: absolute; left: 50%; top: 50%; width: 205px; height: 205px; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: radial-gradient(circle at 33% 25%, #43f7ff, #1558da 39%, #4c23a9 72%, #110b34); box-shadow: inset -22px -18px 34px rgba(3,4,22,.48), inset 12px 10px 28px rgba(255,255,255,.2), 0 0 55px rgba(37,206,255,.24), 0 0 120px rgba(94,51,230,.2); animation: planetHover 5s ease-in-out infinite; z-index: 2; }
.keyverse-core::after { content: ''; position: absolute; inset: -10px; border: 1px solid rgba(128,246,255,.25); border-radius: 50%; }
.core-key { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 16px; margin-bottom: 8px; font: 900 1.7rem/1 var(--font-heading); transform: rotate(-8deg); box-shadow: inset 0 0 20px rgba(255,255,255,.13); }
.keyverse-core span { font: 800 1.24rem/1 var(--font-heading); letter-spacing: .14em; }
.keyverse-core strong { color: #aefcff; font: 900 1.55rem/1.1 var(--font-heading); }
.keyverse-core i { margin-top: 9px; color: rgba(255,255,255,.66); font: normal 600 .5rem/1.35 var(--font-body); letter-spacing: .16em; text-align: center; }

.orbit-world { position: absolute; z-index: 3; width: 104px; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 50%; color: #fff; text-decoration: none; border: 1px solid rgba(146,241,255,.28); background: radial-gradient(circle at 31% 23%, rgba(255,255,255,.22), rgba(22,32,75,.96) 43%, rgba(7,11,28,.98)); box-shadow: inset -10px -9px 18px rgba(0,0,0,.4), 0 12px 34px rgba(0,0,0,.4), 0 0 22px rgba(0,235,255,.1); transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; animation: worldFloat 4.5s ease-in-out infinite; }
.orbit-world:hover { color: #fff; transform: translateY(-8px) scale(1.1); border-color: #79f8ff; box-shadow: 0 18px 46px rgba(0,0,0,.48), 0 0 30px rgba(0,236,255,.3); }
.orbit-world b { font: 800 .78rem/1 var(--font-heading); letter-spacing: .08em; }
.orbit-world span { max-width: 82px; color: #aeb8d7; font-size: .55rem; text-align: center; }
.world-ai { top: 3%; left: 44%; background-color: #182a67; }
.world-create { top: 26%; right: 0; animation-delay: -.8s; }
.world-watch { right: 10%; bottom: 7%; animation-delay: -1.6s; }
.world-learn { left: 12%; bottom: 3%; animation-delay: -2.4s; }
.world-secure { top: 27%; left: -1%; animation-delay: -3.2s; }
.satellite { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #ff4fd8; box-shadow: 0 0 18px #ff4fd8; }
.sat-one { top: 19%; left: 26%; }.sat-two { right: 21%; top: 54%; background: #4dffac; box-shadow: 0 0 18px #4dffac; }
.universe-trust { margin-top: 35px; }
.catalog-section { position: relative; z-index: 2; background: linear-gradient(180deg, rgba(6,9,19,.78), #060913); }

@keyframes universePulse { 50% { opacity: .45; transform: scale(.72); } }
@keyframes coreBreath { 50% { transform: scale(1.08); opacity: .75; } }
@keyframes planetHover { 50% { transform: translate(-50%,calc(-50% - 9px)) rotate(2deg); } }
@keyframes worldFloat { 50% { margin-top: -8px; } }

@media (max-width: 980px) {
  .universe-hero { padding-top: 125px; }
  .universe-layout { grid-template-columns: 1fr; text-align: center; }
  .universe-copy .hero-title, .universe-copy .hero-desc { text-align: center; margin-left: auto; margin-right: auto; }
  .universe-copy .hero-cta-group, .universe-proof { justify-content: center; }
  .keyverse { width: min(590px, 88vw); }
}

@media (max-width: 560px) {
  .universe-hero { min-height: auto; padding-top: 108px; }
  .universe-copy .hero-title { font-size: clamp(2.65rem, 14vw, 4rem); }
  .universe-proof { gap: 14px; }
  .keyverse { width: 96vw; margin-left: 50%; transform: translateX(-50%) scale(.88); margin-top: -10px; margin-bottom: -20px; }
  .keyverse-core { width: 164px; height: 164px; }
  .orbit-world { width: 82px; height: 82px; }
  .orbit-world span { font-size: .48rem; }
}

@media (prefers-reduced-motion: reduce) {
  .keyverse-core, .orbit-world, .keyverse::before, .live-dot { animation: none; }
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.delivery-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-purple);
  color: #c084fc;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-top: auto;
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.price-unconfirmed {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-amber);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 14, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-card);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-box-lg {
  max-width: 820px;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.15);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Durations Grid */
.durations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.duration-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.duration-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
}

.duration-card.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.duration-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.duration-price {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
}

/* Guarantee Alert Box */
.guarantee-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.guarantee-box svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.guarantee-box-text {
  font-size: 0.85rem;
  color: #a7f3d0;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.status-checking {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-can-pay {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
  animation: pulseGlow 2s infinite;
}

.status-preparing {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-delivered {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-cancelled, .status-expired {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 8px rgba(0, 240, 255, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.5); }
  100% { box-shadow: 0 0 8px rgba(0, 240, 255, 0.2); }
}

/* Timer Display */
.countdown-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  margin-bottom: 20px;
}

.countdown-digits {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fbbf24;
}

/* User Cabinet & Tabs */
.cabinet-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: #060913;
  background: var(--accent-cyan);
}

.cabinet-panel {
  display: none;
}

.cabinet-panel.active {
  display: block;
}

/* Credentials Box in Cabinet */
.credentials-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 14px;
}

.credentials-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.credentials-payload {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.95rem;
  word-break: break-all;
  user-select: all;
  margin-bottom: 10px;
}

/* Requisites Bank Card Display */
.bank-card-preview {
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.bank-card-chip {
  width: 44px;
  height: 32px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-radius: 6px;
  margin-bottom: 20px;
}

.bank-card-number {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
  color: #f8fafc;
}

.bank-card-holder {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-main);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: auto;
  animation: toastSlide 0.3s ease;
}

.toast-success {
  border-color: var(--accent-emerald);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.toast-error {
  border-color: var(--accent-crimson);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25);
}

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

/* Mobile Bottom Navigation Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(6, 9, 19, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 99;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-nav-item.active, .mobile-nav-item:hover {
  color: var(--accent-cyan);
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
  .mobile-bottom-bar {
    display: block;
  }
  body {
    padding-bottom: 70px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .modal-box {
    padding: 20px;
  }
}

/* ==========================================
   INTERACTIVE GAMIFICATION & REVEAL EFFECTS
   ========================================== */

/* Gold Foil Scratch Card */
.scratch-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 16px auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: var(--bg-surface);
}

.scratch-secret-content {
  padding: 24px 20px;
  background: linear-gradient(135deg, rgba(20, 26, 45, 0.95), rgba(11, 17, 36, 0.95));
  border-radius: var(--radius-md);
  text-align: center;
}

.scratch-canvas, .scratch-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  border-radius: var(--radius-md);
}

.scratch-particles {
  pointer-events: none;
  z-index: 10;
}

/* Mini Game Box in Waiting Screen */
.mini-game-container {
  margin-top: 16px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}

.mini-game-canvas {
  width: 100%;
  max-width: 340px;
  height: 200px;
  margin: 10px auto;
  display: block;
  border-radius: var(--radius-sm);
  background: #14120e;
  border: 1px solid rgba(251, 191, 36, 0.25);
  cursor: ew-resize;
  touch-action: none;
}

.mini-game-stats {
  display: flex;
  justify-content: space-around;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-amber);
  margin-bottom: 6px;
}

/* Sound Toggle Button */
.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sound-toggle-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
}

.sound-toggle-btn.muted {
  color: var(--text-dim);
  opacity: 0.6;
}

/* Working anchor navigation and supporting content sections */
#catalog,
#how-it-works,
#guarantee {
  scroll-margin-top: 96px;
}

.nav-menu .nav-link {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}

.nav-menu .nav-link > * {
  pointer-events: none;
}

.info-section {
  position: relative;
  padding: 84px 0;
  border-top: 1px solid var(--border-subtle);
}

.how-section {
  background: linear-gradient(180deg, rgba(9, 14, 29, 0.3), rgba(15, 23, 42, 0.72));
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-intro-left {
  margin: 0;
  text-align: left;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-intro h2 {
  margin: 0 0 14px;
  color: var(--text-primary);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.08;
}

.section-intro p,
.info-card p,
.guarantee-point p {
  color: var(--text-muted);
  line-height: 1.7;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(23, 32, 54, 0.92), rgba(12, 19, 35, 0.94));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.step-number {
  display: block;
  margin-bottom: 42px;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 800;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.guarantee-section {
  background: radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.08), transparent 42%), var(--bg-primary);
}

.guarantee-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: 70px;
}

.guarantee-points {
  display: grid;
  gap: 14px;
}

.guarantee-point {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(20, 29, 49, 0.78);
}

.guarantee-point > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  font-weight: 900;
}

.guarantee-point strong {
  display: block;
  margin: 2px 0 4px;
  color: var(--text-primary);
}

.guarantee-point p {
  margin: 0;
}

@media (max-width: 800px) {
  .info-section { padding: 64px 0; }
  .steps-grid, .guarantee-layout { grid-template-columns: 1fr; }
  .guarantee-layout { gap: 34px; }
  .section-intro-left { text-align: center; margin: 0 auto; }
  .info-card { min-height: 0; }
  .step-number { margin-bottom: 24px; }
}
