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

/* Reset and Core Variables */
:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Premium Islamic Modernist Palette (Light Theme, No Gradients) */
  --slate-950: #ffffff;
  --slate-900: #ffffff;
  --slate-850: #f8fafc;
  --slate-800: #f1f5f9;
  --slate-700: #cbd5e1;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #0f172a;
  
  --emerald-500: #0055d4;
  --emerald-600: #004ebb;
  --emerald-700: #00378b;
  --emerald-800: #002562;
  --emerald-900: #00173e;
  --emerald-950: #000a1c;
  
  --gold-400: #fcd34d;
  --gold-500: #fbbf24;
  --gold-600: #d97706;
  --gold-700: #b45309;

  --accent-blue: #0284c7;
  --danger: #ef4444;
  --success: #10b981;
  
  --glass-bg: #ffffff;
  --glass-border: #e2e8f0;
  --glass-border-glow: rgba(16, 185, 129, 0.25);
  --glass-shadow: 0 10px 30px 0 rgba(15, 23, 42, 0.05);

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--emerald-600) var(--slate-900);
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: var(--slate-950);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--emerald-700);
  border-radius: 20px;
}

body {
  font-family: var(--font-body);
  background-color: var(--slate-950);
  color: var(--slate-200);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--slate-200);
  letter-spacing: -0.02em;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--glass-border-glow);
  box-shadow: 0 10px 40px 0 rgba(16, 185, 129, 0.08);
}

.glass-card-interactive {
  cursor: pointer;
}

.glass-card-interactive:hover {
  transform: translateY(-4px);
  background: rgba(20, 30, 50, 0.8);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-fast);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--slate-200);
  transition: var(--transition-fast);
}

.logo span {
  color: var(--emerald-600);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--emerald-600);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
  font-size: 1.5rem;
  color: #ffffff;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--slate-600);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

nav a:hover, nav a.active {
  color: var(--emerald-600);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-500);
  transition: var(--transition-fast);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.btn-portal-toggle {
  background: var(--emerald-600);
  color: white;
  border: 1px solid rgba(16, 185, 129, 0.1);
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-portal-toggle:hover {
  background: var(--emerald-500);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

/* Page Sections & Layouts */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

section {
  padding: 4rem 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-500);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--slate-400);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0 4rem 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-tagline {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  color: var(--emerald-500);
  font-size: 0.85rem;
  font-weight: 600;
  align-self: flex-start;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--emerald-600);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--slate-600);
  margin-bottom: 1rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: var(--emerald-600);
  color: white;
  border: none;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.15);
  font-family: var(--font-display);
}

.btn-primary:hover {
  background: var(--emerald-500);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--slate-850);
  color: var(--slate-200);
  border: 1px solid var(--slate-700);
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-display);
}

.btn-secondary:hover {
  background: var(--slate-800);
  border-color: var(--slate-700);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-500);
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  height: 560px;
  cursor: pointer;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.hero-slide.active img {
  animation: zoomSlowly 10s linear infinite alternate;
}

@keyframes zoomSlowly {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0));
  padding: 2.5rem 2rem 2rem 2rem;
}

.hero-overlay-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.hero-overlay-title {
  font-size: 1.4rem;
  font-weight: 600;
}

/* Ecosystem Section */
.ecosystem-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: stretch;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.ecosystem-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: white;
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
}

.node-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-align: left;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--slate-600);
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  position: relative;
}

.node-btn::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 4px;
  background: var(--emerald-500);
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transition: var(--transition-fast);
}

.node-btn:hover {
  background: #f1f5f9;
  color: var(--slate-200);
}

.node-btn.active {
  background: rgba(0, 85, 212, 0.06);
  border-color: rgba(0, 85, 212, 0.1);
  color: var(--emerald-500);
  font-weight: 500;
}

.node-btn.active::after {
  opacity: 1;
}

.node-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: #f1f5f9;
  color: var(--slate-600);
  transition: var(--transition-smooth);
}

.node-btn:hover .node-icon {
  background: #e2e8f0;
  color: var(--slate-200);
}

.node-btn.active .node-icon {
  background: var(--emerald-500);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 85, 212, 0.25);
}

.node-info-mini h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-200);
  margin-bottom: 0.15rem;
  transition: var(--transition-fast);
}

.node-btn.active .node-info-mini h4 {
  color: var(--emerald-500);
}

