/* ===== Combined Styles from index.html ===== */

/* === Style Block 1 === */
:root {
  --bg-image: url('../assets/images/background.jpg');
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: #fff;
  background: #000;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.fade-in {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}

/* ===== Header cápsula con marcador activo ===== */
header.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.nav-shell {
  width: 94vw;
  /* Fallback */
  width: min(1200px, 94vw);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  position: relative;
  overflow: hidden;
}

.nav-shell::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  left: -1px;
  background: conic-gradient(from 0deg, #00f0ff, #ff00d4, #00f0ff);
  -webkit-filter: blur(22px);
  filter: blur(22px);
  opacity: .14;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.brand img {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, .1)
}

.brand .title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Toggle (mobile) === */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.menu-toggle:focus-visible {
  outline: 2px solid #00f0ff;
  outline-offset: 2px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 18px
}

.menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  opacity: .9;
  transition: opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.menu a:hover {
  opacity: 1
}

.menu a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, #00f0ff, #ff00d4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  border-radius: 2px;
}

.menu a:hover::after {
  transform: scaleX(1);
}

.menu a[aria-current="page"] {
  opacity: 1
}

.menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* User section */
.user-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.user-info:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff, #ff00d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Profile Modal Hover Overlay */
.profile-avatar-container:hover .profile-avatar-overlay {
  opacity: 1 !important;
}

.user-name {
  font-weight: 600;
  font-size: 13px;
}

/* Mobile: user section in header */
@media (max-width: 900px) {
  .user-section #user-display .user-info {
    padding: 4px 8px;
  }

  .user-section #user-display .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .user-section #user-display .user-name {
    display: none;
  }

  .user-section #login-btn {
    padding: 0 12px;
    font-size: 12px;
    height: 36px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 32px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  text-decoration: none;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3)
}

.btn.primary {
  border: 0;
  background: linear-gradient(90deg, #00f0ff, #ff00d4);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.btn.ghost {
  background: rgba(255, 255, 255, .06);
}

/* ===== Full Page Scroll Sections ===== */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.scroll-container {
  width: 100%;
}

.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  /* Vertically center content */
  justify-content: flex-start;
  /* Left align content */
  padding-left: 10vw;
  padding-right: 10vw;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: left;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 1.5rem 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 90%;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #fff;
  transition: width 0.3s ease;
  z-index: -1;
}

.hero-btn:hover {
  color: #000;
}

.hero-btn:hover::after {
  width: 100%;
}

.hero-btn-yt:hover {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(255,0,0,0.35), rgba(200,0,0,0.2)) !important;
  border-color: rgba(255,50,50,0.6) !important;
}
.hero-btn-yt:hover::after {
  width: 0 !important;
}

/* ===== Next Mission Ticker (Top Banner) ===== */
.next-mission-ticker-top {
  position: fixed;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 30px;
  z-index: 1100; /* Above header (1000) */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.next-mission-ticker-top:hover {
  background: rgba(0, 224, 255, 0.1);
  border-color: rgba(0, 224, 255, 0.5);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 224, 255, 0.2);
}

.next-mission-ticker-top .ticker-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #00e0ff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.next-mission-ticker-top .ticker-mission-name {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding-right: 10px;
}

.next-mission-ticker-top .ticker-countdown {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}
/* ===== Latest Mission Section (Section 0) ===== */
.section-last-mission {
  background-image: url('../assets/images/background.jpg'); /* Default, will be overridden or kept if same */
  position: relative;
  overflow: hidden;
  display: flex !important;
}

.section-last-mission::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
  z-index: 1;
}

.section-last-mission .hero-content {
  z-index: 2;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#aion-landing .hero-video {
  opacity: 0.95;
  filter: brightness(1.12) saturate(1.15);
}

.mission-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: #00f0ff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 8px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  text-transform: uppercase;
}

.mission-success-badge svg {
  filter: drop-shadow(0 0 5px #00f0ff);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Background Images & Animations */
.section-catch {
  background-image: url('../assets/images/catchINDEX.png');
  position: relative;
  overflow: hidden;
}

.hero-bg-rotate {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/vorticINDEX.png');
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: crossfade 16s infinite alternate ease-in-out;
  z-index: 0;
}

.section-catch::before {
  z-index: 1;
  /* Ensure gradient is above rotating backgrounds but below content */
}

@keyframes crossfade {

  0%,
  10% {
    opacity: 0;
  }

  90%,
  100% {
    opacity: 1;
  }
}

.section-sats {
  background-image: url('../assets/images/satsINDEX.png');
}

/* Order section */
.section-order-sat {
  background: #000;
  position: relative;
  overflow: hidden;
}
.section-order-sat {
  height: 82vh !important;
}
.section-order-sat .hero-content {
  position: relative;
  z-index: 2;
}
@media (max-width: 768px) {
  .section-order-sat img[alt="EsZunSat"] { width:260px !important; right:3% !important; }
}
@media (max-width: 480px) {
  .section-order-sat img[alt="EsZunSat"] { width:180px !important; right:2% !important; }
}
.order-3d-scene {
  position: relative;
  z-index: 1;
}
.order-3d-scene canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Footer overrides for scroll layout */
footer {
  position: relative;
  background: #000;
  padding: 40px 0;
  z-index: 10;
  margin-top: 0;
  bottom: auto;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-socials a {
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.footer-socials svg {
  width: 24px;
  height: 24px;
}

/* ===== YouTube Section (Horizontal Carousel Layout) ===== */
/* ============================================
   YOUTUBE SECTION — MODERN
   ============================================ */
.section-yt {
  position: relative;
  width: 100%;
  background:
    radial-gradient(90% 60% at 85% 0%, rgba(255, 0, 0, 0.07), transparent 60%),
    radial-gradient(70% 50% at 0% 110%, rgba(255, 0, 0, 0.05), transparent 60%),
    #050508;
  padding: 100px 6vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: auto !important;
  min-height: 100vh;
}

.yt-bg-glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.09) 0%, transparent 70%);
  pointer-events: none;
  animation: ytGlowDrift 14s ease-in-out infinite alternate;
}

@keyframes ytGlowDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 45px) scale(1.18); }
}

