@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,700;1,800&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #111110;
  --bg-secondary: #1a1917;
  --bg-tertiary: #232220;
  --bg-card: rgba(35, 34, 32, 0.6);
  --accent: #D4A574;
  --accent-light: #E8C9A0;
  --accent-dark: #B8895A;
  --accent-glow: rgba(212, 165, 116, 0.15);
  --accent-glow-strong: rgba(212, 165, 116, 0.3);
  --text-primary: #F5F0EB;
  --text-secondary: #9A918A;
  --text-muted: #6B6560;
  --border: rgba(212, 165, 116, 0.12);
  --border-strong: rgba(212, 165, 116, 0.25);
  --glass: rgba(212, 165, 116, 0.04);
  --glass-strong: rgba(212, 165, 116, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(17, 17, 16, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(17, 17, 16, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

.nav-logo span {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.lang-selector {
  position: relative;
}

.lang-btn {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
  text-align: left;
}

.lang-option:hover {
  background: var(--glass-strong);
  color: var(--text-primary);
}

.lang-option.active {
  color: var(--accent);
  background: var(--accent-glow);
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent);
  color: #111110;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(212, 165, 116, 0.15);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-nav {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ══════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(ellipse, rgba(212, 165, 116, 0.10) 0%, rgba(212,165,116,0.03) 45%, transparent 70%);
  animation: pulse-glow 7s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 32px;
  animation: fade-up 0.8s ease-out;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  animation: fade-up 0.8s ease-out 0.1s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light), #F0DCC0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 400;
  animation: fade-up 0.8s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  animation: fade-up 0.8s ease-out 0.3s both;
}

.hero-counter {
  animation: fade-up 0.8s ease-out 0.4s both;
}

.counter-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.counter-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  min-width: 50px;
}

.counter-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: left;
  line-height: 1.4;
}

/* ══════════════════════════════════════
   SECTIONS COMMON
   ══════════════════════════════════════ */
section {
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   FEATURES
   ══════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), var(--border-strong), transparent);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   REFERRAL SECTION
   ══════════════════════════════════════ */
.referral-section {
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.referral-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.referral-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.referral-card .big-text {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  color: var(--accent);
}

.referral-card .sub-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ══════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════ */
.cta-section {
  text-align: center;
  padding: 120px 24px;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.06) 0%, transparent 70%);
}

.cta-section h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
  position: relative;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ══════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 72px;
}

.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 32px 20px;
  position: fixed;
  top: 72px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 32px;
}

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 0 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 4px;
}

.sidebar-link:hover {
  background: var(--glass-strong);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: var(--accent-glow);
  color: var(--accent);
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.dashboard-main {
  flex: 1;
  margin-left: 260px;
  padding: 40px;
}

.dash-header {
  margin-bottom: 40px;
}

.dash-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.dash-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.dash-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.dash-card:hover {
  border-color: var(--border-strong);
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.dash-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-primary);
  border-radius: 3px;
  margin-top: 16px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 3px;
  transition: width 1s ease-out;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.download-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

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

.download-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.download-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.download-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.referral-box {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  margin-top: 40px;
}

.referral-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.referral-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.referral-link-box {
  display: flex;
  gap: 12px;
}

.referral-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  outline: none;
}

.referral-input:focus {
  border-color: var(--accent);
}

.copy-btn {
  padding: 12px 20px;
  background: var(--accent);
  color: #111110;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--accent-light);
}

/* ══════════════════════════════════════
   VERIFICATION MODAL
   ══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  transform: scale(0.95) translateY(20px);
  transition: var(--transition);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent);
}

.modal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.code-input-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.code-input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.code-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.15);
}

.modal .telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 16px;
  transition: var(--transition);
}

.modal .telegram-link:hover {
  color: var(--accent-light);
}

.error-msg {
  color: #ef4444;
  font-size: 0.82rem;
  margin-top: 12px;
  display: none;
}

.error-msg.show {
  display: block;
}

/* ══════════════════════════════════════
   HOME PAGE
   ══════════════════════════════════════ */
.home-hero {
  padding: 160px 24px 100px;
  text-align: center;
  position: relative;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(212, 165, 116, 0.05) 0%, transparent 70%);
}

.home-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  position: relative;
}

