:root {
  --bg: #070b12;
  --bg-2: #0b111d;
  --panel: rgba(17, 24, 39, 0.94);
  --panel-2: rgba(22, 31, 49, 0.96);
  --panel-3: rgba(12, 18, 30, 0.98);

  --text: #f4f7fb;
  --muted: #9fb0c7;
  --muted-2: #6f819b;

  --accent: #f6b73c;
  --accent-2: #f2c96d;
  --accent-soft: rgba(246, 183, 60, 0.14);

  --blue: #5b8cff;
  --blue-soft: rgba(91, 140, 255, 0.16);

  --success: #20c997;
  --success-soft: rgba(32, 201, 151, 0.12);

  --warning: #f6b73c;
  --warning-soft: rgba(246, 183, 60, 0.13);

  --danger: #ff6b6b;

  --border: rgba(126, 148, 180, 0.22);
  --border-strong: rgba(246, 183, 60, 0.44);

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.22);

  --radius: 18px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(246, 183, 60, 0.12), transparent 30%),
    radial-gradient(circle at 85% 8%, rgba(91, 140, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #060a11 0%, #090f1a 48%, #070b12 100%);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 100%);
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  color: #ffe6a6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 10, 17, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffc861 0%, #f6a821 100%);
  color: #111827;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(246, 183, 60, 0.22);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(16, 24, 39, 0.78);
  color: #d8e0ed;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav-links a:hover {
  background: rgba(25, 35, 55, 0.98);
  border-color: rgba(246, 183, 60, 0.32);
  color: #ffffff;
}

.nav-links a.active {
  background: linear-gradient(180deg, rgba(246, 183, 60, 0.18), rgba(246, 183, 60, 0.08));
  border-color: var(--border-strong);
  color: #ffffff;
}

.container {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px 48px;
}

.hero,
.card,
.grid-card,
.info-strip,
.calendar-block {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 26, 43, 0.96), rgba(13, 19, 32, 0.96));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 38px 30px;
  margin-bottom: 22px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 183, 60, 0.12), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(246, 183, 60, 0.14), transparent 30%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.hero > *,
.card > *,
.grid-card > *,
.calendar-block > * {
  position: relative;
  z-index: 1;
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.eyebrow {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

h2 {
  margin: 0 0 12px;
  color: #ffffff;
  letter-spacing: -0.025em;
}

p {
  color: var(--muted);
}

.hero p {
  max-width: 760px;
  font-size: 1.08rem;
}

.notice,
.callout {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(246, 183, 60, 0.18);
  border-left: 4px solid var(--accent);
  background: rgba(246, 183, 60, 0.08);
  border-radius: 15px;
  color: #f7f2e7;
}

.warning {
  border-color: rgba(246, 183, 60, 0.20);
  border-left-color: var(--warning);
  background: var(--warning-soft);
}

.success {
  border-color: rgba(32, 201, 151, 0.20);
  border-left-color: var(--success);
  background: var(--success-soft);
}

.live-time-box,
.mini-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(11, 17, 28, 0.72);
  box-shadow: var(--shadow-soft);
}

.live-time-label,
.meta {
  font-size: 0.78rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.live-time-value {
  margin-top: 6px;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 850;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0;
}

.grid-card,
.card {
  padding: 24px;
}

.grid-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.grid-card:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 183, 60, 0.32);
  background: linear-gradient(180deg, rgba(22, 31, 49, 0.98), rgba(15, 22, 36, 0.98));
}

.grid-card p {
  flex: 1;
}

.icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 16px;
  background: rgba(246, 183, 60, 0.11);
  border: 1px solid rgba(246, 183, 60, 0.20);
  font-size: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(246, 183, 60, 0.58);
  background: linear-gradient(135deg, #f6b73c, #d98f16);
  color: #121826;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(246, 183, 60, 0.18);
  transition: transform 140ms ease, filter 140ms ease, border-color 140ms ease;
}