.yt-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1300px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Header */
.yt-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.yt-header-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.yt-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.25);
  padding: 8px 18px;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #ff4d4d;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.12);
}

.yt-brand-icon {
  width: 14px;
  height: 14px;
}

.yt-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.yt-meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
  animation: ytMetaPulse 1.6s ease-in-out infinite;
}

@keyframes ytMetaPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.yt-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

.yt-title-accent {
  background: linear-gradient(120deg, #ff8a7a, #ff3333 45%, #ff5c5c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.yt-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff0000, rgba(255, 0, 0, 0));
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.5);
}

.yt-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 520px;
  margin: 0;
}

.yt-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.yt-chan-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: linear-gradient(135deg, #ff2b2b, #b30000);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(255, 0, 0, 0.3);
}

.yt-chan-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(255, 0, 0, 0.45);
}

.yt-chan-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: none;
}

.yt-chan-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

/* Video Grid */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Card */
.yt-card {
  display: block;
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.yt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 0, 0, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.yt-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 0, 0, 0.5);
  box-shadow: 0 30px 60px rgba(255, 0, 0, 0.12), 0 18px 36px rgba(0, 0, 0, 0.45);
}

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

.yt-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0a0a0f;
}

/* sheen sweep on hover */
.yt-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.16) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.yt-card:hover .yt-card-media::after {
  transform: translateX(130%);
}

.yt-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  filter: saturate(0.9);
}

.yt-card:hover .yt-card-thumb {
  transform: scale(1.08);
  filter: saturate(1.15);
}

.yt-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.yt-card:hover .yt-card-overlay {
  opacity: 1;
}

.yt-play-btn {
  width: 56px;
  height: 56px;
  background: rgba(255, 0, 0, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding-left: 3px;
  box-shadow: 0 0 34px rgba(255, 0, 0, 0.55);
  transform: scale(0.7);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
}

.yt-card:hover .yt-play-btn {
  transform: scale(1);
}

.yt-card-watch {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  text-transform: uppercase;
  transform: translateY(6px);
  transition: transform 0.3s ease;
}

.yt-card:hover .yt-card-watch {
  transform: translateY(0);
}

.yt-card-body {
  position: relative;
  z-index: 1;
  padding: 18px 20px 20px;
}

.yt-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 8px;
}

.yt-card-date::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff0000;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

.yt-card-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* Featured video (first) */
.yt-card-featured {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(255, 0, 0, 0.07), rgba(255, 255, 255, 0.015));
}

.yt-card-featured .yt-card-media {
  aspect-ratio: 21 / 8;
}

.yt-card-featured .yt-card-overlay {
  opacity: 1;
  flex-direction: row-reverse;
  align-items: flex-end;
  justify-content: space-between;
  padding: 26px 30px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 45%, rgba(0, 0, 0, 0.75));
}

.yt-card-featured .yt-play-btn {
  width: 64px;
  height: 64px;
  transform: scale(1);
}

.yt-card-featured .yt-card-watch {
  font-size: 12px;
  letter-spacing: 2px;
  transform: none;
}

.yt-card-featured .yt-card-body {
  padding-top: 22px;
}

.yt-card-featured h3 {
  font-size: 18px;
}

/* Fill the remaining grid cell with the last card */
.yt-card-featured ~ .yt-card:last-child {
  grid-column: span 2;
}

/* Responsive */
@media (max-width: 1000px) {
  .yt-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .yt-card-featured ~ .yt-card:last-child {
    grid-column: auto;
  }

  .yt-card-featured .yt-card-media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 900px) {
  .yt-header-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .yt-chan-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .section-yt {
    padding: 60px 5vw;
  }

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

  .yt-card-featured ~ .yt-card:last-child {
    grid-column: auto;
  }

  .yt-card-featured .yt-card-media {
    aspect-ratio: 16 / 9;
  }

  .yt-card-body {
    padding: 14px 16px 16px;
  }
}

.brand-name {
  background-clip: text;
  -webkit-background-clip: text;
  margin: 0 16px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 11vw, 120px);
  text-transform: uppercase;
  background: linear-gradient(180deg, #e7f9ff, #bfe4ff 40%, #a6a6a6 60%, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  animation: fadeZoom 1.5s ease forwards;
  overflow: hidden;
  line-height: 1.05;
}

/* Efecto de brillo que cruza */
.brand-name::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .6) 50%, transparent 100%);
  animation: sheen 4s infinite;
}

@keyframes fadeZoom {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

  40% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}



