/* -------------------------------------------------------------------------- */
/* Save ISU — Design System & Stylesheet                                       */
/* Aligning to ISU guidelines: Primary Dark Blue (#0A1F32), Light Blue (#158CE1) */
/* -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Geom';
  src: url('assets/Geom-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

:root {
  --color-bg-dark: #071424;
  --color-bg-nav: #0A1F32;
  --color-brand-primary: #158CE1;
  --color-brand-hover: #0d70b8;
  --color-text-light: #F0F4F8;
  --color-text-muted: #8FA3B8;
  --color-card-bg: rgba(10, 31, 50, 0.45);
  --color-card-border: rgba(21, 140, 225, 0.2);
  --color-accent-green: #00D084;
  --color-danger: #CF2E2E;
  
  --font-headers: 'Geom', sans-serif;
  --font-body: 'Geom', sans-serif;
  
  --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* -------------------------------------------------------------------------- */
/* Background & Visual Decoration                                             */
/* -------------------------------------------------------------------------- */
.space-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at 80% 20%, rgba(21, 140, 225, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(21, 140, 225, 0.08) 0%, transparent 60%);
}

.space-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.3;
}

/* -------------------------------------------------------------------------- */
/* Navigation Header                                                          */
/* -------------------------------------------------------------------------- */
#main-header {
  background-color: rgba(10, 31, 50, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-card-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-countdown {
  font-size: 0.9rem;
  font-weight: 700;
  color: #79C1F8;
  background: rgba(21, 140, 225, 0.1);
  border: 1px solid rgba(21, 140, 225, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  animation: pulse-border 2s infinite alternate;
  white-space: nowrap;
}

@keyframes pulse-border {
  0% { border-color: rgba(21, 140, 225, 0.25); box-shadow: 0 0 5px rgba(21, 140, 225, 0.1); }
  100% { border-color: rgba(21, 140, 225, 0.6); box-shadow: 0 0 15px rgba(21, 140, 225, 0.3); }
}

@media (max-width: 768px) {
  .nav-countdown {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
}

@media (max-width: 500px) {
  .nav-countdown {
    display: none; /* Hide on extremely small screens to prevent overlap */
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-headers);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-light);
}

.logo svg {
  animation: logo-spin 20s linear infinite;
}

@keyframes logo-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.highlight {
  color: var(--color-brand-primary);
}

.auth-btn-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-sign-btn {
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
  margin-right: 0.75rem;
}

@media (max-width: 600px) {
  .nav-sign-btn {
    display: none !important;
  }
}

#user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--color-brand-primary);
}

#user-name {
  font-size: 0.9rem;
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Typography & Common Buttons                                                */
/* -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-headers);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--color-brand-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(21, 140, 225, 0.4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-brand-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(21, 140, 225, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--color-brand-hover);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  background-color: rgba(21, 140, 225, 0.3);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
}

.btn-cta {
  background-color: #FFA366;
  color: #000;
  box-shadow: 0 0 20px rgba(255, 163, 102, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.btn-cta:hover:not(:disabled) {
  background-color: #FF8C00;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.6);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-text-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFF;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s;
}

.btn-icon:hover {
  color: var(--color-danger);
}

/* -------------------------------------------------------------------------- */
/* Hero Section                                                               */
/* -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 6rem 2rem 5rem 2rem;
  text-align: center;
  background-image: linear-gradient(135deg, rgba(7, 20, 36, 0.9) 0%, rgba(10, 31, 50, 0.95) 100%);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.badge {
  background-color: rgba(21, 140, 225, 0.15);
  color: #79C1F8;
  border: 1px solid rgba(21, 140, 225, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-section h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-section p {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  text-align: justify;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------- */
/* Progress target area                                                       */
/* -------------------------------------------------------------------------- */
.progress-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.progress-container {
  background: var(--color-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-card-border);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
}

.progress-header, .progress-footer {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
}

.progress-header {
  margin-bottom: 0.75rem;
}

.progress-footer {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
}

#txt-total-pledged {
  color: var(--color-accent-green);
  font-weight: 800;
  font-size: 1.1rem;
}

.progress-bar-bg {
  width: 100%;
  height: 18px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

#progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #158CE1 0%, #00f2fe 100%);
  border-radius: 50px;
  transition: width 1.5s cubic-bezier(0.1, 0.8, 0.25, 1);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
}

/* -------------------------------------------------------------------------- */
/* Vision Cards                                                               */
/* -------------------------------------------------------------------------- */
.vision-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--color-text-muted);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1100px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

