:root {
  /* Unreal Engine 5 Palette */
  --bg-dark: #02040a;
  --bg-deep-blue: #0a1120;
  --bg-charcoal: #111827;

  --neon-cyan: #00f3ff;
  --neon-blue: #0066ff;
  --neon-purple: #bd00ff;

  --glass-bg: rgba(10, 20, 40, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-highlight: rgba(255, 255, 255, 0.2);

  --text-glow: 0 0 10px rgba(255, 255, 255, 0.5);
  --text-main: #ffffff;
  --text-dim: rgba(200, 220, 255, 0.6);
}

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

body {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 20% 30%, #0f1c3f 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, #1a0f30 0%, transparent 40%);
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: fixed;
}

html {
  overflow: hidden;
  height: 100%;
  width: 100%;
}

/* Noise Texture */
.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Ambient Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
  animation: floatOrb 10s infinite ease-in-out alternate;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--neon-blue);
  top: -100px;
  left: -100px;
  opacity: 0.2;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--neon-purple);
  bottom: -150px;
  right: -150px;
  opacity: 0.15;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--neon-cyan);
  top: 40%;
  left: 40%;
  opacity: 0.1;
  filter: blur(100px);
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(30px, 50px);
  }
}

/* Main Glass Container */
.glass-container {
  width: 100%;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

/* Header */
.holographic-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 5px var(--neon-cyan));
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 1.2rem;
}

.logo-text small {
  color: var(--neon-cyan);
  font-size: 0.7em;
  margin-left: 5px;
  text-shadow: 0 0 5px var(--neon-cyan);
}

.version-badge {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
  border: 1px solid var(--glass-border);
  padding: 4px 8px;
  border-radius: 4px;
}

.github-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.github-link:hover {
  color: #fff;
}

/* Content Area */
.content-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 769px) {
  .content-area {
    padding: 2rem;
  }
}

/* Upload Portal */
.upload-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.upload-container {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  padding: 2rem;
}

.upload-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 auto;
  min-width: 350px;
  min-height: 350px;
}

.portal-ring {
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spinPortal 20s linear infinite;
}

.portal-ring::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 10px;
  height: 4px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes spinPortal {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.upload-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn-neon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.2), inset 0 0 10px rgba(0, 243, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-neon-circle:hover {
  background: rgba(0, 243, 255, 0.1);
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(0, 243, 255, 0.4), inset 0 0 20px rgba(0, 243, 255, 0.2);
}

.upload-text {
  font-family: 'Space Grotesk';
  letter-spacing: 3px;
  font-size: 0.9rem;
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.file-input-hidden {
  display: none;
}

.drag-hint {
  margin-top: 3rem;
  font-family: monospace;
  color: var(--text-dim);
  opacity: 0.5;
}

/* How to Guide */
.how-to-guide {
  flex: 1;
  max-width: 500px;
  min-width: 300px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  align-self: center;
}

.guide-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--neon-cyan);
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.guide-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--neon-purple);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.guide-step:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--neon-cyan);
  transform: translateX(5px);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  border-radius: 50%;
  color: var(--neon-cyan);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

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

.privacy-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 0.75rem;
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 6px;
}

.privacy-note strong {
  color: var(--neon-cyan);
}