/* Modal - Cross-browser compatible version */
.modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, .85);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  z-index: 999999;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-card {
  width: 96vw;
  /* Fallback */
  width: min(680px, 96vw);
  border-radius: 18px;
  background: rgba(22, 22, 24, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 18px 18px 16px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-transform: scale(0.9) translateY(20px);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.modal-overlay.show .modal-card {
  -webkit-transform: scale(1) translateY(0);
  transform: scale(1) translateY(0);
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.15rem;
  letter-spacing: .2px;
  font-weight: 700;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.form-group {
  position: relative;
  margin-bottom: 8px;
}

.form-group label {
  position: absolute;
  left: 16px;
  top: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.form-group input {
  width: 100%;
  padding: 24px 16px 8px;
  /* Adds space at top for label */
  height: 56px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s ease;
}

/* Floating Label Logic */
.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label {
  top: 8px;
  font-size: 11px;
  color: #00f0ff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.form-group input:focus {
  outline: none;
  border-color: #00f0ff;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.1);
}



.error-msg {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.error-msg.show {
  display: block;
}

.success-msg {
  color: #51cf66;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.success-msg.show {
  display: block;
}

.toggle-form {
  text-align: center;
  margin-top: 16px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.toggle-form a {
  color: #00f0ff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity .2s ease;
}

.toggle-form a:hover {
  opacity: .8
}

/* Google Button Styled */
.btn.google-btn {
  background: #fff;
  color: #1f1f1f;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border-radius: 12px;
  height: 50px;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  margin-bottom: 8px;
  width: 100%;
}

.btn.google-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

/* New Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.auth-divider span {
  padding: 0 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.modal-actions .btn {
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 12px;
}

/* =========================
       Responsive
       ========================= */
@media (max-width: 900px) {
  :root {
    --header-h: 56px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .nav-shell {
    padding: 0 10px;
    border-radius: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu {
    position: fixed;
    inset: calc(var(--header-h) + 8px) 8px auto 8px;
    right: 8px;
    left: 8px;
    top: calc(var(--header-h) + 12px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    background: rgba(18, 18, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 14px 12px;
    font-size: 13px;
    letter-spacing: .12em;
    border-radius: 10px;
  }

  .menu a::after {
    display: none;
  }

  .brand .title {
    font-size: 16px;
  }

  .user-section {
    display: flex;
  }

  .user-section .btn.ghost {
    display: none;
  }
}

@media (hover:none) {
  .menu a:hover::after {
    transform: none;
  }

  .menu a:hover {
    opacity: 1;
  }
}

/* Accesibilidad: respetar reduce-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* === Style Block 2 === */
/* ===== REDESIGNED CONTACT CHAT ===== */

/* Overlay */
.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.contact-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Card */
.contact-card {
  width: min(560px, 95vw);
  max-height: 88vh;
  background: rgba(16, 16, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.contact-overlay.show .contact-card {
  transform: translateY(0) scale(1);
}

/* Gradient accent bar */
.contact-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, #00e0ff, #a855f7, #ff00d4, #00e0ff);
  background-size: 300% 100%;
  animation: accentShimmer 4s linear infinite;
}

@keyframes accentShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Header */
.contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 224, 255, 0.15), rgba(168, 85, 247, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00e0ff;
  flex-shrink: 0;
}

.contact-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

.contact-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mute & Close buttons */
.chat-mute-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.chat-mute-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.chat-mute-btn.muted {
  background: rgba(255, 100, 100, 0.12);
  border-color: rgba(255, 100, 100, 0.2);
  color: #ff6b6b;
}

.contact-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.contact-close:hover {
  background: rgba(255, 100, 100, 0.12);
  border-color: rgba(255, 100, 100, 0.2);
  color: #ff6b6b;
}

/* ===== Login Required ===== */
.contact-login-required {
  padding: 50px 32px 40px;
  text-align: center;
}

.contact-login-visual {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.contact-login-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 224, 255, 0.2), transparent 70%);
  animation: glowPulse 2.5s ease-in-out infinite;
}

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

.contact-login-icon-wrap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-login-required h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.contact-login-required p {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.contact-login-required .btn.primary {
  display: inline-flex;
  align-items: center;
}

/* ===== Chat Area ===== */
.contact-chat {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  max-height: 65vh;
}

.contact-chat.conversations-only {
  min-height: auto;
  max-height: none;
}

/* ===== Conversations List (Admin) ===== */
.chat-conversations {
  max-height: 480px;
  overflow-y: auto;
}

.chat-conversations-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-conversations-header svg {
  color: #00e0ff;
}

.conversations-list {
  padding: 8px 10px;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  margin-bottom: 2px;
}

.conversation-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.conversation-item.active {
  background: rgba(0, 224, 255, 0.08);
  border-color: rgba(0, 224, 255, 0.2);
}

.conversation-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00e0ff, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.conversation-info {
  flex: 1;
  min-width: 0;
}

.conversation-name {
  font-weight: 600;
  font-size: 14px;
}

.conversation-preview {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.conversation-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 3px;
}

.conversation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.conversation-unread {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00e0ff;
  box-shadow: 0 0 8px rgba(0, 224, 255, 0.5);
}

.conversation-delete {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  padding: 4px;
}

.conversation-item:hover .conversation-delete {
  opacity: 0.5;
}

.conversation-delete:hover {
  opacity: 1 !important;
  transform: scale(1.15);
}

/* ===== Chat Partner Info Bar ===== */
.chat-partner-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.chat-back-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.chat-back-btn.show {
  display: flex;
}

.chat-partner-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.chat-partner-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00e0ff, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.chat-partner-avatar-wrap .status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border: 2px solid #101014;
}

.chat-partner-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.chat-partner-name {
  font-weight: 700;
  font-size: 14px;
}

.chat-partner-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.status-dot.offline {
  background: #6b7280;
}

/* ===== Chat Messages Area ===== */
.chat-messages-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* ===== Quick Actions (Welcome Screen) ===== */
.chat-quick-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  padding: 20px 0;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.chat-welcome-hero {
  text-align: center;
  margin-bottom: 30px;
}

.chat-welcome-emoji {
  font-size: 40px;
  margin-bottom: 10px;
  animation: floatEmoji 3s ease-in-out infinite;
}

@keyframes floatEmoji {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.chat-welcome-hero h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.chat-welcome-hero p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 420px;
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: all 0.25s ease;
  color: #fff;
  text-align: center;
}

.quick-action-card:hover {
  background: rgba(0, 224, 255, 0.06);
  border-color: rgba(0, 224, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.quick-action-card:active {
  transform: translateY(0);
}

.quick-action-icon {
  font-size: 28px;
  line-height: 1;
}

.quick-action-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.quick-action-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.3;
}

/* ===== Mission Form (New) ===== */
.chat-mission-form {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: rgba(10, 10, 15, 0.5);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 10px 0;
  animation: fadeInUp 0.4s ease;
  flex-shrink: 0;
}

.mission-form-header {
  margin-bottom: 16px;
  text-align: center;
}

.mission-form-header h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}

.mission-form-header p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.mission-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.mission-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mission-form-group.full-width {
  grid-column: 1 / -1;
}

.mission-form-group label {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.3px;
}

.mission-form-group input,
.mission-form-group select,
.mission-form-group textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  transition: all 0.2s ease;
}

.mission-form-group input:focus,
.mission-form-group select:focus,
.mission-form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 224, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 224, 255, 0.1);
}

.mission-form-group select option {
  background: #1a1a24;
  color: #fff;
}

.mission-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.mission-form-actions .btn {
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 8px;
  flex: 1;
  display: flex;
  justify-content: center;
}

.mission-form-actions .btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.mission-form-actions .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}


/* ===== Welcome (for loading/empty states) ===== */
.chat-welcome {
  text-align: center;
  padding: 30px 20px;
  color: rgba(255, 255, 255, 0.5);
}

.chat-welcome p {
  margin: 0 0 8px;
}

.chat-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== Chat Message Bubbles ===== */
.chat-message {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  animation: msgAppear 0.2s ease;
  word-wrap: break-word;
}

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

.chat-message.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-bottom-right-radius: 6px;
  color: #fff;
}

.chat-message.received {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 6px;
}

/* Topic tag in messages */
.chat-topic-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0, 224, 255, 0.1);
  border: 1px solid rgba(0, 224, 255, 0.2);
  font-size: 11px;
  font-weight: 600;
  color: #00e0ff;
  margin-bottom: 6px;
}

.chat-message-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

.chat-message.sent .chat-message-time {
  color: rgba(255, 255, 255, 0.55);
}

/* ===== Typing Indicator ===== */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 224, 255, 0.6);
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.typing-text {
  margin-left: 4px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.35);
}

