:root {
  --accent: #facc15;
  --accent-dim: rgba(250, 204, 21, 0.12);
  --accent-glow: rgba(250, 204, 21, 0.35);
  --bg: #000000;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.5);
  --radius: 24px;
  --bottom-nav-h: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: #050508;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  animation: pageIn 0.5s ease;
}

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

.accent { color: var(--accent); }
.accent-link { color: var(--accent); text-decoration: none; }
.accent-link:hover { opacity: 0.8; }

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── ANIMATED BACKGROUND ── */
.hero-bg-canvas {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-canvas .grid-lines {
  position: absolute;
  width: 200%; height: 200%;
  background-image: 
    linear-gradient(rgba(250,204,21,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250,204,21,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  will-change: background-position;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

@keyframes particleFloat {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) scale(0.3); opacity: 0; }
}

/* ── GLASS CARD (Ultra Premium) ── */
.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}
@media (hover: hover) {
  .glass-card:hover {
    border-color: rgba(250, 204, 21, 0.22);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 16px 48px rgba(0, 0, 0, 0.55),
      0 0 24px rgba(250, 204, 21, 0.07);
    transform: translateY(-3px);
  }
}


/* ── HERO (Premium Redesign) ── */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 56px 20px 44px;
}

.floating-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation-name: particleFloat;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}


.orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.12) 0%, transparent 70%);
  top: -180px; left: -120px;
  animation: orbPulse 8s ease-in-out infinite;
}
.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation: orbPulse 10s ease-in-out infinite reverse;
}
.orb3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orbPulse 12s ease-in-out infinite 2s;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 
    0 0 40px rgba(250, 204, 21, 0.3),
    0 0 80px rgba(250, 204, 21, 0.1);
  animation: logoFloat 5s ease-in-out infinite;
  margin-bottom: 6px;
  border: 2px solid rgba(250, 204, 21, 0.2);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(1deg); }
  50% { transform: translateY(-10px) rotate(0deg); }
  75% { transform: translateY(-6px) rotate(-1deg); }
}

.hero h1 {
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #ffffff 0%, #facc15 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s ease-in-out infinite;
}

@keyframes shimmerText {
  0% { background-position: 0% center; }
  50% { background-position: 200% center; }
  100% { background-position: 0% center; }
}

.hero-sub {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Hero stats badges */
.hero-stats {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  animation: fadeInUp 0.6s ease-out both;
}
.hero-stat:nth-child(1) { animation-delay: 0.1s; }
.hero-stat:nth-child(3) { animation-delay: 0.2s; }
.hero-stat:nth-child(5) { animation-delay: 0.3s; }

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

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #facc15, #d97706);
  color: #000;
  font-weight: 800;
  font-size: 14px;
  border: none;
  border-radius: 50px;
  padding: 13px 32px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.28);
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  margin-top: 6px;
}
@media (hover: hover) {
  .btn-primary:hover {
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 14px 36px rgba(250, 204, 21, 0.38);
  }
}

/* ── APP SHELL ── */
.app-shell {
  display: flex;
  flex-direction: column;
  background: #050508;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (max-width: 767px) {
  .app-shell {
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
  }
  .tab-content { padding: 12px 14px 40px; }
}
@media (min-width: 768px) {
  .app-shell {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px 40px;
  }
  .bottom-nav { display: none; }
  .tab-content { padding-bottom: 20px; }
}

.tab-content { flex: 1; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

@media (min-width: 768px) {
  .tab-pane { display: block !important; margin-bottom: 60px; }
}

.section-header { 
  text-align: center; 
  margin-bottom: 28px; 
  animation: fadeInUp 0.5s ease-out both;
}
.section-header h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section-sub { color: var(--text-dim); font-size: 14px; margin-top: 6px; }

/* ── PLANS (Ultra Premium Cards) ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.plan-card {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  animation: cardReveal 0.6s cubic-bezier(0.25, 1, 0.5, 1) both;
  cursor: default;
}

.plan-card:nth-child(1) { animation-delay: 0.05s; }
.plan-card:nth-child(2) { animation-delay: 0.12s; }
.plan-card:nth-child(3) { animation-delay: 0.19s; }
.plan-card:nth-child(4) { animation-delay: 0.26s; }

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

/* Shine sweep animation on cards */
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 55%,
    transparent 60%
  );
  transition: left 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 1;
}

