/* =============================================
   Founders Growth Grant - Main Stylesheet
   Theme: Green (#1B5E20), White (#FFFFFF), Orange (#FF6D00)
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  --green-50:  #E8F5E9;
  --green-100: #C8E6C9;
  --green-200: #A5D6A7;
  --green-300: #81C784;
  --green-400: #66BB6A;
  --green-500: #4CAF50;
  --green-600: #43A047;
  --green-700: #388E3C;
  --green-800: #2E7D32;
  --green-900: #1B5E20;

  --orange-50:  #FFF3E0;
  --orange-100: #FFE0B2;
  --orange-200: #FFCC80;
  --orange-300: #FFB74D;
  --orange-400: #FFA726;
  --orange-500: #FF9800;
  --orange-600: #FB8C00;
  --orange-700: #F57C00;
  --orange-800: #EF6C00;
  --orange-900: #FF6D00;

  --white:      #FFFFFF;
  --gray-50:    #FAFAFA;
  --gray-100:   #F5F5F5;
  --gray-200:   #EEEEEE;
  --gray-300:   #E0E0E0;
  --gray-400:   #BDBDBD;
  --gray-500:   #9E9E9E;
  --gray-600:   #757575;
  --gray-700:   #616161;
  --gray-800:   #424242;
  --gray-900:   #212121;

  --primary:    var(--green-800);
  --primary-light: var(--green-500);
  --primary-dark: var(--green-900);
  --accent:     var(--orange-600);
  --accent-light: var(--orange-300);
  --accent-dark: var(--orange-900);
  --bg:         var(--white);
  --bg-alt:     var(--gray-50);
  --text:       var(--gray-900);
  --text-light: var(--gray-600);
  --border:     var(--gray-200);

  --shadow-sm:   0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 30px rgba(27,94,32,0.15);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans:  'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: none;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  border-radius: 2px;
}

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

.section-subtitle {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(27,94,32,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27,94,32,0.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--orange-600), var(--orange-800));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255,109,0,0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,109,0,0.4);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 42px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ---------- Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--green-50);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 40%, var(--green-700) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,109,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orange-200);
  margin-bottom: 2rem;
   backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--orange-400);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--orange-300), var(--orange-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 580px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat .number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange-300);
  display: block;
}

.hero-stat .label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0;
}

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

/* ---------- Floating Shapes (Hero BG) ---------- */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--white);
}

.hero-shapes .shape:nth-child(1) {
  width: 400px; height: 400px;
  top: 10%; right: 5%;
  animation: float 20s ease-in-out infinite;
}

.hero-shapes .shape:nth-child(2) {
  width: 250px; height: 250px;
  bottom: 15%; left: 8%;
  animation: float 15s ease-in-out infinite reverse;
}

.hero-shapes .shape:nth-child(3) {
  width: 150px; height: 150px;
  top: 40%; right: 30%;
  background: var(--orange-400);
  opacity: 0.08;
  animation: float 18s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(5deg); }
  50% { transform: translate(-10px, 20px) rotate(-3deg); }
  75% { transform: translate(15px, 10px) rotate(2deg); }
}

/* ---------- Features / Cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-icon.green {
  background: var(--green-50);
  color: var(--green-700);
}

.feature-icon.orange {
  background: var(--orange-50);
  color: var(--orange-700);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
}

/* ---------- How It Works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 3rem;
  counter-reset: step;
}

.step-card {
  text-align: center;
  position: relative;
  padding: 40px 24px;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px rgba(27,94,32,0.25);
}

.step-card h4 {
  margin-bottom: 0.75rem;
}

.step-connector {
  display: none;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--orange-300);
  display: block;
  line-height: 1.1;
}

.stat-item .stat-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
  margin-top: 0.5rem;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: var(--orange-500);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.testimonial-info span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,109,0,0.15), transparent 70%);
  border-radius: 50%;
}

.cta-content {
  text-align: center;
  color: var(--white);
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.cta-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--green-600);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.5);
  font-size: 0.92rem;
  transition: all var(--transition);
}

.footer-col a:hover {
  color: var(--orange-400);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.95rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text);
  transition: all var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(27,94,32,0.08);
}

.form-control::placeholder {
  color: var(--gray-400);
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23757575' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
}

.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-error {
  font-size: 0.82rem;
  color: #d32f2f;
  margin-top: 4px;
}

/* ---------- Auth Pages ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--green-50), var(--white));
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
}

.auth-card .logo {
  justify-content: center;
  margin-bottom: 2rem;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.auth-card .auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-light);
}

.auth-card .auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

.auth-card .auth-footer a:hover {
  color: var(--accent);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 1.5rem 0;
  color: var(--gray-400);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ---------- Alert / Flash Messages ---------- */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: var(--green-50);
  color: var(--green-800);
  border: 1px solid var(--green-200);
}

.alert-error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
}

.alert-warning {
  background: var(--orange-50);
  color: var(--orange-800);
  border: 1px solid var(--orange-200);
}

.alert-info {
  background: #E3F2FD;
  color: #1565C0;
  border: 1px solid #BBDEFB;
}

/* ---------- Dashboard ---------- */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 80px;
}

.dashboard-sidebar {
  width: 280px;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 32px 0;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--primary);
  background: var(--green-50);
  border-left-color: var(--primary);
}

.sidebar-nav a .nav-icon {
  width: 20px;
  text-align: center;
}

.dashboard-main {
  flex: 1;
  padding: 40px;
  background: var(--gray-50);
  min-width: 0;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 1.8rem;
}

