/* ==========================================================================
   GenerationCampaignOS.xyz — Main CSS
   Professional Political Campaign Design System
   Colors: Deep Navy #0a1628 | Crimson Red #cc0000 | White #ffffff
   ========================================================================== */

/* ── CSS Custom Properties ─────────────────────────────────────────────────── */
:root {
  --primary:        #0a1628;
  --primary-dark:   #060e1a;
  --primary-mid:    #122040;
  --primary-light:  #1e3560;
  --secondary:      #cc0000;
  --secondary-dark: #990000;
  --secondary-light:#e60000;
  --accent:         #ff4444;
  --gold:           #c8a84b;
  --white:          #ffffff;
  --surface:        #ffffff;
  --bg-soft:        #f7f8fc;
  --bg-muted:       #eef0f5;
  --border:         #d8dce8;
  --text:           #0a1628;
  --text-muted:     #4a5568;
  --text-light:     #7a8699;
  --success:        #16a34a;
  --warning:        #d97706;
  --danger:         #cc0000;
  --info:           #0369a1;
  --shadow-sm:      0 1px 4px rgba(10,22,40,.08);
  --shadow:         0 4px 16px rgba(10,22,40,.10);
  --shadow-md:      0 6px 24px rgba(10,22,40,.13);
  --shadow-lg:      0 12px 40px rgba(10,22,40,.16);
  --shadow-xl:      0 24px 64px rgba(10,22,40,.20);
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      22px;
  --radius-full:    9999px;
  --transition:     .18s ease;
  --font-primary:   'Montserrat', system-ui, -apple-system, sans-serif;
  --font-secondary: 'Open Sans', system-ui, -apple-system, sans-serif;
  --font-mono:      'Fira Code', 'Cascadia Code', monospace;
}

/* ── Reset & Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-secondary);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary-dark); }
button { font-family: inherit; }
::selection { background: rgba(204,0,0,.18); color: var(--primary); }

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-primary);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; color: var(--text-muted); }
.text-muted  { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-white { color: #fff !important; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.container  { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-lg { max-width: 1400px; }
.container-sm { max-width: 800px; }
.grid       { display: grid; gap: 1.5rem; }
.grid-2     { grid-template-columns: repeat(2, 1fr); }
.grid-3     { grid-template-columns: repeat(3, 1fr); }
.grid-4     { grid-template-columns: repeat(4, 1fr); }
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.space-y-3 > * + * { margin-top: 1rem; }
@media (max-width:768px) {
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .hide-mobile { display:none!important; }
}
@media (min-width:768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width:1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Navbar ─────────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: var(--primary);
  border-bottom: 3px solid var(--secondary);
  height: 72px;
  display: flex; align-items: center;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 2rem;
}
.navbar-brand {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-primary); font-weight: 900;
  font-size: 1.1rem; color: #fff; letter-spacing: -.01em;
}
.navbar-brand-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; color: #fff; flex-shrink: 0;
  letter-spacing: -1px;
}
.navbar-brand-text { line-height: 1.1; }
.navbar-brand-name { font-size: 1rem; font-weight: 900; color: #fff; display: block; }
.navbar-brand-domain { font-size: .65rem; color: rgba(255,255,255,.5); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }

.navbar-links { display: flex; align-items: center; gap: .25rem; }
.navbar-link {
  color: rgba(255,255,255,.8); padding: .55rem .9rem;
  border-radius: var(--radius); font-size: .875rem; font-weight: 600;
  transition: all var(--transition); white-space: nowrap;
}
.navbar-link:hover { color: #fff; background: rgba(255,255,255,.12); }
.navbar-link.active { color: #fff; background: var(--secondary); }

/* Navbar dropdown */
.navbar-dropdown { position: relative; }
.navbar-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  min-width: 240px; opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all var(--transition); z-index: 100;
  overflow: hidden;
}
.navbar-dropdown:hover .navbar-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.navbar-dropdown-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem; color: var(--text); font-size: .875rem; font-weight: 600;
  transition: background var(--transition);
}
.navbar-dropdown-item:hover { background: var(--bg-soft); color: var(--secondary); }
.navbar-dropdown-item i { width: 18px; text-align: center; color: var(--secondary); }