.home-hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  position: relative;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.benefit-card {
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

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

.benefit-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 16px;
  line-height: 1;
}

.benefit-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  padding: 0;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding-top: 16px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

/* ══════════════════════════════════════
   SPINNER
   ══════════════════════════════════════ */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.verify-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ══════════════════════════════════════
   USER COUNT BADGE (hero)
   ══════════════════════════════════════ */
.hero-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-6px); }
  80%       { transform: translateX(6px); }
}

/* ══════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════ */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 48px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: none;
  padding: 0;
}

.legal-section ul li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.legal-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.contact-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.contact-card .contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }

  .hero { padding: 100px 20px 60px; }
  .hero-actions { flex-direction: column; }

  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps::before { display: none; }

  .benefits-grid { grid-template-columns: 1fr; }

  .referral-card { padding: 36px 24px; }

  .sidebar { display: none; }
  .dashboard-main { margin-left: 0; }

  .footer-content { flex-direction: column; gap: 20px; }

  .referral-link-box { flex-direction: column; }

  .code-input { width: 44px; height: 52px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   MOBILE NAV
   ══════════════════════════════════════ */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
}

/* ══════════════════════════════════════
   STATUS BADGE
   ══════════════════════════════════════ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.active {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.status-badge.active::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
}

/* ══════════════════════════════════════
   GRAIN OVERLAY (film grain premium)
   ══════════════════════════════════════ */
.noise {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ══════════════════════════════════════
   HERO — multi-layer aurora upgrade
   ══════════════════════════════════════ */
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-aurora::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(212,165,116,0.11) 0%, rgba(212,165,116,0.04) 40%, transparent 70%);
  animation: aurora-breathe 8s ease-in-out infinite;
}

.hero-aurora::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(212,165,116,0.05) 0%, transparent 65%);
  animation: aurora-drift 12s ease-in-out infinite alternate;
}

.hero-aurora-left {
  position: absolute;
  top: 20%;
  left: -8%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212,165,116,0.04) 0%, transparent 65%);
  animation: aurora-drift 10s ease-in-out infinite alternate-reverse;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,165,116,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,165,116,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

@keyframes aurora-breathe {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}

@keyframes aurora-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -20px) scale(1.1); }
}

/* Italic serif for hero gradient text */
.hero h1 .gradient-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
}

/* ══════════════════════════════════════
   BADGE — shimmer border
   ══════════════════════════════════════ */
.hero-badge {
  position: relative;
  overflow: hidden;
}

.hero-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212,165,116,0.2), transparent);
  animation: badge-shimmer 3s ease-in-out infinite 1s;
}

@keyframes badge-shimmer {
  0%   { left: -100%; }
  50%, 100% { left: 150%; }
}

/* ══════════════════════════════════════
   BUTTON — shimmer sweep
   ══════════════════════════════════════ */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg);
  transition: none;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 150%;
  transition: left 0.55s ease;
}

/* ══════════════════════════════════════
   FEATURE CARDS — spotlight hover
   ══════════════════════════════════════ */
.feature-card {
  --spot-x: 50%;
  --spot-y: 50%;
}

.feature-card .card-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--spot-x) var(--spot-y), rgba(212,165,116,0.07), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.feature-card:hover .card-spotlight {
  opacity: 1;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.35), 0 0 0 1px rgba(212,165,116,0.1);
}

/* ══════════════════════════════════════
   MARQUEE STRIP
   ══════════════════════════════════════ */
.marquee-section {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(212,165,116,0.02);
  overflow: hidden;
  position: relative;
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.marquee-section::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
  padding: 18px 0;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 40px;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.marquee-item span {
  color: var(--accent);
  opacity: 0.8;
}

.marquee-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════
   COUNTER BOXES — pulse rings
   ══════════════════════════════════════ */
.counter-box {
  position: relative;
}

.counter-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, rgba(212,165,116,0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.counter-box:hover::before {
  opacity: 1;
}

.counter-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ══════════════════════════════════════
   TESTIMONIALS — quote mark + stars
   ══════════════════════════════════════ */
.testimonial-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 7rem;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--accent);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  color: var(--accent);
}

.testimonial-stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ══════════════════════════════════════
   REFERRAL CARD — animated sweep
   ══════════════════════════════════════ */
.referral-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 120%, rgba(212,165,116,0.06), transparent);
  pointer-events: none;
}