.card {
  background: rgba(10, 31, 50, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.2);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: rgba(21, 140, 225, 0.15);
  color: var(--color-brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.section-divider {
  width: 80%;
  height: 1px;
  margin: 2rem auto;
  background: linear-gradient(90deg, transparent, rgba(21, 140, 225, 0.5), transparent);
  box-shadow: 0 0 10px rgba(21, 140, 225, 0.5);
}

/* -------------------------------------------------------------------------- */
/* Form and Leaderboard Grid                                                  */
/* -------------------------------------------------------------------------- */
.petition-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem 2rem;
}

.petition-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .petition-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.form-card h3, .leaderboard-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-card > p, .leaderboard-card > p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------------- */
/* Forms Layout & Inputs                                                      */
/* -------------------------------------------------------------------------- */


.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-sub-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: -0.25rem;
  margin-bottom: 0.75rem;
}

input[type="text"], input[type="number"] {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--color-text-light);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}

input[type="text"]:focus, input[type="number"]:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  background-color: rgba(255, 255, 255, 0.08);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.checkbox-group input {
  margin-top: 0.25rem;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.4;
}

/* -------------------------------------------------------------------------- */
/* Tier Selector Cards                                                        */
/* -------------------------------------------------------------------------- */
.tier-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .tier-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tier-option {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0.5rem;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tier-option:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(21, 140, 225, 0.3);
}

.tier-option.active {
  background: rgba(21, 140, 225, 0.12);
  border-color: var(--color-brand-primary);
}

.tier-name {
  font-size: 0.85rem;
  font-weight: 800;
  display: block;
}

.tier-cost {
  color: var(--color-accent-green);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0.25rem 0;
  display: block;
}

.tier-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: block;
}

.custom-shares {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: 8px;
}

.custom-shares label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.input-number-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.input-number-container input {
  width: 100px;
}

.input-number-container span {
  font-size: 0.95rem;
  font-weight: 600;
}

#custom-cost-calc {
  color: var(--color-accent-green);
  font-weight: 800;
}

/* -------------------------------------------------------------------------- */
/* Voice Recorder UI                                                          */
/* -------------------------------------------------------------------------- */
.recorder-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0,0,0,0.2);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 70px;
}

.btn-record {
  background-color: var(--color-danger);
  color: #FFFFFF;
}

.btn-record.recording {
  background-color: #000000;
  border: 1px solid var(--color-danger);
  animation: pulse-border 1.5s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(207, 46, 70, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(207, 46, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(207, 46, 70, 0); }
}

#recording-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-danger);
  animation: pulse-dot 1s infinite alternate;
}