.navbar-cta {
  background: var(--secondary); color: #fff!important;
  padding: .6rem 1.4rem; border-radius: var(--radius-full);
  font-weight: 800; letter-spacing: .01em;
  transition: all var(--transition); box-shadow: 0 2px 12px rgba(204,0,0,.4);
}
.navbar-cta:hover { background: var(--secondary-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(204,0,0,.5); }

.navbar-mobile-toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 1.5rem; cursor: pointer; padding: .5rem;
}
@media (max-width:1024px) {
  .navbar-links { display: none; }
  .navbar-mobile-toggle { display: flex; align-items: center; }
  .navbar-links.mobile-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--primary); padding: 1.5rem; gap: .25rem;
    overflow-y: auto; z-index: 400;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .navbar-dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; background: rgba(255,255,255,.06);
    border-radius: var(--radius); margin: .25rem 0 .25rem 1rem;
    min-width: unset; width: 100%;
  }
  .navbar-dropdown-item { color: rgba(255,255,255,.8); }
  .navbar-dropdown-item:hover { color: #fff; background: rgba(255,255,255,.08); }
  .navbar-dropdown-item i { color: var(--secondary); }
  .navbar-link { width: 100%; padding: .75rem 1rem; }
  .navbar-cta { width: 100%; text-align: center; margin-top: .5rem; }
}

.page-wrapper { padding-top: 72px; }

