@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Spline+Sans:wght@400;500;600&display=swap");

:root {
  --bg-0: #07080b;
  --bg-1: #0d1016;
  --bg-2: #151a22;
  --card: #151b24;
  --stroke: #232b37;
  --text: #e8edf5;
  --muted: #96a1b3;
  --accent: #ff2b3c;
  --accent-2: #ff6b3c;
  --glow: 0 0 24px rgba(255, 43, 60, 0.45);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Spline Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #141821 0%, var(--bg-0) 45%);
}

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 12px;
}

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

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background: rgba(9, 12, 18, 0.9);
  border-bottom: 1px solid var(--stroke);
  font-size: 14px;
}

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

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow);
}

.dot.offline {
  background: #8b95a7;
  box-shadow: none;
}

.maintenance-banner {
  background: rgba(255, 43, 60, 0.15);
  border-bottom: 1px solid rgba(255, 43, 60, 0.4);
  padding: 10px 24px;
  font-size: 13px;
}

.status-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--muted);
}

.link {
  color: var(--accent);
  font-weight: 600;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 11, 0.75);
  z-index: 10;
}

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

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  font-weight: 700;
  color: #0b0d12;
}

.brand-title {
  display: block;
  font-weight: 700;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
  padding: 8px 12px;
  border-radius: 12px;
}

.btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0b0d12;
  font-weight: 600;
  box-shadow: var(--glow);
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

main {
  padding: 0 40px 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  padding: 80px 0 40px;
}

.tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 43, 60, 0.12);
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.media-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.accent {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0 20px;
}

.hero-meta {
  display: flex;
  gap: 24px;
}

.hero-media .media-card {
  background: linear-gradient(135deg, #151b24, #0b0e15);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--stroke);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.media-frame {
  background: #0b0f16;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.section {
  margin-top: 64px;
}

.section.dark {
  background: linear-gradient(135deg, #0f131b, #0b0f16);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--stroke);
}

.section-head {
  max-width: 620px;
  margin-bottom: 28px;
}

.feature-grid,
.faction-grid,
.news-grid,
.support-grid,
.step-grid,
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.post-meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}

.post-body h1,
.post-body h2,
.post-body h3 {
  margin-top: 18px;
}

.post-body p {
  color: var(--text);
  line-height: 1.6;
}

.post-body ul {
  padding-left: 18px;
}

mark {
  background: rgba(255, 43, 60, 0.2);
  color: var(--text);
  padding: 0 4px;
  border-radius: 4px;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px;
}

.card-media {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 12px;
  display: block;
}

.media-preview {
  margin: 8px 0 12px;
}

.media-preview img {
  width: 100%;
  max-width: 220px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
}

.twitch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.twitch-card {
  display: grid;
  gap: 10px;
  background: #0f141c;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 14px;
}

.twitch-card img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--stroke);
}

.twitch-placeholder {
  display: grid;
  place-items: center;
  height: 120px;
  border-radius: 10px;
  background: rgba(255, 43, 60, 0.2);
  font-weight: 700;
}

.twitch-meta {
  display: grid;
  gap: 4px;
  color: var(--text);
}

.status-live {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  position: relative;
  padding-left: 16px;
}

.status-offline {
  color: var(--muted);
  letter-spacing: 0.06em;
}

.twitch-embed {
  margin-top: 10px;
}

.status-live::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 0 0 0 rgba(255, 43, 60, 0.6);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 43, 60, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 43, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 43, 60, 0); }
}

.twitch-viewers,
.twitch-game {
  font-size: 12px;
  color: var(--muted);
}

.twitch-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.twitch-modal.is-visible {
  display: flex;
}

.twitch-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.75);
}

.twitch-modal-panel {
  position: relative;
  z-index: 1;
  width: min(820px, 92vw);
  background: #0f141c;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.twitch-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: #0f141c;
  border-left: 1px solid var(--stroke);
  padding: 16px;
  display: grid;
  gap: 12px;
  z-index: 65;
  transition: right 0.2s ease;
}

.twitch-drawer.is-visible {
  right: 0;
}

.twitch-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 64;
}

.twitch-drawer-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.twitch-frame iframe {
  border: 0;
  border-radius: 12px;
}

.twitch-chat iframe {
  border: 0;
  border-radius: 12px;
}

.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  top: -28px;
  background: rgba(15, 20, 28, 0.95);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}

.tooltip.is-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.faction-card {
  background: #0d1118;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 43, 60, 0.12);
  color: var(--accent);
  font-size: 12px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.step {
  background: #0e121a;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b0d12;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-weight: 700;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  margin-bottom: 10px;
  object-fit: cover;
}

.cta {
  margin-top: 64px;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 43, 60, 0.18), rgba(9, 12, 18, 0.8));
  border: 1px solid rgba(255, 43, 60, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-image {
  width: 160px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--stroke);
}

