/* ============================================================
   BLOCK GUARDIAN STRATEGIES — GLOBAL STYLESHEET
   Dark navy / gold / blue-purple premium crypto brand
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --navy:        #080A18;
  --navy-light:  #0D1128;
  --navy-card:   #0F1530;
  --gold:        #F5A623;
  --gold-light:  #FFD166;
  --gold-dark:   #C8831A;
  --purple:      #5850EC;
  --purple-light:#8B5CF6;
  --purple-mid:  #7C3AED;
  --white:       #FFFFFF;
  --text:        #E2E8F0;
  --text-muted:  #94A3B8;
  --border:      rgba(245, 166, 35, 0.15);
  --border-hover:rgba(245, 166, 35, 0.4);
  --glow-gold:   0 0 30px rgba(245, 166, 35, 0.25);
  --glow-purple: 0 0 30px rgba(88, 80, 236, 0.3);
  --card-bg:     rgba(15, 21, 48, 0.8);
  --glass:       rgba(255, 255, 255, 0.03);
  --gradient-gold:   linear-gradient(135deg, #F5A623, #FFD166, #F5A623);
  --gradient-purple: linear-gradient(135deg, #5850EC, #8B5CF6);
  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height:  72px;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p  { font-size: 1rem; color: var(--text-muted); }

.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-purple {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }

/* ── LAYOUT ────────────────────────────────────────────────── */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header p { font-size: 1.1rem; max-width: 600px; margin: 16px auto 0; }
.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary { background: var(--gradient-gold); color: #080A18; }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0); transition: var(--transition); }
.btn-primary:hover::before { background: rgba(255,255,255,0.15); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245,166,35,0.4); }
.btn-secondary { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-secondary:hover { background: rgba(245,166,35,0.1); transform: translateY(-2px); box-shadow: var(--glow-gold); }
.btn-purple { background: var(--gradient-purple); color: var(--white); }
.btn-purple:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(88,80,236,0.4); }
.btn-ghost { background: var(--glass); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-hover); color: var(--gold); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; border-radius: 10px; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--glow-gold), 0 20px 40px rgba(0,0,0,0.3); }
.card-purple { border-color: rgba(88,80,236,0.3); }
.card-purple:hover { border-color: rgba(139,92,246,0.6); box-shadow: var(--glow-purple), 0 20px 40px rgba(0,0,0,0.3); }

