/* ============================================================
   HEADSTART PH — style.css
   Universal stylesheet for all pages
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --green:        #00E87A;
  --green-dark:   #00C064;
  --blue:         #3B82F6;
  --purple:       #8B5CF6;
  --orange:       #F97316;
  --dark:         #F8FAFC;
  --dark2:        #FFFFFF;
  --dark3:        #F1F5F9;
  --mid:          #E2E8F0;
  --text:         #1E293B;
  --muted:        #64748B;
  --card-radius:  18px;
  --bg-primary:   #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-tertiary:  #F1F5F9;
  --border-light: rgba(0,0,0,0.08);
  --shadow-light: rgba(0,0,0,0.08);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main, .page-container { flex: 1 0 auto; }
footer { margin-top: auto; width: 100%; }

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

/* ── GLOBAL UTILITY ── */
.data-health  { display: none !important; }
.data-status  {
  background: #fff3cd; color: #8a4b00;
  padding: 10px 14px; border-radius: 6px;
  text-align: center; margin: 8px auto 12px;
  max-width: 1200px;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  transform: translateY(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), box-shadow 0.28s ease;
}

nav::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 12px;
  z-index: 1001;
}

nav:hover,
nav:focus-within,
nav.nav-visible {
  transform: translateY(0);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.nav-logo {
  display: flex !important;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-image {
  height: 52px; max-width: 180px; width: auto;
  display: block; object-fit: contain;
}
.nav-logo:hover .logo-image { opacity: 0.8; transition: opacity 0.2s; }

.nav-center { flex: 1; display: flex; justify-content: center; }

.nav-links {
  display: flex; gap: 28px;
  list-style: none; align-items: center;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.btn-theme  { display: none !important; }
#themeToggle { display: none !important; }
.icon-sun   { display: none !important; }
.icon-moon  { display: none !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 50px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; border: none;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: scale(0.96); }

.btn-green {
  background: var(--green); color: #000;
  box-shadow: 0 0 15px rgba(0,232,122,0.3);
  text-decoration: none;
}
.btn-green:hover { box-shadow: 0 0 30px rgba(0,232,122,0.55); }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid rgba(0,0,0,0.1);
}
.btn-ghost:hover { background: var(--bg-tertiary); }

.btn-outline-green {
  background: transparent; color: var(--green);
  border: 1.5px solid var(--green);
}

.btn-dark  { background: #000; color: #fff; border: none; }
.btn-dark:hover { background: #1a1a1a; }

.btn-full { width: 100%; justify-content: center; padding: 14px 24px; font-size: 1rem; }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
}
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }

/* ============================================================
   SHARED CARD COLOURS
   ============================================================ */
.card-blue   { background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%) !important; }
.card-green  { background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important; }
.card-purple { background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%) !important; }
.card-orange { background: linear-gradient(135deg, #F97316 0%, #EA580C 100%) !important; }
.card-yellow { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important; }
.card-gray   { background: linear-gradient(135deg, #6B7280 0%, #374151 100%) !important; }

.card-btn {
  font-size: 10px; font-weight: 600;
  padding: 5px 10px; border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff; text-decoration: none;
  background: transparent; cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.card-btn.filled { background: rgba(255,255,255,0.25); border-color: transparent; }
.card-btn:hover  { background: rgba(255,255,255,0.4); transform: scale(1.05); text-decoration: none; }
.card-btn.add-btn.added { background: var(--green); color: var(--dark); border-color: var(--green); cursor: default; }

/* ============================================================
   PAGE HERO (shared across articles, community, contact)
   ============================================================ */
.page-hero {
  min-height: 38vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 24px 60px;
  position: relative;
  background: linear-gradient(180deg, #F8FAFC 0%, #E2E8F0 100%);
}

.page-hero-glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,232,122,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -0.03em; margin-bottom: 16px;
  animation: fadeUp 0.7s ease 0.1s both;
}

.page-hero-sub {
  font-size: 16px; color: var(--muted);
  max-width: 460px; line-height: 1.7;
  animation: fadeUp 0.7s ease 0.2s both;
}

/* ============================================================
   FORMS (contact + auth)
   ============================================================ */
.contact-form,
.auth-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; color: var(--muted);
  text-transform: uppercase;
}

.form-input,
.form-group input {
  background: var(--bg-tertiary);
  border: 1px solid rgba(0,232,122,0.15);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px; color: var(--text);
  font-family: 'DM Sans', sans-serif;
  outline: none; width: 100%;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,232,122,0.08), inset 0 1px 2px rgba(255,255,255,0.5);
}
.form-input:focus,
.form-group input:focus {
  border-color: var(--green);
  box-shadow: 0 2px 12px rgba(0,232,122,0.2), inset 0 1px 2px rgba(255,255,255,0.5);
  outline: none;
}
.form-input::placeholder,
.form-group input::placeholder { color: var(--muted); }

select.form-input { cursor: pointer; }
select.form-input option { background: var(--dark2); }

.form-textarea { resize: vertical; min-height: 140px; }

/* ============================================================
   COMMUNITY CTA BANNER
   ============================================================ */
.community-section {
  background: var(--green);
  padding: 80px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px; flex-wrap: wrap;
  position: relative;
}

.community-section::before {
  content: 'HEADSTART';
  position: absolute;
  right: -20px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Syne', sans-serif;
  font-size: 120px; font-weight: 800;
  color: rgba(0,0,0,0.06);
  white-space: nowrap; pointer-events: none; user-select: none;
}

.community-icon {
  width: 56px; height: 56px;
  background: rgba(0,0,0,0.12);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.community-icon svg { width: 28px; height: 28px; fill: #000; }

.community-content { flex: 1; position: relative; z-index: 1; }

.community-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800; color: #000; margin-bottom: 4px;
}
.community-sub  { font-size: 14px; color: rgba(0,0,0,0.55); }
.community-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

.btn-discord {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 50px;
  background: #000; color: #fff;
  font-size: 13px; font-weight: 700; font-family: 'DM Sans', sans-serif;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.btn-discord:hover { background: #1a1a1a; transform: translateY(-1px); }

.btn-outline-dark {
  display: inline-flex; align-items: center;
  padding: 12px 22px; border-radius: 50px;
  background: transparent; color: #000;
  font-size: 13px; font-weight: 700; font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  border: 1.5px solid rgba(0,0,0,0.25);
  transition: border-color 0.15s;
}
.btn-outline-dark:hover { border-color: rgba(0,0,0,0.55); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark2);
  padding: 28px 48px;
  display: flex;
  align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap; gap: 16px;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 16px;
  color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.footer-logo .arrow { color: var(--green); }
.footer-copy  { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  font-size: 12px; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ============================================================
   ARTICLES — shared card styles
   ============================================================ */
.articles-section { padding: 0 72px 100px; }

.articles-header {
  display: flex; align-items: baseline;
  justify-content: space-between; margin-bottom: 40px;
}
.articles-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800; letter-spacing: -0.02em;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.article-card {
  background: var(--dark3);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-light);
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}
.article-card:hover { transform: translateY(-4px); border-color: rgba(0,232,122,0.25); }

.article-thumb { width: 100%; aspect-ratio: 16/9; background: var(--mid); }
.article-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1e293b, #334155);
}

.article-body { padding: 16px; }

.article-tag {
  display: inline-block; align-self: flex-start;
  background: var(--green); color: #000;
  padding: 6px 14px; border-radius: 20px;
  font-weight: 700; font-size: 11px;
  text-transform: uppercase; margin-bottom: 20px;
}

.article-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 700;
  line-height: 1.2; margin-bottom: 8px;
}

.article-read-more {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); text-decoration: none;
  margin-top: auto; margin-bottom: 8px;
}

.article-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
}
.article-dot { opacity: 0.4; }

.read-article,
.btn.read-article { display: inline-flex; width: auto !important; align-self: flex-start; white-space: nowrap; }

.load-more-btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 40px auto 0;
  padding: 12px 32px; font-size: 14px; font-weight: 600;
  border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.load-more-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,232,122,0.2); }