/* ===== Chat Form ===== */
.chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

.chat-form input[type="text"] {
  flex: 1;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.chat-form input[type="text"]:focus {
  outline: none;
  border-color: rgba(0, 224, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.chat-form input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.chat-attach-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-attach-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00e0ff, #a855f7);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0, 224, 255, 0.35);
}

.chat-send-btn:active {
  transform: scale(0.96);
}

/* ===== Attachment Preview ===== */
.chat-attachment-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 0 14px 6px;
  background: rgba(0, 224, 255, 0.06);
  border: 1px solid rgba(0, 224, 255, 0.15);
  border-radius: 14px;
}

.attachment-preview-content {
  flex: 1;
  min-width: 0;
}

.attachment-preview-content img {
  max-height: 72px;
  max-width: 140px;
  border-radius: 10px;
  object-fit: cover;
}

.attachment-preview-file {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
}

.attachment-file-icon {
  font-size: 18px;
}

#attachment-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-remove-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 100, 100, 0.12);
  border: 1px solid rgba(255, 100, 100, 0.25);
  color: #ff6b6b;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.attachment-remove-btn:hover {
  background: rgba(255, 100, 100, 0.25);
  transform: scale(1.08);
}

/* ===== Message Attachments ===== */
.chat-message-attachment {
  margin-top: 8px;
}

.chat-message-attachment img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.chat-message-attachment img:hover {
  transform: scale(1.02);
}

.chat-message-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  transition: background 0.2s;
}

.chat-message-file:hover {
  background: rgba(255, 255, 255, 0.15);
}

.chat-message-file .file-icon {
  font-size: 16px;
}

.chat-message-file .download-icon {
  margin-left: auto;
  font-size: 14px;
}

/* ===== Image Lightbox ===== */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-lightbox.show {
  opacity: 1;
  visibility: visible;
}

.image-lightbox img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

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

.lightbox-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #00e0ff, #a855f7);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lightbox-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 224, 255, 0.35);
}

/* ===== Chat Mobile Responsive ===== */
@media (max-width: 600px) {
  .contact-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 18px;
  }

  .contact-header {
    padding: 14px 16px;
  }

  .contact-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .contact-title {
    font-size: 15px;
  }

  .quick-actions-grid {
    gap: 8px;
  }

  .quick-action-card {
    padding: 14px 10px 12px;
  }

  .quick-action-icon {
    font-size: 24px;
  }

  .chat-messages {
    padding: 12px 14px;
  }

  .chat-form {
    padding: 10px 12px;
  }
}

/* === Style Block 3 === */
/* Botones flotantes en esquinas */
.secondary-btn {
  position: fixed;
  top: 24px;
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.secondary-btn-left {
  left: 20px;
}

.secondary-btn-right {
  right: 20px;
}

.secondary-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.25), rgba(255, 0, 212, 0.25));
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.2);
}

@media (max-width: 900px) {
  .secondary-btn {
    top: calc(var(--header-h, 56px) + 10px);
    padding: 8px 14px;
    font-size: 11px;
  }

  .secondary-btn-left {
    left: 12px;
  }

  .secondary-btn-right {
    right: 12px;
  }
}

/* Modal de Actualizaciones */
.updates-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.updates-overlay.show {
  opacity: 1;
  visibility: visible;
}

.updates-card {
  width: 95vw;
  /* Fallback */
  width: min(600px, 95vw);
  max-height: 80vh;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 20, 25, 0.98), rgba(15, 15, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.updates-overlay.show .updates-card {
  transform: scale(1) translateY(0);
}

.updates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.08), rgba(255, 0, 212, 0.08));
}

