:root {
  --bg: #05080f;
  --bg-soft: rgba(10, 16, 28, 0.8);
  --panel: rgba(10, 18, 32, 0.64);
  --panel-strong: rgba(10, 16, 26, 0.82);
  --line: rgba(167, 202, 255, 0.22);
  --line-strong: rgba(167, 202, 255, 0.4);
  --text: #eef4ff;
  --muted: #a9b5c7;
  --accent: #8cc4ff;
  --accent-strong: #d7ebff;
  --danger: #ff9fae;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 22px;
  --radius-small: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 8%, rgba(95, 153, 255, 0.12), transparent 24%),
    radial-gradient(circle at 10% 15%, rgba(118, 180, 255, 0.08), transparent 25%),
    radial-gradient(circle at 86% 22%, rgba(118, 180, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #04070d 0%, #060b14 35%, #04070d 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(140, 196, 255, 0.08), transparent 38%),
    radial-gradient(circle at 80% 18%, rgba(140, 196, 255, 0.06), transparent 24%),
    radial-gradient(circle at 20% 82%, rgba(140, 196, 255, 0.05), transparent 22%);
  pointer-events: none;
  z-index: -6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

video {
  width: 100%;
  display: block;
}

.page-shell,
.vault-page {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  padding: 24px 16px 88px;
}

.ambient,
.smoke,
.grain,
.vault-bg,
.vault-smoke {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient,
.vault-bg {
  z-index: -5;
  opacity: 0.55;
}

.ambient-one,
.vault-bg {
  background:
    radial-gradient(circle at 50% 2%, rgba(255,255,255,0.16), transparent 18%),
    radial-gradient(circle at 85% 35%, rgba(103, 155, 255, 0.12), transparent 22%),
    radial-gradient(circle at 15% 30%, rgba(152, 204, 255, 0.12), transparent 20%);
  filter: blur(16px);
}

.ambient-two {
  background: linear-gradient(90deg, rgba(255,255,255,0.05), transparent 12%, transparent 88%, rgba(255,255,255,0.05));
  opacity: 0.22;
}

.ambient-three {
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 2px, transparent 2px, transparent 92px);
  opacity: 0.07;
}

.grain {
  z-index: -4;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.65) 0.45px, transparent 0.6px),
    radial-gradient(circle at 80% 40%, rgba(255,255,255,0.6) 0.35px, transparent 0.55px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.55) 0.45px, transparent 0.65px);
  background-size: 140px 140px, 220px 220px, 180px 180px;
  mix-blend-mode: screen;
}

.smoke,
.vault-smoke {
  z-index: -3;
  opacity: 0.18;
  filter: blur(26px);
  transform: translate3d(0,0,0);
}

.smoke-a,
.vault-smoke-1 {
  background:
    radial-gradient(ellipse at 15% 100%, rgba(218,234,255,0.65), transparent 32%),
    radial-gradient(ellipse at 50% 110%, rgba(214,230,255,0.5), transparent 36%),
    radial-gradient(ellipse at 90% 96%, rgba(214,230,255,0.45), transparent 28%);
  animation: driftA 18s ease-in-out infinite alternate;
}

.smoke-b,
.vault-smoke-2 {
  background:
    radial-gradient(ellipse at 30% 105%, rgba(187,214,255,0.4), transparent 24%),
    radial-gradient(ellipse at 68% 100%, rgba(187,214,255,0.35), transparent 22%);
  animation: driftB 24s ease-in-out infinite alternate;
}

.smoke-c {
  background: radial-gradient(ellipse at 50% 0%, rgba(135, 193, 255, 0.12), transparent 18%);
  animation: pulseGlow 7s ease-in-out infinite;
}

@keyframes driftA {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-16px) scale(1.06); }
}

@keyframes driftB {
  from { transform: translateX(-16px) translateY(10px); }
  to { transform: translateX(16px) translateY(-14px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: .08; }
  50% { opacity: .18; }
}

.topbar,
.content-wrap,
.login-wrap,
.video-wrap,
.footer-note,
.vault-shell,
.vault-login-wrap {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8,15,26,0.88), rgba(8,15,26,0.6));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.eyebrow,
.vault-eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.68rem;
}