.node-info-mini p {
  font-size: 0.75rem;
  color: var(--slate-400);
}

.ecosystem-content {
  background: white;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 440px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.eco-details {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.eco-details.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.eco-title-group {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1.25rem;
}

.eco-meta {
  color: var(--gold-600);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.eco-h {
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-200);
  font-family: var(--font-display);
  line-height: 1.25;
}

.eco-body {
  color: var(--slate-600);
  font-size: 0.975rem;
  line-height: 1.7;
}

.eco-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0.5rem 0;
}

.metric-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.metric-box:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.metric-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--emerald-500);
  font-family: var(--font-display);
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.eco-action {
  margin-top: 0.5rem;
}

/* Mosque & Donation Section */
.donation-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mosque-progress-panel {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.pct-glow {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--emerald-600);
  line-height: 1;
}

.progress-track-bg {
  height: 12px;
  background: var(--slate-800);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--slate-700);
}

.progress-fill {
  height: 100%;
  background: var(--emerald-600);
  border-radius: 10px;
  width: 72%; /* Mock initial state */
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.progress-milestones {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--slate-400);
}

.ms-active {
  color: var(--emerald-400);
  font-weight: 600;
}

.mosque-phases {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.phase-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.phase-item.completed {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.03);
}

.phase-item.active {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.04);
}

.phase-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.phase-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.phase-badge.done {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.phase-badge.current {
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold-400);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.phase-badge.pending {
  background: rgba(255, 255, 255, 0.05);
  color: var(--slate-400);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.donation-calculator {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.range-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.range-header {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

.donation-amt-label {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--gold-500);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--slate-800);
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  cursor: pointer;
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.donation-impact-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
}

.impact-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--slate-400);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.impact-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.impact-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.impact-qty {
  font-weight: 700;
  color: white;
}

/* Institutional & Transparency Dashboard */
.dashboard-panel {
  padding: 2.5rem;
}

.dashboard-nav {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.dash-tab-btn {
  background: none;
  border: none;
  color: var(--slate-400);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.dash-tab-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.02);
}

.dash-tab-btn.active {
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.08);
}

.dash-tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.dash-tab-content.active {
  display: block;
}

/* Financial Transparency Layout */
.financial-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

.financial-visualizer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.custom-chart-container {
  height: 280px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  position: relative;
}

.chart-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  justify-content: flex-end;
  width: 70px;
}

.chart-bar {
  width: 36px;
  background: var(--emerald-600);
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.chart-bar-wrap:nth-child(2) .chart-bar {
  background: var(--gold-500);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
}

.chart-bar-wrap:nth-child(3) .chart-bar {
  background: var(--accent-blue);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.1);
}

.chart-bar-wrap:nth-child(4) .chart-bar {
  background: #7c3aed;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.1);
}

.chart-bar-val {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-200);
}

.chart-bar-lbl {
  font-size: 0.75rem;
  color: var(--slate-600);
  text-align: center;
  font-weight: 500;
}

.financial-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.breakdown-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bd-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bd-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.bd-lbl {
  font-weight: 600;
}

.bd-sub {
  font-size: 0.8rem;
  color: var(--slate-400);
}

.bd-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

/* Timeline & Student Milestones */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--slate-900);
  border: 4px solid var(--slate-700);
  z-index: 5;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}

.timeline-item.active .timeline-dot {
  border-color: var(--emerald-500);
  background: var(--emerald-950);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.timeline-content-wrap {
  width: 45%;
}

.timeline-card {
  padding: 1.5rem;
}

.timeline-card h4 {
  font-size: 1.25rem;
  color: var(--gold-500);
  margin-bottom: 0.5rem;
}

.timeline-card .tl-age {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--emerald-400);
  margin-bottom: 0.5rem;
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--slate-300);
}

