/* THE ELYSIUM ARCHIVE - BASE STYLES */

/* ========================
   ROOT & CUSTOM PROPERTIES
   ======================== */
:root {
  /* Color Palette - Base Colors */
  --ash-white: #e6e6eb;
  --blood-crimson: #8b1e2d;
  --obsidian-grey: #14141b;
  --relic-gold: #c2a14d;
  --void-black: #0b0b0f;

  /* Color Palette - Semantic Colors */
  --color-accent-gold: var(--relic-gold);
  --color-accent-gold-glow: rgba(194, 161, 77, 0.35);
  --color-bg-primary: var(--void-black);
  --color-bg-secondary: var(--obsidian-grey);
  --color-fg-muted: rgba(230, 230, 235, 0.75);
  --color-fg-primary: var(--ash-white);

  /* Color Palette - Form Fields */
  --field-bg: rgba(11, 11, 15, 0.55);
  --field-border: rgba(230, 230, 235, 0.18);
  --field-border-focus: rgba(194, 161, 77, 0.65);
  --field-placeholder: rgba(230, 230, 235, 0.45);

  /* Typography - Font Families */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-brand: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Typography - Font Sizes (Fluid with clamp) */
  --fs-cta: clamp(0.7rem, 0.6rem + 0.4vw, 0.95rem);
  --fs-nav-brand: clamp(0.75rem, 0.45rem + 2vw, 1.7rem);
  --fs-nav-link: clamp(0.7rem, 0.55rem + 0.7vw, 1rem);

  /* Layout - Structure & Sizing */
  --border: 1px solid rgba(230, 230, 235, 0.12);
  --content-max: 1200px;
  --radius: 8px;

  /* Spacing - Navigation & Components (Fluid with clamp) */
  --sp-auth-gap: clamp(0.12rem, 0.08rem + 0.35vw, 0.55rem);
  --sp-nav-gap: clamp(0.08rem, 0.04rem + 0.35vw, 0.5rem);
  --sp-nav-link-x: clamp(0.35rem, 0.2rem + 0.5vw, 1rem);
  --sp-nav-link-y: clamp(0.3rem, 0.2rem + 0.3vw, 0.6rem);

  /* Effects - Shadows */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ===================
   RESET & BASE STYLES
   =================== */
html {
  scroll-behavior: smooth;
}

body.site-body {
  background-color: var(--void-black);
  color: var(--ash-white);
  font-family: var(--font-body);
  padding-top: clamp(52px, 3vw + 38px, 76px);
}

main#main-content > section {
  padding-bottom: clamp(1.25rem, 1rem + 0.6vw, 2.25rem);
  padding-top: clamp(1.25rem, 1rem + 0.6vw, 2.25rem);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.2px;
}

.site-body a {
  color: var(--ash-white);
  text-decoration: none;
}

.site-body a:focus,
.site-body a:hover {
  color: var(--relic-gold);
}

/* Focus-visible states for accessibility */
.site-body a:focus-visible,
.site-body .btn:focus-visible,
.site-body button:focus-visible,
.site-body input:focus-visible,
.site-body select:focus-visible,
.site-body textarea:focus-visible {
  outline: 2px solid rgba(194, 161, 77, 0.65);
  outline-offset: 3px;
}

/* =================
   LAYOUT CONTAINERS
   ================= */
.site-navbar .container,
main .container,
.site-footer .container {
  max-width: var(--content-max);
}

/* =============
   SKIP TO MAIN
   ============= */
.site-skip-link {
  background-color: rgba(11, 11, 15, 0.95);
  border: 1px solid rgba(194, 161, 77, 0.45);
  border-radius: 8px;
  color: var(--ash-white);
  font-weight: 600;
  left: 0.75rem;
  padding: 0.5rem 0.75rem;
  position: absolute;
  text-decoration: none;
  top: 0.75rem;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
  z-index: 1100;
}

.site-skip-link:focus {
  color: var(--relic-gold);
  outline: 2px solid var(--relic-gold);
  outline-offset: 3px;
  transform: translateY(0);
}

/* ===================
   NAVIGATION & HEADER
   =================== */
