
/* ── TOKENS ─────────────────────────────────────────────────────────────────── */
:root {
  /* TVK Party Flag Colors */
  --forest-green:   #1B5E20;
  --forest-green-lt:#2E7D32;
  --action-red:     #D32F2F;
  --action-red-dk:  #B71C1C;
  --vibrant-yellow: #FFC107;
  --yellow-lt:      #FFF9C4;

  /* Layout */
  --charcoal:  #212529;
  --charcoal2: #343A40;
  --slate:     #6C757D;
  --surface:   #F8F9FA;
  --white:     #FFFFFF;
  --border:    #E5E7EB;
  --text:      #212529;
  --text-sm:   #555555;
  --success:   #16a34a;
  --warn:      #d97706;

  /* Aliases for legacy */
  --green:   var(--forest-green);
  --red:     var(--action-red);
  --red-dk:  var(--action-red-dk);
  --gold:    var(--vibrant-yellow);
  --dark:    var(--charcoal);
  --gray-1:  var(--charcoal2);
  --gray-2:  #2A2A2A;
  --gold-lt: var(--yellow-lt);
  --danger:  var(--action-red);

  --radius:    8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow:    0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);

  --nav-h:  72px;
  --font:   'Space Grotesk', 'Hind Madurai', 'Inter', sans-serif;
  --font-ta:'Hind Madurai', 'Space Grotesk', sans-serif;
}

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

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: var(--charcoal2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--forest-green); }

/* Selection */
::selection { background: var(--vibrant-yellow); color: var(--charcoal); }

/* ── UTILITY ─────────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* Glassmorphism */
.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
}
.glass-dark {
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 50px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer; white-space: nowrap;
}
.btn-red   { background: var(--action-red);   color: white; }
.btn-red:hover { background: var(--action-red-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(211,47,47,.4); }
.btn-green { background: var(--forest-green); color: white; }
.btn-green:hover { background: var(--forest-green-lt); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,94,32,.4); }
.btn-yellow { background: var(--vibrant-yellow); color: var(--charcoal); font-weight: 800; }
.btn-yellow:hover { background: #FFE033; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,214,0,.4); }
.btn-outline { border: 2px solid var(--action-red); color: var(--action-red); background: transparent; }
.btn-outline:hover { background: var(--action-red); color: white; }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.4); color: white; background: transparent; }
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn-dark  { background: var(--charcoal); color: white; }
.btn-dark:hover { background: var(--charcoal2); }
.btn-ghost { color: var(--text-sm); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--action-red); color: var(--action-red); }
.btn-sm    { padding: 7px 16px; font-size: 13px; }
.btn-danger { background: var(--action-red); color: white; border-radius: 50px; }
/* square/sharp CTA variety */
.btn-sharp { border-radius: var(--radius); }

/* ── BADGES ──────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.badge-red    { background: var(--action-red);    color: white; }
.badge-gold   { background: var(--vibrant-yellow); color: var(--charcoal); }
.badge-green  { background: #dcfce7;               color: #166534; }
.badge-orange { background: #fef3c7;               color: #92400e; }
.badge-gray   { background: #f3f4f6;               color: #6b7280; }

/* hero-badge kept for compat */
.hero-badge {
  display: inline-block; background: var(--action-red); color: white;
  font-size: 11px; font-weight: 700; padding: 5px 16px;
  border-radius: 50px; letter-spacing: 1.5px; text-transform: uppercase;
}

/* ── CARD ─────────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Issue/Policy card */
.issue-card {
  background: var(--surface); border-radius: var(--radius-xl);
  border: 2px solid transparent; padding: 32px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1); cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.issue-card:hover {
  transform: translateY(-8px);
  border-color: var(--vibrant-yellow);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.issue-card-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 28px;
  transition: all 0.3s;
}
.issue-card:hover .issue-card-icon { transform: scale(1.1); }