/* Multi-step Admission Form */
.admission-wizard {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.form-panel {
  padding: 2.5rem;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.wizard-steps::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.w-step-line-fill {
  position: absolute;
  top: 15px;
  left: 10%;
  width: 0%;
  height: 2px;
  background: var(--emerald-500);
  z-index: 2;
  transition: width 0.4s ease;
}

.step-node {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--slate-900);
  border: 2px solid var(--slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.step-node.active .step-circle {
  border-color: var(--emerald-500);
  background: var(--emerald-950);
  color: white;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.step-node.completed .step-circle {
  border-color: var(--emerald-500);
  background: var(--emerald-500);
  color: var(--slate-950);
}

.step-lbl {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-400);
}

.step-node.active .step-lbl {
  color: white;
  font-weight: 600;
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.form-step.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-300);
}

input[type="text"], input[type="email"], input[type="tel"], select {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, select:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.radio-card {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-fast);
}

.radio-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.radio-card.selected {
  border-color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.05);
}

.radio-card input {
  accent-color: var(--emerald-500);
}

.radio-info {
  display: flex;
  flex-direction: column;
}

.radio-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.radio-desc {
  font-size: 0.75rem;
  color: var(--slate-400);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
}

/* Receipt & Live Calculator Layout */
.calculator-panel {
  padding: 2.2rem;
  position: sticky;
  top: 100px;
}

.calc-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0.5rem;
}

.calc-rows {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--slate-300);
}

.calc-row.discount {
  color: var(--emerald-400);
  font-weight: 500;
}

.calc-row.total {
  border-top: 1px dashed rgba(255,255,255,0.15);
  padding-top: 0.85rem;
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.calc-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Success Receipt Output Style */
.receipt-card {
  background: var(--slate-900);
  border: 2px solid var(--gold-600);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  margin: 2rem auto;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
  display: none;
  animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.receipt-card::after {
  content: 'YPI AL-ZAYN';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  z-index: 0;
  white-space: nowrap;
}

.receipt-header {
  text-align: center;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.receipt-logo {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.receipt-title {
  font-size: 1.4rem;
  color: var(--gold-400);
}

.receipt-subtitle {
  font-size: 0.8rem;
  color: var(--slate-400);
}

.receipt-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.receipt-lbl {
  color: var(--slate-400);
}

.receipt-val {
  font-weight: 600;
  color: white;
}

.receipt-val.highlight {
  color: var(--gold-400);
  font-weight: 700;
}

.receipt-footer {
  text-align: center;
  position: relative;
  z-index: 1;
}

.receipt-barcode {
  font-family: 'Libre Barcode 39', cursive, monospace; /* Fallback for mock barcode */
  font-size: 2.5rem;
  margin: 1rem 0;
  letter-spacing: 5px;
  color: white;
}

.btn-print {
  background: var(--gold-600);
  color: white;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-top: 1rem;
}

.btn-print:hover {
  background: var(--gold-500);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}

.toast {
  background: rgba(12, 18, 32, 0.95);
  border-left: 4px solid var(--emerald-500);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 4px 8px 8px 4px;
  color: white;
  min-width: 280px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(120%);
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: var(--transition-smooth);
}

.toast.success {
  border-left-color: var(--emerald-500);
}

.toast.info {
  border-left-color: var(--accent-blue);
}

/* Footer styling */
footer {
  background: var(--slate-850);
  border-top: 1px solid var(--slate-700);
  padding: 5rem 2rem 2rem 2rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--slate-200);
}

.footer-logo span {
  color: var(--emerald-600);
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--emerald-600);
  border-color: var(--emerald-500);
  color: white;
  transform: translateY(-2px);
}

.footer-cols h5 {
  font-size: 1.1rem;
  color: var(--slate-200);
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--slate-600);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--emerald-600);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 1rem;
}

.footer-contact-item i {
  color: var(--emerald-600);
  font-size: 1rem;
  margin-top: 0.15rem;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--slate-600);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  text-decoration: none;
  color: var(--slate-400);
  transition: var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--emerald-400);
}