.brand,
.hero-title,
.section-title,
.login-title,
.player-title,
.vault-title,
.vault-section-title,
.vault-tile-title {
  font-family: Orbitron, Inter, system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand {
  font-size: 1rem;
  margin-top: 6px;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.topnav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: .92rem;
  transition: .22s ease;
}

.topnav a:hover,
.topnav a.is-active {
  border-color: var(--line);
  color: var(--text);
  background: rgba(140,196,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 22px rgba(140,196,255,0.08);
}

.login-wrap,
.vault-login-wrap {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
}

.login-panel,
.panel,
.card,
.video-shell,
.gallery-strip,
.info-panel,
.chapter-card,
.future-card,
.vault-login-card,
.vault-player-card,
.vault-tile,
.glass-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10,18,32,0.74), rgba(7,12,22,0.54));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.03);
}

.login-panel::before,
.panel::before,
.card::before,
.video-shell::before,
.info-panel::before,
.vault-login-card::before,
.vault-player-card::before,
.vault-tile::before,
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(180,215,255,0.45),
    transparent 28%,
    transparent 72%,
    rgba(180,215,255,0.12)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.login-panel,
.vault-login-card {
  width: min(540px, 100%);
  padding: 36px 28px 30px;
}

.login-title,
.vault-title {
  font-size: clamp(2rem, 7vw, 3.35rem);
  text-align: center;
  margin: 0 0 12px;
  color: #eef6ff;
  text-shadow:
    0 0 10px rgba(120, 200, 255, 0.45),
    0 0 28px rgba(120, 200, 255, 0.28),
    0 0 60px rgba(120, 200, 255, 0.12);
}

.login-subtitle,
.hero-subtitle,
.section-subtitle,
.helper-text,
.meta,
.vault-subtitle,
.vault-section-subtitle,
.vault-helper,
.vault-tile-meta {
  color: var(--muted);
}

.login-subtitle,
.vault-subtitle {
  text-align: center;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: .76rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label,
.vault-label {
  display: block;
  margin-bottom: 8px;
  font-size: .92rem;
  color: var(--muted);
}

.input-wrap,
.vault-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 22px rgba(102,165,255,0.05);
}

.input-wrap:focus-within,
.vault-input-wrap:focus-within {
  border-color: rgba(188,220,255,.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 3px rgba(140,196,255,0.07),
    0 0 28px rgba(102,165,255,0.10);
}

.input-wrap input,
.vault-input-wrap input {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

.input-wrap input::placeholder,
.vault-input-wrap input::placeholder {
  color: rgba(169, 181, 199, 0.72);
}

.input-wrap svg,
.vault-input-icon {
  width: 18px;
  height: 18px;
  fill: var(--accent-strong);
  color: var(--accent-strong);
  opacity: .72;
  flex: 0 0 auto;
}

.button,
button,
.vault-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(126,180,255,0.14), rgba(126,180,255,0.06));
  color: var(--text);
  border-radius: 16px;
  min-height: 56px;
  padding: 0 22px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 0 28px rgba(126,180,255,0.14);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.button:hover,
button:hover,
.vault-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(188,220,255,.6);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 0 38px rgba(126,180,255,0.18);
}

.button.secondary,
.vault-btn-secondary,
.ghost-button {
  background: rgba(255,255,255,0.02);
  color: var(--muted);
}

.vault-btn-primary {
  background: linear-gradient(180deg, rgba(126,180,255,0.18), rgba(126,180,255,0.08));
  color: var(--text);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.vault-form .vault-btn {
  width: 100%;
  margin-top: 18px;
}

.error-box,
.notice-box,
.vault-error {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,159,174,0.22);
  background: rgba(255,159,174,0.08);
  color: #ffd7de;
}

.notice-box {
  border-color: rgba(140,196,255,0.22);
  background: rgba(140,196,255,0.08);
  color: #d8ebff;
}

.vault-helper {
  text-align: center;
  margin-top: 20px;
  font-size: .92rem;
  line-height: 1.65;
}

.content-wrap,
.vault-shell {
  display: grid;
  gap: 26px;
}

.hero {
  position: relative;
  padding: 34px 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(9,14,24,0.88), rgba(9,14,24,0.58));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 8% -50% 8%;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(132,190,255,0.22), transparent 64%);
  filter: blur(24px);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin: 0 0 12px;
}

.hero-subtitle {
  max-width: 700px;
  margin: 0 0 18px;
  line-height: 1.7;
}

.hero-meta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  font-size: .85rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.panel,
.card,
.info-panel,
.chapter-card,
.future-card,
.video-shell {
  overflow: hidden;
  padding: 22px;
}

