/* =====================================================
   THE ZERO DAY — main.css
   Replaces Tailwind + all scoped Vue component styles
   ===================================================== */

/* ─── Font Faces ─────────────────────────────────── */
@font-face {
  font-family: 'Dominance';
  src: url('/fonts/Dominance.otf') format('opentype');
}
@font-face {
  font-family: 'Product Sans';
  src: url('/fonts/ProductSans-Black.ttf') format('truetype');
  font-weight: 900;
}
@font-face {
  font-family: 'Product Sans';
  src: url('/fonts/ProductSans-Bold.ttf') format('truetype');
  font-weight: 700;
}
@font-face {
  font-family: 'Product Sans';
  src: url('/fonts/ProductSans-Medium.ttf') format('truetype');
  font-weight: 500;
}
@font-face {
  font-family: 'Product Sans';
  src: url('/fonts/ProductSans-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'Product Sans';
  src: url('/fonts/ProductSans-Light.ttf') format('truetype');
  font-weight: 300;
}
@font-face {
  font-family: 'Product Sans';
  src: url('/fonts/ProductSans-Thin.ttf') format('truetype');
  font-weight: 100;
}

/* ─── CSS Custom Properties ──────────────────────── */
:root {
  --color-background: #0b0e18;
  --color-primary: #17c1ff;
  --color-german: #17c1ff;
  --color-white: #ffffff;
  --max-width: 1536px;
}

/* ─── Reset & Base ───────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
}
body {
  background-color: var(--color-background);
  color: rgba(255,255,255,0.9);
  font-family: 'Product Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ─── Layout Wrappers ────────────────────────────── */
.page-wrap {
  max-width: var(--max-width);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.page-wrap-app {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-repeat: no-repeat;
  background-size: contain;
}

/* ─── Header ─────────────────────────────────────── */
header {
  display: flex;
  position: sticky;
  top: 0;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.75rem 2rem;
  z-index: 10;
}
header .logo { display: flex; align-items: center; }
header .logo svg { height: 1.75rem; }

/* Default header nav */
.header-nav {
  display: none;
  align-items: center;
  color: rgba(255,255,255,0.4);
  gap: 3rem;
  text-transform: uppercase;
  font-size: 0.875rem;
}
.header-nav span { cursor: pointer; }
.header-nav span.selected {
  color: rgba(255,255,255,0.8);
  position: relative;
}
.header-nav span.selected::before {
  content: '';
  display: block;
  height: 4px;
  width: 4px;
  background: var(--color-primary);
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}

/* Contact button */
.header-cta {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  font-size: 0.875rem;
  padding: 0.375rem 1.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  color: rgba(255,255,255,0.9);
}

/* App header nav items */
.app-nav {
  display: none;
  align-items: center;
  gap: 1rem;
}
.app-nav-item {
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  padding: 0.375rem 1.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
}
.app-nav-item.selected {
  color: rgba(255,255,255,1);
  position: relative;
}
.app-nav-item.selected::before {
  content: '';
  display: block;
  height: 4px;
  width: 4px;
  background: var(--color-german);
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}

/* ─── Mobile Menu ────────────────────────────────── */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  color: rgba(255,255,255,0.9);
  padding: 0.5rem;
  z-index: 50;
  margin-right: 1.5rem;
}
.mobile-menu-btn span {
  display: block;
  width: 1.5rem;
  height: 3px;
  background: currentColor;
  border-radius: 4px;
  margin-bottom: 4px;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu-btn span:last-child { margin-bottom: 0; }
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

.mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--color-background);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: none;
  transition: opacity 0.5s ease-out;
}
.mobile-menu-overlay.open {
  opacity: 0.95;
  pointer-events: auto;
  backdrop-filter: blur(12px);
}
.mobile-menu-overlay .app-nav-item {
  font-size: 1.25rem;
  padding: 2rem 1.5rem 0;
  display: block;
}