.updates-title {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(90deg, #00f0ff, #ff00d4);
  -webkit--webkit-background-clip: text;
  background-clip: text;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.updates-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.updates-close:hover {
  background: rgba(255, 100, 100, 0.2);
  transform: scale(1.05);
}

.updates-content {
  padding: 20px 24px;
  overflow-y: auto;
  max-height: calc(80vh - 80px);
}

.update-item {
  position: relative;
  padding: 18px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.update-item:last-child {
  margin-bottom: 0;
}

.update-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.update-item.new {
  border-color: rgba(0, 240, 255, 0.3);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(255, 0, 212, 0.04));
}

.update-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #00f0ff, #ff00d4);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.update-date {
  font-size: 13px;
  color: #ff4444;
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.update-name {
  margin: 0 0 14px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.update-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.update-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.update-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  margin-top: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.update-link-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Admin form styles */
.update-admin-form {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,240,255,0.02);
}
.update-admin-form.next-mission-form {
  background: rgba(255,100,100,0.02);
}
.admin-form-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.admin-form-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00f0ff, #0088cc);
  color: #0a0e1a;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-form-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.3px;
}
.admin-field {
  margin-bottom: 10px;
}
.admin-input,
.admin-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
  outline: none;
}
.admin-textarea {
  min-height: 80px;
  resize: vertical;
}
.admin-input:focus,
.admin-textarea:focus {
  border-color: rgba(0,240,255,0.3);
  background: rgba(255,255,255,0.07);
}
.admin-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.admin-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-label-hint {
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-row {
  display: flex;
  gap: 10px;
}
.admin-img-preview {
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  max-width: 200px;
}
.admin-img-preview img {
  width: 100%;
  display: block;
}
.admin-submit {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #00f0ff, #0088cc);
  color: #0a0e1a;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.admin-submit:hover {
  opacity: .85;
  transform: translateY(-1px);
}

/* Content blocks system */
.admin-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.admin-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-block-actions {
  position: relative;
}
.admin-block-add-btn {
  background: rgba(0,240,255,0.1);
  border: 1px solid rgba(0,240,255,0.2);
  color: #00f0ff;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
}
.admin-block-add-btn:hover {
  background: rgba(0,240,255,0.2);
}
.admin-block-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 50;
  background: #1a1f2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  min-width: 140px;
  margin-top: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.admin-block-menu.show {
  display: block;
}
.admin-block-menu button {
  display: block;
  width: 100%;
  padding: 9px 16px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.admin-block-menu button:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.content-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.content-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.content-block-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.content-block-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color .2s;
}
.content-block-remove:hover {
  color: #ff4444;
}
.content-block textarea {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-size: 13px;
  font-family: 'Outfit', system-ui, sans-serif;
  resize: vertical;
  min-height: 60px;
  outline: none;
}
.content-block textarea:focus {
  border-color: rgba(0,240,255,0.3);
}
.content-block-image-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 4px;
  margin-top: 6px;
}
.content-block-image-opt {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s;
  background: #0d1117;
}
.content-block-image-opt:hover {
  border-color: rgba(0,240,255,0.3);
}
.content-block-image-opt.selected {
  border-color: #00f0ff;
}
.content-block-image-opt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content-block-preview-divider {
  text-align: center;
  color: rgba(255,255,255,0.15);
  font-size: 20px;
  letter-spacing: 4px;
}

/* Image selector grid */
.update-img-selector {
  max-height: 160px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 6px;
  padding: 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
}
.update-img-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  padding: 20px 0;
}
.update-img-opt {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  background: #0d1117;
}
.update-img-opt:hover {
  transform: scale(1.05);
  border-color: rgba(0,240,255,0.3);
}
.update-img-opt.selected {
  border-color: #00f0ff;
}
.update-img-opt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .admin-row {
    flex-direction: column;
  }
}

/* Delete button */
.update-delete-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 50, 50, 0.15);
  border: 1px solid rgba(255, 50, 50, 0.3);
  color: #ff6b6b;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
  line-height: 1;
}
.update-delete-btn:hover {
  background: rgba(255, 50, 50, 0.3);
}
.update-edit-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #00f0ff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
  line-height: 1;
}
.update-edit-btn:hover {
  background: rgba(0, 240, 255, 0.25);
}

.update-delete-btn:hover {
  background: rgba(255, 80, 80, 0.3);
  transform: scale(1.1);
}

.update-item.new .update-badge {
  right: 56px;
}

.no-updates {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

@media (max-width: 600px) {
  .update-admin-form .form-row {
    flex-direction: column;
    gap: 0;
  }

  .update-name {
    font-size: 1.1rem;
  }
}

/* Modal de Detalle de Actualización */
.update-detail-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.update-detail-overlay.show {
  opacity: 1;
  visibility: visible;
}

.update-detail-card {
  position: relative;
  width: 95vw;
  /* Fallback */
  width: min(800px, 95vw);
  max-height: 90vh;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 20, 25, 0.98), rgba(12, 12, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.update-detail-overlay.show .update-detail-card {
  transform: scale(1) translateY(0);
}

.update-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
}

.update-detail-close:hover {
  background: rgba(255, 100, 100, 0.3);
  transform: scale(1.05);
}

#update-detail-content {
  overflow-y: auto;
  max-height: 90vh;
}

.detail-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.detail-body {
  padding: 30px;
}

.detail-date {
  font-size: 14px;
  color: #ff4444;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.detail-title {
  margin: 0 0 20px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.detail-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 24px;
  white-space: pre-wrap;
}

.detail-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.2), rgba(255, 0, 212, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.detail-link-btn:hover {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.35), rgba(255, 0, 212, 0.35));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.2);
}

.update-item {
  cursor: pointer;
}

@media (max-width: 600px) {
  .detail-title {
    font-size: 1.5rem;
  }

  .detail-body {
    padding: 20px;
  }

  .detail-image {
    max-height: 250px;
  }
}

/* === Style Block 4 === */
/* Launches section - Minimal Design */
.launches-section {
  position: relative;
  z-index: 1;
  width: 92vw;
  /* Fallback */
  width: min(1000px, 92vw);
  margin: 60px auto 80px;
}

.launches-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.launches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* Launch card - Minimal */
.launch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

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

.launch-card-inner {
  display: contents;
}

.launch-info-section {
  flex: 1;
  min-width: 0;
}

.launch-status {
  display: none;
}

.launch-vehicle {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.launch-mission {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

.launch-mission::before {
  display: none;
}

.launch-site {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.launch-site::before {
  display: none;
}

/* Countdown section */
.launch-countdown-section {
  text-align: right;
  flex-shrink: 0;
}

.launch-countdown {
  padding: 0;
  background: none;
  border: none;
}

.launch-t {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.launch-time {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #00f0ff;
  letter-spacing: -0.01em;
}

.launch-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}

.launch-date::before {
  display: none;
}

/* Hide extras */
.view-more,
.featured-badge {
  display: none;
}

/* Empty state */
.no-launches {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.4);
}

.no-launches-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.no-launches-text {
  font-size: 14px;
}

/* First card highlight */
.launches-list .launch-card:first-child {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.15);
}

.launches-list .launch-card:first-child:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
}

/* Responsive */
@media (max-width: 600px) {
  .launch-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
  }

  .launch-countdown-section {
    text-align: left;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .launch-vehicle {
    font-size: 16px;
  }

  .launch-time {
    font-size: 20px;
  }
}

/* === Style Block 5 === */
/* Event modal styles */
.goal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.goal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #51cf66;
}

