/* ============================================
   Fundación Vegueta — Sitio Web Hiper Moderno
   Tema Claro — Confianza & Seguridad
   ============================================ */

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

:root {
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef1f6;
  --bg-card: #ffffff;
  --bg-card-hover: #f4f6fa;
  --text-primary: #1a1d2e;
  --text-secondary: #5a5f7a;
  --text-muted: #8b90a7;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-glow: rgba(37, 99, 235, 0.06);
  --accent-2: #e8457c;
  --accent-3: #16a34a;
  --accent-4: #d97706;
  --accent-5: #9333ea;
  --gradient-1: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-2: linear-gradient(135deg, #e8457c 0%, #f59e0b 100%);
  --gradient-3: linear-gradient(135deg, #16a34a 0%, #2563eb 100%);
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(37, 99, 235, 0.2);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.05);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.12), 0 8px 30px rgba(37, 99, 235, 0.06);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 8px 32px rgba(37, 99, 235, 0.1), 0 2px 8px rgba(0,0,0,0.05);
  --font-main: 'Inter', -apple-system, system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-light) var(--bg-tertiary);
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-tertiary); }
::-webkit-scrollbar-thumb { background: var(--accent-light); border-radius: 3px; }

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

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

/* === Custom Cursor === */
.custom-cursor {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease, opacity 0.3s ease;
  mix-blend-mode: difference;
}

.custom-cursor-trail {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(37, 99, 235, 0.25);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s, height 0.3s;
  mix-blend-mode: difference;
}

body.cursor-hover .custom-cursor {
  transform: scale(3);
  background: var(--accent);
  opacity: 0.7;
}

body.cursor-hover .custom-cursor-trail {
  width: 56px;
  height: 56px;
  border-color: rgba(37, 99, 235, 0.1);
}

@media (max-width: 1024px) {
  .custom-cursor, .custom-cursor-trail { display: none; }
}

/* === Loader === */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  gap: 3px;
  margin-bottom: 40px;
}

.loader-letter {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0;
  transform: translateY(30px);
  animation: loaderLetter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i) * 0.1s) forwards;
}

@keyframes loaderLetter {
  to { opacity: 1; transform: translateY(0); }
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: var(--gradient-1);
  width: 0;
  animation: loaderBar 2s ease-in-out forwards;
  border-radius: 2px;
}

@keyframes loaderBar {
  to { width: 100%; }
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-smooth);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.nav-logo-icon {
  color: var(--accent);
  font-size: 14px;
  animation: navLogoSpin 8s linear infinite;
}

@keyframes navLogoSpin {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition-fast);
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover { color: var(--accent); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: 100px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.nav-cta:hover::before {
  transform: translateX(100%);
}

.nav-cta:hover {
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { padding: 0 20px; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(248, 249, 252, 0.98);
  backdrop-filter: blur(40px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-link {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-menu.active .mobile-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.3s; }

.mobile-link:hover { color: var(--accent); }

.mobile-link-cta {
  color: white !important;
  background: var(--accent);
  margin-top: 16px;
  padding: 14px 36px;
  border-radius: 100px;
  font-size: 24px;
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 40px 80px;
  background: linear-gradient(170deg, #f0f4ff 0%, #f8f9fc 40%, #fdf2f8 70%, #f8f9fc 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(37, 99, 235, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 30% 60%, rgba(124, 58, 237, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(232, 69, 124, 0.03) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: white;
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-3);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: 100px;
  padding: 16px 32px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
}

.btn-primary:hover .btn-shine {
  animation: btnShine 0.8s ease forwards;
}

@keyframes btnShine {
  to { transform: translateX(100%); }
}

.btn-ghost {
  background: white;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-md);
}

.btn-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-ghost:hover .btn-icon-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: rotate(90deg);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -40px;
  width: 100%;
  height: 40px;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -40px; }
  100% { top: 40px; }
}

.hero-scroll span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Hero Stats */
.hero-stats {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: center;
  gap: 48px;
  z-index: 2;
}

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

.hero-stat-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-display);
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  align-self: center;
}