/* ============================================================
   ARTICLES PAGE — featured + sub grid
   ============================================================ */
.articles-page-section { padding: 0 48px 100px; }

.article-featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-bottom: 48px;
  background: var(--dark3);
  border-radius: 24px;
  border: 1px solid var(--border-light);
  transition: border-color 0.2s, transform 0.2s;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
.article-featured:hover { border-color: rgba(0,232,122,0.2); transform: translateY(-4px); }

.article-featured-thumb { height: 360px; width: 100%; }

.article-featured-body {
  padding: 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.article-featured-title {
  font-family: 'Syne', sans-serif;
  font-size: 28px; font-weight: 800;
  line-height: 1.25; margin: 12px 0 16px;
}
.article-featured-desc {
  font-size: 14px; color: var(--muted);
  line-height: 1.8; margin-bottom: 20px;
}

.articles-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; max-width: 1200px; margin: 0 auto;
}

/* ============================================================
   LEARN PAGE
   ============================================================ */
.learn-hero {
  position: relative;
  padding: 100px 48px 72px;
  text-align: center;
}
.learn-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(0,200,100,0.13) 0%, transparent 70%);
  pointer-events: none;
}
.learn-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -0.03em; margin-bottom: 20px;
  animation: fadeUp 0.7s ease 0.1s both;
}
.learn-hero-title .accent { color: var(--green); }
.learn-hero-sub {
  font-size: 16px; color: var(--muted);
  max-width: 440px; line-height: 1.7;
  animation: fadeUp 0.7s ease 0.2s both;
}