/* ── Hero Sections ────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--primary) 0%, var(--primary-mid) 60%, var(--secondary-dark) 100%);
  min-height: 92vh; display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10S50 55.5 50 50z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(204,0,0,.2); border: 1px solid rgba(204,0,0,.4);
  color: #ff8080; padding: .5rem 1.25rem; border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); }
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem); color: #fff; font-weight: 900;
  line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -.03em;
}
.hero-title .accent { color: var(--secondary); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem); color: rgba(255,255,255,.75);
  margin-bottom: 2.5rem; max-width: 600px; font-weight: 400;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .7rem 1.6rem;
  border-radius: var(--radius); font-family: var(--font-primary);
  font-weight: 700; font-size: .9rem; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition);
  text-decoration: none; white-space: nowrap; letter-spacing: .01em;
}
.btn-primary {
  background: var(--secondary); color: #fff;
  box-shadow: 0 4px 16px rgba(204,0,0,.35);
}
.btn-primary:hover { background: var(--secondary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(204,0,0,.45); }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: var(--primary-dark); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--bg-soft); color: var(--primary); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { background: var(--bg-soft); color: var(--primary); border-color: var(--primary); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-muted); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #aa0000; color: #fff; }
.btn-sm { padding: .45rem 1rem; font-size: .8rem; }
.btn-lg { padding: .9rem 2.2rem; font-size: 1rem; }
.btn-xl { padding: 1.1rem 2.8rem; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-title { font-size: 1.1rem; font-weight: 800; margin-bottom: .5rem; color: var(--primary); }
.card-meta { font-size: .8rem; color: var(--text-light); margin-bottom: .5rem; }

/* Issue/Feature cards */
.issue-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  border-top: 4px solid var(--secondary); transition: all var(--transition);
}
.issue-card:hover { box-shadow: var(--shadow-md); border-top-color: var(--primary); transform: translateY(-3px); }
.issue-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.issue-title { font-size: 1.15rem; font-weight: 800; color: var(--primary); margin-bottom: .75rem; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }
.section-dark { background: var(--primary); }
.section-dark h1,.section-dark h2,.section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.7); }
.section-red { background: var(--secondary); }
.section-red h1,.section-red h2,.section-red h3 { color: #fff; }
.section-red p { color: rgba(255,255,255,.85); }
.section-soft { background: var(--bg-soft); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge {
  display: inline-block; background: rgba(204,0,0,.1); color: var(--secondary);
  padding: .4rem 1.2rem; border-radius: var(--radius-full); font-size: .75rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: .75rem; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ── Stat Counters ──────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.stat-card {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--secondary); line-height: 1; margin-bottom: .5rem; font-family: var(--font-primary); }
.stat-label { font-size: .85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 700; font-size: .875rem; color: var(--text); margin-bottom: .45rem; }
.form-label span { color: var(--secondary); }
.form-control {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .9rem; font-family: inherit; color: var(--text);
  background: #fff; transition: all var(--transition); outline: none;
}
.form-control:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(204,0,0,.12); }
.form-control::placeholder { color: var(--text-light); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230a1628'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 18px; padding-right: 2.5rem; }
.form-hint { font-size: .78rem; color: var(--text-light); margin-top: .35rem; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: .35rem; font-weight: 600; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-check { display: flex; align-items: center; gap: .65rem; cursor: pointer; }
.form-check input[type=checkbox],.form-check input[type=radio] { width: 18px; height: 18px; accent-color: var(--secondary); cursor: pointer; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media (max-width:640px) { .form-row-2,.form-row-3 { grid-template-columns: 1fr; } }

/* ── Donation Amount Buttons ─────────────────────────────────────────────── */
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1rem; }
.amount-btn {
  padding: 1rem; border: 2px solid var(--border); border-radius: var(--radius);
  background: #fff; font-family: var(--font-primary); font-weight: 800; font-size: 1rem;
  cursor: pointer; transition: all var(--transition); text-align: center;
}
.amount-btn:hover { border-color: var(--secondary); color: var(--secondary); background: rgba(204,0,0,.04); }
.amount-btn.active { border-color: var(--secondary); background: var(--secondary); color: #fff; }

/* ── Progress / Fundraising Bar ──────────────────────────────────────────── */
.progress-wrap { background: var(--bg-muted); border-radius: var(--radius-full); height: 12px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--secondary), var(--secondary-light)); border-radius: var(--radius-full); transition: width .6s ease; }
.progress-stats { display: flex; justify-content: space-between; margin-top: .6rem; font-size: .85rem; }
.progress-raised { font-weight: 800; color: var(--primary); }
.progress-goal { color: var(--text-muted); }
.progress-percent { font-weight: 800; color: var(--secondary); }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--primary); color: #fff;
  padding: .75rem 1rem; font-size: .8rem; font-weight: 700;
  text-align: left; white-space: nowrap; letter-spacing: .04em; text-transform: uppercase;
}
.data-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-size: .875rem; vertical-align: middle; }
.data-table tr:hover td { background: var(--bg-soft); }
.data-table tr:last-child td { border-bottom: none; }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .75rem; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
.badge-primary   { background: rgba(10,22,40,.1); color: var(--primary); }
.badge-secondary { background: rgba(204,0,0,.1); color: var(--secondary); }
.badge-success   { background: #dcfce7; color: #166534; }
.badge-warning   { background: #fef9c3; color: #854d0e; }
.badge-danger    { background: #fee2e2; color: #991b1b; }
.badge-info      { background: #dbeafe; color: #1e40af; }
.badge-muted     { background: var(--bg-muted); color: var(--text-muted); }

/* ── Admin Layout ─────────────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; padding-top: 0; }
.sidebar {
  width: 280px; flex-shrink: 0;
  background: var(--primary);
  display: flex; flex-direction: column;
  min-height: 100vh; position: sticky; top: 0;
  overflow-y: auto; z-index: 300;
  transition: transform var(--transition);
}
.sidebar-hidden { transform: translateX(-100%); position: fixed; left: 0; top: 0; bottom: 0; }
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 290; backdrop-filter: blur(2px);
}
.sidebar-overlay.visible { display: block; }
@media (max-width:1024px) {
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 310; }
  .sidebar-hidden { transform: translateX(-100%); }
  .admin-main { margin-left: 0 !important; }
}
@media (min-width:1024px) {
  .sidebar { transform: translateX(0) !important; position: sticky; }
}
.sidebar-logo {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
}
.sidebar-logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--secondary); color: #fff;
  font-family: var(--font-primary); font-weight: 900; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -1px; flex-shrink: 0;
}
.sidebar-logo span { font-family: var(--font-primary); font-weight: 800; font-size: .9rem; color: #fff; line-height: 1.2; }
.sidebar-section-label {
  font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.3); padding: 1rem 1.5rem .4rem;
}
.sidebar-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1.5rem; color: rgba(255,255,255,.7);
  font-size: .875rem; font-weight: 600; text-decoration: none;
  border-left: 3px solid transparent; transition: all var(--transition);
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.sidebar-link.active { color: #fff; background: rgba(204,0,0,.15); border-left-color: var(--secondary); }
.sidebar-link i { width: 20px; text-align: center; font-size: .95rem; flex-shrink: 0; }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0 1.5rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 200; gap: 1rem;
  box-shadow: 0 1px 8px rgba(10,22,40,.06);
}
.sidebar-toggle {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  font-size: 1.1rem; padding: .5rem; border-radius: var(--radius); transition: all var(--transition);
}
.sidebar-toggle:hover { background: var(--bg-muted); color: var(--primary); }
.admin-content { padding: 2rem; flex: 1; }

/* ── CMS / Page Headers ──────────────────────────────────────────────────── */
.cms-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.cms-title { font-size: 1.5rem; font-weight: 900; color: var(--primary); margin: 0; }
.cms-title i { color: var(--secondary); margin-right: .5rem; }
.page-title { font-size: 1.75rem; font-weight: 900; color: var(--primary); margin-bottom: 1.5rem; }

/* ── Modals ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,22,40,.7);
  z-index: 800; display: flex; align-items: center; justify-content: center;
  padding: 1rem; backdrop-filter: blur(4px);
}
.modal {
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  animation: slideUp .2s ease;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.modal-title { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin: 0; }
.modal-close {
  background: var(--bg-muted); border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition);
}
.modal-close:hover { background: var(--bg-soft); color: var(--danger); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .75rem; }

/* Open modal helper */
.modal-overlay { display: none; }
.modal-overlay.open { display: flex; }
@keyframes slideUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

/* ── Flash Messages ──────────────────────────────────────────────────────── */
.flash-container {
  position: fixed; top: 1rem; right: 1rem; z-index: 1000;
  display: flex; flex-direction: column; gap: .5rem; max-width: 420px;
}
.flash {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .9rem 1.25rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; box-shadow: var(--shadow-md);
  animation: slideRight .3s ease;
}
@keyframes slideRight { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }
.flash-success { background: #f0fdf4; color: #166534; border-left: 4px solid var(--success); }
.flash-danger,.flash-error { background: #fff0f0; color: #991b1b; border-left: 4px solid var(--secondary); }
.flash-warning { background: #fffbeb; color: #854d0e; border-left: 4px solid var(--warning); }
.flash-info { background: #eff6ff; color: #1e40af; border-left: 4px solid var(--info); }
.flash button { background: none; border: none; cursor: pointer; color: inherit; opacity: .6; margin-left: auto; font-size: 1.1rem; padding: 0 .25rem; }
.flash button:hover { opacity: 1; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: .35rem; flex-wrap: wrap; }
.page-link {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 .75rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  color: var(--text-muted); font-size: .875rem; font-weight: 600;
  transition: all var(--transition); cursor: pointer; text-decoration: none;
}
.page-link:hover { border-color: var(--secondary); color: var(--secondary); background: rgba(204,0,0,.05); }
.page-link.active { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.page-link.disabled { opacity: .4; cursor: not-allowed; }

/* ── Tags ────────────────────────────────────────────────────────────────── */
.tag { display: inline-flex; align-items: center; gap: .3rem; background: var(--bg-muted); color: var(--text-muted); padding: .2rem .7rem; border-radius: var(--radius-full); font-size: .75rem; font-weight: 700; }
.tag-chip { display: inline-flex; align-items: center; gap: .35rem; background: rgba(204,0,0,.1); color: var(--secondary); padding: .25rem .75rem; border-radius: var(--radius-full); font-size: .8rem; font-weight: 700; }
.tag-chip button { background: none; border: none; cursor: pointer; color: inherit; font-size: 1rem; line-height: 1; padding: 0; }

/* ── Empty States ────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state i { font-size: 3rem; opacity: .3; margin-bottom: 1rem; display: block; }
.empty-state h3 { color: var(--text-muted); font-size: 1.1rem; margin-bottom: .5rem; }

/* ── Auth Pages ──────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: stretch;
  background: var(--primary);
}
.auth-left {
  flex: 1; display: none;
  background: linear-gradient(155deg, var(--primary) 0%, var(--primary-mid) 50%, var(--secondary-dark) 100%);
  position: relative; overflow: hidden;
  padding: 4rem;
}
@media (min-width:1024px) { .auth-left { display: flex; flex-direction: column; justify-content: center; } }
.auth-right {
  width: 100%; max-width: 480px; background: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 2.5rem;
}
@media (min-width:1024px) { .auth-right { max-width: 440px; } }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--primary); color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}
.footer-brand { margin-bottom: 1rem; }
.footer-brand-name { font-family: var(--font-primary); font-weight: 900; font-size: 1.1rem; color: #fff; }
.footer-brand-domain { font-size: .75rem; color: var(--secondary); font-weight: 600; }
.footer-heading { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: .75rem; }
.footer-link { display: block; color: rgba(255,255,255,.6); font-size: .875rem; padding: .25rem 0; transition: color var(--transition); }
.footer-link:hover { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 3rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  font-size: .8rem;
}
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: rgba(255,255,255,.4); }
.footer-legal a:hover { color: var(--secondary); }

/* ── Candiate / Team Cards ──────────────────────────────────────────────── */
.candidate-card {
  background: linear-gradient(155deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: var(--radius-xl); padding: 3rem; color: #fff;
  position: relative; overflow: hidden;
}
.candidate-card::after {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(204,0,0,.15);
}
.team-card { text-align: center; }
.team-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 1rem;
  border: 3px solid var(--secondary); box-shadow: var(--shadow);
}
.team-name { font-weight: 800; font-size: 1rem; color: var(--primary); }
.team-role { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }

/* ── Timeline / Events ──────────────────────────────────────────────────── */
.event-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.event-card-date {
  background: var(--primary); color: #fff;
  padding: 1rem; text-align: center; min-width: 80px;
}
.event-date-day { font-size: 2rem; font-weight: 900; line-height: 1; }
.event-date-month { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.event-card-body { padding: 1.25rem; }

/* ── Volunteer / Contact Forms ─────────────────────────────────────────── */
.volunteer-form { max-width: 680px; margin: 0 auto; }
.contact-form  { max-width: 640px; margin: 0 auto; }

/* ── Notification Badge ─────────────────────────────────────────────────── */
.notification-dot {
  position: absolute; top: 2px; right: 2px; width: 10px; height: 10px;
  background: var(--secondary); border-radius: 50%; border: 2px solid #fff;
}

/* ── Utility Helpers ─────────────────────────────────────────────────────── */
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.pt-0{padding-top:0}.pt-1{padding-top:.5rem}.pt-2{padding-top:1rem}.pt-3{padding-top:1.5rem}
.pb-0{padding-bottom:0}.pb-1{padding-bottom:.5rem}.pb-2{padding-bottom:1rem}.pb-3{padding-bottom:1.5rem}
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }
.overflow-hidden { overflow: hidden; }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.text-warning { color: var(--warning); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.d-none { display: none !important; }
.d-flex { display: flex; }
.d-block { display: block; }

/* ── Print ────────────────────────────────────────────────────────────────── */
@media print {
  .navbar,.sidebar,.admin-topbar,.flash-container,.floating-help { display: none !important; }
  .page-wrapper { padding-top: 0; }
  .admin-layout { display: block; }
  .admin-main { margin: 0; }
}

/* ── Accessibility ────────────────────────────────────────────────────────── */
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-muted); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ── Articles / Blog Body ──────────────────────────────────────────────── */
.article-body h2 { margin: 2rem 0 1rem; font-size: 1.4rem; }
.article-body h3 { margin: 1.5rem 0 .75rem; font-size: 1.15rem; }
.article-body p  { margin-bottom: 1rem; line-height: 1.8; }
.article-body ul,.article-body ol { margin: 1rem 0 1rem 1.5rem; }
.article-body li { margin-bottom: .5rem; }
.article-body blockquote {
  border-left: 4px solid var(--secondary); margin: 1.5rem 0;
  padding: .75rem 1.5rem; background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text-muted);
}

/* ── Loading Spinner ─────────────────────────────────────────────────────── */
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--secondary);
  animation: spin .7s linear infinite; margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Copy button ─────────────────────────────────────────────────────────── */
[data-copy] { cursor: pointer; }