@media (hover: hover) {
  .plan-card:hover::before {
    left: 100%;
  }
}

/* Popular card enhanced glow */
.plan-card.popular {
  border-color: rgba(250, 204, 21, 0.35);
  background: linear-gradient(135deg, rgba(250,204,21,0.08) 0%, rgba(255,255,255,0.03) 50%, rgba(250,204,21,0.04) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 40px rgba(250, 204, 21, 0.1),
    0 0 80px rgba(250, 204, 21, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.4);
  animation: cardReveal 0.6s cubic-bezier(0.25, 1, 0.5, 1) both, popularGlow 4s ease-in-out infinite;
  animation-delay: 0.19s, 0s;
}

@keyframes popularGlow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 0 30px rgba(250,204,21,0.08), 0 8px 32px rgba(0,0,0,0.4); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 0 50px rgba(250,204,21,0.15), 0 12px 40px rgba(0,0,0,0.5); }
}

.plan-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.popular-badge { color: var(--accent) !important; }
.plan-price { display: flex; align-items: baseline; gap: 3px; margin-top: 2px; }
.plan-price .accent { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; }
.plan-per { color: var(--text-dim); font-size: 11px; font-weight: 600; }
.plan-name { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
  flex: 1;
}
.plan-features li {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.plan-features li svg { flex-shrink: 0; }

.btn-plan {
  display: block;
  text-align: center;
  padding: 12px;
  background: linear-gradient(135deg, rgba(250,204,21,0.15) 0%, rgba(250,204,21,0.08) 100%);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 14px;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  margin-top: 8px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  font-family: 'Montserrat', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn-plan::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(250,204,21,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

@media (hover: hover) {
  .btn-plan:hover {
    background: linear-gradient(135deg, rgba(250,204,21,0.25) 0%, rgba(250,204,21,0.12) 100%);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250,204,21,0.15);
  }
  .btn-plan:hover::after {
    width: 300px; height: 300px;
  }
}


/* ── KEYS ── */
.keys-login {
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.keys-login p { color: var(--text-dim); font-size: 14px; }

/* ── GUIDE (iOS 26 Liquid Glass) ── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Staggered entrance animation for grid items */
@keyframes guideCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 14px 22px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(250, 204, 21, 0.03) 100%
  );
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02),
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  animation: guideCardIn 0.5s ease both;
}

/* Stagger delays for grid items */
.platform-btn:nth-child(1)  { animation-delay: 0.02s; }
.platform-btn:nth-child(2)  { animation-delay: 0.06s; }
.platform-btn:nth-child(3)  { animation-delay: 0.10s; }
.platform-btn:nth-child(4)  { animation-delay: 0.14s; }
.platform-btn:nth-child(5)  { animation-delay: 0.18s; }
.platform-btn:nth-child(6)  { animation-delay: 0.22s; }
.platform-btn:nth-child(7)  { animation-delay: 0.26s; }
.platform-btn:nth-child(8)  { animation-delay: 0.30s; }
.platform-btn:nth-child(9)  { animation-delay: 0.34s; }
.platform-btn:nth-child(10) { animation-delay: 0.38s; }
.platform-btn:nth-child(11) { animation-delay: 0.42s; }
.platform-btn:nth-child(12) { animation-delay: 0.46s; }
.platform-btn:nth-child(13) { animation-delay: 0.50s; }
.platform-btn:nth-child(14) { animation-delay: 0.54s; }
.platform-btn:nth-child(15) { animation-delay: 0.58s; }
.platform-btn:nth-child(16) { animation-delay: 0.62s; }
.platform-btn:nth-child(17) { animation-delay: 0.66s; }
.platform-btn:nth-child(18) { animation-delay: 0.70s; }
.platform-btn:nth-child(19) { animation-delay: 0.74s; }
.platform-btn:nth-child(20) { animation-delay: 0.78s; }
.platform-btn:nth-child(21) { animation-delay: 0.82s; }
.platform-btn:nth-child(22) { animation-delay: 0.86s; }
.platform-btn:nth-child(23) { animation-delay: 0.90s; }
.platform-btn:nth-child(24) { animation-delay: 0.94s; }

/* Liquid glass shine overlay */
.platform-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 55%,
    transparent 60%
  );
  transition: left 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 1;
}