.button:hover {
  color: #111827;
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.button.secondary {
  background: rgba(16, 24, 39, 0.72);
  border-color: var(--border);
  box-shadow: none;
  color: var(--text);
}

.button.secondary:hover {
  background: rgba(24, 34, 53, 0.95);
  border-color: rgba(246, 183, 60, 0.34);
  color: #ffffff;
}

.button.big {
  min-height: 60px;
  padding: 15px 22px;
  font-size: 1.04rem;
  border-radius: 16px;
}

.button.green {
  border-color: rgba(246, 183, 60, 0.58);
  background: linear-gradient(135deg, #f6b73c, #d98f16);
  color: #121826;
  box-shadow: 0 14px 30px rgba(246, 183, 60, 0.20);
}

.stack {
  display: grid;
  gap: 16px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(8, 13, 22, 0.42);
}

.step::before {
  content: counter(step);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(246, 183, 60, 0.14);
  color: var(--accent-2);
  font-weight: 950;
  border: 1px solid rgba(246, 183, 60, 0.18);
}

.list {
  padding-left: 20px;
  color: var(--muted);
}

.list li {
  margin: 8px 0;
}

.kbd {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(7, 11, 18, 0.65);
  color: #ffffff;
  font-size: 0.92em;
}

.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 34px;
  color: var(--muted-2);
  font-size: 0.95rem;
}

.calendar-block {
  margin-top: 22px;
  padding: 22px;
}

.calendar-shell {
  border-radius: 18px;
  overflow: hidden;
  background: #070d18;
  padding: 14px;
  border: 1px solid var(--border);
}

.calendar-meta {
  color: var(--muted);
  margin-top: -4px;
  margin-bottom: 14px;
}

.calendar-error {
  margin-top: 12px;
  color: #ff9a9a;
}

.fc {
  color: #e5e7eb;
}

.fc .fc-toolbar {
  gap: 10px;
  margin-bottom: 14px !important;
}

.fc .fc-toolbar-title {
  font-size: 1.2rem;
  font-weight: 850;
  color: #ffffff;
}

.fc .fc-button {
  background: rgba(16, 24, 39, 0.95) !important;
  border: 1px solid rgba(246, 183, 60, 0.36) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
}

.fc .fc-button:hover {
  background: rgba(246, 183, 60, 0.18) !important;
}

.fc .fc-button-primary.fc-button-active {
  background: linear-gradient(135deg, #f6b73c, #d98f16) !important;
  color: #111827 !important;
  border-color: rgba(246, 183, 60, 0.7) !important;
}

.fc-theme-standard td,
.fc-theme-standard th,
.fc-theme-standard .fc-scrollgrid {
  border-color: #25324a !important;
}

.fc .fc-col-header-cell {
  background: #111827 !important;
}

.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number {
  color: #e5e7eb !important;
  text-decoration: none !important;
}

.fc .fc-daygrid-day.fc-day-today {
  background: rgba(246, 183, 60, 0.10) !important;
}

.fc-daygrid-event {
  white-space: normal !important;
  font-size: 0.74rem;
  padding: 3px 5px;
  border-radius: 8px;
}

.fc .fc-event-title,
.fc .fc-event-time {
  color: #ffffff !important;
}

.fc .fc-event {
  border-color: transparent !important;
}

.fc .series-event {
  background: #3159d4 !important;
}

.fc .movie-event {
  background: #b97706 !important;
}

.fc .fc-list {
  background: #070d18 !important;
}

.fc .fc-list-day-cushion {
  background: #111827 !important;
}

.fc .fc-list-event td {
  background: #0f172a !important;
  border-color: #25324a !important;
  color: #e5e7eb !important;
}

.fc .fc-daygrid-more-link {
  color: var(--accent-2) !important;
  font-weight: 900;
}

@media (max-width: 900px) {
  .hero-top,
  .grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 22px 14px 36px;
  }

  .hero,
  .card,
  .grid-card,
  .calendar-block {
    padding: 20px 16px;
  }

  .nav-links a {
    padding: 9px 10px;
    font-size: 0.92rem;
  }

  .fc .fc-toolbar {
    flex-direction: column;
  }
}

/* Home polish */
.home-hero h1 {
  max-width: 780px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 4px;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(246, 183, 60, 0.24);
  background: rgba(246, 183, 60, 0.09);
  color: #f8d991;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.live-panel {
  display: grid;
  gap: 12px;
}

.mini-card-value {
  margin-top: 8px;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.15rem;
}

.mini-card-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.quick-start {
  margin-bottom: 22px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.quick-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(7, 11, 18, 0.36);
}

.quick-item p {
  margin: 4px 0 0;
  font-size: 0.94rem;
}

.quick-num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(246, 183, 60, 0.14);
  color: var(--accent-2);
  border: 1px solid rgba(246, 183, 60, 0.20);
  font-weight: 950;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.portal-card .icon {
  margin-bottom: 0;
}

.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.status-card h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.footer-polished {
  border-top: 1px solid rgba(126, 148, 180, 0.14);
  padding-top: 22px;
}

.footer-polished div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-polished strong {
  color: #ffffff;
}

.footer-polished span {
  color: var(--muted-2);
}

@media (max-width: 900px) {
  .quick-grid,
  .status-card {
    grid-template-columns: 1fr;
  }

  .status-card {
    display: block;
  }
}

@media (max-width: 560px) {
  .hero-pills {
    gap: 8px;
  }

  .pill,
  .tag {
    font-size: 0.72rem;
  }

  .quick-item {
    grid-template-columns: 36px 1fr;
  }
}

/* Cinematic media-wall background */
body {
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.84), rgba(7, 11, 18, 0.96)),
    url("/assets/cinematic-bg.png?v=1") center top / cover fixed no-repeat,
    #070b12;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(246, 183, 60, 0.12), transparent 32%),
    radial-gradient(circle at 80% 8%, rgba(246, 183, 60, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.72));
  backdrop-filter: blur(2.5px);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.45;
  z-index: 0;
}