.learn-hero-glow {
  position: absolute; top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,232,122,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Filter bar ── */
.filter-bar {
  display: flex; gap: 8px;
  justify-content: center; align-items: center;
  flex-wrap: wrap; padding: 0 48px 32px;
  max-width: 1200px; margin: 0 auto;
}

.filter-btn {
  padding: 8px 20px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}
.filter-btn:hover  { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--green); color: #000; border-color: var(--green); }

/* ── Modules grid ── */
.modules-section { padding: 0 48px 100px; }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; max-width: 1200px; margin: 0 auto;
}

.mod-card {
  flex: 1; display: flex; flex-direction: column;
  border-radius: 20px; padding: 28px; gap: 20px;
  position: relative; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  min-height: 280px;
}
.mod-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,0.1) 0%, transparent 55%);
  pointer-events: none; transition: opacity 0.3s;
}
.mod-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.mod-card:hover::after { opacity: 0.8; }
.mod-coming-soon { opacity: 0.45; pointer-events: none; }

.mod-card-top {
  display: flex; justify-content: space-between;
  align-items: center; position: relative; z-index: 1;
}
.mod-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(0,0,0,0.2); color: rgba(255,255,255,0.9);
  padding: 4px 12px; border-radius: 20px;
}
.mod-tag-dim { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
.mod-num { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.3); }

.mod-bg-symbol {
  position: absolute; right: 20px; bottom: 50px;
  font-size: 100px; opacity: 0.1; font-weight: 900;
  font-family: 'Syne', sans-serif; line-height: 1;
  pointer-events: none; user-select: none;
}

.mod-info  { flex: 1; position: relative; z-index: 1; }
.mod-category {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 8px;
}
.mod-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 800; color: #fff;
  margin-bottom: 10px; line-height: 1.25;
}
.mod-desc {
  font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}

.mod-footer {
  display: flex; align-items: center;
  justify-content: space-between; position: relative; z-index: 1;
}
.mod-lessons     { font-size: 11px; color: rgba(255,255,255,0.45); font-weight: 500; }
.mod-lessons-dim { color: rgba(255,255,255,0.25); }
.mod-actions { display: flex; gap: 6px; }

/* Search bar */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
}
.search-bar input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px; padding: 8px 18px;
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 13px; outline: none; width: 200px;
  transition: border-color 0.15s, width 0.15s;
}
.search-bar input:focus { border-color: rgba(0,232,122,0.4); width: 260px; }
.search-bar input::placeholder { color: var(--muted); }
.search-bar button {
  padding: 8px 16px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all 0.15s;
}
.search-bar button:hover { border-color: var(--green); color: var(--green); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-section {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 60px;
  background: var(--dark);
}

.auth-card {
  background: var(--dark2);
  border: 1px solid var(--border-light);
  border-radius: 24px; padding: 48px;
  width: 100%; max-width: 420px;
  box-shadow: 0 4px 20px var(--shadow-light);
}
.auth-card h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem; font-weight: 700; color: var(--text);
  margin-bottom: 8px; text-align: center;
}
.auth-subtitle { color: var(--muted); text-align: center; margin-bottom: 32px; font-size: 0.95rem; }

.auth-errors {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444; padding: 12px 16px; border-radius: 8px;
  margin-bottom: 20px; font-size: 0.9rem; display: none;
}

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