/* ── NAVIGATION ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  display: flex; align-items: center;
  transition: var(--transition);
  padding: 0 32px;
}
.nav.scrolled {
  background: rgba(8, 10, 24, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%; max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--white);
}
.nav-logo-shield {
  width: 36px; height: 36px;
  background: var(--gradient-purple);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 16px rgba(88,80,236,0.4);
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--font-head); font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted); transition: var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gold); transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }
.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(8,10,24,0.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--text); transition: var(--transition); }
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile-close { position: absolute; top: 24px; right: 32px; font-size: 2rem; color: var(--text-muted); cursor: pointer; transition: var(--transition); }
.nav-mobile-close:hover { color: var(--gold); }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding-top: var(--nav-height);
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-bg-gradient {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 30% 50%, rgba(88,80,236,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(245,166,35,0.08) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.3); padding: 8px 16px; border-radius: 100px;
  margin-bottom: 28px; animation: fadeInDown 0.8s ease both;
}
.hero-badge-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse-dot 2s ease infinite; }
.hero h1 { margin-bottom: 24px; animation: fadeInUp 0.8s ease 0.15s both; }
.hero > .container > .hero-content > p { font-size: 1.2rem; max-width: 560px; margin-bottom: 40px; animation: fadeInUp 0.8s ease 0.3s both; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp 0.8s ease 0.45s both; }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
  animation: fadeIn 1s ease 1.2s both;
}
.hero-scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease infinite;
}

/* ── FREE ZONE TIP CARDS ───────────────────────────────────── */
.tip-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.tip-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.tip-card.warning::before  { background: linear-gradient(90deg, #FF6B6B, #FF8E53); }
.tip-card.practice::before { background: var(--gradient-gold); }
.tip-card.info::before     { background: var(--gradient-purple); }
.tip-card:hover { transform: translateY(-6px) scale(1.02); border-color: var(--border-hover); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.tip-card-icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.tip-card h4 { font-size: 0.95rem; color: var(--white); margin-bottom: 8px; }
.tip-card p  { font-size: 0.85rem; line-height: 1.5; }
.tip-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; margin-bottom: 20px;
}
.tip-cat.warning  { background: rgba(255,107,107,0.15); color: #FF6B6B; border: 1px solid rgba(255,107,107,0.3); }
.tip-cat.practice { background: rgba(245,166,35,0.12); color: var(--gold); border: 1px solid rgba(245,166,35,0.3); }
.tip-cat.info     { background: rgba(88,80,236,0.15); color: var(--purple-light); border: 1px solid rgba(88,80,236,0.3); }

/* ── PRICING ───────────────────────────────────────────────── */
.pricing-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 32px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.pricing-card.featured { border-color: rgba(245,166,35,0.5); background: rgba(245,166,35,0.04); }
.pricing-card.featured::after {
  content: 'Most Popular';
  position: absolute; top: 20px; right: -32px;
  background: var(--gradient-gold); color: #080A18;
  font-family: var(--font-head); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 48px; transform: rotate(45deg);
}
.pricing-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--glow-gold), 0 24px 48px rgba(0,0,0,0.3); }
.pricing-name { font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.pricing-price { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 8px; }
.pricing-price sup { font-size: 1.4rem; }
.pricing-price sub { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-save { font-size: 0.85rem; color: #4ADE80; margin-bottom: 24px; font-weight: 500; min-height: 20px; }
.pricing-divider { height: 1px; background: var(--border); margin: 24px 0; }
.pricing-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.pricing-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text); }
.pricing-check { color: var(--gold); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── AI AGENTS ─────────────────────────────────────────────── */
.agent-card {
  background: var(--card-bg); border: 1px solid rgba(88,80,236,0.25);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.agent-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--gradient-purple); transform: scaleX(0); transition: var(--transition); }
.agent-card:hover::after { transform: scaleX(1); }
.agent-card:hover { border-color: rgba(139,92,246,0.5); transform: translateY(-4px); box-shadow: var(--glow-purple), 0 20px 40px rgba(0,0,0,0.3); }
.agent-icon { width: 52px; height: 52px; background: rgba(88,80,236,0.15); border: 1px solid rgba(88,80,236,0.3); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 20px; }
.agent-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-light); background: rgba(88,80,236,0.1); border: 1px solid rgba(88,80,236,0.2); padding: 4px 10px; border-radius: 100px; margin-bottom: 12px; }

/* ── TESTIMONIALS ──────────────────────────────────────────── */
.testimonial-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: var(--transition); }
.testimonial-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 0.95rem; line-height: 1.7; color: var(--text); margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-purple); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--white); flex-shrink: 0; }
.testimonial-name { font-family: var(--font-head); font-weight: 600; color: var(--white); font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* ── FOOTER ────────────────────────────────────────────────── */
footer { background: var(--navy-card); border-top: 1px solid var(--border); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-brand p { margin: 16px 0 24px; font-size: 0.9rem; max-width: 300px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--text-muted); transition: var(--transition); }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); background: rgba(245,166,35,0.08); }
.footer-col h5 { font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a { font-size: 0.9rem; color: var(--text-muted); transition: var(--transition); }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 32px; display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--text-muted); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ── MARQUEE STRIP ─────────────────────────────────────────── */
.marquee-strip { background: var(--gradient-gold); padding: 14px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 0; animation: marquee 25s linear infinite; white-space: nowrap; }
.marquee-item { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; color: #080A18; padding: 0 32px; flex-shrink: 0; }
.marquee-dot { width: 4px; height: 4px; background: rgba(8,10,24,0.4); border-radius: 50%; }

/* ── PAGE HERO ─────────────────────────────────────────────── */
.page-hero { padding: 160px 0 80px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(88,80,236,0.2) 0%, transparent 70%); }
.page-hero-content { position: relative; z-index: 1; }