/* Wing pill card */
.wing-pill {
  background: var(--surface); border-radius: 16px; padding: 16px 12px;
  text-align: center; font-weight: 700; font-size: 12px;
  cursor: pointer; transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.wing-pill:hover { background: var(--forest-green); color: white; transform: translateY(-4px); box-shadow: 0 8px 24px rgba(27,94,32,0.25); }

/* News card */
.news-card { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); background: white; transition: all 0.35s cubic-bezier(0.4,0,0.2,1); }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.14); }
.news-card-img { height: 200px; background: var(--surface); overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card-img img { transform: scale(1.08); }
.news-card-body { padding: 22px; }
.news-card-date { font-size: 12px; color: var(--action-red); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.news-card-title { font-size: 16px; font-weight: 700; color: var(--charcoal); line-height: 1.45; margin-bottom: 10px; }
.news-card-excerpt { font-size: 14px; color: var(--text-sm); line-height: 1.7; }
.news-card-read-more { font-size: 13px; font-weight: 700; color: var(--forest-green); margin-top: 10px; transition: color 0.2s; }
.news-card:hover .news-card-read-more { color: var(--action-red); }

/* Clickable card button reset */
.news-card-btn {
  display: block; width: 100%; text-align: left;
  border: none; background: none; padding: 0; font-family: var(--font);
  cursor: pointer;
}

/* ── NEWS DETAIL MODAL ────────────────────────────────────────────────────── */
.news-modal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.22s ease;
}
.news-modal {
  background: white; border-radius: var(--radius-xl);
  width: 100%; max-width: 700px; max-height: 92vh;
  overflow-y: auto; overflow-x: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
  animation: slideUp 0.25s cubic-bezier(0.33,1,0.68,1);
  position: relative;
}
.news-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  background: rgba(0,0,0,0.55); color: white;
  border: none; border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s;
}
.news-modal-close:hover { background: var(--action-red); }

/* Image area */
.news-modal-img-wrap {
  position: relative; width: 100%; height: 340px;
  background: var(--surface); overflow: hidden; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  flex-shrink: 0;
}
.news-modal-img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Slideshow nav */
.news-modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); color: white; border: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s; z-index: 2;
}
.news-modal-nav:hover { background: var(--forest-green); }
.news-modal-nav-left  { left: 12px; }
.news-modal-nav-right { right: 12px; }

/* Dot indicators */
.news-modal-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.news-modal-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: all 0.25s;
}
.news-modal-dot.active { background: white; width: 22px; border-radius: 4px; }

/* Image counter */
.news-modal-counter {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.55); color: white;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; z-index: 2;
}

/* Content */
.news-modal-body { padding: 28px; }
.news-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 3vw, 24px); font-weight: 800;
  color: var(--charcoal); line-height: 1.3; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.news-modal-text {
  font-family: 'Hind Madurai', sans-serif;
  font-size: 15px; line-height: 1.85;
  color: var(--text-sm); white-space: pre-wrap;
}

.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* ── SECTION ──────────────────────────────────────────────────────────────────── */
.section { padding: 88px 0; }

.section-tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--forest-green);
  border-bottom: 2px solid var(--vibrant-yellow); padding-bottom: 2px; margin-bottom: 14px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  color: var(--charcoal); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 8px;
}
.section-title span { color: var(--action-red); }
.section-title .green { color: var(--forest-green); }
.section-title .yellow { color: var(--vibrant-yellow); }

.section-sub { color: var(--slate); font-size: 16px; margin-bottom: 44px; line-height: 1.7; }

/* Dividers */
.divider-red {
  width: 60px; height: 4px; background: var(--action-red);
  border-radius: 2px; margin: 12px 0 32px;
}
.divider-green {
  width: 60px; height: 4px; background: var(--forest-green);
  border-radius: 2px; margin: 12px 0 32px;
}
.divider-yellow {
  width: 60px; height: 4px; background: var(--vibrant-yellow);
  border-radius: 2px; margin: 12px 0 32px;
}
.divider-flag {
  width: 90px; height: 5px; border-radius: 3px; margin: 12px 0 32px;
  background: linear-gradient(to right,
    var(--vibrant-yellow) 0%,   var(--vibrant-yellow) 33.3%,
    var(--forest-green)  33.3%, var(--forest-green)  66.6%,
    var(--action-red)    66.6%, var(--action-red)    100%);
}