.page-hero {
  padding: 48px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.page-hero-card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 240px;
  background: #0c1017;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  margin: 10px 0;
  padding-left: 22px;
  position: relative;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 32px 40px;
  background: #05060a;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-bottom {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Admin */
body.admin {
  background: #0b0e15;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #090c12;
  border-right: 1px solid var(--stroke);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-brand {
  font-weight: 700;
  font-size: 18px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  background: #0e131b;
}

.admin-content {
  padding: 32px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-title {
  font-size: 22px;
  font-weight: 700;
}

.admin-sub {
  color: var(--muted);
  font-size: 13px;
}

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

.admin-card {
  background: #0f141c;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--stroke);
}

.admin-reminders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.code-block {
  background: #0c1119;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 12px;
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: var(--text);
}

.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-builder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.builder-item {
  background: #0f141c;
  border: 1px solid var(--stroke);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.builder-panel input,
.builder-panel textarea,
.admin-form input,
.admin-form textarea {
  width: 100%;
  background: #0c1119;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--text);
  padding: 10px;
  margin-bottom: 12px;
}

.builder-panel select,
.admin-form select,
.card select {
  width: 100%;
  background: #0c1119;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--text);
  padding: 10px;
  margin-bottom: 12px;
}

.admin-chat {
  display: grid;
  gap: 18px;
}

.chat-log {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-line {
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 10px;
}

.chat-user {
  font-weight: 600;
  margin-right: 8px;
}

.chat-time {
  color: var(--muted);
  font-size: 12px;
}

.chat-message {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 14px;
  white-space: pre-wrap;
}

.chat-form textarea {
  min-height: 90px;
}

.input-mini {
  width: 140px;
  background: #0c1119;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  color: var(--text);
  padding: 6px 8px;
}

.card input,
.card textarea {
  width: 100%;
  background: #0c1119;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--text);
  padding: 10px;
  margin-bottom: 12px;
}

.editor textarea {
  width: 100%;
  background: #0c1119;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--text);
  padding: 12px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.media-tile {
  background: #0f141c;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.media-preview-img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  display: block;
}

.preset-path {
  width: 100%;
  margin-bottom: 12px;
}

.preset-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.preset-row .btn {
  padding: 6px 10px;
}

.copy-menu {
  position: relative;
}

.copy-dropdown {
  position: absolute;
  right: 0;
  top: 110%;
  display: none;
  background: rgba(15, 20, 28, 0.98);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 8px;
  z-index: 20;
}

.copy-menu.is-open .copy-dropdown {
  display: grid;
  gap: 6px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: rgba(15, 20, 28, 0.95);
  color: var(--text);
  border: 1px solid var(--stroke);
  padding: 10px 14px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 50;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-card {
  background: #0f141c;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 28px;
  width: min(400px, 90%);
}

.login-card input {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #0c1119;
  color: var(--text);
}

.alert {
  background: rgba(255, 43, 60, 0.15);
  border: 1px solid rgba(255, 43, 60, 0.4);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0c1119;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}

.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.check-row label {
  margin: 0;
  color: var(--text);
}

.hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.template-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 4px;
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.perm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 43, 60, 0.12);
  color: var(--accent);
  font-size: 12px;
}

.role-multi {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
  text-align: left;
}

.role-multi label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: #0c1119;
}

.role-multi input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

@media (max-width: 960px) {
  .site-header {
    padding: 16px 20px;
  }

  main {
    padding: 0 20px 60px;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: flex;
    position: absolute;
    top: 72px;
    right: 20px;
    background: #0b0f16;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 12px;
    flex-direction: column;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    flex-direction: row;
    overflow-x: auto;
  }

  .admin-two-col,
  .admin-builder {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}


.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 16px;
}

.pdf-frame {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow: hidden;
  background: #0c1119;
}

.pdf-frame iframe {
  width: 100%;
  height: 70vh;
  border: 0;
}
.media-frame.video {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 43, 60, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  background: #0b0f16;
  aspect-ratio: 16 / 9;
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #0b0f16;
}
.hero-video::-webkit-media-controls-panel {
  background: rgba(10, 13, 19, 0.85);
  border-top: 1px solid rgba(255, 43, 60, 0.25);
}

.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-mute-button,
.hero-video::-webkit-media-controls-fullscreen-button {
  filter: invert(1) grayscale(1);
}

.hero-video::-webkit-media-controls-current-time-display,
.hero-video::-webkit-media-controls-time-remaining-display {
  color: #e8edf6;
}

.hero-video::-webkit-media-controls-timeline {
  filter: hue-rotate(-10deg) saturate(2);
}

.hero-video::-moz-range-thumb {
  background: #ff2b3c;
}
.video-player {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0f16;
}

.video-player .hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #0b0f16;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(255, 43, 60, 0.12), transparent 60%);
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.video-play .play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(12, 16, 24, 0.85);
  border: 1px solid rgba(255, 43, 60, 0.6);
  box-shadow: 0 10px 30px rgba(255, 43, 60, 0.3);
  position: relative;
}

.video-play .play-icon::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 26px;
  width: 0;
  height: 0;
  border-left: 18px solid #ff2b3c;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.video-player.is-playing .video-play {
  opacity: 0;
  pointer-events: none;
}

.video-controls {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  background: rgba(8, 10, 16, 0.78);
  border: 1px solid rgba(255, 43, 60, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  backdrop-filter: blur(6px);
}

.video-btn {
  background: rgba(255, 43, 60, 0.12);
  color: #f7f9ff;
  border: 1px solid rgba(255, 43, 60, 0.4);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.video-time {
  color: #d6dbe6;
  font-size: 12px;
  white-space: nowrap;
}

.video-progress {
  width: 100%;
}

.video-progress,
.video-volume {
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  outline: none;
}

.video-progress::-webkit-slider-thumb,
.video-volume::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff2b3c;
  border: 2px solid #0b0f16;
  box-shadow: 0 0 0 2px rgba(255, 43, 60, 0.35);
}

.video-volume {
  max-width: 90px;
}

@media (max-width: 900px) {
  .video-controls {
    grid-template-columns: auto auto 1fr auto;
    grid-auto-rows: auto;
  }
  .video-volume {
    display: none;
  }
}
.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: contain;
  background: #0b0f16;
  border: 1px solid rgba(255, 43, 60, 0.4);
  box-shadow: 0 0 24px rgba(255, 43, 60, 0.25);
}
.legal-card {
  line-height: 1.7;
}

.legal-card h3 {
  margin-top: 18px;
}

.section-head h2 {
  position: relative;
  padding-bottom: 10px;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 999px;
}

.card,
.faction-card,
.step {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.faction-card:hover,
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 43, 60, 0.35);
}

.feature-grid .card h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  box-shadow: var(--glow);
}