@media (max-width: 768px) {
  .hero { padding: 100px 20px 120px; }
  .hero-stats { position: relative; bottom: auto; left: auto; right: auto; flex-wrap: wrap; gap: 24px; margin-top: 48px; }
  .hero-stat-divider { display: none; }
}

/* === Sections === */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text-primary);
}

.section-title em {
  font-style: normal;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* === Mission Cards === */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

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

.mission-card:hover::before { opacity: 1; }

.mission-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  color: var(--accent);
}

.mission-card-icon-glow {
  position: absolute;
  inset: -8px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  filter: blur(12px);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.mission-card:hover .mission-card-icon-glow { opacity: 1; }

.mission-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.mission-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.mission-card-line {
  width: 32px;
  height: 3px;
  background: var(--gradient-1);
  margin-top: 24px;
  border-radius: 2px;
  transition: width var(--transition-smooth);
}

.mission-card:hover .mission-card-line { width: 64px; }

@media (max-width: 768px) {
  .mission-grid { grid-template-columns: 1fr; }
}

/* === Map Section === */
.map-section {
  background: var(--bg-secondary);
}

.map-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.map-container {
  position: relative;
  aspect-ratio: 383/369;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.rd-map {
  width: 100%;
  height: 100%;
}

.island-path {
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.1));
}

.map-province-label {
  font-size: 14px;
  fill: rgba(37, 99, 235, 0.2);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.map-country-label {
  font-size: 10px;
  fill: rgba(0, 0, 0, 0.12);
  letter-spacing: 1px;
  font-weight: 600;
}

.map-connections {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  bottom: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  pointer-events: none;
}

.map-points {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.map-point {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
}

.map-point-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--point-color, var(--accent));
  position: relative;
  transition: transform var(--transition-bounce);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 2px solid white;
}

.map-point:hover .map-point-inner {
  transform: scale(1.8);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.map-point-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--point-color, var(--accent));
  animation: mapPulse 2.5s ease-out infinite;
  opacity: 0;
}

.map-point:nth-child(odd) .map-point-pulse { animation-delay: 0.5s; }

@keyframes mapPulse {
  0% { transform: scale(0.5); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

.map-point-label {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
  background: white;
  padding: 3px 10px;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.map-point:hover .map-point-label { opacity: 1; }

/* Map Detail Panel */
.map-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 100px;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.map-detail-video {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}

.map-detail-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-animated-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
  background-size: 400% 400%;
  animation: videoBgShift 6s ease infinite;
}

@keyframes videoBgShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.video-play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.video-play-icon:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.video-label {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  font-weight: 500;
  text-align: center;
  max-width: 80%;
  line-height: 1.4;
}

.map-detail-info {
  padding: 24px;
}

.map-detail-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.map-detail-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.map-detail-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.map-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.detail-stat {
  text-align: center;
  padding: 14px 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.detail-stat-num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--accent);
}

.detail-stat-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  font-weight: 600;
}

/* Map Legend */
.map-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color, var(--accent));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--color, var(--accent)) 30%, transparent);
  border: 2px solid white;
}

@media (max-width: 1024px) {
  .map-wrapper { grid-template-columns: 1fr; }
  .map-detail { position: static; }
}

/* === Program Cards === */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

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

.program-card-visual {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.program-card-visual-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-smooth);
}

.program-card:hover .program-card-visual-inner {
  transform: scale(1.05);
}

.program-card-visual-inner[--theme="education"] {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #eff6ff 100%);
}

.program-card-visual-inner[--theme="health"] {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fdf2f8 100%);
}

.program-card-visual-inner[--theme="environment"] {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #f0fdf4 100%);
}

.program-card-visual-inner[--theme="food"] {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%);
}

.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.floating-shapes .shape {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(37, 99, 235, 0.08);
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.02);
  animation: floatShape 8s ease-in-out infinite;
}