.countdown-hero {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  text-align: center;
  margin: 20px 0;
  background: linear-gradient(135deg, #00f0ff, #ff00d4);
  -webkit--webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 0.02em;
}

.modal-info {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-info-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-info-row:last-child {
  border-bottom: none;
}

.modal-info-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.modal-info-value {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  color: #fff;
}

.modal-desc {
  margin: 16px 0;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #00f0ff;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.timezone-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin: 16px 0;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Side Navigation Indicator - Reverted to White with Dark Edge Fade */
.side-nav {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 120px;
  /* Gradient width */
  background: linear-gradient(to left, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-end;
  justify-content: center;
  padding-right: 40px;
  pointer-events: none;
  /* Let clicks pass through except on items */
}

.side-nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  /* Re-enable clicks for the links */
}

.side-nav-label {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: translateX(10px);
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.side-nav-dot {
  width: 2px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.side-nav-item:hover .side-nav-label,
.side-nav-item.active .side-nav-label {
  opacity: 1;
  transform: translateX(0);
}

.side-nav-item:hover .side-nav-dot,
.side-nav-item.active .side-nav-dot {
  background: #fff;
  width: 3px;
  height: 25px;
}

@media (max-width: 768px) {
  .side-nav {
    width: 60px;
    padding-right: 20px;
  }

  .side-nav-label {
    display: none;
  }

  .side-nav-dot {
    height: 15px;
  }
}

/* Google Auth Styles */
.google-btn {
  background: #fff !important;
  color: #000 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px !important;
  margin-bottom: 20px;
  border: none !important;
  font-weight: 600 !important;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.google-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  padding: 0 10px;
}

/* ===== Telemetry HUD Overlay ===== */
/* ===== TELEMETRY HUD ===== */
@keyframes hud-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.3; }
}

@keyframes musicHintFade {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.telemetry-hud {
  position: absolute;
  bottom: 30px;
  right: 40px;
  z-index: 10;
  width: 220px;
  background: rgba(4, 8, 16, 0.85);
  border: 1px solid rgba(0, 224, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.7),
    0 0 1px rgba(0, 224, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

/* --- Header --- */
.hud-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #444;
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.hud-dot.active {
  background: #00e0ff;
  box-shadow: 0 0 6px rgba(0, 224, 255, 0.7);
  animation: hud-pulse 1.8s ease-in-out infinite;
}
.hud-dot.burn {
  background: #ff6a00;
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.8);
}

.hud-title {
  font-family: 'Space Grotesk', monospace;
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.hud-phase {
  margin-left: auto;
  font-family: 'Space Grotesk', monospace;
  font-size: 7px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.4s;
}
.hud-phase.triple { color: #00e0ff; text-shadow: 0 0 8px rgba(0,224,255,0.3); }
.hud-phase.center { color: #00ff66; text-shadow: 0 0 8px rgba(0,255,102,0.3); }

/* --- Body (Diagram + Stats) --- */
.hud-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.hud-diagram {
  flex-shrink: 0;
}

.booster-fuselage {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #1a2433, #0b1018);
  border: 1.5px solid rgba(100, 140, 180, 0.2);
  position: relative;
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, 0.8),
    0 0 6px rgba(0, 0, 0, 0.4);
}

.engine {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #2a3540, #181f28);
  border: 1.5px solid rgba(100, 130, 160, 0.3);
  transform: translate(-50%, -50%);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.engine.lit {
  background: radial-gradient(circle at 40% 40%, #ffffff, #aaddff);
  border-color: rgba(0, 224, 255, 0.9);
  box-shadow:
    0 0 10px rgba(0, 224, 255, 0.8),
    0 0 20px rgba(0, 180, 255, 0.3),
    0 0 3px #ffffff,
    inset 0 0 4px rgba(255, 255, 255, 0.5);
}
.engine.lit.center-phase {
  background: radial-gradient(circle at 40% 40%, #ffffff, #88ffbb);
  border-color: rgba(0, 255, 102, 0.9);
  box-shadow:
    0 0 10px rgba(0, 255, 102, 0.8),
    0 0 20px rgba(0, 200, 80, 0.3),
    0 0 3px #ffffff,
    inset 0 0 4px rgba(255, 255, 255, 0.5);
}

.engine.center-engine { top: 36px; left: 36px; width: 16px; height: 16px; }
.engine.outer-engine.top { top: 16px; left: 36px; }
.engine.outer-engine.top-right { top: 26px; left: 53px; }
.engine.outer-engine.bottom-right { top: 46px; left: 53px; }
.engine.outer-engine.bottom { top: 56px; left: 36px; }
.engine.outer-engine.bottom-left { top: 46px; left: 19px; }
.engine.outer-engine.top-left { top: 26px; left: 19px; }

/* --- Stats --- */
.hud-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 14px 10px;
}

.hud-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 7px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat-value {
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s, text-shadow 0.3s;
  font-variant-numeric: tabular-nums;
}
.stat-value.active {
  color: #00e0ff;
  text-shadow: 0 0 6px rgba(0,224,255,0.3);
}
.stat-value.active.center-phase {
  color: #00ff66;
  text-shadow: 0 0 6px rgba(0,255,102,0.3);
}

.stat-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, #00e0ff, #0088ff);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 4px rgba(0,224,255,0.2);
}
.stat-fill.active { width: 100%; }
.stat-fill.center-phase { background: linear-gradient(90deg, #00ff66, #009944); }

/* --- Footer --- */
.hud-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 224, 255, 0.02);
}

.hud-footer-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 7px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hud-footer-value {
  font-family: 'Space Grotesk', monospace;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s, text-shadow 0.3s;
}
.hud-footer-value.active {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0,224,255,0.4);
}
.hud-footer-value.active.center-phase {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0,255,102,0.4);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .telemetry-hud {
    bottom: 16px;
    right: 16px;
    width: 170px;
  }
  .hud-footer-value { font-size: 13px; }
  .booster-fuselage { width: 58px; height: 58px; }
  .engine { width: 11px; height: 11px; }
  .engine.center-engine { top: 29px; left: 29px; width: 13px; height: 13px; }
  .engine.outer-engine.top { top: 13px; left: 29px; }
  .engine.outer-engine.top-right { top: 21px; left: 43px; }
  .engine.outer-engine.bottom-right { top: 37px; left: 43px; }
  .engine.outer-engine.bottom { top: 45px; left: 29px; }
  .engine.outer-engine.bottom-left { top: 37px; left: 15px; }
  .engine.outer-engine.top-left { top: 21px; left: 15px; }
}

@media (max-width: 480px) {
  .telemetry-hud {
    bottom: 10px;
    right: 8px;
    left: 8px;
    width: auto;
  }
  .hud-body { gap: 8px; padding: 8px 10px; }
  .booster-fuselage { width: 56px; height: 56px; }
  .engine { width: 10px; height: 10px; }
  .engine.center-engine { top: 28px; left: 28px; width: 12px; height: 12px; }
  .engine.outer-engine.top { top: 12px; left: 28px; }
  .engine.outer-engine.top-right { top: 20px; left: 41px; }
  .engine.outer-engine.bottom-right { top: 36px; left: 41px; }
  .engine.outer-engine.bottom { top: 44px; left: 28px; }
  .engine.outer-engine.bottom-left { top: 36px; left: 15px; }
  .engine.outer-engine.top-left { top: 20px; left: 15px; }
  .hud-stats { padding: 0; }
}

/* Admin photo button on next-mission hero */
.admin-photo-btn {
  position: absolute;
  bottom: 100px;
  right: 40px;
  z-index: 10;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,224,255,0.4);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00e0ff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.admin-photo-btn:hover {
  background: rgba(0,224,255,0.2);
  border-color: #00e0ff;
  transform: scale(1.1);
}

/* ===== MOBILE IMPROVEMENTS ===== */
@media (max-width: 768px) {
  /* Hero sections - reduce height & padding */
  .hero-section {
    height: 100vh;
    min-height: 500px;
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }
  .hero-desc {
    font-size: 0.95rem;
    max-width: 100%;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-btn {
    padding: 12px 24px;
    font-size: 13px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions .hero-btn {
    width: auto;
  }

  /* Next mission section */
  #next-mission .nm-countdown {
    font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
    padding: 10px 16px;
    gap: 10px;
  }
  #next-mission .mission-upcoming-badge {
    font-size: 0.65rem !important;
    padding: 5px 12px !important;
  }
  #next-mission .hero-actions {
    gap: 10px;
  }

  /* Next mission ticker */
  .next-mission-ticker-top {
    top: 100px;
    gap: 8px;
    padding: 4px 12px;
    font-size: 10px;
    max-width: 90vw;
  }
  .next-mission-ticker-top .ticker-mission-name {
    font-size: 9px;
    padding-right: 6px;
  }
  .next-mission-ticker-top .ticker-countdown {
    font-size: 10px;
  }
  .next-mission-ticker-top .ticker-label {
    font-size: 8px;
  }

  /* AION landing - video section */
  #aion-landing .hero-content {
    padding-bottom: 550px;
  }
  #aion-landing .hero-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  #aion-landing .hero-subtitle {
    font-size: 0.8rem;
  }
  #aion-landing .hero-desc {
    font-size: 0.8rem;
    max-width: 100%;
  }
  /* Simplify telemetry on mobile */
  .telemetry-hud {
    width: auto;
    left: 8px;
    right: 8px;
    bottom: 12px;
    padding: 4px 6px;
    border-radius: 8px;
  }
  .hud-header {
    padding: 3px 6px;
    gap: 4px;
  }
  .hud-title {
    font-size: 8px;
  }
  .hud-phase {
    font-size: 7px;
  }
  .hud-body {
    gap: 4px;
    padding: 4px 6px;
  }
  .booster-fuselage {
    width: 28px;
    height: 28px;
  }
  .engine {
    width: 5px;
    height: 5px;
  }
  .engine.center-engine {
    top: 14px;
    left: 14px;
    width: 6px;
    height: 6px;
  }
  .engine.outer-engine.top {
    top: 6px;
    left: 14px;
  }
  .engine.outer-engine.top-right {
    top: 10px;
    left: 21px;
  }
  .engine.outer-engine.bottom-right {
    top: 18px;
    left: 21px;
  }
  .engine.outer-engine.bottom {
    top: 22px;
    left: 14px;
  }
  .engine.outer-engine.bottom-left {
    top: 18px;
    left: 7px;
  }
  .engine.outer-engine.top-left {
    top: 10px;
    left: 7px;
  }
  .hud-stats {
    padding: 0;
    gap: 2px;
  }
  .hud-stat {
    min-width: 0;
  }
  .stat-header {
    gap: 2px;
  }
  .stat-label {
    font-size: 7px;
  }
  .stat-value {
    font-size: 9px;
  }
  .hud-footer {
    padding: 3px 6px;
  }
  .hud-footer-label {
    font-size: 7px;
  }
  .hud-footer-value {
    font-size: 9px;
  }

  /* YouTube section */
  .yt-grid {
    grid-template-columns: 1fr;
  }
  .section-yt {
    padding: 60px 5vw;
  }
  .yt-title {
    font-size: 1.8rem;
  }
  .yt-header-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .yt-card-body {
    padding: 14px 16px;
  }
  .yt-card-body h3 {
    font-size: 15px;
  }
  .yt-chan-btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 13px; }

  /* Satellites section */
  .section-sats {
    background-position: 40% center;
    background-size: cover;
  }
  .section-sats .hero-content {
    padding-top: 40px;
  }

  /* Updates modal */
  .updates-card {
    width: 95vw;
    max-height: 88vh;
    border-radius: 16px;
  }
  .updates-header {
    padding: 12px 14px;
  }
  .updates-title {
    font-size: 16px;
  }
  .updates-content {
    padding: 14px;
  }
  .update-item {
    padding: 14px;
  }
  .update-name {
    font-size: 1rem;
  }
  .update-desc {
    font-size: 13px;
  }

  /* Update detail modal */
  .update-detail-card {
    width: 95vw;
    max-height: 88vh;
    border-radius: 16px;
  }
  .detail-title {
    font-size: 1.3rem;
  }
  .detail-body {
    padding: 16px 18px;
  }
  .detail-description {
    font-size: 14px;
  }
  .detail-image {
    max-height: 200px;
  }

  /* Admin form mobile */
  .update-admin-form {
    padding: 14px;
  }

  /* Footer */
  footer {
    padding: 30px 16px;
  }
  .footer-socials {
    gap: 20px;
  }
  .footer-socials svg {
    width: 22px;
    height: 22px;
  }

  /* Side nav */
  .side-nav {
    width: 50px;
    padding-right: 14px;
  }
  .side-nav-label {
    display: none;
  }
  .side-nav-dot {
    height: 14px;
  }

  /* Secondary buttons */
  .secondary-btn {
    top: 66px;
    padding: 6px 10px;
    font-size: 10px;
  }
  .secondary-btn-left {
    left: 8px;
  }
  .secondary-btn-right {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 420px;
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .hero-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    margin-bottom: 1rem;
  }
  .hero-desc {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }
  .hero-btn {
    padding: 10px 18px;
    font-size: 12px;
  }
  .hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .next-mission-ticker-top {
    top: 90px;
    gap: 6px;
    padding: 3px 10px;
    max-width: 94vw;
    border-radius: 20px;
  }

  #next-mission .nm-countdown {
    font-size: clamp(1.2rem, 7vw, 1.8rem) !important;
    gap: 8px;
    padding: 8px 12px;
  }

  .updates-card {
    width: 100vw;
    border-radius: 12px;
    max-height: 90vh;
  }
  .update-detail-card {
    width: 100vw;
    border-radius: 12px;
    max-height: 92vh;
  }

  .side-nav {
    width: 40px;
    padding-right: 10px;
  }
  .side-nav-dot {
    height: 12px;
  }

  .secondary-btn {
    top: 60px;
    padding: 5px 8px;
    font-size: 9px;
  }
  .secondary-btn-left {
    left: 6px;
  }
  .secondary-btn-right {
    right: 6px;
  }
}

