: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: #000;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  /* Smooth fade in on page load */
  animation: pageIn 0.35s 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;
}

/* ── GLASS CARD (iOS 26 Liquid Glass) ── */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}
.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 ── */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 48px 20px 36px;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.orb1 {
  width: 400px; height: 400px;
  background: rgba(250, 204, 21, 0.1);
  top: -120px; left: -80px;
}
.orb2 {
  width: 300px; height: 300px;
  background: rgba(250, 204, 21, 0.06);
  bottom: -60px; right: -60px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(250, 204, 21, 0.3);
  animation: float 5s ease-in-out infinite;
  margin-bottom: 4px;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.hero h1 {
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
}
.hero-sub {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.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;
}
.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: #000;
}

@media (max-width: 767px) {
  .app-shell {
    padding-bottom: calc(var(--bottom-nav-h) + 8px);
  }
  .tab-content { padding: 12px 14px 16px; }
}
@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: 24px; }
.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 ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.plan-card {
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.plan-card.popular {
  border-color: rgba(250, 204, 21, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 32px rgba(250, 204, 21, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.4);
}
.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: 11px;
  background: var(--accent-dim);
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 14px;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  margin-top: 8px;
  transition: all 0.25s ease;
  font-family: 'Montserrat', sans-serif;
}
.btn-plan:hover {
  background: rgba(250, 204, 21, 0.2);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ── 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 ── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Montserrat', sans-serif;
}
.platform-btn:hover {
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.05);
  transform: translateY(-2px);
}
.guide-detail {
  padding: 24px;
  margin-top: 16px;
}
.guide-back {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 18px;
  font-family: 'Montserrat', sans-serif;
}
#guideContent h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
#guideContent ol { padding-left: 0; display: flex; flex-direction: column; gap: 10px; list-style: none; }
#guideContent li { color: var(--text-dim); line-height: 1.6; font-size: 14px; padding-left: 0; }
#guideContent .download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 28px;
  background: linear-gradient(135deg, #facc15, #d97706);
  color: #000;
  font-weight: 800;
  border-radius: 50px;
  text-decoration: none;
  font-size: 13px;
  margin-right: 10px;
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.25);
  transition: transform 0.2s ease;
  font-family: 'Montserrat', sans-serif;
}
#guideContent .download-btn:hover { transform: translateY(-2px); }

/* ── 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;
}
.profile-menu-item:hover {
  border-color: rgba(250, 204, 21, 0.2);
  background: rgba(250, 204, 21, 0.04);
}
.profile-menu-item svg:first-child { flex-shrink: 0; }
.profile-menu-item span { flex: 1; }
.logout-btn:hover {
  border-color: rgba(220, 80, 80, 0.35) !important;
  background: rgba(220, 80, 80, 0.06) !important;
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 200;
}
.glass-nav {
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  transition: color 0.2s ease;
  min-width: 60px;
  letter-spacing: 0.3px;
}
.nav-btn.active { color: var(--accent); }
.nav-btn svg { transition: filter 0.2s ease; }
.nav-btn.active svg { filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.55)); }

/* ── 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: #000;
}
.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.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
  width: 100%;
  max-width: 400px;
  padding: 24px;
  position: relative;
  animation: slideUp 0.3s ease;
}
@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); }
}