.floating-shapes .shape:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.floating-shapes .shape:nth-child(2) { top: 60%; left: 70%; animation-delay: -2s; width: 24px; height: 24px; }
.floating-shapes .shape:nth-child(3) { top: 40%; left: 50%; animation-delay: -4s; width: 16px; height: 16px; }

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.program-svg {
  width: 64px;
  height: 64px;
  color: var(--accent);
  opacity: 0.5;
  position: relative;
  z-index: 1;
}

.program-card-content {
  padding: 32px;
}

.program-card-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.program-card-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.program-card-content p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.program-card-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.program-card-stats span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.program-card-stats strong {
  color: var(--accent);
}

.program-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  transition: gap var(--transition-fast);
  font-family: var(--font-display);
}

.program-card-link:hover { gap: 10px; }

@media (max-width: 768px) {
  .programs-grid { grid-template-columns: 1fr; }
}

/* === Impact Section === */
.impact {
  background: linear-gradient(170deg, #f0f4ff 0%, #f8f9fc 40%, #faf5ff 70%, #f8f9fc 100%);
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.impact-video-inner {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

.impact-video-inner:hover .impact-play-btn {
  transform: scale(1.1);
}

.impact-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  color: var(--accent);
  transition: transform var(--transition-bounce);
  z-index: 1;
}

.impact-video-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.impact-text {
  padding-left: 32px;
  border-left: 3px solid var(--accent);
}

.impact-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.55;
  margin: 20px 0 28px;
  color: var(--text-primary);
}

.impact-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.impact-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.impact-author strong {
  display: block;
  font-size: 16px;
  font-family: var(--font-display);
}

.impact-author span {
  font-size: 13px;
  color: var(--text-muted);
}

.impact-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.impact-num {
  padding: 24px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.impact-num-value {
  font-size: 40px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--accent);
}

.impact-num-suffix {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.impact-num-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .impact-grid { grid-template-columns: 1fr; gap: 32px; }
  .impact-text { padding-left: 0; border-left: none; border-top: 3px solid var(--accent); padding-top: 32px; }
}

/* === Team Section === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  padding: 40px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

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

.team-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 20px;
  position: relative;
  font-family: var(--font-display);
}

.team-card-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  background: conic-gradient(from 0deg, var(--accent), transparent 60%, var(--accent) 100%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ringRotate 4s linear infinite;
}

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

.team-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card-role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* === Donate Section === */
.donate-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 80px 60px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
}

.donate-bg {
  position: absolute;
  inset: 0;
}

.donate-bg canvas {
  width: 100%;
  height: 100%;
}

.donate-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.donate-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: white;
}