/* ─── Footer ─────────────────────────────────────── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding: 2rem;
}
footer .footer-copy { font-size: 0.875rem; opacity: 0.5; }
footer .footer-links {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  opacity: 0.5;
  gap: 0.5rem;
}
footer .footer-links a:hover { opacity: 0.8; }

/* ─── Home Page ──────────────────────────────────── */
.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.live-badge {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  padding: 0.375rem 1rem 0.375rem 0.375rem;
  gap: 0.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
}
.live-badge svg { height: 1rem; }
.live-badge span { font-size: 0.75rem; }

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  z-index: 10;
}
.hero-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-word {
  font-family: 'Dominance', sans-serif;
  font-size: 70px;
  color: white;
  line-height: 1;
}
.hero-desc {
  font-size: 1rem;
  text-align: center;
  margin-top: 2rem;
  margin-left: 2rem;
  margin-right: 2rem;
  color: rgba(255,255,255,0.9);
}
.hero-ctas {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  z-index: 10;
}
.cta-primary {
  border-radius: 9999px;
  background: rgba(23,193,255,0.1);
  backdrop-filter: blur(12px);
  padding: 0.5rem 2rem;
  border: 1px solid rgba(23,193,255,0.2);
  cursor: pointer;
  color: rgba(255,255,255,0.9);
  font-family: 'Product Sans', sans-serif;
  font-size: 0.875rem;
}
.cta-secondary {
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  padding: 0.5rem 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  color: rgba(255,255,255,0.9);
  font-family: 'Product Sans', sans-serif;
  font-size: 0.875rem;
}
.arc-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  position: relative;
  height: 2rem;
  width: 100%;
}
.arc-svg {
  width: 24rem;
  position: absolute;
  bottom: 0;
  transform: translateY(12rem) scale(2.5);
}

/* Background SVG */
.bg-svg {
  position: absolute;
  top: 0; left: 0;
  z-index: 0;
  height: 75%;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0) 75%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0) 75%);
}

/* ─── Policy Pages (Privacy / ToS) ───────────────── */
.policy-hero {
  height: 12rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.policy-hero-title {
  font-family: 'Dominance', sans-serif;
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  color: rgba(255,255,255,0.9);
  line-height: 1;
  text-align: center;
}
.policy-hero-date {
  font-size: 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
}
.policy-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--color-background);
  border-top: 1px solid rgba(255,255,255,0.2);
  z-index: 10;
  padding: 4rem 2rem;
  color: rgba(255,255,255,0.6);
  gap: 0.5rem;
}
.policy-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-top: 1rem;
}
.policy-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}
.policy-body p {
  font-size: 0.875rem;
  line-height: 1.6;
}
.policy-body ul { list-style: disc; padding-left: 1rem; }
.policy-body ol { list-style: decimal; padding-left: 1rem; }
.policy-body li { font-size: 0.875rem; line-height: 1.7; }
.policy-body a { color: rgba(255,255,255,0.8); text-decoration: underline; }
.policy-body strong { color: rgba(255,255,255,0.85); }
.spacer { padding: 1.5rem 0; }

/* ─── German Quick Links ─────────────────────────── */
.german-hero {
  height: 12rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.german-hero-title {
  font-family: 'Dominance', sans-serif;
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  line-height: 1;
}
.german-hero-sub {
  font-size: 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
}
.quick-links-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  background: var(--color-background);
  border-top: 1px solid rgba(255,255,255,0.2);
  z-index: 10;
}
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
  padding: 2rem 2rem 0;
}
.quick-card {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s;
  overflow: hidden;
}
.quick-card:hover { transform: scale(1.03); }
.quick-card-img {
  width: 100%;
  height: 9rem;
  background-size: cover;
  background-position: center;
}
.quick-card-footer {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0.75rem 0.75rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  align-items: center;
}
.quick-card-label {
  font-family: 'Dominance', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
}
.quick-card-btn {
  background: rgba(255,255,255,0.8);
  padding: 0.5rem 0.75rem 0.5rem 1.5rem;
  border-radius: 0.5rem;
  color: rgba(0,0,0,0.8);
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.quick-card-btn:hover { background: rgba(255,255,255,1); }

/* ─── Auth / Login Pages ─────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}
.auth-logo { height: 2rem; }
.auth-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}
.auth-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-align: center;
}
.auth-subtitle {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* Input & Button fields */
.input-field {
  border: 1px solid rgba(255,255,255,0);
  border-radius: 0.375rem;
  height: 2.5rem;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.9);
  width: 100%;
  padding: 0 0.75rem;
  font-family: 'Product Sans', sans-serif;
  font-size: 0.875rem;
  transition: border-color 0.2s, background 0.2s;
}
.input-field:focus {
  outline: none;
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.1);
}
.button-field {
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.2s;
}
.button-field:hover { opacity: 1; }

/* Google Sign-In button wrapper */
.g-signin-wrap {
  width: 16rem;
  border-radius: 0.375rem;
  text-align: center;
}

