/* ============================================================
   Jankalyan MLM Platform — Main Stylesheet
   Theme: Dark Navy + Gold Glassmorphism
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary:     #050a14;
  --bg-secondary:   #080f1e;
  --bg-card:        rgba(255,255,255,0.04);
  --bg-card-hover:  rgba(255,255,255,0.07);
  --border-glass:   rgba(255,255,255,0.08);
  --gold:           #f0b429;
  --gold-light:     #ffd166;
  --gold-dark:      #c8941a;
  --text-primary:   #f0f4ff;
  --text-secondary: #8b9abf;
  --text-muted:     #4a5578;
  --success:        #22c55e;
  --error:          #ef4444;
  --warning:        #f59e0b;
  --info:           #3b82f6;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --shadow-gold:    0 0 30px rgba(240,180,41,0.15);
  --shadow-card:    0 8px 32px rgba(0,0,0,0.4);
  --transition:     all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font:           'Inter', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p  { color: var(--text-secondary); line-height: 1.75; }

.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }

/* ============================================================
   GLASSMORPHISM COMPONENTS
   ============================================================ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(240,180,41,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-gold);
}

.glass-panel {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000;
  box-shadow: 0 4px 20px rgba(240,180,41,0.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(240,180,41,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid rgba(240,180,41,0.4);
}
.btn-outline:hover {
  background: rgba(240,180,41,0.1);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-glass {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-lg { padding: 16px 40px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; justify-content: center; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(5,10,20,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(5,10,20,0.95);
  border-bottom-color: rgba(240,180,41,0.1);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.navbar-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #000;
  box-shadow: 0 4px 15px rgba(240,180,41,0.4);
  flex-shrink: 0;
}
.navbar-logo:hover { color: var(--gold); }

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.navbar-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}
.navbar-menu a:hover, .navbar-menu a.active {
  color: var(--gold);
  background: rgba(240,180,41,0.08);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: rgba(5,10,20,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 20px;
  z-index: 999;
  animation: slideDown 0.3s ease;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-glass);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--gold); background: rgba(240,180,41,0.07); }
.mobile-menu .mobile-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
}

#particle-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,180,41,0.12) 0%, transparent 70%);
  top: -100px; left: -150px;
  pointer-events: none;
  z-index: 0;
  animation: floatGlow 8s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  bottom: 0; right: -100px;
  pointer-events: none;
  z-index: 0;
  animation: floatGlow 10s ease-in-out infinite reverse;
}
@keyframes floatGlow {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px,-30px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(240,180,41,0.1);
  border: 1px solid rgba(240,180,41,0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.4); }
}

.hero-title { margin-bottom: 20px; }
.hero-title .hi { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--text-secondary); font-weight: 400; display: block; margin-bottom: 8px; }
.hero-desc { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 36px; max-width: 520px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}
.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.stat-item .stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-item .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* NGO Hero Image Styling */
.ngo-hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-glass);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  overflow: hidden;
  transition: var(--transition);
  aspect-ratio: 4 / 3;
}
.ngo-hero-img-wrap:hover {
  transform: translateY(-5px);
  border-color: rgba(240,180,41,0.4);
  box-shadow: 0 25px 60px rgba(240,180,41,0.15);
}
.ngo-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: var(--transition);
}
.ngo-hero-img-wrap:hover .ngo-hero-img {
  filter: brightness(1);
}
.ngo-hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
}
.ngo-hero-badge i {
  font-size: 1.2rem;
}

/* ============================================================
   PLANS OVERVIEW
   ============================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}
.plan-card:hover::before { opacity: 1; }
.plan-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240,180,41,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--shadow-gold);
}

.plan-card.featured {
  border-color: rgba(240,180,41,0.4);
  background: rgba(240,180,41,0.05);
}
.plan-card.featured::before { opacity: 1; }
.featured-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 14px;
}
.plan-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.plan-fee {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}
.plan-fee span { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }

.plan-details { list-style: none; text-align: left; }
.plan-details li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.plan-details li:last-child { border-bottom: none; }
.plan-details li strong { color: var(--text-primary); }

/* ============================================================
   AUTOPOOL SECTION
   ============================================================ */
.tree-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 40px 0;
  position: relative;
}
.tree-level {
  display: flex;
  gap: 8px;
  position: relative;
  margin-bottom: 0;
}
.tree-level::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  width: 1px;
  height: 20px;
  background: rgba(240,180,41,0.3);
}
.tree-level:first-child::before { display: none; }

.tree-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, rgba(240,180,41,0.3), rgba(240,180,41,0.1));
  margin: 0 auto;
}

