/* ============================================================
   eFact Diagnóstico de Maturidade em IA - Stylesheet
   Identity: eFact Software + Produttare
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* eFact Brand Colors */
  --efact-teal: #00d4aa;
  --efact-teal-hover: #00b894;
  --efact-teal-light: rgba(0, 212, 170, 0.1);
  --efact-teal-glow: rgba(0, 212, 170, 0.3);
  --efact-navy: #0a1628;
  --efact-navy-light: #0d2137;
  --efact-deep-blue: #001c71;
  --efact-orange: #f5a623;
  --efact-orange-hover: #e09520;

  /* Dark Theme (default) */
  --bg-primary: #0a1628;
  --bg-secondary: #0d2137;
  --bg-card: rgba(13, 33, 55, 0.9);
  --bg-card-hover: rgba(13, 33, 55, 1);
  --bg-input: rgba(0, 28, 113, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #e0e0e8;
  --text-muted: #b0b0b0;
  --border-color: rgba(0, 212, 170, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(0, 212, 170, 0.15);

  /* Maturity Level Colors */
  --level-1: #ef4444;
  --level-2: #f97316;
  --level-3: #eab308;
  --level-4: #22c55e;
  --level-5: #3b82f6;

  /* Spacing */
  --section-padding: 80px 0;
  --container-max: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f1f5f9;
  --text-primary: #0a1628;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: rgba(0, 212, 170, 0.3);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px rgba(0, 212, 170, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

a {
  color: var(--efact-teal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--efact-teal-hover);
}

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

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Utility Classes ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--efact-teal), var(--efact-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.teal-text { color: var(--efact-teal); }
.orange-text { color: var(--efact-orange); }

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--efact-teal), var(--efact-teal-hover));
  color: #0a1628;
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 212, 170, 0.4);
  color: #0a1628;
}

.btn-secondary {
  background: transparent;
  color: var(--efact-teal);
  border: 2px solid var(--efact-teal);
}

.btn-secondary:hover {
  background: var(--efact-teal-light);
  transform: translateY(-2px);
}

.btn-orange {
  background: linear-gradient(135deg, var(--efact-orange), var(--efact-orange-hover));
  color: #0a1628;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 166, 35, 0.4);
  color: #0a1628;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: 14px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s;
}

[data-theme="light"] .navbar {
  background: rgba(248, 250, 252, 0.92);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  height: 36px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.navbar-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--efact-teal);
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.theme-toggle:hover {
  border-color: var(--efact-teal);
  box-shadow: var(--shadow-glow);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- Hero Section ---- */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--efact-teal-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 28, 113, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--efact-teal-light);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--efact-teal);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--efact-teal);
}

.hero-stat p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ---- Section Common ---- */
.section {
  padding: var(--section-padding);
  position: relative;
}

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

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--efact-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--efact-teal);
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- Pillar Grid ---- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* ---- Maturity Levels ---- */
.levels-timeline {
  display: flex;
  gap: 0;
  position: relative;
  margin: 40px 0;
}

.level-item {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.level-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 0.9rem;
}

.level-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.level-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Partners Section ---- */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.partner-card {
  text-align: center;
}

.partner-card img {
  height: 44px;
  margin: 0 auto 20px;
  display: block;
  object-fit: contain;
  max-width: 200px;
}

.partner-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.partner-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- Assessment Page ---- */
.assessment-container {
  padding: 120px 0 60px;
  min-height: 100vh;
}

/* Progress Bar */
.progress-container {
  margin-bottom: 40px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.progress-header span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-input);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--efact-teal), var(--efact-orange));
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* Pillar Tabs */
.pillar-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.pillar-tab {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.3s;
  font-family: inherit;
}

.pillar-tab.active {
  background: var(--efact-teal);
  color: #0a1628;
  border-color: var(--efact-teal);
}

.pillar-tab.completed {
  border-color: var(--efact-teal);
  color: var(--efact-teal);
}

/* Question Card */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.question-card:hover {
  border-color: var(--border-color);
}