/* ══════════════════════════════════════
   SECTION TAG — gradient pill
   ══════════════════════════════════════ */
.section-tag {
  background: linear-gradient(135deg, rgba(212,165,116,0.12), rgba(212,165,116,0.04));
  border: 1px solid rgba(212,165,116,0.2);
  padding: 5px 14px;
  border-radius: 50px;
  display: inline-block;
}

/* ══════════════════════════════════════
   MODAL — glass glow upgrade
   ══════════════════════════════════════ */
.modal {
  position: relative;
  background: rgba(26, 25, 23, 0.95);
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
}

.modal::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.code-input {
  width: 54px;
  height: 64px;
  font-size: 1.5rem;
  border-radius: 12px;
  letter-spacing: 0.05em;
}

.code-input:focus {
  border-color: var(--accent);
  background: rgba(212,165,116,0.04);
  box-shadow: 0 0 0 3px rgba(212,165,116,0.1), 0 0 24px rgba(212,165,116,0.12);
}

/* ══════════════════════════════════════
   STAGGER REVEAL
   ══════════════════════════════════════ */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }

/* ══════════════════════════════════════
   STEP NUMBER — glow
   ══════════════════════════════════════ */
.step-number {
  box-shadow: 0 0 0 8px rgba(212,165,116,0.04), 0 0 30px rgba(212,165,116,0.08);
  transition: var(--transition);
}

.step:hover .step-number {
  border-color: var(--accent);
  box-shadow: 0 0 0 8px rgba(212,165,116,0.08), 0 0 40px rgba(212,165,116,0.15);
  color: var(--accent-light);
}

/* ══════════════════════════════════════
   HERO h1 — refined spacing
   ══════════════════════════════════════ */
.hero h1 {
  font-size: clamp(3.2rem, 8vw, 6rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

/* ══════════════════════════════════════
   CTA SECTION — upgrade
   ══════════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212,165,116,0.05) 0%, transparent 65%);
  pointer-events: none;
}

/* ══════════════════════════════════════
   NAV LOGO — subtle animation
   ══════════════════════════════════════ */
.nav-logo svg {
  transition: transform 0.3s ease;
}
.nav-logo:hover svg {
  transform: rotate(-6deg) scale(1.05);
}


/* ══════════════════════════════════════
   REFERRAL TIERS — Premium Cards
   ══════════════════════════════════════ */
.ref-tiers-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin: 32px 0 36px;
  width: 100%;
}

.ref-tier-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,165,116,0.13);
  border-radius: 14px;
  padding: 20px 8px 16px;
  text-align: center;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}
.ref-tier-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,165,116,0.25), transparent);
}
.ref-tier-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,165,116,0.38);
  background: rgba(212,165,116,0.05);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.ref-tier-pro {
  border-color: rgba(212,165,116,0.3);
  background: rgba(212,165,116,0.04);
}
.ref-tier-elite {
  border-color: rgba(212,165,116,0.52);
  background: rgba(212,165,116,0.07);
}
.ref-tier-elite::after {
  background: linear-gradient(90deg, transparent, rgba(212,165,116,0.55), transparent);
}
.ref-tier-elite:hover {
  border-color: rgba(212,165,116,0.72);
  box-shadow: 0 8px 32px rgba(212,165,116,0.14);
}

.ref-tier-badge {
  position: absolute;
  top: 0; right: 0;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #111;
  background: var(--accent);
  padding: 3px 7px;
  border-radius: 0 14px 0 8px;
  line-height: 1.7;
}
.ref-tier-elite .ref-tier-badge {
  background: linear-gradient(135deg, #F0D5B0, #C8904A);
}

.ref-tier-pip {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.ref-tier-pro .ref-tier-pip,
.ref-tier-elite .ref-tier-pip {
  background: linear-gradient(150deg, #F0D5B0 0%, #D4A574 55%, #B8895A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ref-tier-label {
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 5px;
  white-space: nowrap;
}

.ref-tier-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.ref-tier-elite .ref-tier-val {
  background: linear-gradient(135deg, #F0D5B0, #D4A574);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 880px) {
  .ref-tiers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}
@media (max-width: 520px) {
  .ref-tiers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }
  .ref-tier-pip { font-size: 1.6rem; }
}