.span-12 { grid-column: span 12; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-8 { grid-column: span 8; }

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title,
.vault-section-title {
  margin: 0;
  font-size: 1.18rem;
}

.section-subtitle,
.vault-section-subtitle {
  margin: 8px 0 0;
  font-size: .95rem;
}

.card-thumb,
.poster-frame,
.gallery-thumb,
.chapter-thumb,
.future-thumb,
.tile-thumb {
  border-radius: 16px;
  border: 1px solid rgba(187,219,255,0.18);
  background: linear-gradient(180deg, rgba(132,190,255,0.14), rgba(132,190,255,0.02));
  min-height: 160px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.card-thumb::after,
.poster-frame::after,
.gallery-thumb::after,
.chapter-thumb::after,
.future-thumb::after,
.tile-thumb::after {
  content: '';
  position: absolute;
  inset: auto 10% -10% 10%;
  height: 70px;
  background: radial-gradient(ellipse at center, rgba(135, 193, 255, 0.25), transparent 70%);
}

.card-thumb img,
.poster-frame img,
.gallery-thumb img,
.chapter-thumb img,
.future-thumb img,
.tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-text {
  color: rgba(226,236,255,0.82);
  font-family: Orbitron, Inter, sans-serif;
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tile,
.vault-tile {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  transition: .2s ease;
}

.tile:hover,
.vault-tile:hover {
  transform: translateY(-2px);
  background: rgba(140,196,255,0.05);
  border-color: rgba(188,220,255,.42);
  box-shadow: 0 18px 40px rgba(0,0,0,.34), 0 0 30px rgba(140,196,255,.08);
}

.tile-title,
.vault-tile-title {
  font-size: 1rem;
}

.tile-meta,
.vault-tile-meta {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
  word-break: break-word;
}

.vault-tile-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.vault-badge,
.tile-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(167,202,255,0.22);
  background: rgba(140,196,255,0.06);
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.video-list {
  display: grid;
  gap: 16px;
}

.video-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.video-item h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.video-item p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.chapter-grid,
.future-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.chapter-card h3,
.future-card h3,
.gallery-card h3 {
  margin: 14px 0 8px;
  font-size: 1rem;
}

.chapter-card p,
.future-card p,
.gallery-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.locked {
  border-color: rgba(167, 202, 255, 0.14);
  background: linear-gradient(180deg, rgba(8,13,22,0.88), rgba(8,13,22,0.64));
}

.lock-pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid rgba(167, 202, 255, 0.16);
  color: var(--muted);
  margin-top: 12px;
}

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

.gallery-card {
  display: grid;
  gap: 12px;
}

.gallery-thumb {
  aspect-ratio: 1 / 1;
  min-height: auto;
}

.gallery-strip {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.mini-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.mini-strip .gallery-thumb {
  aspect-ratio: 16 / 10;
}

.video-wrap {
  display: grid;
  gap: 22px;
}

.video-shell,
.vault-player-card {
  padding: 18px;
}

.player-frame,
.vault-video-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(167,202,255,0.18);
  background: #010308;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 0 30px rgba(140,196,255,0.10);
}

.player-frame video,
.vault-video {
  aspect-ratio: 16 / 9;
  background: #02050b;
}

.player-header,
.vault-player-top,
.vault-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.player-title {
  margin: 4px 0 10px;
  font-size: clamp(1.3rem, 4vw, 2rem);
}

.player-copy {
  color: var(--muted);
  max-width: 680px;
  line-height: 1.65;
}

.player-actions,
.vault-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.vault-actions-top {
  margin-top: 0;
}

.helper-text {
  font-size: .92rem;
  line-height: 1.65;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,202,255,0.25), transparent);
  margin: 12px 0;
}

.footer-note {
  margin-top: 34px;
  text-align: center;
  color: rgba(200,214,232,.55);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .68rem;
}

@media (max-width: 980px) {
  .span-8, .span-6, .span-4 { grid-column: span 12; }
  .chapter-grid, .future-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .page-shell,
  .vault-page {
    padding: 14px 12px 80px;
  }

  .topbar {
    padding: 14px;
    border-radius: 16px;
  }

  .topnav {
    justify-content: flex-start;
  }

  .login-panel,
  .vault-login-card {
    padding: 28px 18px 24px;
  }

  .hero {
    padding: 24px 18px;
  }

  .tile-grid,
  .chapter-grid,
  .future-grid,
  .gallery-grid,
  .mini-strip,
  .vault-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-item {
    grid-template-columns: 1fr;
  }

  .player-header,
  .player-actions,
  .vault-player-top,
  .vault-actions {
    flex-direction: column;
  }

  .button,
  button,
  .vault-btn {
    width: 100%;
  }
}

/* ===== Zusätzliche Klassen für aktuelle PHP-Dateien ===== */