/* ── FORMS ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-family: var(--font-head); font-size: 0.85rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 16px; font-family: var(--font-body); font-size: 0.95rem;
  color: var(--white); transition: var(--transition); outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--gold); background: rgba(245,166,35,0.04); box-shadow: 0 0 0 3px rgba(245,166,35,0.1); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: var(--navy-card); }

/* ── AUTH ──────────────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; position: relative; }
.auth-bg { position: fixed; inset: 0; background: radial-gradient(ellipse at 30% 40%, rgba(88,80,236,0.2) 0%, transparent 60%), radial-gradient(ellipse at 70% 60%, rgba(245,166,35,0.08) 0%, transparent 60%); z-index: 0; }
.auth-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px 40px; width: 100%; max-width: 460px; backdrop-filter: blur(10px); position: relative; z-index: 1; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo-icon { width: 56px; height: 56px; background: var(--gradient-purple); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 12px; box-shadow: 0 0 30px rgba(88,80,236,0.4); }
.auth-logo-name { font-family: var(--font-head); font-weight: 700; color: var(--white); }
.auth-logo-name span { color: var(--gold); }
.auth-title { text-align: center; margin-bottom: 8px; font-size: 1.8rem; color: var(--white); }
.auth-subtitle { text-align: center; margin-bottom: 32px; font-size: 0.9rem; }
.auth-switch { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-muted); }
.auth-switch a { color: var(--gold); }

/* ── MEMBERS SIDEBAR ───────────────────────────────────────── */
.members-layout { display: flex; min-height: 100vh; padding-top: var(--nav-height); }
.sidebar { width: 260px; background: var(--navy-card); border-right: 1px solid var(--border); padding: 32px 16px; position: fixed; top: var(--nav-height); left: 0; bottom: 0; overflow-y: auto; z-index: 100; }
.sidebar-section { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); padding: 0 12px; margin: 24px 0 6px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-family: var(--font-head); font-size: 0.88rem; font-weight: 500; color: var(--text-muted); transition: var(--transition); }
.sidebar-link:hover { background: var(--glass); color: var(--white); }
.sidebar-link.active { background: rgba(245,166,35,0.1); color: var(--gold); border: 1px solid rgba(245,166,35,0.2); }
.sidebar-link-icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-upgrade { background: rgba(245,166,35,0.06); border: 1px solid rgba(245,166,35,0.15); border-radius: var(--radius); padding: 18px 14px; margin-top: 32px; }
.members-main { flex: 1; margin-left: 260px; padding: 40px 48px; }
.members-header { margin-bottom: 40px; }
.members-header h1 { font-size: 1.8rem; color: var(--white); }
.members-header p { margin-top: 6px; }