.site-navbar {
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  background-color: rgba(11, 11, 15, 0.97);
  border-bottom: 1px solid rgba(194, 161, 77, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  left: 0;
  padding: clamp(0.4rem, 0.3rem + 0.4vw, 0.7rem) 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1200;
}

.site-navbar .container {
  gap: clamp(0.15rem, 0.1rem + 0.25vw, 0.35rem);
}

/* Brand styling */
.site-brand {
  animation: bloody-pulse 5.5s ease-in-out infinite;
  color: #ffffff !important;
  display: inline-block;
  flex-shrink: 0;
  font-family: var(--font-brand);
  font-size: var(--fs-nav-brand);
  font-weight: 600;
  letter-spacing: clamp(0.05px, 0.08vw, 1.5px);
  line-height: 1.05;
  padding: clamp(0.12rem, 0.08rem + 0.2vw, 0.35rem) clamp(0.18rem, 0.12rem + 0.25vw, 0.5rem);
  position: relative;
  text-transform: uppercase;
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.site-brand:hover {
  transform: scale(1.02);
}

.site-brand::before {
  -webkit-mask-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  -webkit-mask-clip: content-box, border-box;
  -webkit-mask-origin: content-box, border-box;
  -webkit-mask-composite: xor;
  animation: border-ripple 5.5s ease-in-out infinite;
  background: linear-gradient(90deg, transparent 0%, var(--blood-crimson) 50%, transparent 100%);
  background-position: -100% 0;
  background-size: 200% 100%;
  border-radius: 8px;
  content: '';
  inset: -2px;
  mask-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  mask-clip: content-box, border-box;
  mask-origin: content-box, border-box;
  mask-composite: exclude;
  opacity: 0;
  padding: 2px;
  pointer-events: none;
  position: absolute;
}

/* Navbar right controls */
.site-nav-right {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.2rem, 0.15rem + 0.3vw, 0.5rem);
  margin-left: auto;
}

/* Mobile nav actions */
.site-nav-mobile-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  flex-wrap: nowrap;
  gap: clamp(0.2rem, 0.15rem + 0.3vw, 0.5rem);
}

.site-nav-auth-mobile {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--sp-auth-gap);
  margin-bottom: 0;
}

.site-toggler {
  border: 1px solid rgba(194, 161, 77, 0.3);
  padding: clamp(0.2rem, 0.15rem + 0.2vw, 0.35rem) clamp(0.3rem, 0.25rem + 0.25vw, 0.55rem);
}

.site-toggler:focus {
  border-color: rgba(194, 161, 77, 0.6);
  box-shadow: 0 0 10px rgba(139, 30, 45, 0.4);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28194,161,77,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  height: clamp(1rem, 0.9rem + 0.4vw, 1.3rem);
  width: clamp(1rem, 0.9rem + 0.4vw, 1.3rem);
}

.site-nav-links {
  gap: var(--sp-nav-gap);
}

.site-nav-auth {
  gap: var(--sp-auth-gap);
}

/* Nav links */
.site-nav-link {
  color: rgba(230, 230, 235, 0.9);
  font-size: var(--fs-nav-link);
  font-weight: 500;
  letter-spacing: clamp(0.2px, 0.12vw, 0.6px);
  padding: var(--sp-nav-link-y) var(--sp-nav-link-x);
  position: relative;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.site-nav-link:focus,
.site-nav-link:hover {
  color: rgba(230, 230, 235, 1);
  text-shadow: 0 0 15px rgba(139, 30, 45, 0.5);
}

.site-nav-link::after {
  background: var(--blood-crimson);
  bottom: 0.35rem;
  box-shadow: 0 0 10px rgba(139, 30, 45, 0.7);
  content: '';
  height: 2px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 0;
}

.site-nav-link:focus::after,
.site-nav-link:hover::after {
  left: clamp(0.6rem, 0.5rem + 0.6vw, 1.15rem);
  transform: translateX(0);
  width: calc(100% - (clamp(0.6rem, 0.5rem + 0.6vw, 1.15rem) * 2));
}

.site-nav-link .badge {
  font-size: 0.65rem;
  padding: 0.25rem 0.4rem;
}

/* User icon link */
.site-user-icon {
  font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1.1rem);
}