/* ============================================================
   NEXT MISSION — Modern hero redesign
   ============================================================ */
#next-mission.section-next-mission {
  overflow: hidden;
}
#next-mission .hero-section-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.05) 80%),
    radial-gradient(1200px 500px at 85% 20%, rgba(0,224,255,0.12) 0%, transparent 60%),
    radial-gradient(800px 400px at 70% 90%, rgba(0,160,255,0.08) 0%, transparent 55%);
  z-index: 1;
}
#next-mission .next-mission-hero {
  max-width: 760px;
  z-index: 2;
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Badge */
#next-mission .mission-upcoming-badge {
  --nm-cyan: #00e0ff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px 7px 14px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #aaf4ff;
  background:
    linear-gradient(180deg, rgba(0,224,255,0.16), rgba(0,120,255,0.08)),
    rgba(4, 14, 26, 0.45);
  border: 1px solid rgba(0,224,255,0.35);
  box-shadow:
    0 0 18px rgba(0,224,255,0.18),
    inset 0 0 12px rgba(0,224,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
#next-mission .mission-upcoming-badge::before {
  content: '';
  position: absolute;
  top: -120%;
  left: -30%;
  width: 40%;
  height: 340%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: rotate(20deg);
  animation: nmBadgeShine 4.5s ease-in-out infinite;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e0ff;
  box-shadow: 0 0 0 0 rgba(0,224,255,0.6);
  animation: nmBadgePulse 1.6s ease-out infinite;
}
@keyframes nmBadgePulse {
  0% { box-shadow: 0 0 0 0 rgba(0,224,255,0.65); }
  100% { box-shadow: 0 0 0 12px rgba(0,224,255,0); }
}
@keyframes nmBadgeShine {
  0%, 55% { left: -40%; }
  85%, 100% { left: 130%; }
}