.auth-forgot { text-align: right; margin-top: -8px; }
.auth-forgot a { font-size: 12px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.auth-forgot a:hover { color: var(--green); }

.btn-social {
  width: 100%; display: flex; align-items: center;
  justify-content: center; gap: 10px; padding: 12px;
  background: var(--dark3); border: 1px solid var(--border-light);
  border-radius: 10px; color: var(--text);
  font-size: 14px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.btn-social:hover { border-color: rgba(0,0,0,0.25); background: var(--mid); }

.auth-switch  { text-align: center; font-size: 13px; color: var(--muted); margin-top: 24px; }
.auth-switch a { color: var(--green); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.auth-footer { text-align: center; margin-top: 24px; color: var(--muted); font-size: 0.9rem; }
.auth-footer a { color: var(--green); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr; align-items: center;
  gap: 80px; padding: 120px 80px;
  max-width: 1200px; margin: 0 auto;
}
.contact-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; margin: 12px 0 20px;
}
.contact-desc { font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 380px; margin-bottom: 48px; }

.contact-info-list { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item { display: flex; align-items: center; gap: 16px; }
.contact-info-icon {
  width: 44px; height: 44px; background: var(--dark3);
  border: 1px solid var(--border-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--green);
}
.contact-info-icon svg { width: 18px; height: 18px; }
.contact-info-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-info-value { font-size: 14px; font-weight: 500; color: var(--text); }

.contact-form-card {
  background: var(--dark2);
  border: 1px solid var(--border-light);
  border-radius: 24px; padding: 40px;
  display: flex; flex-direction: column; gap: 20px;
}
.contact-form-card form { display: flex; flex-direction: column; gap: 20px; }

.btn-contact-submit {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--green); color: #000; border: none;
  border-radius: 50px; padding: 14px 16px 14px 24px;
  font-size: 14px; font-weight: 700; font-family: 'DM Sans', sans-serif;
  cursor: pointer; width: 100%; margin-top: 4px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn-contact-submit:hover { box-shadow: 0 0 28px rgba(0,232,122,0.4); transform: translateY(-1px); }
.submit-arrow {
  width: 36px; height: 36px; background: #000; color: var(--green);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

/* ============================================================
   COMMUNITY PAGE
   ============================================================ */
.community-hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  padding: 100px 80px; position: relative;
}
.community-hero::before {
  content: '';
  position: absolute; top: -20%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,232,122,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.community-hero-left { max-width: 480px; }
.community-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; margin: 12px 0 20px;
}
.community-hero-sub { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 36px; max-width: 400px; }
.community-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.channels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; text-align: left; }
.channel-card {
  background: var(--dark3); border-radius: 20px; padding: 32px;
  border: 1px solid var(--border-light);
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.channel-card:hover { border-color: rgba(0,232,122,0.25); transform: translateY(-4px); }
.channel-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.channel-icon svg { width: 26px; height: 26px; }
.channel-discord { background: #5865F2; }
.channel-fb      { background: #1877F2; }
.channel-tiktok  { background: #000; border: 1px solid rgba(255,255,255,0.1); }
.channel-name  { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.channel-desc  { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.channel-stat  { font-size: 12px; font-weight: 700; color: var(--green); margin-top: 16px; letter-spacing: 0.05em; text-transform: uppercase; }

.values-section { padding: 60px 48px 100px; text-align: center; max-width: 1200px; margin: 0 auto; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 48px; text-align: left; }
.value-card { background: var(--dark3); border-radius: 16px; padding: 28px; border: 1px solid var(--border-light); transition: border-color 0.2s, transform 0.2s; }
.value-card:hover { border-color: rgba(0,232,122,0.2); transform: translateY(-4px); }
.value-num   { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700; color: var(--green); margin-bottom: 12px; letter-spacing: 0.1em; }
.value-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.value-desc  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ============================================================
   MY MODULES PAGE
   ============================================================ */
.page-container { max-width: 1200px; margin: 0 auto; padding: 120px 24px 60px; }

.page-header { margin-bottom: 40px; }
.page-header h1 { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 8px; }
.page-header p  { color: var(--muted); font-size: 1.1rem; }

.empty-state {
  text-align: center; padding: 60px 20px;
  background: var(--dark2); border-radius: 16px;
  border: 1px solid var(--border-light);
}
.empty-state p { color: var(--muted); margin-bottom: 20px; }

.my-module-card {
  background: var(--dark2); border: 1px solid var(--border-light);
  border-radius: 16px; padding: 24px; margin-bottom: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  box-shadow: 0 4px 20px var(--shadow-light);
}
.my-module-info { flex: 1; }
.my-module-info .module-category {
  display: inline-block; background: rgba(0,232,122,0.15); color: var(--green);
  padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; margin-bottom: 8px;
}
.my-module-info h3  { font-family: 'Syne', sans-serif; font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.my-module-info p   { color: var(--muted); font-size: 0.9rem; margin-bottom: 6px; }
.my-module-actions  { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 200px; }

.module-progress-bar  { height: 8px; background: var(--dark3); border-radius: 4px; margin-bottom: 4px; }
.module-progress-fill { height: 100%; background: var(--green); border-radius: 4px; transition: width 0.3s ease; }
.module-progress-text { font-size: 0.8rem; color: var(--muted); }
.action-buttons { display: flex; gap: 8px; }

.btn-remove {
  background: transparent; border: 1px solid var(--border-light);
  color: var(--muted); padding: 8px 16px; border-radius: 8px;
  cursor: pointer; font-size: 0.85rem; transition: all 0.2s;
}
.btn-remove:hover { border-color: #ef4444; color: #ef4444; }

.add-module-section { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border-light); }
.add-module-section h2 { font-family: 'Syne', sans-serif; font-size: 1.5rem; margin-bottom: 8px; }
.add-module-section > p { color: var(--muted); margin-bottom: 24px; }

.module-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.module-filter .filter-btn {
  background: var(--dark2); border: 1px solid var(--border-light);
  color: var(--muted); padding: 8px 16px; border-radius: 20px;
  cursor: pointer; font-size: 0.85rem; transition: all 0.2s;
}
.module-filter .filter-btn:hover  { border-color: var(--green); color: var(--text); }
.module-filter .filter-btn.active { background: var(--green); border-color: var(--green); color: var(--dark); font-weight: 600; }

/* ============================================================
   ARTICLE DETAIL PAGE
   ============================================================ */
.article-detail-container { max-width: 900px; margin: 100px auto 0; padding: 60px 40px 80px; }
.article-header { margin-bottom: 50px; }
.article-date { font-size: 14px; color: var(--muted); }

.article-image-wrapper { width: 100%; margin: 40px 0; border-radius: 18px; overflow: hidden; background: rgba(0,0,0,0.05); }
.article-image { width: 100%; height: auto; display: block; object-fit: cover; max-height: 600px; }

.article-content { margin-top: 50px; }
.article-description { font-size: 1.2rem; line-height: 1.8; color: var(--text); margin-bottom: 30px; font-weight: 500; }
.article-body { font-size: 16px; line-height: 1.8; color: var(--muted); }
.article-body h2 { font-family: 'Syne', sans-serif; font-size: 1.8rem; color: var(--text); margin: 40px 0 20px; font-weight: 700; }
.article-body h3 { font-family: 'Syne', sans-serif; font-size: 1.4rem; color: var(--text); margin: 30px 0 15px; font-weight: 600; }
.article-body h4 { font-family: 'Syne', sans-serif; font-size: 1.2rem; color: var(--text); margin: 25px 0 12px; font-weight: 600; }
.article-body p  { margin-bottom: 18px; }
.article-body strong { color: var(--green); font-weight: 700; }
.article-body em     { font-style: italic; }
.article-body ul, .article-body ol { margin-left: 30px; margin-bottom: 20px; }
.article-body li { margin-bottom: 10px; }
.article-body blockquote { border-left: 4px solid var(--green); padding-left: 20px; margin: 30px 0; font-style: italic; }
.error-text { color: #ff6b6b; text-align: center; padding: 40px; font-size: 16px; }

/* ============================================================
   TOS / PRIVACY PAGES
   ============================================================ */
.tos-page, .privacy-page { padding: 100px 60px 60px; }
.tos-section p     { font-weight: 700; color: var(--text); }
.privacy-section p { font-weight: 600; color: var(--text); }

.page-container .privacy-section h1,
.page-container .privacy-section h2,
.page-container .tos-section h1,
.page-container .tos-section h2 {
  background: linear-gradient(135deg, #00C864 0%, #006E40 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============================================================
   RESOURCE PREVIEWS
   ============================================================ */
.resource-preview { margin: 16px 0; }
.resource-link {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; background: var(--bg-tertiary);
  border: 1px solid var(--border-light); border-radius: 8px;
  text-decoration: none; color: inherit; transition: background 0.2s, border-color 0.2s;
}
.resource-link:hover { background: rgba(0,232,122,0.04); border-color: rgba(0,200,100,0.3); }
.resource-icon    { font-size: 32px; flex-shrink: 0; }
.resource-info    { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.resource-title   { font-weight: 600; font-size: 16px; color: var(--text); }
.resource-desc    { font-size: 14px; color: var(--muted); line-height: 1.4; }
.resource-filename { font-size: 12px; color: var(--muted); opacity: 0.7; }

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 16px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-sub { color: var(--muted); font-size: 15px; margin-bottom: 60px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-header-title { font-family: 'Syne', sans-serif; font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }

/* ============================================================
   DARK MODE
   ============================================================ */
body:not(.light-mode) {
  --dark:         #0D0D0D;
  --dark2:        #141414;
  --dark3:        #1C1C1C;
  --mid:          #2A2A2A;
  --text:         #EEEEEE;
  --muted:        #888;
  --bg-primary:   #0D0D0D;
  --bg-secondary: #141414;
  --bg-tertiary:  #1C1C1C;
  --border-light: rgba(255,255,255,0.06);
  --shadow-light: rgba(0,0,0,0.3);
}

body:not(.light-mode) nav {
  background: rgba(13,13,13,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
body:not(.light-mode) nav.nav-visible,
body:not(.light-mode) nav:hover { box-shadow: 0 4px 32px rgba(0,0,0,0.4); }

body:not(.light-mode) .btn-ghost {
  color: var(--text); border-color: rgba(255,255,255,0.2);
}
body:not(.light-mode) .btn-ghost:hover { background: rgba(255,255,255,0.05); }
body:not(.light-mode) .btn-green { box-shadow: 0 0 20px rgba(0,232,122,0.35); }

body:not(.light-mode) footer {
  background: var(--dark2); border-top: 1px solid rgba(255,255,255,0.06);
}
body:not(.light-mode) .page-hero {
  background: linear-gradient(180deg, #0D0D0D 0%, #141414 100%);
}

body:not(.light-mode) input,
body:not(.light-mode) textarea {
  background: var(--dark3); border-color: rgba(255,255,255,0.1); color: var(--text);
}
body:not(.light-mode) .form-input,
body:not(.light-mode) .form-group input {
  background: var(--dark3); border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}
body:not(.light-mode) .form-input::placeholder,
body:not(.light-mode) .form-group input::placeholder { color: #555; }

body:not(.light-mode) .btn-social { background: var(--dark3); border-color: rgba(255,255,255,0.1); }
body:not(.light-mode) .btn-social:hover { background: var(--mid); }

body:not(.light-mode) .auth-divider::before,
body:not(.light-mode) .auth-divider::after { background: rgba(255,255,255,0.08); }

body:not(.light-mode) .article-body { color: #ccc; }
body:not(.light-mode) .article-body h2,
body:not(.light-mode) .article-body h3,
body:not(.light-mode) .article-body h4 { color: #ddd; }
body:not(.light-mode) .article-body p,
body:not(.light-mode) .article-body li  { color: #ccc; }

body:not(.light-mode) .search-bar input {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #fff;
}
body:not(.light-mode) .search-bar button { border-color: rgba(255,255,255,0.1); }

body:not(.light-mode) .resource-link {
  background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1);
}
body:not(.light-mode) .resource-link:hover {
  background: rgba(255,255,255,0.07); border-color: rgba(0,200,100,0.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .article-detail-container { padding: 40px 20px 60px; margin-top: 80px; }
  .contact-section { grid-template-columns: 1fr; padding: 80px 24px; gap: 40px; }
  .community-hero  { grid-template-columns: 1fr; padding: 80px 24px; }
  .my-module-card  { flex-direction: column; align-items: stretch; }
  .my-module-actions { align-items: stretch; }
  .action-buttons  { flex-direction: column; }
  .action-buttons .btn { width: 100%; justify-content: center; }
  .articles-section { padding: 0 24px 60px; }
  .filter-bar { padding: 0 20px 24px; }
  .modules-section { padding: 0 24px 60px; }
  .search-bar { margin-left: 0; width: 100%; }
  .search-bar input { width: 100%; }
  footer { padding: 24px; }
}

@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
  .auth-card h1 { font-size: 1.75rem; }
  .article-featured { grid-template-columns: 1fr; }
}