/* =============
   BUTTON SYSTEM
   ============= */
.site-body .btn {
  align-items: center;
  border-radius: var(--radius);
  border-style: solid;
  border-width: 2px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  font-weight: 600;
  gap: 0.5rem;
  justify-content: center;
  letter-spacing: clamp(0.1px, 0.08vw, 0.45px);
  line-height: 1.1;
  position: relative;
  padding: 0.55rem 1.05rem;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  width: fit-content;
}

.site-body .btn i {
  line-height: 1;
}

.site-body .btn:active {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(1px);
}

.site-body .btn:hover {
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(194, 161, 77, 0.4);
  transform: translateY(-1px);
}

.site-body .btn-sm {
  padding: 0.35rem 0.75rem;
}

.site-body .btn-lg {
  padding: 0.75rem 1.35rem;
}

.btn.disabled,
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}

.btn-icon {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
  justify-content: center;
  width: fit-content;
}

/* Primary */
.btn-primary {
  background-color: var(--relic-gold);
  border-color: rgba(194, 161, 77, 0.9);
  box-shadow: 0 0 0 1px rgba(194, 161, 77, 0.3);
  color: var(--void-black);
}

.btn-primary:focus,
.btn-primary:hover {
  background-color: var(--blood-crimson);
  border-color: var(--blood-crimson);
  box-shadow: 0 0 0 2px rgba(139, 30, 45, 0.4);
  color: var(--ash-white);
}

.btn-primary:active {
  background-color: #6e1724;
  border-color: #6e1724;
}

/* Outline Light */
.btn-outline-light {
  background-color: transparent;
  background-image: none;
  border-color: rgba(230, 230, 235, 0.6);
  box-shadow: 0 0 0 1px rgba(230, 230, 235, 0.15);
  color: var(--ash-white);
}

.btn-outline-light:focus,
.btn-outline-light:hover {
  background-color: rgba(139, 30, 45, 0.9);
  border-color: rgba(139, 30, 45, 0.9);
  color: var(--ash-white);
}

.btn-outline-light:active {
  background-color: #6e1724;
  border-color: #6e1724;
}

/* Danger */
.btn-danger {
  background-color: var(--blood-crimson);
  border-color: rgba(139, 30, 45, 0.9);
  box-shadow: 0 0 0 1px rgba(139, 30, 45, 0.3);
  color: var(--ash-white);
}

.btn-danger:focus,
.btn-danger:hover {
  background-color: #6e1724;
  border-color: #6e1724;
  box-shadow: 0 0 0 2px rgba(139, 30, 45, 0.5);
  color: var(--ash-white);
}

.btn-danger:active {
  background-color: #54111b;
  border-color: #54111b;
}

/* Outline Danger */
.btn-outline-danger {
  background-color: transparent;
  background-image: none;
  border-color: rgba(139, 30, 45, 0.85);
  box-shadow: 0 0 0 1px rgba(139, 30, 45, 0.2);
  color: rgba(230, 230, 235, 0.95);
}

.btn-outline-danger:focus,
.btn-outline-danger:hover {
  background-color: rgba(139, 30, 45, 0.9);
  border-color: rgba(139, 30, 45, 0.9);
  color: var(--ash-white);
}

.btn-outline-danger:active {
  background-color: #6e1724;
  border-color: #6e1724;
}

/* Success */
.btn-success {
  background-color: var(--relic-gold);
  border-color: rgba(194, 161, 77, 0.9);
  box-shadow: 0 0 0 1px rgba(194, 161, 77, 0.3);
  color: var(--void-black);
}

.btn-success:focus,
.btn-success:hover {
  background-color: var(--blood-crimson);
  border-color: var(--blood-crimson);
  box-shadow: 0 0 0 2px rgba(139, 30, 45, 0.4);
  color: var(--ash-white);
}

.btn-success:active {
  background-color: #6e1724;
  border-color: #6e1724;
}

/* Outline Primary */
.btn-outline-primary {
  background-color: transparent;
  background-image: none;
  border-color: rgba(194, 161, 77, 0.75);
  box-shadow: 0 0 0 1px rgba(194, 161, 77, 0.2);
  color: rgba(230, 230, 235, 0.95);
}