/* Page header band */
.page-header {
  background: linear-gradient(135deg, var(--forest-green) 0%, #0d3b12 60%, rgba(0,0,0,0.85) 100%);
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 72px;
  text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,214,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(211,47,47,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.page-header-red {
  background: linear-gradient(135deg, var(--action-red-dk) 0%, #7f0000 60%, rgba(0,0,0,0.85) 100%);
}
.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px,6vw,58px); font-weight: 900;
  color: white; letter-spacing: -0.04em; line-height: 1.1;
  margin: 18px 0 16px; position: relative;
}
.page-header h1 span { color: var(--vibrant-yellow); }
.page-header p {
  color: rgba(255,255,255,0.75); font-size: 18px;
  max-width: 560px; margin: 0 auto; position: relative;
}

/* ── MARQUEE ──────────────────────────────────────────────────────────────────── */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-bar {
  background: var(--vibrant-yellow); color: var(--charcoal);
  padding: 12px 0; overflow: hidden; white-space: nowrap;
  border-top: 3px solid var(--charcoal);
  border-bottom: 3px solid var(--charcoal);
}
.marquee-content {
  display: inline-block;
  animation: marquee-scroll 28s linear infinite;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
}
.marquee-dot { margin: 0 20px; opacity: 0.5; }

/* ── NAVBAR ───────────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--forest-green);
  height: var(--nav-h);
  display: flex; align-items: center;
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  /* Top tricolor stripe */
  border-top: 4px solid transparent;
  background-clip: padding-box;
  background-image: linear-gradient(var(--forest-green),var(--forest-green)),
                    linear-gradient(to right, #FFD600 0%,#FFD600 33.3%, #1B5E20 33.3%,#1B5E20 66.6%, #D32F2F 66.6%,#D32F2F 100%);
  background-origin: border-box;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo img { height: 38px; width: auto; }
.nav-logo-badge {
  height: 44px; width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.35));
}
.nav-logo-text {
  color: white; font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 14px; line-height: 1.2; letter-spacing: -0.02em;
}
.nav-logo-text small { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); display: block; letter-spacing: 0.03em; margin-top: 1px; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: rgba(255,255,255,0.85); font-size: 12.5px; font-weight: 600;
  padding: 6px 10px; border-radius: 6px;
  transition: all 0.2s; position: relative;
  letter-spacing: 0.01em; text-transform: uppercase;
}
.nav-link:hover,
.nav-link.active { color: var(--vibrant-yellow); background: rgba(255,255,255,0.08); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 2px; left: 10px; right: 10px;
  height: 2px; background: var(--vibrant-yellow); border-radius: 1px;
}

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: var(--charcoal); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 8px 0;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  border: 1px solid rgba(255,255,255,0.08);
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-dropdown-item {
  display: block; padding: 10px 18px; color: rgba(255,255,255,0.65); font-size: 13px;
  font-weight: 600; letter-spacing: 0.02em;
  transition: all 0.15s;
}
.nav-dropdown-item:hover { color: var(--vibrant-yellow); background: rgba(255,255,255,0.05); padding-left: 22px; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; color: white; padding: 8px; background: rgba(255,255,255,0.1); border-radius: 8px; }

/* Page content offset */
.page-content { margin-top: var(--nav-h); }

/* ── HERO CAROUSEL ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  height: 37.5vw;
  min-height: 480px;
  max-height: calc(100vh - var(--nav-h));
  background: var(--charcoal);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.9s ease;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(0.45);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(27,94,32,0.6) 0%, transparent 55%),
    linear-gradient(135deg, rgba(18,20,23,0.85) 0%, rgba(18,20,23,0.2) 60%, rgba(255,214,0,0.08) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 64px; max-width: 750px;
}
.hero-badge {
  display: inline-block; background: var(--action-red); color: white;
  font-size: 11px; font-weight: 800; padding: 5px 16px;
  border-radius: 50px; margin-bottom: 20px; letter-spacing: 2px; text-transform: uppercase;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px,5.5vw,60px); font-weight: 900;
  color: white; line-height: 1.08; margin-bottom: 18px;
  letter-spacing: -0.04em;
}
.hero-title span { color: var(--vibrant-yellow); }
.hero-desc { color: rgba(255,255,255,0.78); font-size: 18px; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 8px; z-index: 3;
}
.hero-dot {
  width: 44px; height: 44px; padding: 17px; box-sizing: border-box; background-clip: content-box;
  border-radius: 50%; background-color: rgba(255,255,255,0.35); border: none; transition: all 0.35s; cursor: pointer;
}
.hero-dot.active { background-color: var(--vibrant-yellow); width: 64px; border-radius: 22px; }

/* ── STATS BAR ────────────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--charcoal); color: white; padding: 22px 0;
  border-bottom: 3px solid var(--vibrant-yellow);
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat-item {
  text-align: center; border-right: 1px solid rgba(255,255,255,0.1);
  padding: 12px 20px;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px; font-weight: 900; color: var(--vibrant-yellow);
  letter-spacing: -0.03em;
}
.stat-label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.65); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── SOCIAL BAR ───────────────────────────────────────────────────────────────── */
.social-bar {
  background: var(--charcoal); color: white; padding: 14px 0;
  display: flex; align-items: center; overflow: hidden;
}
.social-bar-label {
  background: var(--action-red); padding: 6px 20px; font-weight: 700;
  font-size: 12px; white-space: nowrap; flex-shrink: 0; border-radius: 50px; margin-right: 20px;
  letter-spacing: 1px; text-transform: uppercase;
}
.social-links { display: flex; gap: 16px; }
.social-link {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6); font-size: 14px; font-weight: 600;
  transition: color 0.2s; padding: 6px 12px; border-radius: 8px;
}
.social-link:hover { color: var(--vibrant-yellow); background: rgba(255,255,255,0.06); }
.social-link svg { width: 20px; height: 20px; }