.site-header,
.container,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Background visibility tuning */
body {
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.22), rgba(7, 11, 18, 0.60)),
    url("/assets/cinematic-bg.png?v=3") center top / cover fixed no-repeat,
    #070b12;
}

/* Remove the heavy blur/darkness because the image is already dark */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(246, 183, 60, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.34));
  backdrop-filter: none;
  z-index: 0;
}

/* Softer vignette only, no visible grid */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 54%, rgba(0,0,0,0.34) 100%);
  opacity: 1;
  z-index: 0;
}

/* Let the background breathe through the panels a bit more */
.hero,
.card,
.grid-card,
.calendar-block {
  background: linear-gradient(180deg, rgba(18, 26, 43, 0.78), rgba(13, 19, 32, 0.82));
  backdrop-filter: blur(8px);
  border-color: rgba(246, 183, 60, 0.20);
}

/* Header should stay readable but not fully block the background */
.site-header {
  background: rgba(6, 10, 17, 0.72);
  backdrop-filter: blur(16px);
}

/* Hero can be slightly more glassy than the other cards */
.hero {
  background: linear-gradient(180deg, rgba(18, 26, 43, 0.70), rgba(13, 19, 32, 0.78));
}

/* Reduce internal hero glow so the BG remains visible */
.hero::before {
  background:
    linear-gradient(90deg, rgba(246, 183, 60, 0.06), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(246, 183, 60, 0.07), transparent 30%);
}

.hero::after {
  opacity: 0.55;
}

/* Brand mark polish: cinematic play tile */
.brand-mark {
  position: relative;
  overflow: hidden;
  color: transparent;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.55), transparent 18%),
    linear-gradient(135deg, #ffd36b 0%, #f6a821 48%, #b86c08 100%);
  border: 1px solid rgba(255, 215, 128, 0.55);
  box-shadow:
    0 0 0 1px rgba(246, 183, 60, 0.12),
    0 12px 30px rgba(246, 183, 60, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.40);
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid #111827;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.22));
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 11px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  pointer-events: none;
}