.question-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--efact-teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.question-text {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.question-explanation {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-style: italic;
}

/* Scale Options */
.scale-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.scale-option {
  flex: 1;
  min-width: 100px;
  padding: 12px 8px;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
  font-family: inherit;
}

.scale-option:hover {
  border-color: var(--efact-teal);
  background: var(--efact-teal-light);
}

.scale-option.selected {
  border-color: var(--efact-teal);
  background: var(--efact-teal);
  color: #0a1628;
}

.scale-value {
  font-size: 1.3rem;
  font-weight: 800;
  display: block;
}

.scale-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
  display: block;
  color: var(--text-muted);
}

.scale-option.selected .scale-label {
  color: #0a1628;
}

/* Navigation Buttons */
.assessment-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* ---- Lead Form ---- */
.lead-form-container {
  padding: 120px 0 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.lead-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.lead-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.lead-form-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.lead-form-header p {
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group label .required {
  color: var(--efact-orange);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--efact-teal);
  box-shadow: 0 0 0 3px var(--efact-teal-light);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

/* ---- Results Page ---- */
.results-container {
  padding: 120px 0 60px;
  min-height: 100vh;
}

.results-header {
  text-align: center;
  margin-bottom: 48px;
}

.results-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.overall-score-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: var(--shadow-glow);
}

.score-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.score-circle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--efact-teal), var(--efact-orange));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.score-value {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.score-max {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.maturity-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 16px;
}

.maturity-description {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 16px auto 0;
}

/* Radar Chart */
.radar-section {
  margin-bottom: 40px;
}

.radar-wrapper {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* Pillar Scores Grid */
.pillar-scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.pillar-score-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
}

.pillar-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pillar-score-header h4 {
  font-size: 1rem;
  font-weight: 700;
}

.pillar-score-value {
  font-size: 1.5rem;
  font-weight: 800;
}

.pillar-score-bar {
  height: 6px;
  background: var(--bg-input);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.pillar-score-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease;
}

.pillar-score-level {
  font-size: 0.8rem;
  font-weight: 600;
}

/* Recommendations */
.recommendations-section {
  margin-bottom: 40px;
}

.recommendation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
}

.recommendation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  cursor: pointer;
}

.recommendation-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.recommendation-toggle {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.recommendation-toggle.open {
  transform: rotate(180deg);
}

.recommendation-diagnosis {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.recommendation-timeline {
  display: grid;
  gap: 16px;
}

.timeline-block h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-block ul {
  list-style: none;
  padding: 0;
}

.timeline-block li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.timeline-block li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--efact-teal);
  font-weight: 700;
}

/* PDF Button */
.results-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

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

.footer-brand img {
  height: 32px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--efact-teal);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--efact-teal);
}

.footer-contact p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--efact-teal-glow);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--efact-teal);
}

/* ---- Admin Page ---- */
.admin-container {
  padding: 120px 0 60px;
  min-height: 100vh;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.admin-stat-card h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--efact-teal);
}

.admin-stat-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: var(--bg-input);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.admin-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.admin-table tr:hover td {
  background: var(--efact-teal-light);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

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

  .section-title {
    font-size: 1.8rem;
  }

  .navbar-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
  }

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

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

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

  .scale-options {
    flex-direction: column;
  }

  .scale-option {
    min-width: auto;
  }

  .levels-timeline {
    flex-direction: column;
    gap: 16px;
  }

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

  .btn-lg {
    width: 100%;
  }

  .pillar-scores-grid {
    grid-template-columns: 1fr;
  }

  .overall-score-card {
    padding: 32px 20px;
  }

  .admin-table {
    font-size: 0.8rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 8px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 16px;
  }

  .pillar-tab {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}

/* ---- Loading Spinner ---- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

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

/* ---- Toast Notification ---- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: var(--efact-teal);
  color: #0a1628;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: 0 8px 30px rgba(0, 212, 170, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  background: #ef4444;
  color: #fff;
}