.tree-node {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  border: 2px solid rgba(240,180,41,0.3);
  transition: var(--transition);
  cursor: default;
  animation: nodeAppear 0.5s ease forwards;
}
.tree-node.root {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  border-color: var(--gold);
  font-size: 0.7rem;
  box-shadow: 0 0 20px rgba(240,180,41,0.4);
}
.tree-node.filled { background: rgba(240,180,41,0.15); color: var(--gold); }
.tree-node.empty  { background: rgba(255,255,255,0.03); color: var(--text-muted); border-style: dashed; }

@keyframes nodeAppear {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

.level-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.level-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.level-row:hover { border-color: rgba(240,180,41,0.2); background: var(--bg-card-hover); }
.level-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(240,180,41,0.1);
  border: 1px solid rgba(240,180,41,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: var(--gold);
  flex-shrink: 0;
}

/* ============================================================
   NGO LOAN TABLE
   ============================================================ */
.ngo-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
}
.ngo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.ngo-table th {
  padding: 16px 20px;
  background: rgba(240,180,41,0.08);
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
  white-space: nowrap;
}
.ngo-table td {
  padding: 14px 20px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  white-space: nowrap;
}
.ngo-table tr:last-child td { border-bottom: none; }
.ngo-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.ngo-table tr:hover td { background: rgba(240,180,41,0.04); color: var(--text-primary); }
.ngo-table .amount-cell { color: var(--gold); font-weight: 700; }
.ngo-table .reward-cell { color: var(--success); font-weight: 600; }
.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: rgba(240,180,41,0.1);
  border: 1px solid rgba(240,180,41,0.25);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ============================================================
   INFO CARDS GRID
   ============================================================ */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 24px;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.info-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}
.info-card:hover::after { opacity: 1; }
.info-card:hover { transform: translateY(-6px); border-color: rgba(240,180,41,0.25); }

.info-card .card-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  background: rgba(240,180,41,0.1);
  border: 1px solid rgba(240,180,41,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 20px;
}
.info-card h4 { margin-bottom: 10px; }
.info-card p  { font-size: 0.9rem; }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc-container {
  max-width: 700px;
  margin: 0 auto;
}
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 48px;
  backdrop-filter: blur(20px);
}
.calc-select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f0b429'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  outline: none;
  transition: var(--transition);
}
.calc-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,180,41,0.15); }
.calc-select option { background: #0d1427; }

.calc-results {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-top: 28px;
}
.calc-result-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
}
.calc-result-item .r-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.calc-result-item .r-value { font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.calc-result-item .r-value.net { color: var(--success); }
.calc-result-item .r-value.deduction { color: var(--error); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 0;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240,180,41,0.3), transparent);
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
  margin: 12px;
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(240,180,41,0.3); }
.step-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-size: 1.4rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(240,180,41,0.3);
  position: relative;
  z-index: 1;
}
.step-card h4 { margin-bottom: 10px; font-size: 1.05rem; }
.step-card p  { font-size: 0.875rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-label span { color: var(--error); margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(240,180,41,0.12);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:read-only { opacity: 0.7; cursor: not-allowed; }

.form-control.is-valid   { border-color: var(--success); }
.form-control.is-invalid { border-color: var(--error); }

.invalid-feedback { font-size: 0.8rem; color: var(--error); margin-top: 6px; }
.valid-feedback   { font-size: 0.8rem; color: var(--success); margin-top: 6px; }

.input-group {
  position: relative;
}
.input-group .form-control { padding-left: 44px; }
.input-group .input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}
.input-group .input-icon.right { left: auto; right: 14px; cursor: pointer; pointer-events: all; }

.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check-input {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold);
}
.form-check-label { font-size: 0.875rem; color: var(--text-secondary); cursor: pointer; }

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 40px;
  position: relative;
  overflow: hidden;
}
.auth-glow-1 {
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,180,41,0.08) 0%, transparent 70%);
  top: -100px; left: -100px;
  pointer-events: none;
}
.auth-glow-2 {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
  bottom: -50px; right: -50px;
  pointer-events: none;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 48px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s ease;
}
.auth-card-wide { max-width: 580px; }

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

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo .logo-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 900;
  color: #000;
  margin: 0 auto 12px;
  box-shadow: 0 8px 24px rgba(240,180,41,0.35);
}
.auth-logo h2 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-logo p  { font-size: 0.875rem; color: var(--text-muted); }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-glass);
}

/* Steps indicator */
.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}
.step-ind {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.step-ind:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 20px);
  width: 80px;
  height: 2px;
  background: var(--border-glass);
}
.step-ind:not(:last-child).done::after { background: rgba(240,180,41,0.4); }
.step-ind-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border-glass);
  border: 2px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}
.step-ind.active .step-ind-num {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  box-shadow: 0 0 12px rgba(240,180,41,0.4);
}
.step-ind.done .step-ind-num {
  background: rgba(34,197,94,0.2);
  border-color: var(--success);
  color: var(--success);
}
.step-ind-label { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }
.step-ind.active .step-ind-label { color: var(--gold); }