.vault-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.vault-shell {
  position: relative;
  z-index: 2;
  padding-top: 28px;
}

.vault-login-wrap {
  position: relative;
  z-index: 2;
}

.vault-player-card {
  z-index: 2;
}

.vault-section-title {
  font-size: clamp(1.35rem, 4vw, 2.2rem);
  margin: 0;
}

.vault-section-subtitle {
  margin-top: 10px;
}

.vault-login-card {
  box-shadow:
    var(--shadow-strong),
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 0 60px rgba(120, 200, 255, 0.08);
}

.vault-player-card,
.glass-card {
  box-shadow:
    var(--shadow-strong),
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 0 48px rgba(120, 200, 255, 0.06);
}

/* ===== HARD OVERRIDE: LOGIN LOOK ===== */

body.login-page-vault {
  background:
    radial-gradient(circle at 50% 8%, rgba(145, 205, 255, 0.10), transparent 18%),
    radial-gradient(circle at 14% 26%, rgba(120, 170, 255, 0.08), transparent 20%),
    radial-gradient(circle at 86% 30%, rgba(120, 170, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #03060c 0%, #060b13 42%, #03060c 100%) !important;
  color: #eef4ff;
}

body.login-page-vault::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -8;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.16), transparent 18%),
    linear-gradient(90deg, rgba(255,255,255,0.03), transparent 14%, transparent 86%, rgba(255,255,255,0.03));
  opacity: .8;
}

body.login-page-vault .page-shell {
  min-height: 100vh;
  padding: 0;
}

body.login-page-vault .ambient,
body.login-page-vault .grain,
body.login-page-vault .smoke {
  display: block;
}

.vault-login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px 64px;
  position: relative;
  z-index: 2;
}

.vault-login-card-hero {
  width: min(920px, 100%);
  max-width: 920px;
  padding: 44px 44px 34px;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 24, 38, 0.82), rgba(11, 18, 30, 0.72));
  border: 1px solid rgba(164, 206, 255, 0.22);
  box-shadow:
    0 30px 100px rgba(0,0,0,0.62),
    0 0 60px rgba(110, 175, 255, 0.08),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.vault-login-card-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(215,235,255,0.18), transparent 18%, transparent 82%, rgba(215,235,255,0.08));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  padding: 1px;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.vault-login-card-hero::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 132px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(126, 196, 255, 0.72), transparent);
  box-shadow: 0 0 18px rgba(126,196,255,0.45);
  pointer-events: none;
}

.vault-login-topline {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.78rem;
  color: rgba(222, 233, 248, 0.78);
  text-align: center;
  margin-bottom: 20px;
}

.vault-login-heading {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0.12em;
  color: #eef6ff;
  text-shadow:
    0 0 10px rgba(141, 211, 255, 0.42),
    0 0 26px rgba(141, 211, 255, 0.26),
    0 0 60px rgba(141, 211, 255, 0.10);
}

.vault-login-subline {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 42px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.9rem;
  color: rgba(198, 212, 232, 0.70);
}

.vault-login-form {
  max-width: 820px;
  margin: 0 auto;
}

.vault-login-label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: #c8d8ee;
}

.vault-login-inputwrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-radius: 28px;
  border: 1px solid rgba(156, 198, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(8, 13, 22, 0.92), rgba(13, 20, 34, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 32px rgba(109, 170, 255, 0.10);
}

.vault-login-inputwrap:focus-within {
  border-color: rgba(188,220,255,.52);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 0 0 4px rgba(140,196,255,0.08),
    0 0 38px rgba(109, 170, 255, 0.16);
}

.vault-login-icon {
  font-size: 1.55rem;
  line-height: 1;
  opacity: .88;
  filter: grayscale(1) brightness(1.8);
}

.vault-login-inputwrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eef4ff;
  font-size: 1.25rem;
  font-weight: 500;
}

.vault-login-inputwrap input::placeholder {
  color: rgba(180, 192, 210, 0.72);
}

.vault-enter-button {
  width: 100%;
  margin-top: 28px;
  min-height: 82px;
  border-radius: 28px;
  border: 1px solid rgba(170, 210, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(140, 196, 255, 0.12), rgba(140, 196, 255, 0.05));
  color: #eef4ff;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 0 34px rgba(140,196,255,0.12);
}