/* Yellow glow dot behind icon */
.platform-btn::after {
  content: '';
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.18) 0%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

/* Yellow icons */
.platform-btn svg {
  color: var(--accent) !important;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.3));
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}
.platform-btn svg path,
.platform-btn svg rect,
.platform-btn svg circle,
.platform-btn svg line,
.platform-btn svg polyline,
.platform-btn svg polygon {
  stroke: var(--accent) !important;
}
/* For filled icons (Apple, Discord) */
.platform-btn svg[fill="currentColor"] {
  fill: var(--accent) !important;
}
.platform-btn svg[fill="currentColor"] path {
  stroke: none !important;
  fill: var(--accent) !important;
}

/* White text label */
.platform-btn span {
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Hover / Active states */
@media (hover: hover) {
  .platform-btn:hover {
    border-color: rgba(250, 204, 21, 0.3);
    background: linear-gradient(
      135deg,
      rgba(250, 204, 21, 0.08) 0%,
      rgba(255, 255, 255, 0.04) 50%,
      rgba(250, 204, 21, 0.05) 100%
    );
    transform: translateY(-4px) scale(1.02);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.15),
      0 12px 40px rgba(0, 0, 0, 0.4),
      0 0 20px rgba(250, 204, 21, 0.08);
  }
  .platform-btn:hover::before {
    left: 100%;
  }
  .platform-btn:hover svg {
    filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.5));
    transform: scale(1.1);
  }
  .platform-btn:hover::after {
    opacity: 1;
    width: 56px; height: 56px;
  }
}

.platform-btn:active {
  transform: scale(0.96);
  transition-duration: 0.1s;
}

/* ── Guide Detail Panel ── */
.guide-detail {
  padding: 28px 24px;
  margin-top: 16px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 40px rgba(0, 0, 0, 0.4);
  animation: guideDetailIn 0.4s cubic-bezier(0.25, 1, 0.5, 1) both;
}

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

.guide-back {
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.2);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 22px;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.guide-back:hover {
  background: rgba(250, 204, 21, 0.15);
  transform: translateX(-3px);
}

#guideContent h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: -0.3px;
}
#guideContent h3 svg {
  color: var(--accent) !important;
  fill: var(--accent) !important;
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.35));
}

/* Steps list */
#guideContent ol {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  counter-reset: step-counter;
}
#guideContent li {
  counter-increment: step-counter;
  color: #fff;
  line-height: 1.65;
  font-size: 14px;
  font-weight: 500;
  padding: 16px 18px 16px 58px;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all 0.25s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#guideContent li::before {
  content: counter(step-counter);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(250, 204, 21, 0.08));
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
}
@media (hover: hover) {
  #guideContent li:hover {
    border-color: rgba(250, 204, 21, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
  }
}

/* Download buttons */
#guideContent .download-btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background: var(--accent-dim);
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 14px;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  margin-top: 8px;
  transition: all 0.25s ease;
  font-family: 'Montserrat', sans-serif;
}
@media (hover: hover) {
  #guideContent .download-btn:hover {
    background: rgba(250, 204, 21, 0.2);
    border-color: var(--accent);
    transform: translateY(-1px);
  }
}
#guideContent .download-btn:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

/* ── PROFILE ── */
.login-card {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.login-card h3 { font-size: 22px; font-weight: 800; }
.login-card p { color: var(--text-dim); font-size: 14px; }
.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}
.input-field {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--text);
  font-size: 15px;
  padding: 14px 18px;
  font-family: 'Montserrat', sans-serif;
  outline: none;
  width: 100%;
  text-align: center;
  transition: border-color 0.2s;
}
.input-field:focus { border-color: rgba(250, 204, 21, 0.5); }
.hint-text { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.profile-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.profile-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(250, 204, 21, 0.25);
}
.profile-id, .profile-balance { font-size: 14px; color: var(--text-dim); }
.profile-menu { display: flex; flex-direction: column; gap: 10px; }
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  text-decoration: none;
}
@media (hover: hover) {
  .profile-menu-item:hover {
    border-color: rgba(250, 204, 21, 0.2);
    background: rgba(250, 204, 21, 0.04);
  }
  .logout-btn:hover {
    border-color: rgba(220, 80, 80, 0.35) !important;
    background: rgba(220, 80, 80, 0.06) !important;
  }
}
.profile-menu-item svg:first-child { flex-shrink: 0; }
.profile-menu-item span { flex: 1; }