/* Animations Definitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.menu-toggle {
  display: none;
}

/* Responsiveness Settings */
@media (max-width: 1024px) {
  .hero, .ecosystem-container, .donation-grid, .financial-layout, .admission-wizard {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-visual {
    height: 380px;
  }
  
  .timeline-line {
    left: 20px;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  .timeline-item, .timeline-item:nth-child(even) {
    flex-direction: row;
    justify-content: flex-start;
  }
  
  .timeline-content-wrap {
    width: calc(100% - 40px);
    margin-left: 40px;
  }
  
  .footer-container {
    grid-template-columns: 1fr repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--slate-850);
    border: 1px solid var(--slate-700);
    border-radius: 10px;
    color: var(--slate-200);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    position: absolute;
    right: 1.5rem;
    top: 1.25rem;
    z-index: 1000;
  }
  
  .menu-toggle:hover {
    background: var(--slate-800);
    border-color: var(--slate-600);
  }

  header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--slate-950);
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-container {
    padding: 1.25rem 1.5rem !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-container nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--slate-950);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    animation: slideDownMenu 0.3s ease forwards;
  }

  .nav-container nav.mobile-open {
    display: block !important;
  }

  nav ul {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    width: 100%;
  }

  nav ul li {
    width: 100%;
    margin: 0 !important;
  }

  nav ul li a {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem !important;
    background: var(--slate-850);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.95rem !important;
    border: 1px solid transparent;
    transition: var(--transition-fast);
  }

  nav ul li a:hover, 
  nav ul li a.active {
    background: rgba(0, 85, 212, 0.04) !important;
    color: var(--emerald-600) !important;
    border-color: rgba(0, 85, 212, 0.15) !important;
  }

  @keyframes slideDownMenu {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .form-group-grid {
    grid-template-columns: 1fr !important;
  }
  
  .radio-group {
    grid-template-columns: 1fr !important;
  }

  /* Force all inline styling grids to collapse */
  div[style*="grid-template-columns"], 
  main div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Force hero stats to stack */
  .hero-stats {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
  }

  .stat-item {
    padding: 1rem !important;
  }

  .stat-number {
    font-size: 1.5rem !important;
  }

  /* Force Hero CTAs to wrap and stretch */
  .hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
    gap: 1rem !important;
  }

  .hero-ctas .btn-primary, 
  .hero-ctas .btn-secondary {
    width: 100% !important;
    text-align: center;
    justify-content: center;
    padding: 0.85rem 1.5rem !important;
    font-size: 1rem !important;
  }

  /* Responsive Typography */
  body {
    font-size: 0.95rem !important;
  }
  
  h1, .hero-title {
    font-size: 2.1rem !important;
    line-height: 1.25 !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
  
  h3 {
    font-size: 1.35rem !important;
  }

  .hero-desc {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  .section-tag, .hero-tagline {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.85rem !important;
  }

  section {
    padding: 3rem 0 !important;
  }

  /* Academy pages responsive overrides */
  .quran-grid, .lang-grid, .benefit-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  
  .program-grid, .languages-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .quran-content h1, .lang-content h1 {
    font-size: 2.1rem !important;
    line-height: 1.25 !important;
  }
  
  .cta-box {
    padding: 2.5rem 1.5rem !important;
  }

  .hero-visual {
    height: 280px !important;
    margin-top: 1.5rem !important;
  }
  
  .hero-visual img {
    height: 100% !important;
    object-fit: cover !important;
  }
}

@media (max-width: 480px) {
  h1, .hero-title, .quran-content h1, .lang-content h1 {
    font-size: 1.7rem !important;
  }
  h2 {
    font-size: 1.45rem !important;
  }
  .hero-desc {
    font-size: 0.95rem !important;
  }
  .nav-container {
    padding: 0.85rem 1rem !important;
  }
  .logo img {
    height: 34px !important;
  }
  .logo span {
    font-size: 1.1rem !important;
  }
  .menu-toggle {
    right: 1rem !important;
    top: 0.8rem !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 0.95rem !important;
  }
  nav ul {
    gap: 0.75rem !important;
  }
  nav ul li a {
    font-size: 0.85rem !important;
  }
}

/* Penyesuaian Tahap Perencanaan YPI Al-Zayn */
.badge-planning {
  background: rgba(0, 78, 187, 0.08) !important;
  color: var(--emerald-600) !important;
  border: 1px solid var(--emerald-500) !important;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-planning-info {
  background: rgba(251, 191, 36, 0.08);
  border-left: 4px solid var(--gold-500);
  padding: 0.85rem 1.25rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--slate-600);
  margin: 0.75rem 0;
}

#interest-form textarea:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

/* Lightbox Modal System */
.lightbox {
  display: none;
  position: fixed;
  z-index: 99999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(12, 18, 32, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 85%;
  max-width: 1100px;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  animation: zoomLightbox 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomLightbox {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: 300;
  transition: var(--transition-fast);
  cursor: pointer;
  z-index: 100000;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.lightbox-close:hover {
  color: var(--emerald-400);
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-caption {
  margin: auto;
  display: block;
  width: 85%;
  max-width: 1100px;
  text-align: center;
  color: #f8fafc;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