.intro-content {
  display: flex;
  align-items: center;
  gap: 20px;
}
.save-text {
  color: var(--color-brand-primary);
  font-size: 5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: slideInLeft 1s ease-out;
}
@keyframes slideInLeft {
  0% { transform: translateX(-50px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
.intro-logo {
  width: 250px;
  max-width: 80vw;
  height: auto;
  animation: pulseLogo 2s infinite alternate, slideInRight 1s ease-out;
}
@keyframes slideInRight {
  0% { transform: translateX(50px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes pulseLogo {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}
.fade-out {
  animation: fadeOut 1s forwards;
}
@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
.matrix-quote {
  position: absolute;
  color: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  bottom: -50px;
  font-weight: 800;
  animation: floatUp linear forwards;
  z-index: 1;
}
@keyframes floatUp {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-120vh); opacity: 0; }
}


@keyframes pulse-dot {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

#audio-preview-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

#audio-preview {
  flex-grow: 1;
  height: 36px;
}

.btn-danger-icon {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s;
  padding: 0.5rem;
}

.btn-danger-icon:hover {
  color: var(--color-danger);
}

/* -------------------------------------------------------------------------- */
/* Leaderboard Styling                                                        */
/* -------------------------------------------------------------------------- */
.form-card {
  height: 1800px;
  overflow-y: auto;
}

.leaderboard-card {
  display: flex;
  flex-direction: column;
  height: 1800px;
}

.leaderboard-table-container {
  width: 100%;
  overflow-x: auto;
  background: rgba(0,0,0,0.15);
  border-radius: 12px;
  overflow-y: auto;
  flex: 1 1 0%;
  min-height: 0;
}

@media (max-width: 900px) {
  .form-card, .leaderboard-card {
    height: auto;
  }
  .leaderboard-table-container {
    max-height: 350px;
  }
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}

.leaderboard-table th, .leaderboard-table td {
  padding: 1rem 0.5rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table th {
  font-family: var(--font-headers);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  position: sticky;
  top: 0;
  background-color: #121a2c;
  z-index: 2;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.leaderboard-table th:nth-child(1) { width: 45%; }
.leaderboard-table th:nth-child(2) { width: 30%; }
.leaderboard-table th:nth-child(3) { width: 25%; }

.leaderboard-table td {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.user-cell span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-cell-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.pledge-cost {
  color: var(--color-accent-green);
  font-weight: 800;
}

.badge-tier {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
}

.badge-explorer { background: rgba(255, 255, 255, 0.08); color: #FFF; }
.badge-petition { background: rgba(255, 255, 255, 0.05); color: var(--color-text-muted); border: 1px solid rgba(255, 255, 255, 0.1); }
.badge-pioneer { background: rgba(21, 140, 225, 0.15); color: #66B5FF; }
.badge-pathfinder { background: rgba(0, 208, 132, 0.15); color: #52FFC0; }
.badge-voyager { background: rgba(255, 105, 0, 0.15); color: #FFA366; }
.badge-anchor { background: rgba(252, 185, 0, 0.15); color: #FFE066; border: 1px solid rgba(252, 185, 0, 0.3); }

.audio-play-btn {
  background: none;
  border: none;
  color: var(--color-brand-primary);
  cursor: pointer;
  margin-left: 0.5rem;
  font-size: 0.85rem;
}

.placeholder-row {
  text-align: center;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */
#main-footer {
  border-top: 1px solid var(--color-card-border);
  padding: 3rem 0;
  margin-top: 4rem;
  background-color: rgba(10, 31, 50, 0.6);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* By The Numbers Section */
.numbers-section {
  padding: 4rem 2rem;
  background-color: var(--color-bg-nav);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 2rem;
}
.number-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.number-card:hover {
  transform: translateY(-5px);
  border-color: rgba(21, 140, 225, 0.3);
}
.number-card h3 {
  font-size: 3rem;
  color: var(--color-brand-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-headers);
  text-shadow: 0 0 20px rgba(21, 140, 225, 0.4);
}
.number-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* -------------------------------------------------------------------------- */
/* Intro Overlay & Matrix Quotes                                              */
/* -------------------------------------------------------------------------- */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-bg-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease-in-out;
}
#intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.matrix-quotes-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.matrix-quote {
  position: absolute;
  bottom: -50px;
  color: rgba(255, 255, 255, 0.05);
  font-family: var(--font-headers);
  font-weight: 800;
  white-space: nowrap;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-120vh); opacity: 0; }
}

/* Testimonials Section */
.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}
.testimonial-text {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-size: 0.95rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-brand-primary);
}
.testimonial-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: #FFF;
}
.testimonial-meta span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Social Media Share Buttons */
.share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFF;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #FFF;
}
.share-linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
}
.share-twitter:hover {
  background: #000000;
  border-color: #333;
}
.share-whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
}
.share-facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
}

/* Utilities */
.hidden { display: none !important; }

/* Modal Overlay & Card Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.modal-card {
  background: #131926;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  animation: modalSlideUp 0.3s ease-out;
}
@keyframes modalSlideUp {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.btn-close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-close-modal:hover {
  color: #FFF;
}

/* Upvote Button Premium Styling */
.upvote-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.upvote-btn:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.05);
}
.upvote-btn:active {
  transform: scale(0.95);
}
.upvote-btn i {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.upvote-btn:hover i {
  transform: scale(1.2);
}

/* -------------------------------------------------------------------------- */
/* Cooperative Plan Dashboard Section                                         */
/* -------------------------------------------------------------------------- */
.cooperative-plan-section {
  position: relative;
  z-index: 5;
}

.coop-intro-card {
  background: linear-gradient(135deg, rgba(21, 140, 225, 0.12) 0%, rgba(10, 31, 50, 0.6) 100%);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  padding: 2rem;
  margin: 0 auto 2.5rem auto;
  max-width: 1200px;
  box-shadow: var(--shadow-premium);
}

.coop-badge {
  display: inline-block;
  background: var(--color-brand-primary);
  color: #FFF;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.coop-dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem auto;
}

@media (max-width: 900px) {
  .coop-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.calc-control-card {
  padding: 2rem;
  background: rgba(7, 20, 36, 0.7);
}

.calc-control-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
  color: #FFF;
}

.calc-description {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.slider-group {
  margin-bottom: 1.75rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.slider-header label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-header span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-brand-primary);
}

.premium-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: background 0.3s;
}

.premium-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFF;
  border: 2px solid var(--color-brand-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(21, 140, 225, 0.5);
  transition: transform 0.1s, background-color 0.2s;
}