/* Dashboard */
.dashboard-head {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.dashboard-head h1 {
  font-family: 'Space Grotesk';
  font-weight: 300;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.glow-text {
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
  font-family: monospace;
}

.hud-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hud-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-left: 2px solid var(--neon-cyan);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.hud-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.hud-value {
  font-size: 2rem;
  font-family: 'Space Grotesk';
  font-weight: 600;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.wide {
  grid-column: span 2;
}

.tall {
  grid-row: span 2;
}

.glass-panel {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  min-height: 350px;
  max-height: 550px;
  height: auto;
}

@media (max-width: 768px) {
  .glass-panel {
    margin-bottom: 2.5rem;
    overflow-y: auto;
  }
}

.glass-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
  opacity: 0.5;
}

.glass-panel h3 {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.glass-panel h3::before {
  content: '>';
  color: white;
  flex-shrink: 0;
}

.info-panel {
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-y: auto;
}

.info-panel strong {
  color: var(--neon-cyan);
  display: block;
  margin-top: 0.5rem;
}

.big-metric {
  font-size: 3rem;
  font-family: 'Space Grotesk';
  color: white;
  text-shadow: 0 0 20px var(--neon-purple);
  text-align: center;
  margin: 2rem 0;
}

.hidden {
  display: none !important;
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.scanner-line {
  width: 200px;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: scan 1s infinite alternate;
}

@keyframes scan {
  from {
    width: 10px;
  }

  to {
    width: 200px;
  }
}

.loader-text {
  font-family: monospace;
  color: var(--neon-cyan);
  animation: blink 0.5s infinite;
}

@keyframes blink {
  50% {
    opacity: 0.5;
  }
}

/* Activity Personas Styling */
.persona-card {
  margin-bottom: 2rem;
}

.persona-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.persona-type {
  font-size: 0.9rem;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  font-weight: 500;
}

.persona-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.time-slot-bar {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.time-slot-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.time-emoji {
  font-size: 1.1rem;
  min-width: 25px;
}

.time-percent {
  font-weight: 600;
  color: var(--neon-cyan);
  font-family: 'Space Grotesk', monospace;
}

.progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s ease-out;
  position: relative;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Best Time to Message Styling */
#bestTimeToMessage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.best-time-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.25rem;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.best-time-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
  transform: translateY(-2px);
}

.best-time-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.best-time-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.best-time-badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(189, 0, 255, 0.2));
  border: 1px solid var(--neon-cyan);
  border-radius: 20px;
  color: var(--neon-cyan);
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.best-time-slots {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.time-slot-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.time-slot-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--neon-purple);
  transform: translateX(3px);
}

.time-slot-row.best-slot {
  background: rgba(0, 243, 255, 0.08);
  border-left-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
}

.time-slot-row.best-slot:hover {
  background: rgba(0, 243, 255, 0.12);
}

.slot-rank {
  font-size: 1.3rem;
  text-align: center;
}

.slot-time {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

.slot-response {
  font-size: 0.85rem;
  color: var(--neon-purple);
  font-weight: 600;
  text-shadow: 0 0 5px rgba(189, 0, 255, 0.3);
}

.slot-samples {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: monospace;
}

.no-data-message {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.9rem;
}

/* Tablet and smaller */
@media (max-width: 1024px) {
  .upload-container {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
    align-items: center;
  }

  .upload-section {
    min-width: auto;
    width: 100%;
    max-width: 400px;
  }

  .how-to-guide {
    max-width: 100%;
    width: 100%;
  }

  .portal-ring {
    width: 250px;
    height: 250px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .upload-container {
    padding: 1rem;
  }

  .upload-section {
    max-width: 350px;
  }

  .how-to-guide {
    padding: 1.25rem;
  }

  .guide-step {
    padding: 0.6rem;
  }

  .step-text {
    font-size: 0.85rem;
  }

  .charts-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .wide,
  .tall {
    grid-column: auto;
    grid-row: auto;
  }

  .dashboard-head h1 {
    font-size: 1.5rem;
  }

  .glass-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }

  .portal-ring {
    width: 200px;
    height: 200px;
  }

  .btn-neon-circle {
    width: 70px;
    height: 70px;
  }
}

/* Double Texting Styling */
#doubleTextingAnalysis {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.double-text-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.25rem;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.double-text-card:hover {
  border-color: var(--neon-purple);
  box-shadow: 0 0 20px rgba(189, 0, 255, 0.2);
  transform: translateY(-2px);
}

.dt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dt-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.dt-badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(135deg, rgba(189, 0, 255, 0.2), rgba(0, 243, 255, 0.2));
  border: 1px solid var(--neon-purple);
  border-radius: 20px;
  color: var(--neon-purple);
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.5px;
}

.dt-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.dt-stat {
  text-align: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.dt-stat:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--neon-cyan);
}

.dt-stat.highlight {
  background: rgba(0, 243, 255, 0.08);
  border-color: var(--neon-cyan);
}

.dt-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dt-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
  font-family: 'Space Grotesk', monospace;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.dt-percentage {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Ghost Periods Styling */
#ghostPeriodsAnalysis {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ghost-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.25rem;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.ghost-card:hover {
  border-color: rgba(255, 0, 85, 0.5);
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.2);
  transform: translateY(-2px);
}

.ghost-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ghost-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.ghost-count {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 0, 85, 0.15);
  border: 1px solid rgba(255, 0, 85, 0.3);
  border-radius: 20px;
  color: #ff0055;
  font-family: 'Space Grotesk', monospace;
}

.ghost-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ghost-metric {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.metric-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--neon-cyan);
  font-family: 'Space Grotesk', monospace;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.metric-value.danger {
  color: #ff0055;
  text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.no-ghost-message {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--neon-cyan);
  font-size: 1rem;
  font-weight: 500;
}

/* Responsive adjustments for new features */
@media (max-width: 768px) {
  .dt-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ghost-metrics {
    grid-template-columns: 1fr;
  }

  #bestTimeToMessage {
    grid-template-columns: 1fr;
  }
}

/* Privacy Modal */
.privacy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.privacy-modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  z-index: 10001;
  background: rgba(10, 17, 32, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  max-width: 380px;
  width: 90%;
  animation: slideUp 0.3s ease-out;
  text-align: center;
}

.modal-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.modal-text {
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.modal-text p {
  margin: 0;
}

.modal-text strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.btn-accept {
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-accept:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

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

@media (max-width: 768px) {
  .modal-content {
    padding: 2rem 1.5rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-text {
    font-size: 0.95rem;
  }

  .btn-accept {
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
  }
}

/* Date Range Filter Styles */
.date-filter-container {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(10, 20, 40, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.filter-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.date-inputs {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.date-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: var(--text-main);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  min-width: 150px;
}

.date-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
  background: rgba(0, 0, 0, 0.6);
}

.date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.date-separator {
  color: var(--neon-purple);
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(189, 0, 255, 0.5);
}

.btn-filter {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
}

.btn-filter:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 243, 255, 0.5);
}

.btn-filter-reset {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  color: var(--text-main);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-filter-reset:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-export {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: var(--text-main);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 1rem;
}

.btn-export:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-export:disabled {
  opacity: 0.5;
  cursor: wait;
}

@media (max-width: 768px) {
  .date-inputs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .date-input {
    min-width: 120px;
    flex: 1;
    max-width: 140px;
  }

  .date-separator {
    margin: 0 0.5rem;
    align-self: center;
  }

  .btn-filter,
  .btn-filter-reset {
    flex: 1;
    min-width: 80px;
    margin-top: 0.5rem;
  }
}