/* OTP Inputs */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.otp-input {
  width: 52px; height: 60px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  background: rgba(255,255,255,0.04);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
}
.otp-input:focus {
  border-color: var(--gold);
  background: rgba(240,180,41,0.06);
  box-shadow: 0 0 0 3px rgba(240,180,41,0.15);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  animation: fadeUp 0.3s ease;
}
.alert i { flex-shrink: 0; margin-top: 2px; }
.alert-error   { background: rgba(239,68,68,0.08);   border-color: rgba(239,68,68,0.25);   color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.08);   border-color: rgba(34,197,94,0.25);   color: #86efac; }
.alert-warning { background: rgba(245,158,11,0.08);  border-color: rgba(245,158,11,0.25);  color: #fcd34d; }
.alert-info    { background: rgba(59,130,246,0.08);  border-color: rgba(59,130,246,0.25);  color: #93c5fd; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { font-size: 1.4rem; font-weight: 800; color: var(--text-primary); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .logo .logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg,var(--gold),var(--gold-dark)); border-radius: 9px; display: flex; align-items:center; justify-content:center; font-size:1rem; font-weight:900; color:#000; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }
.footer-col h5 { font-size: 0.85rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.875rem; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-col ul li a:hover { color: var(--gold); padding-left: 6px; }

.footer-contact p { font-size: 0.875rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-contact i { color: var(--gold); width: 16px; }

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}
.social-link:hover { background: rgba(240,180,41,0.1); border-color: rgba(240,180,41,0.3); color: var(--gold); transform: translateY(-3px); }

/* ============================================================
   SETUP PAGE
   ============================================================ */
.setup-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.setup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 640px;
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.progress-bar-wrap {
  background: rgba(255,255,255,0.04);
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
  margin: 16px 0;
}
.progress-bar {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width 0.6s ease;
}
.step-log {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.log-ok     { color: var(--success); }
.log-err    { color: var(--error); }
.log-info   { color: var(--info); }
.log-gold   { color: var(--gold); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gold     { color: var(--gold) !important; }
.text-success  { color: var(--success) !important; }
.text-error    { color: var(--error) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-secondary{ color: var(--text-secondary) !important; }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.fw-bold       { font-weight: 700; }
.fw-800        { font-weight: 800; }
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2         { gap: 8px; }
.gap-3         { gap: 12px; }
.gap-4         { gap: 16px; }
.mt-1{margin-top:4px} .mt-2{margin-top:8px} .mt-3{margin-top:12px}
.mt-4{margin-top:16px} .mt-5{margin-top:20px} .mt-6{margin-top:24px}
.mb-1{margin-bottom:4px} .mb-2{margin-bottom:8px} .mb-3{margin-bottom:12px}
.mb-4{margin-bottom:16px} .mb-5{margin-bottom:20px} .mb-6{margin-bottom:24px}
.p-3{padding:12px} .p-4{padding:16px} .p-5{padding:20px} .p-6{padding:24px}
.rounded    { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.w-100      { width: 100%; }
.hidden     { display: none !important; }

/* Divider */
.divider {
  height: 1px;
  background: var(--border-glass);
  margin: 24px 0;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-gold    { background: rgba(240,180,41,0.15); color: var(--gold); border: 1px solid rgba(240,180,41,0.25); }
.badge-success { background: rgba(34,197,94,0.12);  color: var(--success); border: 1px solid rgba(34,197,94,0.25); }
.badge-info    { background: rgba(59,130,246,0.12); color: var(--info); border: 1px solid rgba(59,130,246,0.25); }

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Section divider gradient */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240,180,41,0.3), transparent);
  margin: 0;
}

/* Loading Spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content   { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual    { display: block; margin-top: 20px; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section        { padding: 60px 0; }
  .navbar-menu    { display: none; }
  .navbar-actions .btn { display: none; }
  .hamburger      { display: flex; }
  .hero-stats     { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .plans-grid     { grid-template-columns: repeat(2,1fr); }
  .info-cards     { grid-template-columns: 1fr; }
  .steps-grid     { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .footer-grid    { grid-template-columns: 1fr; gap: 24px; }
  .auth-card      { padding: 32px 24px; }
  .calc-card      { padding: 28px 20px; }
  .calc-results   { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .plans-grid     { grid-template-columns: 1fr; }
  .steps-grid     { grid-template-columns: 1fr; }
  .hero-stats     { grid-template-columns: 1fr 1fr; }
  .otp-inputs     { gap: 6px; }
  .otp-input      { width: 44px; height: 52px; font-size: 1.2rem; }
}