/* Subtitle */
#next-mission .hero-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.6rem;
}

/* Title */
#next-mission .hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 1px;
  margin: 0 0 1.6rem 0;
  background: linear-gradient(100deg, #ffffff 0%, #bfe9ff 45%, #00e0ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(0,224,255,0.18);
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.55));
}

/* Countdown */
.nm-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 1.6rem;
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,224,255,0.35);
  padding: 12px 22px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0,224,255,0.10), rgba(0,60,120,0.12));
  border: 1px solid rgba(0,224,255,0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.nm-countdown-prefix {
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(0,224,255,0.85);
}
.nm-countdown .launch-time {
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #eaffff, #8fd8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Description */
#next-mission .hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin-bottom: 2rem;
}

/* Actions */
.nm-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.nm-actions-secondary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#next-mission .nm-primary-btn {
  border: none;
  color: #00121c;
  font-weight: 700;
  padding: 15px 34px;
  border-radius: 14px;
  background: linear-gradient(120deg, #00e0ff, #0091ff);
  box-shadow:
    0 8px 30px rgba(0,180,255,0.35),
    inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
#next-mission .nm-primary-btn::after {
  position: absolute;
  top: 0; left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  content: '';
  transform: skewX(-20deg);
  transition: none;
}
#next-mission .nm-primary-btn:hover {
  color: #00121c;
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(0,180,255,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
}
#next-mission .nm-primary-btn:hover::after {
  left: 130%;
  transition: left 0.7s ease;
}
#next-mission .nm-stream-btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 12px 22px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
#next-mission .nm-stream-btn:hover {
  color: #fff;
  border-color: rgba(0,224,255,0.5);
  box-shadow: 0 0 0 1px rgba(0,224,255,0.18), 0 8px 24px rgba(0,180,255,0.15);
}
#next-mission .nm-live-btn {
  background: linear-gradient(135deg, rgba(0,240,255,0.16), rgba(0,120,200,0.10));
  border-color: rgba(0,240,255,0.3);
}
#next-mission .nm-live-btn:hover {
  background: linear-gradient(135deg, rgba(0,240,255,0.28), rgba(0,120,200,0.16));
}
#next-mission .nm-yt-edit {
  width: 40px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  border-radius: 10px;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}
#next-mission .nm-yt-edit:hover {
  color: #fff;
  background: rgba(0,224,255,0.12);
}

/* Admin photo button reposition under new design */
#next-mission .admin-photo-btn {
  bottom: 90px;
  right: 36px;
  border-radius: 16px;
  background: rgba(4,14,26,0.5);
  border-color: rgba(0,224,255,0.4);
  width: 48px;
  height: 48px;
}