/* ── FOOTER ───────────────────────────────────────────────────────────────────── */
.footer { background: var(--forest-green); color: rgba(255,255,255,0.85); padding: 64px 0 0; }
.footer-tricolor { height: 5px; background: linear-gradient(to right, var(--vibrant-yellow) 0%,var(--vibrant-yellow) 33.3%, var(--forest-green) 33.3%,var(--forest-green) 66.6%, var(--action-red) 66.6%,var(--action-red) 100%); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; line-height: 1.9; margin: 14px 0; color: rgba(255,255,255,0.85); }
.footer-h { color: var(--vibrant-yellow); font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 13px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1.5px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-link { font-size: 14px; color: rgba(255,255,255,0.8); font-weight: 500; transition: all 0.2s; }
.footer-link:hover { color: var(--vibrant-yellow); padding-left: 4px; }
.footer-contact p { font-size: 14px; line-height: 1.9; color: rgba(255,255,255,0.85); }
.footer-contact a { color: var(--vibrant-yellow); }
.footer-social-btn {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.07);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8); transition: all 0.2s;
}
.footer-social-btn:hover { background: var(--forest-green); color: white; transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.78); font-weight: 500;
}
.footer-bottom span { color: var(--vibrant-yellow); }

/* ── AUTH PAGES ───────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--charcoal) 0%, #0d3b12 100%);
  padding: 40px 20px;
}
.auth-card {
  background: white; border-radius: var(--radius-xl);
  padding: 48px; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--forest-green);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo img { height: 60px; margin: 0 auto 14px; }
.auth-logo h2 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 900; color: var(--charcoal); letter-spacing: -0.03em; }
.auth-logo p { font-size: 13px; color: var(--text-sm); }

/* ── FORM ─────────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; letter-spacing: 0.02em; }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-lg); font-size: 14px; font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s; background: white; color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--forest-green); box-shadow: 0 0 0 3px rgba(27,94,32,0.12); }
.form-select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-lg); font-size: 14px; font-family: var(--font);
  background: white; color: var(--text); cursor: pointer; transition: border-color 0.2s;
}
.form-select:focus { outline: none; border-color: var(--forest-green); }

/* ── PORTAL LAYOUT ────────────────────────────────────────────────────────────── */
.portal-layout { display: flex; min-height: calc(100vh - var(--nav-h)); }
.sidebar {
  width: 260px; flex-shrink: 0; background: var(--charcoal);
  padding: 24px 0; overflow-y: auto;
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
}
.sidebar-section-title {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 2px; color: rgba(255,255,255,0.3); padding: 16px 20px 8px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; color: rgba(255,255,255,0.55); font-size: 13px; font-weight: 600;
  transition: all 0.2s; border-left: 3px solid transparent;
  letter-spacing: 0.01em;
}
.sidebar-link:hover { color: white; background: rgba(255,255,255,0.06); }
.sidebar-link.active { color: var(--vibrant-yellow); background: rgba(255,214,0,0.08); border-left-color: var(--vibrant-yellow); }
.sidebar-link svg { width: 18px; height: 18px; }

.portal-main { flex: 1; padding: 32px; background: var(--surface); min-width: 0; }
.portal-header { margin-bottom: 28px; }
.portal-header h1 { font-family: 'Space Grotesk',sans-serif; font-size: 26px; font-weight: 900; color: var(--charcoal); letter-spacing: -0.03em; }
.portal-header p { color: var(--text-sm); font-size: 14px; margin-top: 4px; }

/* ── STATS CARDS ──────────────────────────────────────────────────────────────── */
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: white; border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
  border-bottom: 3px solid transparent; transition: all 0.25s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-card-icon.red   { background: rgba(211,47,47,.1);  color: var(--action-red); }