/* ─── App Dashboard Pages ────────────────────────── */
.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  flex: 1;
}
.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.5rem;
}
.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  padding: 1.25rem;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  backdrop-filter: blur(12px);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}
thead tr {
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
tr:nth-child(odd) td { background: rgba(255,255,255,0.035); }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

/* Accordion-style settings */
.accordion { display: flex; flex-direction: column; gap: 1rem; }
.accordion-panel {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
  margin-bottom: 1rem;
}
.accordion-header {
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.accordion-header:hover { background: rgba(255,255,255,0.1); }
.accordion-header.active { background: rgba(255,255,255,0); color: white; }
.accordion-body {
  background: rgba(255,255,255,0);
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}
.accordion-body.open { display: flex; }
.accordion-chevron { transition: transform 0.3s; }
.accordion-header.active .accordion-chevron { transform: rotate(180deg); }

/* Logs */
.log-entry {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-family: monospace;
}

/* Form elements inside cards */
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn {
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  font-family: 'Product Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s;
}
.btn-primary { background: var(--color-primary); color: #000; }
.btn-secondary { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.1); }
.btn:hover { opacity: 0.85; }

/* ─── Notification System ────────────────────────── */
.notifications {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 50;
}
.notification {
  width: 20rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: slideIn 0.3s ease forwards;
}
.notification.leaving { animation: slideOut 0.3s ease forwards; }
.notification.success { background: rgba(134,239,172,0.2); color: rgb(187,247,208); }
.notification.error   { background: rgba(252,165,165,0.2); color: rgb(254,202,202); }
.notification.info    { background: rgba(147,197,253,0.2); color: rgb(191,219,254); }
.notification.warning { background: rgba(253,230,138,0.2); color: rgb(253,230,138); }
.notification-inner {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  padding: 1rem;
}
.notification-msg { flex: 1; font-size: 0.9rem; font-weight: 500; }
.notification-close {
  margin-left: 0.75rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1rem;
  color: inherit;
  opacity: 0.7;
}
.notification-close:hover { opacity: 1; }
.notification-bar {
  height: 4px;
  background: rgba(255,255,255,0.6);
  border-radius: 0 0 0.5rem 0.5rem;
  animation: shrink 5s linear forwards;
}

/* ─── Loading Spinner ────────────────────────────── */
.loader {
  width: 20px;
  aspect-ratio: 1;
  background:
    linear-gradient(#0000 calc(1*100%/6), currentColor 0 calc(3*100%/6), #0000 0) left bottom,
    linear-gradient(#0000 calc(2*100%/6), currentColor 0 calc(4*100%/6), #0000 0) center bottom,
    linear-gradient(#0000 calc(3*100%/6), currentColor 0 calc(5*100%/6), #0000 0) right bottom;
  background-size: 20% 600%;
  background-repeat: no-repeat;
  animation: l3 1s infinite linear;
}

/* ─── Keyframes ──────────────────────────────────── */
@keyframes shrink {
  from { width: 100%; }
  to   { width: 0%; }
}
@keyframes shake {
  0%   { margin-left: 0; }
  25%  { margin-left: 0.5rem; }
  75%  { margin-left: -0.5rem; }
  100% { margin-left: 0; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}
@keyframes l3 {
  100% { background-position: left top, center top, right top; }
}

/* ─── Responsive (md = 768px) ────────────────────── */
@media (min-width: 768px) {
  .header-nav { display: flex; }
  .app-nav { display: flex; }
  .mobile-menu-btn { display: none; }

  header { padding-left: 2rem; padding-right: 2rem; }
  .app-header-logo { padding-left: 2rem; }

  .hero-row { flex-direction: row; gap: 1.5rem; }
  .hero-word { font-size: 100px; }
  .hero-desc { font-size: 1.25rem; }
  .arc-svg {
    width: 100%;
    min-width: 1400px;
    transform: translateY(0) scale(1.25);
  }

  .bg-svg { height: auto; }

  .policy-hero { height: 15rem; }
  .policy-body { padding: 4rem 16rem; }

  .german-hero { height: 15rem; }

  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-card { max-height: 24rem; }
  .quick-card-img { flex: 1; height: auto; }
  .quick-card-footer { padding: 1.25rem 1.25rem 1.25rem 1.5rem; }
  .quick-card-label { font-size: 1.5rem; }
  .quick-card-btn { padding: 0.75rem 0.75rem 0.75rem 1.5rem; font-size: 1rem; gap: 1rem; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Dashboard wrapper ──────────────────────────── */
.dashboard-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 1.5rem 4rem;
  flex: 1;
  min-height: calc(100vh - 5rem);
}
.dashboard-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 20rem;
  opacity: 0.5;
}
.hidden-mobile { display: none; }
@media (min-width: 768px) {
  .hidden-mobile { display: inline; }
  .dashboard-wrap { padding: 2rem 4rem 4rem; }
}

/* Font path fix for sub-pages */
.page-wrap-app { font-family: 'Product Sans', sans-serif; }
