* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --neon-cyan: #00F0FF;
  --neon-pink: #FF0080;
  --neon-purple: #B000FF;
  --bg: #000000;
  --panel-bg: rgba(10, 10, 15, 0.95);
  --text: #FFFFFF;
  --text-dim: rgba(255, 255, 255, 0.6);
  --border: rgba(255, 255, 255, 0.15);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── App Container ── */
.app-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
}

/* ── Video Layer ── */
.video-layer {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1;
}

.main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 15%, transparent 85%, rgba(0,0,0,0.7) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.4) 0%, transparent 30%);
  pointer-events: none;
  z-index: 1;
}

/* ── Top Bar ── */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
}

.couple-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.tag-sep {
  color: var(--neon-cyan);
  font-size: 12px;
}

.event-tag {
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

/* ── Play Overlay ── */
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  transition: all 0.4s;
}

.play-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-btn {
  position: relative;
  width: 100px;
  height: 100px;
  background: rgba(0, 240, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 
    0 0 30px rgba(0, 240, 255, 0.4),
    inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 50px rgba(0, 240, 255, 0.6),
    inset 0 0 30px rgba(0, 240, 255, 0.2);
}

.play-btn:active {
  transform: scale(0.95);
}

.btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

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

.play-text {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Orbitron', monospace;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ── Sound Overlay ── */
.sound-overlay {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.sound-overlay.visible {
  opacity: 1;
  visibility: visible;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.sound-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--neon-cyan);
  border-radius: 50px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  transition: all 0.2s;
}

.sound-badge:active {
  transform: scale(0.95);
}

/* ── Progress Line ── */
.progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 5;
}

.progress-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  box-shadow: 0 0 10px var(--neon-cyan);
  transition: width 0.1s linear;
}

/* ── Panel Toggle Button ── */
.panel-toggle {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  z-index: 50;
  width: 52px;
  height: 52px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(0, 240, 255, 0.5);
  transition: all 0.3s;
  animation: togglePulse 3s ease-in-out infinite;
}

@keyframes togglePulse {
  0%, 100% {
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.8),
      0 0 30px rgba(0, 240, 255, 0.5);
  }
  50% {
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.8),
      0 0 40px rgba(0, 240, 255, 0.7);
  }
}

.panel-toggle:active {
  transform: translateY(-50%) scale(0.9);
}

.panel-toggle.active {
  left: 260px;
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(255, 0, 128, 0.5);
  animation: none;
}

/* ── Side Panel ── */
.side-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 480px;
  z-index: 80;
  background: var(--panel-bg);
  backdrop-filter: blur(30px) saturate(180%);
  border-right: 2px solid var(--neon-cyan);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    4px 0 40px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(0, 240, 255, 0.2);
}

.side-panel.open {
  transform: translateX(0);
}

.panel-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-title {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

/* ── Panel Navigation ── */
.panel-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: white;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
}

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

.nav-item:active {
  transform: scale(0.98);
}

.nav-item--highlight {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.nav-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-item--highlight .nav-icon {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.nav-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-label {
  font-size: 15px;
  font-weight: 600;
  color: white;
}

.nav-desc {
  font-size: 12px;
  color: var(--text-dim);
}

.nav-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ── Backdrop ── */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

/* ── Modal ── */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 400px;
  max-height: 85vh;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-box {
  position: relative;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 24px 24px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(0, 240, 255, 0.1);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-box::-webkit-scrollbar {
  width: 6px;
}

.modal-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.modal-box::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 3px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:active {
  transform: scale(0.9);
}

.modal-heading {
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* ── Location Item ── */
.location-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.location-badge {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.location-details {
  flex: 1;
}

.location-title {
  font-size: 17px;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}

.location-datetime {
  font-size: 14px;
  color: var(--neon-cyan);
  margin-bottom: 8px;
  font-weight: 500;
}

.location-address {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 12px;
}

.location-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.location-link:active {
  transform: scale(0.97);
}

/* ── Info Timeline ── */
.info-timeline {
  margin-bottom: 24px;
}

.timeline-step {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  margin-bottom: 12px;
}

.step-time {
  font-family: 'Orbitron', monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.step-event {
  font-size: 17px;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}

.step-location {
  font-size: 14px;
  color: var(--text-dim);
}

.timeline-connector {
  width: 2px;
  height: 12px;
  background: linear-gradient(180deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  margin: 0 auto;
  box-shadow: 0 0 10px var(--neon-cyan);
}

.info-note {
  padding: 16px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  text-align: center;
}

.info-note p {
  font-size: 14px;
  color: var(--text-dim);
}

.info-note strong {
  color: var(--neon-cyan);
  font-weight: 600;
}

/* ── Form ── */
.form-block {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.label-hint {
  font-weight: 400;
  color: var(--text-dim);
  text-transform: none;
  font-size: 12px;
}

.toggle-switch {
  display: flex;
  gap: 10px;
}

.switch-option {
  flex: 1;
}

.switch-option input {
  display: none;
}

.switch-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 16px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.switch-option input:checked + .switch-label {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
}

.guest-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.control-btn {
  width: 44px;
  height: 44px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  border-radius: 50%;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.control-btn:active {
  transform: scale(0.9);
}

.control-value {
  font-family: 'Orbitron', monospace;
  font-size: 32px;
  font-weight: 700;
  color: white;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.form-input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 16px;
  color: white;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s;
}

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

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
}

.form-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  border: none;
  border-radius: 16px;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 240, 255, 0.5);
  transition: all 0.3s;
  margin-top: 8px;
}

.form-submit:active {
  transform: scale(0.98);
}

/* ── Success Screen ── */
.success-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.success-screen.active {
  opacity: 1;
  visibility: visible;
}

.success-container {
  width: 90%;
  max-width: 360px;
  padding: 40px 32px;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(40px);
  border: 1px solid var(--border);
  border-radius: 24px;
  text-align: center;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(0, 240, 255, 0.2);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-screen.active .success-container {
  transform: scale(1);
}

.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
  animation: successPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.success-heading {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.success-message {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 28px;
}

.success-close {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  border: none;
  border-radius: 16px;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
  transition: all 0.2s;
}

.success-close:active {
  transform: scale(0.98);
}

/* ── Responsive ── */
@media (max-width: 380px) {
  .side-panel {
    width: 260px;
  }
  
  .panel-toggle.active {
    left: 240px;
  }
  
  .couple-tag {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* DejaCast player fill parent (kill video.js 56.25% aspect hack) */
.video-layer.has-dejacast-player .dejacast-embed,
.video-layer.has-dejacast-player .main-video,
.video-layer.has-dejacast-player .video-js,
.video-layer.has-dejacast-player .video-js .vjs-tech,
.video-layer.has-dejacast-player .video-js video,
.video-layer.has-dejacast-player .video-js .vjs-poster {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding-top: 0 !important;
}

.video-layer.has-dejacast-player .video-js .vjs-tech,
.video-layer.has-dejacast-player .video-js video {
  object-fit: cover !important;
}

.video-layer.has-dejacast-player .video-js .vjs-poster {
  background-size: cover !important;
}