.btn-outline-primary:focus,
.btn-outline-primary:hover {
  background-color: rgba(194, 161, 77, 0.15);
  border-color: rgba(194, 161, 77, 0.95);
  color: var(--ash-white);
}

.btn-outline-primary:active {
  background-color: rgba(194, 161, 77, 0.25);
  border-color: rgba(194, 161, 77, 1);
}

/* Warning */
.btn-warning {
  background-color: var(--relic-gold);
  border-color: rgba(194, 161, 77, 0.9);
  box-shadow: 0 0 0 1px rgba(194, 161, 77, 0.3);
  color: var(--void-black);
}

.btn-warning:focus,
.btn-warning:hover {
  background-color: var(--blood-crimson);
  border-color: var(--blood-crimson);
  box-shadow: 0 0 0 2px rgba(139, 30, 45, 0.4);
  color: var(--ash-white);
}

.btn-warning:active {
  background-color: #6e1724;
  border-color: #6e1724;
}

.btn-outline-warning {
  background-color: transparent;
  background-image: none;
  border-color: rgba(194, 161, 77, 0.75);
  box-shadow: 0 0 0 1px rgba(194, 161, 77, 0.2);
  color: rgba(230, 230, 235, 0.95);
}

.btn-outline-warning:focus,
.btn-outline-warning:hover {
  background-color: rgba(194, 161, 77, 0.15);
  border-color: rgba(194, 161, 77, 0.95);
  color: var(--ash-white);
}

.btn-outline-warning:active {
  background-color: rgba(194, 161, 77, 0.25);
  border-color: rgba(194, 161, 77, 1);
}

/* =============
   BUTTONS & CTA
   ============= */

/* Effects toggle button */
.effects-toggle-btn {
  align-items: center;
  background: transparent;
  border: 1.5px solid var(--relic-gold);
  border-radius: 50%;
  color: var(--relic-gold);
  display: inline-flex;
  flex-shrink: 0;
  font-size: clamp(0.65rem, 0.55rem + 0.5vw, 1rem);
  height: clamp(26px, 22px + 1.5vw, 40px);
  justify-content: center;
  padding: 0;
  transition: all 0.25s ease;
  width: clamp(26px, 22px + 1.5vw, 40px);
}

.site-effects-toggle-desktop {
  position: relative;
  z-index: 1031;
}

.effects-toggle-btn:focus,
.effects-toggle-btn:hover {
  background-color: var(--blood-crimson);
  border-color: var(--blood-crimson);
  color: var(--ash-white);
}

.effects-toggle-btn.is-active {
  background-color: rgba(139, 30, 45, 0.25);
  border-color: var(--blood-crimson);
  color: var(--blood-crimson);
}

.effects-toggle-btn.is-active:focus,
.effects-toggle-btn.is-active:hover {
  background-color: var(--blood-crimson);
  color: var(--ash-white);
}

/* ==============
   FORMS & INPUTS
   ============== */
.site-body .form-label {
  color: rgba(230, 230, 235, 0.9);
  font-weight: 500;
}

.site-body .form-control,
.site-body textarea.form-control {
  background-color: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: calc(var(--radius) - 4px);
  color: var(--ash-white);
}

.site-body .form-control::placeholder {
  color: var(--field-placeholder);
}

.site-body .form-control:focus,
.site-body textarea.form-control:focus {
  background-color: rgba(11, 11, 15, 0.65);
  border-color: var(--field-border-focus);
  box-shadow: 0 0 0 0.2rem rgba(194, 161, 77, 0.12);
  color: var(--ash-white);
}

.site-body .form-text {
  color: rgba(230, 230, 235, 0.6);
}

.site-body .form-control.is-invalid {
  border-color: rgba(139, 30, 45, 0.75);
}

.site-body .invalid-feedback {
  color: rgba(230, 230, 235, 0.85);
}

.site-body .form-check-input {
  background-color: var(--field-bg);
  border: 1px solid var(--field-border);
}