.stat-card-icon.gold  { background: rgba(255,214,0,.15); color: #9a7c00; }
.stat-card-icon.green { background: rgba(27,94,32,.1);   color: var(--forest-green); }
.stat-card-icon.blue  { background: rgba(59,130,246,.1); color: #3b82f6; }
.stat-card-icon svg   { width: 24px; height: 24px; }
.stat-card-val   { font-family: 'Space Grotesk',sans-serif; font-size: 30px; font-weight: 900; color: var(--charcoal); letter-spacing: -0.03em; }
.stat-card-label { font-size: 12px; color: var(--text-sm); margin-top: 2px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── TABLE ────────────────────────────────────────────────────────────────────── */
.table-wrapper { background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow); overflow: hidden; }
.table-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.table-header h3 { font-family: 'Space Grotesk',sans-serif; font-size: 16px; font-weight: 800; color: var(--charcoal); }
.table-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-input {
  padding: 8px 14px; border: 2px solid var(--border);
  border-radius: var(--radius-lg); font-size: 13px; min-width: 160px;
  font-family: var(--font); transition: border-color 0.2s; background: var(--surface);
}
.filter-input:focus { outline: none; border-color: var(--forest-green); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--surface); }
th {
  padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 800;
  color: var(--text-sm); text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer; white-space: nowrap; user-select: none;
}
th:hover { color: var(--forest-green); }
td { padding: 13px 16px; font-size: 14px; border-top: 1px solid var(--border); }
tr:hover td { background: rgba(27,94,32,0.025); }
.table-footer { padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.pagination { display: flex; gap: 6px; }
.page-btn {
  padding: 6px 12px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 13px; font-weight: 600; background: white; cursor: pointer; transition: all 0.2s;
}
.page-btn:hover, .page-btn.active { background: var(--forest-green); color: white; border-color: var(--forest-green); }
.page-btn:disabled { opacity: 0.4; pointer-events: none; }
.table-count { font-size: 13px; color: var(--text-sm); }

/* ── MODAL ────────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}
.modal {
  background: white; border-radius: var(--radius-xl);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); animation: slideUp 0.2s ease;
}
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-family: 'Space Grotesk',sans-serif; font-size: 18px; font-weight: 800; }
.modal-close { color: var(--text-sm); font-size: 22px; cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.modal-close:hover { background: var(--surface); color: var(--action-red); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ── APPROVAL DIFF ────────────────────────────────────────────────────────────── */
.diff-block { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; font-size: 13px; }
.diff-row { display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.diff-row:last-child { border-bottom: none; }
.diff-key { font-weight: 700; color: var(--text-sm); min-width: 140px; flex-shrink: 0; }
.diff-old { color: var(--action-red); text-decoration: line-through; flex: 1; }
.diff-new { color: var(--forest-green); flex: 1; }

/* ── TIMELINE ──────────────────────────────────────────────────────────────────── */
.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; width: 2px; height: 100%;
  background: var(--border); transform: translateX(-50%);
}
.timeline-item { margin-bottom: 48px; display: flex; align-items: center; width: 100%; }
.timeline-content {
  background: white; padding: 24px 28px; border-radius: var(--radius-xl);
  box-shadow: var(--shadow); display: inline-block;
  transition: all 0.3s;
}
.timeline-content:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.timeline-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 4px solid white; z-index: 1; box-shadow: 0 0 0 2px var(--border); flex-shrink: 0;
}

/* ── ANIMATIONS ───────────────────────────────────────────────────────────────── */
@keyframes fadeIn  { from { opacity: 0; }                        to { opacity: 1; } }
@keyframes slideUp { from { transform:translateY(24px); opacity:0; } to { transform:translateY(0); opacity:1; } }
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* Glitch effect (from one.html) */
@keyframes glitch {
  0%   { transform: translate(0); }
  20%  { transform: translate(-2px,  2px); }
  40%  { transform: translate(-2px, -2px); }
  60%  { transform: translate( 2px,  2px); }
  80%  { transform: translate( 2px, -2px); }
  100% { transform: translate(0); }
}
.glitch-text:hover { animation: glitch 0.3s cubic-bezier(.25,.46,.45,.94) both infinite; }

/* Brutalist CTA shadow button (from one.html) */
.cta-brutal {
  box-shadow: 5px 5px 0px var(--charcoal);
  transition: all 0.15s ease;
  border-radius: 0 !important;
}
.cta-brutal:hover  { box-shadow: 7px 7px 0px var(--charcoal); transform: translate(-2px,-2px); }
.cta-brutal:active { box-shadow: 0 0 0 var(--charcoal); transform: translate(5px, 5px); }

/* Warrior gamification cards (from one.html) */
.warrior-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}
.warrior-card:hover { transform: scale(1.05) rotate(1deg); }

