/* =========================================
   1. RESET & CORE STYLES
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: #00251a;
  color: #fff;
  overflow-x: hidden;
  width: 100%;
}

:root {
  --gold: #d4a373;
  --gold-glow: #ffcf96;
  --text-gray: #d1d5db;
  --red: #ff4d4d;
  --green: #4ade80;
  --bg-darker: #001a12;
  --emerald: #064e3b;
}

#constellation-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* =========================================
   2. HEADER & NAVBAR
   ========================================= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

/* Purana code hata kar ye replace kar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5%;
  width: 100%;
  background: rgba(0, 37, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  /* --- YE DO LINE ADD KAR --- */
  position: relative;
  z-index: 50; /* Beta bar se bada number */
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(212, 163, 115, 0.3));
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(212, 163, 115, 0.3);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-login-desktop {
  padding: 6px 20px;
  border: 1px solid var(--gold);
  border-radius: 50px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  transition: 0.3s;
  display: inline-block;
}

.btn-login-desktop:hover {
  background: var(--gold);
  color: #000;
}

/* Hide Mobile Elements on Desktop */
.hamburger,
.close-menu,
.btn-login-mobile {
  display: none !important;
}

/* =========================================
   3. BETA BAR & HERO
   ========================================= */
/* Purana code hata kar ye replace kar */
.beta-bar {
  background: linear-gradient(90deg, #c0392b, #e74c3c, #c0392b);
  color: white;
  text-align: center;
  font-size: 0.85rem;
  padding: 8px 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease-in-out;
  max-height: 50px;
  overflow: hidden;

  /* --- YE DO LINE ADD KAR --- */
  position: relative;
  z-index: 10; /* Navbar se chota number */
}

.main-header.scrolled .beta-bar {
  max-height: 0;
  padding: 0;
  opacity: 0;
}

.blink {
  animation: blinker 1.5s linear infinite;
  margin-right: 5px;
  color: #ffeb3b;
}
@keyframes blinker {
  50% {
    opacity: 0;
  }
}
.strike {
  text-decoration: line-through;
  opacity: 0.8;
  margin: 0 5px;
}
.free-tag {
  background: #fff;
  color: #c0392b;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.8rem;
  margin-left: 5px;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  padding-top: 0px;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}
.text-gold {
  color: var(--gold);
  text-shadow: 0 0 40px rgba(212, 163, 115, 0.3);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 800px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-highlights {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.highlight-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.privacy-text {
  margin-top: 20px;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Store Badges */
.app-launch-section {
  margin-top: 50px;
  opacity: 0.8;
}
.app-launch-section p {
  font-size: 0.8rem;
  margin-bottom: 10px;
  color: #aaa;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.store-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.store-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #444;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: not-allowed;
  text-align: left;
}
.store-btn i {
  font-size: 1.8rem;
}
.small-text {
  font-size: 0.6rem;
  display: block;
}
.big-text {
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
}

.cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 30px;
}
.btn-reveal {
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
  padding: 16px 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border: none;
  background: linear-gradient(135deg, #c58e57, #d4a373);
  color: #00251a;
  box-shadow: 4px 4px 0px rgb(59, 46, 32, 0.2);
}
.btn-reveal:hover {
  transform: scale(1.05);
  box-shadow: 4px 4px 0px rgb(59, 46, 32, 0.6);
}

/* =========================================
   4. SECTIONS (FAQ & Features)
   ========================================= */
.section-features,
.section-faq {
  padding: 100px 20px;
  text-align: center;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}
.section-faq {
  background: #00150f;
}

.grid-features,
.faq-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.feature-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
}
.icon-3d {
  font-size: 3.5rem;
  color: var(--emerald);
  margin-bottom: 20px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}
.feature-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.feature-item p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.6;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 40px auto 0 auto;
  text-align: left;
}
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 163, 115, 0.2);
  padding: 25px;
  border-radius: 15px;
  transition: 0.3s;
}
.faq-item h3 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 15px;
}
.faq-item p {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

.main-footer {
  background: #000a08;
  padding: 80px 20px 20px 20px;
  border-top: 1px solid rgba(212, 163, 115, 0.1);
}
.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: #666;
}

/* =========================================
   5. MODALS
   ========================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
  overflow-y: auto;
  padding: 20px 0;
}
.modal-content {
  background: linear-gradient(145deg, #051814, #000);
  border: 1px solid var(--gold);
  padding: 25px;
  border-radius: 20px;
  width: 95%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 0 30px rgba(212, 163, 115, 0.2);
  animation: slideUp 0.4s;
  max-height: 90vh;
  overflow-y: auto;
}
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--text-gray);
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
}
.modal-header h2 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 5px;
  text-align: center;
}
.modal-header p {
  color: var(--text-gray);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 12px;
  text-align: left;
}
.input-group label {
  display: block;
  color: var(--gold-glow);
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.input-group input,
.input-group select {
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: 0.3s;
}
.input-group input:focus,
.input-group select:focus {
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.5);
}
.row-inputs {
  display: flex;
  gap: 10px;
}
.row-inputs .input-group {
  flex: 1;
}
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #c58e57, #d4a373);
  color: #00251a;
  padding: 12px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========================================
   6. MOBILE RESPONSIVE (COMPACT & FIXED)
   ========================================= */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block !important;
    font-size: 1.6rem;
    color: var(--gold);
    cursor: pointer;
    z-index: 1001;
  }
  .btn-login-desktop,
  #desktopAuthBtns,
  #desktopUserSection {
    display: none !important;
  }

  /* Sliding Menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 280px;
    background: rgba(5, 15, 10, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 70px;
    padding-bottom: 20px;
    gap: 0;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
  }
  .nav-links.active {
    right: 0;
  }
  .close-menu {
    display: block !important;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.8rem;
    color: var(--gold);
    cursor: pointer;
  }

  .nav-links a {
    font-size: 1rem;
    width: 85%;
    text-align: left;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    display: block;
  }

  .btn-login-mobile {
    display: block !important;
    margin-top: 20px;
    width: 85%;
    text-align: center;
    padding: 10px;
    font-size: 0.95rem;
    border: 1px solid var(--gold);
  }

  /* Post-Login User Section */
  #mobileUserSection {
    width: 85%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 163, 115, 0.3);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
  }
  #mobileUserSection h3 {
    font-size: 1.2rem;
    color: var(--gold);
    margin: 0;
  }
  #mobileUserSection p {
    font-size: 0.8rem;
    color: #aaa;
    margin: 0;
    margin-bottom: 10px;
    word-break: break-all;
  }
  #mobileUserSection a {
    border: none;
    padding: 5px 0;
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  #mobileUserSection button {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    font-size: 0.9rem;
    border: 1px solid #ff4d4d !important;
    color: #ff4d4d !important;
    border-radius: 8px;
    background: rgba(255, 77, 77, 0.1);
    cursor: pointer;
  }

  .hero {
    padding-top: 140px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .row-inputs {
    flex-direction: column !important;
    gap: 15px;
  }
}

@media screen and (min-width: 769px) {
  #mobileUserSection {
    display: none !important;
  }
}