.site-body .form-check-input:checked {
  background-color: var(--blood-crimson);
  border-color: var(--blood-crimson);
}

.site-body .form-check-input:focus {
  border-color: var(--field-border-focus);
  box-shadow: 0 0 0 0.2rem rgba(194, 161, 77, 0.12);
}

/* Chromium autofill fix */
.site-body input:-webkit-autofill,
.site-body input:-webkit-autofill:focus,
.site-body input:-webkit-autofill:hover {
  -webkit-box-shadow: 0 0 0 1000px rgba(11, 11, 15, 0.75) inset;
  -webkit-text-fill-color: var(--ash-white);
  transition: background-color 9999s ease-in-out 0s;
}

/* =================
   ALERTS & MESSAGES
   ================= */
.alert {
  border-radius: var(--radius);
  border-width: 1px;
}

.alert-success {
  background-color: rgba(25, 135, 84, 0.15);
  border-color: rgba(25, 135, 84, 0.4);
  color: rgba(230, 230, 235, 0.95);
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.12);
  border-color: rgba(255, 193, 7, 0.4);
  color: rgba(230, 230, 235, 0.95);
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.4);
  color: rgba(230, 230, 235, 0.95);
}

.alert-info {
  background-color: rgba(13, 202, 240, 0.12);
  border-color: rgba(13, 202, 240, 0.4);
  color: rgba(230, 230, 235, 0.95);
}

/* ========================
   PANELS & CARDS (Generic)
   ======================== */