/* Delivery tag pill (from three.html) */
.delivery-tag {
  background: var(--vibrant-yellow); color: var(--forest-green);
  font-weight: 800; padding: 3px 10px; border-radius: 6px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
  white-space: nowrap; flex-shrink: 0;
}
.delivery-tag-blue {
  background: #1e40af; color: white;
  font-weight: 800; padding: 3px 10px; border-radius: 6px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
  white-space: nowrap; flex-shrink: 0;
}

/* Live feed pulse items (from two.html) */
.live-feed-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.06); border-radius: 12px; padding: 10px 14px;
}

/* Leaderboard progress bar */
.lb-bar-track { width: 100%; background: rgba(255,255,255,0.1); height: 6px; border-radius: 3px; margin-top: 4px; }
.lb-bar-fill  { height: 6px; border-radius: 3px; }

/* Points mission row (from two.html) */
.mission-row {
  background: rgba(255,255,255,0.12); border-radius: 16px; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.2s;
}
.mission-row:hover { background: rgba(255,255,255,0.2); }
.pts-badge {
  background: var(--forest-green); color: white;
  padding: 4px 12px; border-radius: 8px; font-size: 11px; font-weight: 800;
  white-space: nowrap;
}

/* Pledge input row (from two.html / three.html) */
.pledge-row {
  background: white; border-radius: 20px; padding: 10px;
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
}
@media (min-width: 600px) {
  .pledge-row { flex-direction: row; }
}
.pledge-input {
  flex: 1; padding: 14px 20px; border: none; border-radius: 12px;
  background: #f1f5f9; font-size: 16px; font-family: var(--font);
  color: var(--charcoal); outline: none;
}
.pledge-input:focus { background: #e2e8f0; }

/* Count-up number */
@keyframes count-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.count-num { animation: count-up 0.6s ease forwards; }

/* Tilted wire marquee (from one.html) */
.wire-marquee-wrap {
  overflow: hidden; white-space: nowrap;
  background: var(--charcoal); color: var(--vibrant-yellow);
  padding: 10px 0; transform: rotate(-1deg);
  width: 106%; margin-left: -3%;
}
.wire-marquee-inner {
  display: inline-block;
  animation: marquee-scroll 22s linear infinite;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; font-style: italic;
}

/* Wing pill compact (six-column grid) */
.wing-compact {
  border-radius: 16px; padding: 20px 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  cursor: pointer; transition: all 0.25s ease;
  border: 1px solid transparent;
}
.wing-compact:hover { transform: translateY(-6px) scale(1.04); border-color: var(--vibrant-yellow); }

.spinner {
  width: 40px; height: 40px; border: 4px solid var(--border);
  border-top-color: var(--forest-green); border-radius: 50%;
  animation: spin 0.7s linear infinite; margin: 60px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Live pulse dot */
.live-dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}
.live-dot::after {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  background: inherit;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  z-index: -1;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────────── */
@media (max-width: 1150px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--forest-green); padding: 16px 16px 80px 16px; gap: 4px; z-index: 999;
    border-bottom: 3px solid var(--vibrant-yellow);
    overflow-y: auto;
  }
  .nav-dropdown-menu {
    position: relative; opacity: 1; pointer-events: all; transform: none; top: 0;
    background: rgba(0,0,0,0.15); box-shadow: none; border: none; padding: 0; margin-top: 8px;
    display: none; width: 100%; border-radius: 8px;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown:active .nav-dropdown-menu { display: block; }
  .nav-dropdown-item { padding: 10px 24px; }
  
  /* Fix nav cta overlap by moving buttons to mobile dropdown */
  .desktop-btn { display: none !important; }
  .mobile-cta { display: flex !important; }

  .news-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { display: none; }
  .portal-layout { flex-direction: column; }
  .portal-main { padding: 20px; }
  .hero-content { padding: 0 24px; }
  .timeline::before { left: 16px; }
}
@media (max-width: 600px) {
  .hero { height: 60dvh; min-height: 460px; padding-bottom: 0; }
  .hero-bg { object-position: center top; }
  
  /* Override tight inline line-heights causing text overlap */
  h1, h2, h3, h4, h5, h6, .glitch-text, .hero-title, .section-title, .page-header h1 {
    line-height: 1.4 !important;
  }
  
  .hero-title { font-size: 28px !important; margin-bottom: 12px; }
  
  .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .page-header h1 { font-size: 30px; }
}
