/* ============================================================
   FITLIFEPRO.EU - Main CSS
   Design: Bold fitness SaaS - dark athletic theme
   ============================================================ */

:root {
  --brand: #00FF87;
  --brand-dark: #00CC6A;
  --brand-glow: rgba(0, 255, 135, 0.25);
  --accent: #FF6B35;
  --bg-primary: #080C10;
  --bg-secondary: #0E1419;
  --bg-card: #141B22;
  --bg-card-hover: #1A2330;
  --border: rgba(255,255,255,0.08);
  --border-brand: rgba(0,255,135,0.3);
  --text-primary: #F0F4F8;
  --text-secondary: #8B9BB4;
  --text-muted: #4A5568;
  --error: #FF4757;
  --warning: #FFB347;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-brand: 0 0 40px rgba(0,255,135,0.15);
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Clash Display', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

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

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

body::before {
  content: '';
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0,255,135,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
a { color: var(--brand); text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.85; }
p { color: var(--text-secondary); line-height: 1.7; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--brand);
  color: #000;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,255,135,0.35);
}
.btn-primary.large { padding: 18px 40px; font-size: 1.15rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-outline:hover { background: var(--brand); color: #000; }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-danger {
  background: var(--error);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 12, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { background: rgba(8,12,16,0.98); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}
.logo:hover { color: var(--text-primary); opacity: 1; }
.logo-icon { font-size: 1.5rem; }
.logo-text em { color: var(--brand); font-style: normal; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a { color: var(--text-secondary); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links .nav-cta { color: #000; }
.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 50px;
}
.lang-switcher a {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.lang-switcher a.active { background: var(--brand); color: #000; }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}
.mobile-menu.open { display: flex; }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section-sm { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header p { max-width: 560px; margin: 12px auto 0; font-size: 1.1rem; }

.label-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0,255,135,0.1);
  border: 1px solid var(--border-brand);
  border-radius: 50px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 span { color: var(--brand); }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 40px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-sub {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  margin-top: 16px !important;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 72px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
}
.hero-stat span { font-size: 0.85rem; color: var(--text-muted); }

/* Animated BG grid */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0,255,135,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,135,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ---- BENEFITS ---- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .benefits-grid { grid-template-columns: 1fr; }
}
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.benefit-card:hover {
  border-color: var(--border-brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-brand);
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: scaleX(0);
  transition: var(--transition);
}
.benefit-card:hover::before { transform: scaleX(1); }
.benefit-icon { font-size: 2.5rem; margin-bottom: 16px; }
.benefit-card h3 { font-size: 1.1rem; margin-bottom: 8px; }

/* ---- PRICING ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: var(--transition);
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured {
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(0,255,135,0.08), var(--bg-card));
  box-shadow: var(--shadow-brand);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.price-badge.best { background: var(--accent); color: #fff; }
.price-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.price-amount sup { font-size: 1.2rem; vertical-align: super; }
.price-amount span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-yearly-note {
  font-size: 0.8rem;
  color: var(--brand);
  margin-top: 4px;
}
.price-divider { height: 1px; background: var(--border); margin: 24px 0; }
.price-features { list-style: none; }
.price-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
}
.feat-check { color: var(--brand); font-size: 1.1rem; }
.feat-lock { color: var(--text-muted); font-size: 1rem; }
.price-cta { width: 100%; margin-top: 28px; justify-content: center; }
.savings-badge {
  display: inline-block;
  background: rgba(255,107,53,0.15);
  border: 1px solid rgba(255,107,53,0.3);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 8px;
}

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.testimonial-stars { color: #FFD700; margin-bottom: 12px; font-size: 1rem; }
.testimonial-text { font-style: italic; margin-bottom: 20px; color: var(--text-secondary); }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #00C4FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #000;
}
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ---- BEFORE/AFTER ---- */
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.ba-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.ba-card .emoji { font-size: 3rem; margin-bottom: 12px; }
.ba-result {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand);
}
.ba-time { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ---- FAQ ---- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  padding: 20px 24px;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question span { font-size: 1.2rem; color: var(--brand); transition: var(--transition); }
.faq-question.open span { transform: rotate(45deg); }
.faq-answer {
  background: var(--bg-secondary);
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer.open { max-height: 300px; padding: 20px 24px; }
.faq-answer p { color: var(--text-secondary); }

/* ---- FORMS ---- */
.form-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 40px;
}
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
}
.form-card h1 { font-size: 1.8rem; margin-bottom: 8px; }
.form-card p { margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.form-group input::placeholder { color: var(--text-muted); }
.form-submit { width: 100%; justify-content: center; margin-top: 8px; }
.form-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.form-footer a { color: var(--brand); }
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.alert-error { background: rgba(255,71,87,0.1); border: 1px solid rgba(255,71,87,0.3); color: #FF6B7A; }
.alert-success { background: rgba(0,255,135,0.08); border: 1px solid var(--border-brand); color: var(--brand); }

/* ---- DASHBOARD ---- */
.dashboard {
  min-height: 100vh;
  padding-top: 80px;
}
.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 80px);
}
.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 32px 0;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.sidebar-nav a.active {
  color: var(--brand);
  background: rgba(0,255,135,0.05);
  border-left-color: var(--brand);
}
.sidebar-nav a .icon { font-size: 1.2rem; }
.sidebar-premium-cta {
  margin: 24px 16px 0;
  background: linear-gradient(135deg, rgba(0,255,135,0.15), rgba(0,196,255,0.15));
  border: 1px solid var(--border-brand);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.sidebar-premium-cta h4 { font-size: 0.95rem; margin-bottom: 8px; }
.sidebar-premium-cta p { font-size: 0.8rem; margin-bottom: 16px; }
.sidebar-premium-cta a { font-size: 0.88rem; padding: 10px 20px; }

.dash-main { padding: 40px; overflow: auto; }
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.dash-header h2 { margin: 0; }
.dash-welcome { color: var(--text-muted); font-size: 0.9rem; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-brand); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.stat-value.brand { color: var(--brand); }
.stat-icon { font-size: 1.8rem; float: right; margin-top: -4px; }

/* Progress bars */
.progress-wrap { margin-top: 12px; }
.progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #00C4FF);
  border-radius: 50px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.card h3 { font-size: 1rem; margin: 0; }

/* AI Chat */
.ai-chat-messages {
  max-height: 340px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px;
}
.ai-chat-messages::-webkit-scrollbar { width: 4px; }
.ai-chat-messages::-webkit-scrollbar-track { background: transparent; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.msg {
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
}
.msg.user { flex-direction: row-reverse; }
.msg-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.msg.user .msg-bubble {
  background: var(--brand);
  color: #000;
  border-bottom-right-radius: 4px;
}
.msg.ai .msg-bubble {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.msg.user .msg-avatar { background: var(--brand); color: #000; }
.msg.ai .msg-avatar { background: var(--bg-secondary); border: 1px solid var(--border); }
.chat-input-row {
  display: flex;
  gap: 10px;
}
.chat-input-row input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 18px;
  color: var(--text-primary);
  font-family: var(--font-body);
}
.chat-input-row input:focus { outline: none; border-color: var(--brand); }
.chat-input-row button {
  background: var(--brand);
  border: none;
  border-radius: 50px;
  width: 44px;
  height: 44px;
  color: #000;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}
.chat-input-row button:hover { background: var(--brand-dark); }

/* Locked overlay */
.feature-locked {
  position: relative;
}
.feature-locked .lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,12,16,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius);
  z-index: 10;
}
.lock-overlay .lock-icon { font-size: 2.5rem; }
.lock-overlay p { font-size: 0.9rem; color: var(--text-secondary); }

/* Streak */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255,107,53,0.2), rgba(255,179,71,0.1));
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

/* Gamification */
.badges-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge-chip.earned { border-color: var(--border-brand); color: var(--brand); }

/* Leaderboard */
.leaderboard-list { list-style: none; }
.leaderboard-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.leaderboard-list li:last-child { border-bottom: none; }
.lb-rank {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  width: 28px;
  color: var(--text-muted);
}
.lb-rank.top { color: var(--brand); }
.lb-name { flex: 1; }
.lb-pts { font-family: var(--font-display); font-weight: 700; color: var(--brand); }

/* ---- UPSELL POPUP ---- */
.upsell-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}
.upsell-modal {
  background: linear-gradient(135deg, #0E1419, #141B22);
  border: 1px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 80px rgba(0,255,135,0.2);
  animation: slideUp 0.4s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.upsell-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}
.upsell-close:hover { color: var(--text-primary); }
.upsell-discount-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 50px;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.upsell-modal h2 { margin-bottom: 12px; }
.upsell-modal p { margin-bottom: 24px; }
.upsell-timer {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 28px;
}
.upsell-timer span { font-size: 0.9rem; color: var(--text-muted); font-family: var(--font-body); margin-bottom: 6px; display: block; }
.upsell-skip {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}
.upsell-skip:hover { color: var(--text-secondary); }

/* ---- AFFILIATE DASHBOARD ---- */
.aff-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}
.share-btn.whatsapp { background: #25D366; color: #fff; }
.share-btn.facebook { background: #1877F2; color: #fff; }
.share-btn.telegram { background: #229ED9; color: #fff; }
.share-btn.copy { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.ref-link-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: monospace;
  font-size: 0.92rem;
  color: var(--brand);
  word-break: break-all;
  margin: 16px 0;
}

/* ---- ADMIN ---- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.admin-table th {
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.badge-plan { padding: 4px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.badge-plan.free { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.badge-plan.premium { background: rgba(0,255,135,0.12); color: var(--brand); }

/* ---- MISC ---- */
.text-brand { color: var(--brand); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0,255,135,0.2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero-stats { flex-direction: column; gap: 20px; padding: 24px; }
  .aff-stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .form-card { padding: 32px 24px; }
  .dash-main { padding: 24px 16px; }
  .upsell-modal { padding: 36px 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
}