.panel {
  background-color: var(--obsidian-grey);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel h1,
.panel h2,
.panel h3,
.panel h4,
.panel h5,
.panel h6 {
  color: var(--ash-white);
}

.panel li,
.panel p,
.panel .muted {
  color: rgba(230, 230, 235, 0.9);
}

/* ===========
   BREADCRUMBS
   =========== */
.breadcrumb {
  background: transparent;
  margin-bottom: 1rem;
  padding: 0;
}

.breadcrumb-item {
  color: rgba(230, 230, 235, 0.85);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(194, 161, 77, 0.6);
  content: '>';
  padding: 0 0.5rem;
}

.breadcrumb-item a {
  color: var(--relic-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--ash-white);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: rgba(230, 230, 235, 0.7);
}

/* ==========
   PAGINATION
   ========== */
.pagination {
  --bs-pagination-active-bg: rgba(139, 30, 45, 0.9);
  --bs-pagination-active-border-color: rgba(194, 161, 77, 0.45);
  --bs-pagination-active-color: var(--ash-white);
  --bs-pagination-bg: rgba(20, 20, 27, 0.85);
  --bs-pagination-border-color: rgba(194, 161, 77, 0.2);
  --bs-pagination-color: var(--ash-white);
  --bs-pagination-disabled-bg: rgba(20, 20, 27, 0.5);
  --bs-pagination-disabled-border-color: rgba(194, 161, 77, 0.15);
  --bs-pagination-disabled-color: rgba(230, 230, 235, 0.35);
  --bs-pagination-focus-bg: rgba(139, 30, 45, 0.55);
  --bs-pagination-focus-box-shadow: 0 0 0 0.15rem rgba(194, 161, 77, 0.25);
  --bs-pagination-focus-color: var(--ash-white);
  --bs-pagination-hover-bg: rgba(139, 30, 45, 0.45);
  --bs-pagination-hover-border-color: rgba(194, 161, 77, 0.35);
  --bs-pagination-hover-color: var(--ash-white);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.pagination .page-link {
  border-radius: 0;
  border-width: 1px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 0.65rem 0.95rem;
}

.pagination .page-item:first-child .page-link {
  border-bottom-left-radius: 8px;
  border-top-left-radius: 8px;
}

.pagination .page-item:last-child .page-link {
  border-bottom-right-radius: 8px;
  border-top-right-radius: 8px;
}

.pagination .page-item.active .page-link {
  color: var(--ash-white) !important;
  font-weight: 700;
}

.pagination .page-item.disabled .page-link {
  color: rgba(230, 230, 235, 0.35) !important;
}

/* ================
   MODALS (Generic)
   ================ */
.modal-content {
  background-color: rgba(20, 20, 27, 0.98);
  border: 1px solid rgba(194, 161, 77, 0.55);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  color: var(--ash-white);
}

.modal-header {
  background-color: rgba(11, 11, 15, 0.8);
  border-bottom: 1px solid rgba(194, 161, 77, 0.35);
  border-radius: 8px 8px 0 0;
}

.modal-title {
  color: var(--ash-white) !important;
  font-weight: 600;
}

.modal-body {
  color: rgba(230, 230, 235, 0.9);
}

.modal-footer {
  background-color: rgba(11, 11, 15, 0.5);
  border-radius: 0 0 8px 8px;
  border-top: 1px solid rgba(194, 161, 77, 0.35);
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* ===========
   TABS SYSTEM
   =========== */
.tab-pane {
  display: none;
  opacity: 0;
}

.tab-pane.active {
  display: block;
  opacity: 1;
}

.tab-pane.fade {
  opacity: 0;
  transition: opacity 0.35s linear;
}

.tab-pane.fade.active {
  opacity: 1;
}

/* ======================
   WHAT LIES AHEAD LAYOUT
   ====================== */
.panel.coming-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 0.85rem + 0.5vw, 1.4rem) !important;
  justify-content: flex-start;
  min-height: 100%;
  padding: clamp(1.5rem, 1.3rem + 0.8vw, 2rem) !important;
  text-align: center;
  transition: all 0.3s ease;
}

.panel.coming-card:hover {
  border-color: rgba(194, 161, 77, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}

.panel.coming-card .coming-card-icon {
  align-items: center;
  background: linear-gradient(135deg, var(--blood-crimson), rgba(139, 30, 45, 0.6));
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(139, 30, 45, 0.4);
  color: var(--ash-white);
  display: flex;
  flex-shrink: 0;
  font-size: clamp(1.75rem, 1.5rem + 1.3vw, 2.4rem);
  height: clamp(85px, 75px + 3vw, 100px);
  justify-content: center;
  transition: all 0.3s ease;
  width: clamp(85px, 75px + 3vw, 100px);
}

.panel.coming-card:hover .coming-card-icon {
  box-shadow: 0 6px 20px rgba(139, 30, 45, 0.6);
  transform: scale(1.08);
}

.panel.coming-card h3 {
  color: var(--ash-white);
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.28rem);
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.3;
  margin-bottom: clamp(0.5rem, 0.45rem + 0.3vw, 0.75rem);
  margin-top: 0;
}

.panel.coming-card p {
  color: rgba(230, 230, 235, 0.82);
  flex-grow: 1;
  font-size: clamp(0.88rem, 0.85rem + 0.2vw, 0.98rem);
  line-height: 1.45;
  margin-bottom: clamp(0.6rem, 0.5rem + 0.3vw, 0.9rem);
}

.panel.coming-card .card-actions {
  margin-top: auto;
  width: 100%;
}

.panel.coming-card .btn {
  font-size: clamp(0.88rem, 0.84rem + 0.2vw, 0.98rem) !important;
  font-weight: 500;
  padding: clamp(0.6rem, 0.55rem + 0.2vw, 0.75rem) clamp(1.05rem, 0.95rem + 0.35vw, 1.35rem) !important;
  width: 100%;
}

/* ======
   FOOTER
   ====== */
.site-footer {
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
  border-top: var(--border);
}

.site-footer .container {
  max-width: var(--content-max);
  position: relative;
}

/* Brand Section */
.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 0.15rem + 0.4vw, 0.5rem);
  text-align: center;
}

.site-footer-title {
  color: var(--color-fg-primary);
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.35rem);
  letter-spacing: 0.3px;
  line-height: 1.15;
  margin: 0 auto;
}

.site-footer-tagline {
  color: var(--color-fg-muted);
  font-size: clamp(0.8rem, 0.75rem + 0.2vw, 0.95rem);
  line-height: 1.45;
  margin: 0 auto;
  max-width: 48ch;
  opacity: 0.9;
}

/* Divider */
.site-footer-divider {
  border-color: rgba(194, 161, 77, 0.2);
  margin: clamp(0.75rem, 0.6rem + 0.5vw, 1.25rem) 0;
  opacity: 1;
}