.section {
  margin-top: 72px;
}

.hero {
  padding: 96px 0 56px;
}
.admin-shell {
  grid-template-columns: 260px 1fr;
  background: radial-gradient(circle at top left, #0f141c 0%, #0b0e15 55%);
}

.admin-sidebar {
  background: #0a0e15;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 22px;
  gap: 18px;
}

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

.admin-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255, 43, 60, 0.15);
  border: 1px solid rgba(255, 43, 60, 0.45);
  color: #ffd6db;
  box-shadow: 0 8px 24px rgba(255, 43, 60, 0.25);
}

.admin-brand-title {
  font-size: 16px;
  font-weight: 700;
}

.admin-brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.admin-nav {
  gap: 16px;
}

.admin-nav-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
}

.admin-nav a {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.admin-nav a:hover {
  border-color: rgba(255, 43, 60, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  background: rgba(255, 43, 60, 0.08);
}

.admin-logout {
  margin-top: auto;
}

.admin-content {
  padding: 32px 40px 56px;
}

.admin-header {
  background: rgba(12, 16, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.admin-title {
  font-size: 24px;
}

.admin-actions .btn {
  min-width: 140px;
}

.admin-card,
.card {
  background: rgba(14, 18, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.admin-table th {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-section-head h2 {
  letter-spacing: 0.02em;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  background: #0b111a;
  border-color: rgba(255, 255, 255, 0.08);
}

.admin-chat .chat-line {
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    padding: 16px;
    flex-direction: column;
  }
}
/* Admin Dashboard */
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.dash-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 20px;
  margin-bottom: 24px;
}

.dash-hero-text h1 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 8px;
}

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

.dash-hero-card {
  background: linear-gradient(140deg, rgba(15, 20, 30, 0.92), rgba(10, 12, 18, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dash-status {
  display: grid;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 24, 0.8);
  width: fit-content;
}

.status-pill.online {
  color: #ff9aa3;
  border-color: rgba(255, 43, 60, 0.45);
  box-shadow: 0 0 18px rgba(255, 43, 60, 0.25);
}

.status-pill.offline {
  color: #b0b7c6;
}

.dash-stat {
  background: rgba(9, 12, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
}

.dash-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.dash-stat-value {
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
}

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

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.metric-card {
  background: rgba(12, 16, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 43, 60, 0.18), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.metric-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
}

.metric-value {
  font-size: 26px;
  font-weight: 700;
}

.metric-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.spark {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  align-items: end;
  height: 44px;
  margin-top: 6px;
}

.spark span {
  display: block;
  height: var(--h);
  background: linear-gradient(180deg, rgba(255, 43, 60, 0.7), rgba(255, 43, 60, 0.15));
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 0 12px rgba(255, 43, 60, 0.2);
}

.dash-panels {
  display: grid;
  gap: 20px;
}

.dash-panel {
  background: rgba(12, 16, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 20px;
}

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

.dash-ops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.op-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(8, 11, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.op-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 43, 60, 0.4);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.op-title {
  font-weight: 700;
}

.op-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.dash-reminder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .dash-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dash-stat-grid {
    grid-template-columns: 1fr;
  }
}
/* Admin nav icons + active */
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.nav-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.85;
}

.nav-link.is-active {
  color: #fff;
  border-color: rgba(255, 43, 60, 0.55);
  background: linear-gradient(120deg, rgba(255, 43, 60, 0.18), rgba(12, 16, 24, 0.9));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.nav-link.is-active .nav-icon {
  color: #ff9aa3;
}