/* Progress */
.progress-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 100px; overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; background: var(--gradient-gold); border-radius: 100px; transition: width 1s ease; }
.progress-fill.purple { background: var(--gradient-purple); }
.progress-fill.green  { background: linear-gradient(90deg, #4ADE80, #22D3EE); }

/* Lesson */
.lesson-nav-tabs { display: flex; gap: 4px; margin-bottom: 32px; flex-wrap: wrap; }
.lesson-tab { padding: 8px 16px; border-radius: 8px; font-family: var(--font-head); font-size: 0.82rem; font-weight: 500; color: var(--text-muted); background: var(--glass); border: 1px solid var(--border); cursor: pointer; transition: var(--transition); }
.lesson-tab:hover { color: var(--white); border-color: var(--border-hover); }
.lesson-tab.active { background: rgba(245,166,35,0.12); color: var(--gold); border-color: rgba(245,166,35,0.3); }
.lesson-tab.completed { background: rgba(74,222,128,0.08); color: #4ADE80; border-color: rgba(74,222,128,0.2); }

.lesson-content { max-width: 760px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px; margin-bottom: 24px; }
.lesson-content h3 { color: var(--white); margin-bottom: 24px; font-size: 1.4rem; }
.lesson-content h4 { color: var(--gold); margin: 24px 0 12px; font-size: 1rem; }
.lesson-content p { color: var(--text); line-height: 1.8; margin-bottom: 16px; }
.lesson-content strong { color: var(--white); font-weight: 600; }
.lesson-content ul, .lesson-content ol { padding-left: 20px; color: var(--text); margin-bottom: 16px; }
.lesson-content ul { list-style: disc; }
.lesson-content ol { list-style: decimal; }
.lesson-content li { margin-bottom: 8px; line-height: 1.7; }
.lesson-takeaway { background: rgba(245,166,35,0.06); border: 1px solid rgba(245,166,35,0.2); border-radius: 10px; padding: 20px 24px; margin-top: 32px; }
.lesson-takeaway strong { color: var(--gold); }
.lesson-actions { display: flex; justify-content: space-between; gap: 16px; max-width: 760px; margin-top: 20px; flex-wrap: wrap; }

/* Quiz */
.quiz-wrapper { max-width: 760px; }
.quiz-progress-text { font-family: var(--font-head); font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.quiz-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; margin-bottom: 16px; }
.quiz-q-num { font-size: 0.72rem; color: var(--gold); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.quiz-question { font-family: var(--font-head); font-size: 1.05rem; color: var(--white); margin-bottom: 24px; font-weight: 600; line-height: 1.5; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: var(--transition); font-size: 0.9rem; color: var(--text); user-select: none; }
.quiz-option:hover:not(.disabled) { border-color: var(--border-hover); background: rgba(245,166,35,0.05); }
.quiz-option.selected { border-color: var(--gold); background: rgba(245,166,35,0.08); color: var(--white); }
.quiz-option.correct   { border-color: #4ADE80; background: rgba(74,222,128,0.08); color: #4ADE80; }
.quiz-option.incorrect { border-color: #FF6B6B; background: rgba(255,107,107,0.08); color: #FF6B6B; }
.quiz-option.disabled  { pointer-events: none; }
.quiz-result { text-align: center; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 60px 40px; }
.quiz-result-icon { font-size: 4rem; display: block; margin-bottom: 16px; }
.quiz-score-num { font-family: var(--font-head); font-size: 5rem; font-weight: 700; line-height: 1; }
.quiz-score-num.pass { color: #4ADE80; }
.quiz-score-num.fail { color: #FF6B6B; }

/* AI Agent Chat */
.agent-ui { max-width: 760px; }
.agent-selector { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.agent-btn { padding: 10px 20px; border-radius: 8px; font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; color: var(--text-muted); background: var(--glass); border: 1px solid var(--border); cursor: pointer; transition: var(--transition); }
.agent-btn:hover { color: var(--white); border-color: rgba(88,80,236,0.4); }
.agent-btn.active { color: var(--purple-light); border-color: rgba(88,80,236,0.5); background: rgba(88,80,236,0.1); }
.agent-chat { height: 520px; background: var(--card-bg); border: 1px solid rgba(88,80,236,0.3); border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; }
.agent-chat-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; background: rgba(88,80,236,0.07); }
.agent-status-dot { width: 8px; height: 8px; background: #4ADE80; border-radius: 50%; animation: pulse-dot 2s ease infinite; }
.agent-chat-name { font-family: var(--font-head); font-weight: 600; color: var(--white); font-size: 0.95rem; }
.agent-chat-desc { font-size: 0.8rem; color: var(--text-muted); }
.agent-messages { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.agent-messages::-webkit-scrollbar { width: 4px; }
.agent-messages::-webkit-scrollbar-track { background: transparent; }
.agent-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.msg { max-width: 82%; padding: 12px 16px; font-size: 0.9rem; line-height: 1.6; }
.msg.bot { background: rgba(88,80,236,0.14); border: 1px solid rgba(88,80,236,0.2); color: var(--text); align-self: flex-start; border-radius: 4px 14px 14px 14px; }
.msg.user { background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.2); color: var(--text); align-self: flex-end; border-radius: 14px 4px 14px 14px; }
.msg.typing { padding: 16px; }
.typing-dots { display: flex; gap: 5px; align-items: center; }
.typing-dots span { width: 7px; height: 7px; background: var(--purple-light); border-radius: 50%; animation: typingDot 1.4s ease infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
.agent-input-row { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.agent-input-row input { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 8px; padding: 11px 16px; color: var(--white); font-family: var(--font-body); font-size: 0.9rem; outline: none; transition: var(--transition); }
.agent-input-row input:focus { border-color: var(--purple); background: rgba(88,80,236,0.05); }
.agent-input-row input::placeholder { color: var(--text-muted); }

/* Admin */
.admin-stat { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.admin-stat-value { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--white); }
.admin-stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.admin-table-wrap { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th { font-family: var(--font-head); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.admin-table td { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--text); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; }
.badge-active  { background: rgba(74,222,128,0.15);  color: #4ADE80; }
.badge-gifted  { background: rgba(245,166,35,0.15);  color: var(--gold); }
.badge-expired { background: rgba(255,107,107,0.15); color: #FF6B6B; }
.badge-pending { background: rgba(148,163,184,0.15); color: var(--text-muted); }

/* Alerts */
.alert { padding: 14px 18px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: rgba(74,222,128,0.1);  border: 1px solid rgba(74,222,128,0.3);  color: #4ADE80; }
.alert-error   { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.3); color: #FF6B6B; }
.alert-info    { background: rgba(88,80,236,0.1);   border: 1px solid rgba(88,80,236,0.3);   color: var(--purple-light); }
.alert-warning { background: rgba(245,166,35,0.1);  border: 1px solid rgba(245,166,35,0.3);  color: var(--gold); }

/* Spinner */
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.1); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: var(--transition); }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 520px; transform: translateY(20px); transition: var(--transition); }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-close { color: var(--text-muted); cursor: pointer; font-size: 1.3rem; transition: var(--transition); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.modal-close:hover { background: var(--glass); color: var(--white); }

/* Dividers */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.section-bg-alt  { background: var(--navy-light); }
.section-bg-card { background: var(--navy-card); }

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeIn    { from { opacity: 0; }  to { opacity: 1; } }
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown{ from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollLine{ 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.75); } }
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes marquee   { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes float     { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes typingDot { 0%,60%,100% { transform:translateY(0); } 30% { transform:translateY(-6px); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { 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; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .members-main { padding: 32px 24px; }
}
@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .hero-ctas { flex-direction: column; }
  .auth-card { padding: 32px 20px; }
  .members-layout { flex-direction: column; }
  .sidebar { position: static; width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .members-main { margin-left: 0; padding: 24px 16px; }
  .lesson-content,.quiz-card { padding: 28px 20px; }
  .lesson-actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 2rem; }
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
}

/* ── UTILS ─────────────────────────────────────────────────── */
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.gap-8{gap:8px;} .gap-12{gap:12px;} .gap-16{gap:16px;} .gap-24{gap:24px;} .gap-32{gap:32px;}
.mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;} .mt-48{margin-top:48px;}
.mb-8{margin-bottom:8px;} .mb-16{margin-bottom:16px;} .mb-24{margin-bottom:24px;} .mb-32{margin-bottom:32px;}
.text-center{text-align:center;} .w-full{width:100%;} .hidden{display:none!important;}
.relative{position:relative;} .overflow-hidden{overflow:hidden;}