.vault-enter-button:hover {
  transform: translateY(-1px);
  border-color: rgba(202, 228, 255, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 0 42px rgba(140,196,255,0.18);
}

.vault-login-bottomline {
  text-align: center;
  margin-top: 28px;
  color: rgba(204, 214, 228, 0.62);
  font-size: 0.92rem;
}

/* ===== VIDEO INDEX / PLAYER POLISH ===== */

.vault-shell,
.content-wrap {
  position: relative;
  z-index: 2;
}

.vault-grid,
.video-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.vault-tile,
.video-tile {
  min-height: 180px;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(15, 22, 36, 0.84), rgba(9, 15, 26, 0.72));
  border: 1px solid rgba(167, 202, 255, 0.16);
  box-shadow:
    0 18px 42px rgba(0,0,0,.34),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

.vault-player-card,
.video-shell,
.glass-card {
  background:
    linear-gradient(180deg, rgba(15, 22, 36, 0.84), rgba(9, 15, 26, 0.72));
}

.vault-video-frame,
.player-frame {
  border-radius: 24px;
  border: 1px solid rgba(167,202,255,0.18);
  overflow: hidden;
  background: #01040a;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 0 32px rgba(140,196,255,0.10);
}

.vault-video,
.player-frame video {
  background: #000;
}

@media (max-width: 720px) {
  .vault-login-card-hero {
    padding: 28px 20px 24px;
    border-radius: 26px;
  }

  .vault-login-card-hero::after {
    top: 108px;
    left: 10%;
    right: 10%;
  }

  .vault-login-subline {
    margin-top: 18px;
    margin-bottom: 28px;
  }

  .vault-login-inputwrap,
  .vault-enter-button {
    min-height: 68px;
    border-radius: 22px;
  }

  .vault-login-inputwrap input {
    font-size: 1.05rem;
  }
}


/* ===== VIDEO CINEMATIC PAGE ===== */

body.video-page-cinematic .page-shell {
  padding: 0;
  min-height: 100vh;
}

.video-cinematic-page {
  min-height: 100vh;
  position: relative;
  z-index: 2;
  padding: 28px 18px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-cinematic-shell {
  width: min(1200px, 100%);
}

.video-cinematic-card {
  position: relative;
  border-radius: 30px;
  border: 1px solid rgba(167, 202, 255, 0.18);
  background: linear-gradient(180deg, rgba(15,22,36,0.88), rgba(9,15,25,0.76));
  box-shadow:
    0 24px 80px rgba(0,0,0,.52),
    0 0 48px rgba(140,196,255,.06),
    inset 0 0 0 1px rgba(255,255,255,.03);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 28px;
  overflow: hidden;
}

.video-cinematic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(180,215,255,0.28),
    transparent 22%,
    transparent 78%,
    rgba(180,215,255,0.08)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.video-cinematic-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.video-cinematic-topline {
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--muted);
  font-size: .72rem;
  margin-bottom: 10px;
}

.video-cinematic-title {
  margin: 0;
  font-family: Orbitron, Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  color: #eef6ff;
  text-shadow:
    0 0 10px rgba(141,211,255,0.18),
    0 0 26px rgba(141,211,255,0.12);
}

.video-cinematic-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.5;
}

.video-cinematic-header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.video-cinematic-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(110,170,255,.08), transparent 35%),
    #000;
  border: 1px solid rgba(167,202,255,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 0 34px rgba(140,196,255,.08);
}

.video-cinematic-player {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-cinematic-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.video-cinematic-btn {
  appearance: none;
  border: 1px solid rgba(167,202,255,.24);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 16px;
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.02),
    0 0 24px rgba(126,180,255,.08);
}

.video-cinematic-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(188,220,255,.46);
}

.video-cinematic-btn-primary {
  background: linear-gradient(180deg, rgba(126,180,255,.18), rgba(126,180,255,.08));
  color: var(--text);
}

.video-cinematic-btn-secondary {
  color: var(--muted);
  background: rgba(255,255,255,.02);
}

@media (max-width: 820px) {
  .video-cinematic-page {
    padding: 0;
    align-items: stretch;
  }

  .video-cinematic-shell {
    width: 100%;
  }

  .video-cinematic-card {
    min-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 18px 14px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .video-cinematic-header {
    flex-direction: column;
    margin-bottom: 16px;
  }

  .video-cinematic-header-actions,
  .video-cinematic-actions {
    width: 100%;
    flex-direction: column;
  }

  .video-cinematic-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 18px;
  }

  .video-cinematic-frame {
    border-radius: 18px;
  }

  .video-cinematic-player {
    aspect-ratio: auto;
    max-height: 62vh;
  }

  .video-cinematic-title {
    font-size: clamp(1.2rem, 7vw, 1.8rem);
  }

  .video-cinematic-copy {
    font-size: .92rem;
  }
}