/* ---------- Dashboard Stats Cards ---------- */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-card-icon.green { background: var(--green-50); color: var(--green-700); }
.stat-card-icon.orange { background: var(--orange-50); color: var(--orange-700); }
.stat-card-icon.blue { background: #E3F2FD; color: #1565C0; }
.stat-card-icon.red { background: #FFEBEE; color: #C62828; }

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.stat-card .stat-name {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
  margin-bottom: 0;
}

/* ---------- Data Table ---------- */
.table-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.table-header h3 {
  font-size: 1.1rem;
}

.table-search {
  padding: 10px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  width: 260px;
  transition: all var(--transition);
}

.table-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(27,94,32,0.08);
}

data-table {
  width: 100%;
  border-collapse: collapse;
}

data-table th,
data-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.9rem;
}

data-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

data-table td {
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

data-table tbody tr:hover {
  background: var(--green-50);
}

data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Status Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-green { background: var(--green-50); color: var(--green-800); }
.badge-orange { background: var(--orange-50); color: var(--orange-800); }
.badge-blue { background: #E3F2FD; color: #1565C0; }
.badge-red { background: #FFEBEE; color: #C62828; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-yellow { background: #FFF8E1; color: #F57F17; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
}

.pagination a:hover {
  background: var(--green-50);
  color: var(--primary);
}

.pagination .active {
  background: var(--primary);
  color: var(--white);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: all var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1.2rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: all var(--transition);
  font-size: 1.2rem;
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.modal-body {
  padding: 28px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
}

/* ---------- Admin Sidebar (Dark) ---------- */
.admin-sidebar {
  background: var(--gray-900) !important;
  border-right-color: rgba(255,255,255,0.06) !important;
}

.admin-sidebar .sidebar-nav a {
  color: rgba(255,255,255,0.55);
  border-left-color: transparent;
}

.admin-sidebar .sidebar-nav a:hover,
.admin-sidebar .sidebar-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border-left-color: var(--orange-500);
}

.admin-sidebar .sidebar-brand {
  padding: 0 28px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}

.admin-sidebar .sidebar-brand .logo {
  color: var(--white);
}

/* ---------- Application Detail ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-group {
  margin-bottom: 1.5rem;
}

.detail-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.detail-group .detail-value {
  font-size: 1rem;
  color: var(--gray-800);
  line-height: 1.6;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--green-100);
}

.timeline-item .timeline-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.timeline-item .timeline-content {
  font-size: 0.92rem;
  color: var(--gray-700);
}

/* ---------- Page Content ---------- */
.page-header {
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  padding: 140px 0 60px;
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.5);
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* ---------- Content Card ---------- */
.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.content-card h3 {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ---------- File Upload ---------- */
.file-upload {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.file-upload:hover {
  border-color: var(--primary);
  background: var(--green-50);
}

.file-upload .upload-icon {
  font-size: 2.5rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.file-upload p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.file-upload small {
  color: var(--gray-400);
  font-size: 0.8rem;
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state .empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

.empty-state h3 {
  margin-bottom: 0.75rem;
}

/* ---------- Notification Dropdown ---------- */
.notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  z-index: 100;
  display: none;
}

.notif-dropdown.show {
  display: block;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
  cursor: pointer;
}

.notif-item:hover {
  background: var(--gray-50);
}

.notif-item.unread {
  background: var(--green-50);
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ---------- Loading Spinner ---------- */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-sidebar {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  /* Mobile Navigation */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 30px 40px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition);
    z-index: 999;
    gap: 4px;
  }

  .nav.open {
    right: 0;
  }

  .nav a {
    padding: 14px 20px;
    font-size: 1rem;
    width: 100%;
    border-radius: var(--radius-md);
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-actions .btn-mobile-show {
    display: inline-flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Stats Bar */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-item .stat-number {
    font-size: 2rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Dashboard */
  .dashboard-layout {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    padding: 16px 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    padding: 0 16px;
    gap: 4px;
  }

  .sidebar-nav a {
      white-space: nowrap;
      border-left: none !important;
      border-bottom: 2px solid transparent;
      padding: 10px 16px;
      font-size: 0.82rem;
    }

  .sidebar-nav a.active {
      border-left-color: transparent !important;
      border-bottom-color: var(--primary);
    }

  .dashboard-main {
    padding: 24px 16px;
  }

  .stats-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  /* Tables responsive */
  .table-header {
    flex-direction: column;
    align-items: stretch;
  }

  .table-search {
    width: 100%;
  }

  .table-container {
    overflow-x: auto;
  }

  data-table {
    min-width: 600px;
  }

  /* Auth */
  .auth-card {
    padding: 36px 24px;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Modal */
  .modal {
    max-width: 95%;
    margin: 10px;
  }

  .modal-body {
    padding: 20px;
  }

  /* Tabs */
  .tabs {
    overflow-x: auto;
    gap: 0;
  }

  .tab-btn {
    white-space: nowrap;
    padding: 10px 16px;
  }

  /* Notification dropdown */
  .notif-dropdown {
    position: fixed;
    top: 80px;
    right: 10px;
    left: 10px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .hero h1 { font-size: 2rem; }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-item .stat-number {
    font-size: 1.6rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .page-header {
    padding: 120px 0 40px;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .header, .footer, .dashboard-sidebar, .mobile-toggle, .btn {
    display: none !important;
  }

  .dashboard-layout {
    display: block;
  }

  .dashboard-main {
    padding: 0;
  }
}