/* ── BOTTOM NAV (Premium) ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 5px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 200;
}
.glass-nav {
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px 5px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  min-width: 60px;
  gap: 4px;
}
.nav-btn span {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
}
.nav-btn svg {
  transition: all 0.3s ease;
  color: rgba(255,255,255,0.4);
}

/* Active State */
.nav-btn.active span {
  color: #facc15;
  font-weight: 700;
}
.nav-btn.active svg {
  color: #facc15;
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.4));
}
.nav-btn.active svg * {
  stroke-width: 2px !important;
}

/* Active indicator dot */
.nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 4px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 8px rgba(250,204,21,0.6);
}

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

/* ── FOOTER ── */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0 calc(var(--bottom-nav-h) + 16px);
  text-align: center;
  background: #030305;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
}
.logo-img-sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}
.footer p { color: var(--text-dim); font-size: 12px; margin-bottom: 8px; }

.loading-text { text-align: center; color: var(--text-dim); padding: 40px; }

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
  width: 100%;
  max-width: 400px;
  padding: 24px;
  position: relative;
  margin: auto;
  animation: slideUp 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.product-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
}
.product-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.product-card .price {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}
.modal-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 16px;
}
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.payment-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  font-size: 15px;
  transition: all 0.2s ease;
}
.payment-btn:active { transform: scale(0.97); }

@keyframes pulseDot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes borderGlow {
  0% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.4), inset 0 0 10px rgba(168, 85, 247, 0.2); border-color: rgba(168, 85, 247, 0.5); }
  50% { box-shadow: 0 0 20px rgba(255, 165, 0, 0.6), inset 0 0 20px rgba(255, 165, 0, 0.3); border-color: rgba(255, 165, 0, 0.8); }
  100% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.4), inset 0 0 10px rgba(168, 85, 247, 0.2); border-color: rgba(168, 85, 247, 0.5); }
}

.premium-animated {
  animation: borderGlow 4s infinite alternate ease-in-out;
  position: relative;
  overflow: hidden;
}

.premium-animated::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(168,85,247,0.1) 25%, rgba(255,165,0,0.1) 50%, transparent 100%);
  animation: rotateGlow 8s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 5px rgba(52, 211, 153, 0.4); transform: scale(1); }
  50% { box-shadow: 0 0 15px rgba(52, 211, 153, 0.8); transform: scale(1.05); }
  100% { box-shadow: 0 0 5px rgba(52, 211, 153, 0.4); transform: scale(1); }
}

.discount-badge {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  animation: pulseGlow 2s infinite ease-in-out;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

/* Badge Animations */
@keyframes pulseGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 4px var(--badge-color)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 10px var(--badge-color)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 4px var(--badge-color)); }
}

@keyframes spinGlow {
  0% { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 6px var(--badge-color)); }
  50% { transform: rotate(180deg) scale(1.15); filter: drop-shadow(0 0 15px var(--badge-color)); }
  100% { transform: rotate(360deg) scale(1); filter: drop-shadow(0 0 6px var(--badge-color)); }
}

.badge-animated-bronze {
  --badge-color: #3b82f6;
  animation: pulseGlow 3s infinite ease-in-out;
}

.badge-animated-silver {
  --badge-color: #a855f7;
  animation: pulseGlow 2.5s infinite ease-in-out;
}

.badge-animated-gold {
  --badge-color: #eab308;
  animation: pulseGlow 2s infinite ease-in-out;
}

.badge-animated-vip {
  --badge-color: #ef4444;
  animation: spinGlow 4s infinite linear;
}
body { touch-action: manipulation; } #coinButton { touch-action: manipulation; -webkit-user-select: none; user-select: none; outline: none; }

/* ── DISCOUNT TAGS ON CARDS ── */
.discount-tag {
  position: absolute;
  top: 10px; right: 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(34,197,94,0.3);
  animation: tagPulse 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes tagPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ── TRUST BADGES ── */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  animation: fadeInUp 0.7s ease-out 0.4s both;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.trust-badge:hover { opacity: 1; }

.trust-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
}

.trust-badge span {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── USERS ONLINE COUNTER ── */
.online-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #22c55e;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}