/* Navigation */
.site-footer-nav {
  width: 100%;
}

.site-footer-links {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 0.4rem + 0.4vw, 0.85rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer-link-item {
  max-width: 320px;
  width: 100%;
}

.footer-link {
  align-items: center;
  background-color: rgba(20, 20, 27, 0.6);
  border: 1px solid rgba(194, 161, 77, 0.25);
  border-radius: 8px;
  color: rgba(230, 230, 235, 0.85);
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  line-height: 1.3;
  padding: 0.65rem 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.footer-link i {
  color: var(--relic-gold);
  flex-shrink: 0;
  font-size: 1rem;
}

.footer-link span {
  font-size: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  font-weight: 500;
}

.footer-link:hover,
.footer-link:focus {
  background-color: rgba(20, 20, 27, 0.85);
  border-color: var(--relic-gold);
  box-shadow: 0 4px 12px rgba(194, 161, 77, 0.2);
  color: var(--ash-white) !important;
  text-decoration: none;
  transform: translateY(-2px);
}

.footer-link:hover i,
.footer-link:focus i {
  color: var(--ash-white);
  text-shadow: 0 0 8px rgba(194, 161, 77, 0.6);
}

/* =========
   UTILITIES
   ========= */
.muted {
  color: rgba(230, 230, 235, 0.85) !important;
}

.text-muted {
  color: rgba(230, 230, 235, 0.8) !important;
}

.d-grid .btn {
  width: fit-content;
}

.d-grid.gap-2 {
  justify-items: center;
}

/* ===================
   ERROR PAGE UTILITIES
   =================== */
.error-icon-lg {
  font-size: 5rem;
}

/* ==========
   ANIMATIONS
   ========== */
@keyframes border-ripple {
  0%,
  100% {
    background-position: -100% 0;
    opacity: 0;
  }
  30% {
    background-position: 0% 0;
    opacity: 0.8;
  }
  60% {
    background-position: 100% 0;
    opacity: 1;
  }
  80% {
    background-position: 200% 0;
    opacity: 0;
  }
}

@keyframes bloody-pulse {
  0%,
  100% {
    text-shadow: 0 2px 0 rgba(200, 16, 46, 0.4);
  }
  60% {
    text-shadow:
      2px 5px 0 rgba(200, 16, 46, 0.7),
      0 12px 0 rgba(200, 16, 46, 0.5),
      0 19px 0 rgba(200, 16, 46, 0.3);
  }
}

/* =====================
   MEDIA QUERIES - MOBILE
   ===================== */
@media (max-width: 575.98px) {
  .error-icon-lg {
    font-size: 4.25rem;
  }

  .panel.coming-card {
    gap: 1rem !important;
    padding: 1.4rem !important;
  }

  .panel.coming-card .coming-card-icon {
    font-size: 1.55rem;
    height: 75px;
    width: 75px;
  }

  .panel.coming-card h3 {
    font-size: 1.02rem;
  }

  .panel.coming-card p {
    font-size: 0.88rem;
  }
}

@media (max-width: 768px) {
  .site-navbar .container {
    gap: clamp(0.2rem, 0.5vw, 0.4rem);
    padding-left: clamp(0.4rem, 2vw, 0.75rem);
    padding-right: clamp(0.4rem, 2vw, 0.75rem);
  }

  .site-brand {
    font-size: clamp(0.65rem, 3.5vw, 1rem);
    letter-spacing: clamp(0.2px, 0.15vw, 0.8px);
    padding: clamp(0.15rem, 0.5vw, 0.3rem) clamp(0.2rem, 0.8vw, 0.4rem);
  }

  .site-nav-right {
    gap: clamp(0.2rem, 0.6vw, 0.5rem);
  }

  .site-nav-mobile-actions {
    gap: clamp(0.15rem, 0.5vw, 0.4rem);
  }

  .site-nav-auth-mobile {
    gap: clamp(0.15rem, 0.5vw, 0.4rem);
  }

  .site-nav-auth-mobile .nav-link {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    padding: clamp(0.2rem, 0.6vw, 0.35rem) clamp(0.25rem, 0.8vw, 0.45rem);
  }

  .site-nav-auth-mobile .badge {
    font-size: clamp(0.5rem, 1.8vw, 0.65rem);
    padding: clamp(0.15em, 0.4vw, 0.25em) clamp(0.3em, 0.8vw, 0.45em);
  }

  .site-toggler {
    font-size: clamp(0.85rem, 2.8vw, 1.05rem);
    padding: clamp(0.2rem, 0.6vw, 0.35rem) clamp(0.3rem, 0.9vw, 0.5rem);
  }

  .site-toggler .navbar-toggler-icon {
    height: clamp(1.1em, 3vw, 1.5em);
    width: clamp(1.1em, 3vw, 1.5em);
  }

  .site-effects-toggle-desktop {
    font-size: clamp(0.85rem, 2.8vw, 1.05rem);
    padding: clamp(0.25rem, 0.7vw, 0.4rem) clamp(0.35rem, 1vw, 0.55rem);
  }

  /* Icon sizing adjustments */
  .site-nav-auth-mobile .fa-shopping-cart,
  .site-nav-auth-mobile .fa-user,
  .site-nav-auth-mobile .fa-right-to-bracket {
    font-size: clamp(0.95rem, 3.2vw, 1.15rem);
  }
}

@media (max-width: 991.98px) {
  .site-nav-link::after {
    content: none;
  }

  .site-nav-link-text {
    display: inline-block;
    position: relative;
    white-space: nowrap;
  }

  .site-nav-link-text::after {
    background: var(--blood-crimson);
    bottom: -0.2rem;
    box-shadow: 0 0 10px rgba(139, 30, 45, 0.7);
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 0;
  }

  .site-nav-link:focus .site-nav-link-text::after,
  .site-nav-link:hover .site-nav-link-text::after {
    width: 100%;
  }

  .site-navbar .container {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
  }

  .site-brand {
    flex: 0 1 auto;
    min-width: 0;
    order: 1;
    white-space: normal;
  }

  .site-nav-right {
    flex: 0 0 auto;
    margin-left: auto;
    order: 2;
  }

  .site-navbar .navbar-collapse {
    flex-basis: 100%;
    order: 3;
    padding-top: clamp(0.5rem, 0.4rem + 0.3vw, 0.75rem);
    width: 100%;
  }

  .site-nav-auth-mobile .nav-link {
    padding: clamp(0.2rem, 0.15rem + 0.2vw, 0.4rem);
  }
}

/* =======================
   MEDIA QUERIES - DESKTOP
   ======================= */
@media (min-width: 768px) {
  .site-footer-links {
    flex-direction: row;
    gap: clamp(0.75rem, 0.6rem + 0.6vw, 1.25rem);
    justify-content: center;
  }

  .site-footer-link-item {
    max-width: none;
    width: auto;
  }

  .footer-link {
    padding: 0.55rem 1.1rem;
    width: auto;
  }
}

@media (min-width: 992px) {
  .site-footer .container {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  .site-footer-brand {
    flex: 0 1 auto;
  }

  .site-footer-nav {
    flex: 0 0 auto;
    width: auto;
  }

  .site-footer-links {
    gap: clamp(0.6rem, 0.5rem + 0.4vw, 1rem);
  }

  .footer-link {
    padding: 0.5rem 0.95rem;
  }
}

/* ==============================
   REDUCED MOTION / ACCESSIBILITY
   ============================== */
html.reduced-effects {
  scroll-behavior: auto;
}

body.reduced-effects .site-brand,
body.reduced-effects .site-brand::before {
  animation: none !important;
}

body.reduced-effects .entry-card,
body.reduced-effects .site-brand,
body.reduced-effects .site-nav-link {
  transition: none !important;
}

body.reduced-effects .entry-card:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transform: none !important;
}

/* ==================
   SYSTEM PREFERENCES
   ================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-brand,
  .site-brand::before {
    animation: none;
    transition: none;
  }

  .site-nav-link::after {
    transition: none;
  }

  .entry-card,
  .entry-card:hover {
    transform: none;
    transition: none;
  }
}