.donate-title em {
  font-style: normal;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.donate-desc {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
}

.donate-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.donate-amount {
  padding: 16px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: center;
}

.donate-amount:hover,
.donate-amount.active {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(96, 165, 250, 0.1);
  transform: translateY(-2px);
}

.donate-amount-val {
  display: block;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
  color: white;
  font-family: var(--font-display);
}

.donate-amount-impact {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  line-height: 1.3;
}

.donate-custom-input {
  margin-bottom: 24px;
}

.donate-custom-input input {
  width: 100%;
  padding: 16px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: white;
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  outline: none;
  transition: border-color var(--transition-fast);
}

.donate-custom-input input:focus {
  border-color: rgba(96, 165, 250, 0.5);
}

.donate-custom-input input::placeholder {
  color: rgba(255,255,255,0.3);
}

.btn-donate-final {
  width: 100%;
  justify-content: center;
  font-size: 18px;
  padding: 20px 40px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn-donate-final:hover {
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
}

.donate-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.donate-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.donate-trust-item svg {
  width: 18px;
  height: 18px;
  color: #60a5fa;
}

@media (max-width: 768px) {
  .donate-wrapper { padding: 48px 24px; border-radius: var(--radius-lg); }
  .donate-amounts { grid-template-columns: repeat(2, 1fr); }
}

/* === Partners === */
.partners {
  padding: 80px 0;
  overflow: hidden;
  background: var(--bg-secondary);
}

.partners-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.partners-track {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: fit-content;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-item {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.25;
  transition: opacity var(--transition-fast);
  padding: 16px 0;
}

.partner-item:hover { opacity: 0.6; }

/* === Footer === */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

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

.footer-brand p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-top: 16px;
}

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

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.footer-links h5,
.footer-contact h5 {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color var(--transition-fast);
  font-weight: 500;
}

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

.footer-contact p {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

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

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* === Toast === */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: white;
  border: 1px solid var(--accent);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2);
  z-index: 10001;
  opacity: 0;
  transition: all var(--transition-bounce);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.toast-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* === Reveal Animations === */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === Magnetic button effect === */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Selection === */
::selection {
  background: rgba(37, 99, 235, 0.2);
  color: var(--text-primary);
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === Media Filters === */
.media-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.media-filter {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-secondary);
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.media-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.media-filter.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* === Media Type Toggle === */
.media-type-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.media-type-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.media-type-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.media-type-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* === Media Grid === */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.media-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

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

.media-card-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.media-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.media-card:hover .media-card-thumb img {
  transform: scale(1.05);
}

.media-card-type {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.media-card-type.type-image {
  background: rgba(37, 99, 235, 0.9);
  color: white;
}

.media-card-type.type-video {
  background: rgba(232, 69, 124, 0.9);
  color: white;
}

.media-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 2;
  transition: transform var(--transition-bounce);
}

.media-card:hover .media-card-play {
  transform: translate(-50%, -50%) scale(1.1);
}

.media-card-play svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-left: 3px;
}

.media-card-category {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  z-index: 2;
}

.media-card-body {
  padding: 20px;
}

.media-card-body h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-card-body p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.media-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.media-card.hidden {
  display: none;
}

.media-load-more {
  text-align: center;
  margin-top: 32px;
}

/* === Upload Section === */
.upload-section {
  background: var(--bg-tertiary);
}

.upload-wrapper {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.upload-header {
  text-align: center;
  margin-bottom: 32px;
}

.upload-header .section-title {
  font-size: clamp(24px, 3vw, 36px);
}

.upload-area {
  max-width: 700px;
  margin: 0 auto;
}

.upload-dropzone {
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-primary);
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.upload-dropzone.drag-over {
  transform: scale(1.02);
}

.upload-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.upload-icon svg {
  width: 100%;
  height: 100%;
}

.upload-dropzone h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.upload-dropzone p {
  font-size: 14px;
  color: var(--text-secondary);
}

.upload-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Upload Form */
.upload-form {
  max-width: 700px;
  margin: 0 auto;
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.upload-preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--accent);
}

.upload-preview-item img,
.upload-preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview-item .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

.upload-preview-item .remove-btn:hover {
  background: #e8457c;
}

.upload-field-group {
  margin-bottom: 16px;
}

.upload-field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.upload-field-group input,
.upload-field-group textarea,
.upload-field-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-main);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.upload-field-group input:focus,
.upload-field-group textarea:focus,
.upload-field-group select:focus {
  border-color: var(--accent);
}

.upload-field-group textarea {
  resize: vertical;
  min-height: 80px;
}

.upload-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.upload-actions .btn-ghost {
  color: var(--text-muted);
}

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-content {
  max-width: 900px;
  width: 90%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.lightbox-media {
  width: 100%;
  max-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.lightbox-media img,
.lightbox-media video {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.lightbox-info {
  background: white;
  padding: 24px 28px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.lightbox-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.lightbox-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.lightbox-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.lightbox-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 768px) {
  .media-grid { grid-template-columns: 1fr; }
  .upload-wrapper { padding: 24px; }
  .lightbox-content { width: 95%; }
  .lightbox-media { max-height: 40vh; }
  .lightbox-media img, .lightbox-media video { max-height: 40vh; }
}