.premium-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background-color: var(--color-brand-primary);
}

.premium-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFF;
  border: 2px solid var(--color-brand-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(21, 140, 225, 0.5);
  transition: transform 0.1s;
}

.premium-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

.cost-model-group {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.segmented-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 0.75rem;
}

.toggle-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--color-text-muted);
  padding: 0.6rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn strong {
  font-size: 0.85rem;
}

.toggle-sub {
  font-size: 0.7rem;
  opacity: 0.7;
}

.toggle-btn:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.03);
}

.toggle-btn.active {
  background: var(--color-brand-primary);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(21, 140, 225, 0.3);
}

.cost-description-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  min-height: 2.8rem;
}

/* Metrics Card Styling */
.metrics-dashboard-card {
  padding: 2rem;
  background: radial-gradient(100% 100% at 0% 0%, rgba(21, 140, 225, 0.1) 0%, rgba(7, 20, 36, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.dashboard-header h3 {
  font-size: 1.35rem;
  color: #FFF;
  margin: 0;
}

.coop-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 15px currentColor;
  white-space: nowrap;
}

.status-viable {
  background: rgba(0, 208, 132, 0.15);
  color: var(--color-accent-green);
  border: 1px solid rgba(0, 208, 132, 0.3);
}

.status-deficit {
  background: rgba(207, 46, 46, 0.15);
  color: var(--color-danger);
  border: 1px solid rgba(207, 46, 46, 0.3);
}

.financial-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.fin-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fin-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fin-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFF;
}

.cashflow-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.cashflow-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.cashflow-value {
  font-size: 2.25rem;
  font-weight: 900;
  text-shadow: 0 0 20px currentColor;
  transition: color 0.3s;
}

.text-green {
  color: var(--color-accent-green) !important;
}

.text-red {
  color: var(--color-danger) !important;
}

.efficiency-bar-group {
  margin-bottom: 2rem;
}

.efficiency-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

.efficiency-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.efficiency-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-brand-primary) 0%, var(--color-accent-green) 100%);
  transition: width 0.4s ease-out;
}

.noble-mission-quote {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--color-brand-primary);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.noble-mission-quote i {
  color: var(--color-brand-primary);
  opacity: 0.5;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  display: block;
}

.noble-mission-quote p {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.noble-mission-quote cite {
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Tabs Card */
.coop-tabs-card {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
  gap: 1.5rem;
  overflow-x: auto;
}

.coop-tab-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-headers);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 0.25rem;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.coop-tab-btn:hover {
  color: #FFF;
}

.coop-tab-btn.active {
  color: var(--color-brand-primary);
}

.coop-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-brand-primary);
  box-shadow: 0 -2px 10px rgba(21, 140, 225, 0.5);
}

.coop-tab-content h4 {
  font-size: 1.2rem;
  color: #FFF;
  margin-bottom: 0.75rem;
}

.coop-tab-content p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.programs-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .programs-subgrid {
    grid-template-columns: 1fr;
  }
}

.subgrid-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.25rem;
}

.subgrid-item h5 {
  font-size: 0.95rem;
  color: #FFF;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.subgrid-item h5 i {
  color: var(--color-brand-primary);
}

.subgrid-item p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.coop-bullet-list {
  padding-left: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.coop-bullet-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.coop-bullet-list strong {
  color: #FFF;
}

.governance-colleges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .governance-colleges {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .governance-colleges {
    grid-template-columns: 1fr;
  }
}

.college-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
}

.college-card h6 {
  font-size: 0.85rem;
  color: #FFF;
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.college-card p {
  font-size: 0.78rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* --- Frequently Asked Questions Accordion --- */
.faq-section {
  padding-bottom: 4rem;
}

.faq-accordion-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.faq-item {
  margin-bottom: 1.25rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.faq-item:hover {
  border-color: rgba(21, 140, 225, 0.4);
  background: rgba(10, 31, 50, 0.6);
  box-shadow: 0 6px 24px rgba(21, 140, 225, 0.05);
}

.faq-item[open] {
  border-color: var(--color-brand-primary);
  background: rgba(10, 31, 50, 0.7);
  box-shadow: 0 8px 32px rgba(21, 140, 225, 0.15);
}

.faq-item summary {
  padding: 1.25rem 1.50rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: #FFF;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  font-size: 0.92rem;
  color: var(--color-brand-primary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-accent-green);
}

.faq-content {
  padding: 0 1.50rem 1.50rem 1.50rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-content p {
  padding-top: 1.25rem;
  margin: 0;
}

.faq-content strong {
  color: #FFF;
}



