/*
  Conquer Classic - Companion Stylesheet
  Provides scrollbars, glow overlays, glass utilities, technical data grid styling, and custom keyframe animations.
*/

:root {
  /* Mystic Conquer Theme - Official Curated Palette */
  /* Base */
  --base-950: #07080a;
  --base-900: #101216;
  --base-800: #171a1e;

  /* Identidade (Vermelho Principal) */
  --id-red-dark: #8b0000;
  --id-red-primary: #d90404;
  --id-red-light: #ff2424;

  /* Metal */
  --metal-muted: #72777d;
  --metal-silver: #bfc3c7;
  --metal-chrome: #e6e8ea;

  /* Mystic / Efeitos */
  --mystic-blue: #4c6fff;
  --mystic-violet: #7c3aed;

  /* Semantic Theme Bindings */
  --discord-bg: #07080a;
  --discord-secondary: #101216;
  --discord-card: #171a1e;
  --discord-primary: #d90404;
  --discord-accent: #ff2424;
  --discord-text: #e6e8ea;
  --discord-muted: #72777d;
  --discord-green: #10b981;
  --discord-red: #d90404;

  --tw-discord-bg: 7 8 10;
  --tw-discord-secondary: 16 18 22;
  --tw-discord-card: 23 26 30;
  --tw-discord-primary: 217 4 4;
  --tw-discord-accent: 255 36 36;
  --tw-discord-text: 230 232 234;
  --tw-discord-muted: 114 119 125;
  --tw-discord-green: 16 185 129;
  --tw-discord-red: 217 4 4;

  --bg-main: var(--discord-bg);
  --bg-sec: var(--discord-secondary);
  --bg-card: var(--discord-card);
  --primary: var(--discord-primary);
  --secondary: var(--discord-accent);
  --text-p: var(--discord-text);
  --text-s: var(--discord-muted);
  --online: var(--discord-green);
  --offline: var(--discord-red);
}

html, body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.theme-dark {
  --discord-bg: #07080a;
  --discord-secondary: #101216;
  --discord-card: #171a1e;
  --discord-primary: #d90404;
  --discord-accent: #ff2424;
  --discord-text: #e6e8ea;
  --discord-muted: #72777d;
  --discord-green: #10b981;
  --discord-red: #d90404;

  --tw-discord-bg: 7 8 10;
  --tw-discord-secondary: 16 18 22;
  --tw-discord-card: 23 26 30;
  --tw-discord-primary: 217 4 4;
  --tw-discord-accent: 255 36 36;
  --tw-discord-text: 230 232 234;
  --tw-discord-muted: 114 119 125;
  --tw-discord-green: 16 185 129;
  --tw-discord-red: 217 4 4;
}

/* Custom scrollbar adaptive matching theme variables */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--discord-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--discord-card);
  border-radius: 4px;
  border: 1px solid var(--discord-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--discord-primary);
}

/* Dashboard Grid and Panel styling built upon CSS Theme Variables */
.glass-panel {
  background: rgba(var(--tw-discord-card) / 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--tw-discord-text) / 0.1);
}

/* Technical Dashboard Grid Layout Utilities */
.tech-grid-bg {
  background: radial-gradient(
    130% 100% at 50% 0%,
    var(--discord-bg) 0%,
    rgba(10, 10, 12, 0.95) 100%
  );
  background-attachment: fixed;
  position: relative;
}

.theme-dark .tech-grid-bg {
  background: radial-gradient(
    130% 100% at 50% 0%,
    #101216 0%,
    #07080a 60%,
    #040506 100%
  ) !important;
}


.tech-grid-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(
      rgba(var(--tw-discord-primary) / 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(rgba(var(--tw-discord-text) / 0.02) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(var(--tw-discord-text) / 0.02) 1px,
      transparent 1px
    );
  background-size:
    32px 32px,
    128px 128px,
    128px 128px;
  background-position: center;
  pointer-events: none;
  z-index: -20;
}

.tech-panel {
  background-color: var(--discord-secondary);
  border: 1px solid rgba(var(--tw-discord-text) / 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 20px -2px rgba(var(--tw-discord-bg) / 0.8);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tech-panel:hover {
  border-color: rgba(var(--tw-discord-primary) / 0.4);
  box-shadow: 0 4px 24px -2px rgba(var(--tw-discord-primary) / 0.2);
}

.tech-border-corner {
  position: relative;
}
.tech-border-corner::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--discord-primary);
  border-left: 2px solid var(--discord-primary);
  border-top-left-radius: 3px;
  pointer-events: none;
  z-index: 10;
}
.tech-border-corner::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-bottom: 2px solid var(--discord-primary);
  border-right: 2px solid var(--discord-primary);
  border-bottom-right-radius: 3px;
  pointer-events: none;
  z-index: 10;
}

.tech-border-corner-green::before {
  border-top-color: var(--discord-green) !important;
  border-left-color: var(--discord-green) !important;
}
.tech-border-corner-green::after {
  border-bottom-color: var(--discord-green) !important;
  border-right-color: var(--discord-green) !important;
}

.tech-border-corner-rose::before {
  border-top-color: #ef4444 !important;
  border-left-color: #ef4444 !important;
}
.tech-border-corner-rose::after {
  border-bottom-color: #ef4444 !important;
  border-right-color: #ef4444 !important;
}

.tech-border-corner-white::before {
  border-top-color: #ffffff !important;
  border-left-color: #ffffff !important;
}
.tech-border-corner-white::after {
  border-bottom-color: #ffffff !important;
  border-right-color: #ffffff !important;
}

/* Explicit Action Button Fills */
.btn-red-action,
.btn-purple-action,
.btn-crimson-action {
  background-color: #d90404 !important;
  color: #e6e8ea !important;
}
.btn-red-action:hover,
.btn-purple-action:hover,
.btn-crimson-action:hover {
  background-color: #8b0000 !important;
}

.btn-green-action {
  background-color: #059669 !important;
  color: #ffffff !important;
}
.btn-green-action:hover {
  background-color: #047857 !important;
}

/* Premium micro telemetry header */
.tech-header-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--discord-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Precise high-visibility status indicators */
.status-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--discord-green);
  box-shadow: 0 0 10px var(--discord-green);
}

.status-dot-red {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--discord-red);
  box-shadow: 0 0 10px var(--discord-red);
}

.status-dot-amber {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--discord-accent);
  box-shadow: 0 0 10px var(--discord-accent);
}

/* Advanced ambient glow highlights */
.glow-primary {
  box-shadow: 0 0 15px rgba(var(--tw-discord-primary) / 0.35);
}

.glow-emerald {
  box-shadow: 0 0 15px rgba(var(--tw-discord-green) / 0.35);
}

.glow-rose {
  box-shadow: 0 0 15px rgba(var(--tw-discord-red) / 0.35);
}

/* Selection aesthetics */
::selection {
  background-color: var(--discord-primary);
  color: #ffffff;
}

/* Base custom font integration */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;850&family=JetBrains+Mono:wght@400;500;700&display=swap");

body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: var(--discord-bg);
  color: var(--discord-text);
}

/* ==========================================
   LIGHT THEME ELEMENT-LEVEL OVERRIDES
   ========================================== */

.font-mono-classic {
  font-family: "JetBrains Mono", monospace;
}

/* Pulsing background decor */
@keyframes ambientGlowPulse {
  0%,
  100% {
    transform: scale(1) translate(0px, 0px);
    opacity: 0.15;
  }
  33% {
    transform: scale(1.1) translate(10px, -15px);
    opacity: 0.22;
  }
  66% {
    transform: scale(0.9) translate(-20px, 15px);
    opacity: 0.12;
  }
}

.radial-glow-orb-1 {
  animation: ambientGlowPulse 15s infinite alternate ease-in-out;
}

.radial-glow-orb-2 {
  animation: ambientGlowPulse 12s infinite alternate-reverse ease-in-out;
}

/* Micro animations for item reveals */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Golden border overlay for unique items */
.gold-shimmer-border {
  position: relative;
  overflow: hidden;
}

.gold-shimmer-border::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0) 30%,
    rgba(var(--tw-discord-accent) / 0.08) 50%,
    rgba(245, 158, 11, 0) 70%
  );
  background-size: 200% 100%;
  animation: elegantSweep 8s infinite linear;
  pointer-events: none;
}

@keyframes elegantSweep {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Premium hover-triggered shimmer sweep & glow */
.class-shimmer-card {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid rgba(142, 146, 151, 0.15) !important;
}

.class-shimmer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    var(--shimmer-color, rgba(255, 255, 255, 0.08)) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 10;
}

.class-shimmer-card:hover::before {
  animation: sweepEffect 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes sweepEffect {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

/* Specific themed configurations on hover */
.shimmer-amber {
  --shimmer-color: rgba(var(--tw-discord-accent) / 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.shimmer-amber:hover {
  border-color: rgba(var(--tw-discord-accent) / 0.5) !important;
  box-shadow: 0 0 35px rgba(var(--tw-discord-accent) / 0.2) !important;
  background-color: rgba(47, 49, 54, 0.55) !important;
}

.shimmer-orange {
  --shimmer-color: rgba(249, 115, 22, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.shimmer-orange:hover {
  border-color: rgba(249, 115, 22, 0.5) !important;
  box-shadow: 0 0 35px rgba(249, 115, 22, 0.2) !important;
  background-color: rgba(47, 49, 54, 0.55) !important;
}

.shimmer-yellow {
  --shimmer-color: rgba(234, 179, 8, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.shimmer-yellow:hover {
  border-color: rgba(234, 179, 8, 0.5) !important;
  box-shadow: 0 0 35px rgba(234, 179, 8, 0.2) !important;
  background-color: rgba(47, 49, 54, 0.55) !important;
}

.shimmer-red {
  --shimmer-color: rgba(239, 68, 68, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.shimmer-red:hover {
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.2) !important;
  background-color: rgba(47, 49, 54, 0.55) !important;
}

.shimmer-blue {
  --shimmer-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.shimmer-blue:hover {
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.2) !important;
  background-color: rgba(47, 49, 54, 0.55) !important;
}

.shimmer-emerald {
  --shimmer-color: rgba(var(--tw-discord-green) / 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.shimmer-emerald:hover {
  border-color: rgba(var(--tw-discord-green) / 0.5) !important;
  box-shadow: 0 0 35px rgba(var(--tw-discord-green) / 0.2) !important;
  background-color: rgba(47, 49, 54, 0.55) !important;
}

.shimmer-rose {
  --shimmer-color: rgba(var(--tw-discord-red) / 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.shimmer-rose:hover {
  border-color: rgba(var(--tw-discord-red) / 0.5) !important;
  box-shadow: 0 0 35px rgba(var(--tw-discord-red) / 0.2) !important;
  background-color: rgba(47, 49, 54, 0.55) !important;
}

.shimmer-purple,
.shimmer-crimson {
  --shimmer-color: rgba(var(--tw-discord-primary) / 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.shimmer-purple:hover,
.shimmer-crimson:hover {
  border-color: rgba(var(--tw-discord-primary) / 0.5) !important;
  box-shadow: 0 0 35px rgba(var(--tw-discord-primary) / 0.2) !important;
  background-color: rgba(47, 49, 54, 0.55) !important;
}

/* Metallic Chrome & Chiseled Silver Typography Utilities */
.text-chrome-silver {
  background: linear-gradient(180deg, #e6e8ea 0%, #bfc3c7 45%, #72777d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85));
}

.text-crimson-glow {
  color: var(--discord-primary);
  text-shadow: 0 0 15px rgba(217, 4, 4, 0.6), 0 0 30px rgba(255, 36, 36, 0.35);
}

.border-crimson-glow {
  border-color: var(--discord-primary);
  box-shadow: 0 0 15px rgba(217, 4, 4, 0.4);
}

/* Mystic Effects & Magic Elements */
.text-mystic-blue {
  color: #4c6fff !important;
}

.text-mystic-violet {
  color: #7c3aed !important;
}

.glow-mystic-blue {
  box-shadow: 0 0 15px rgba(76, 111, 255, 0.45) !important;
}

.glow-mystic-violet {
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.45) !important;
}

.bg-mystic-arcane {
  background: linear-gradient(135deg, rgba(217, 4, 4, 0.15) 0%, rgba(124, 58, 237, 0.15) 50%, rgba(76, 111, 255, 0.15) 100%);
}


/* ==========================================
   DARK THEME CONTRAST AND VISIBILITY ENHANCEMENTS
   ========================================== */

/* High-contrast form elements for dark mode */
.theme-dark input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.theme-dark select,
.theme-dark textarea {
  color: var(--discord-text) !important;
  background-color: rgba(9, 9, 11, 0.65) !important; /* semi-transparent black for depth */
  border-color: rgba(var(--tw-discord-secondary) / 0.8) !important; /* crisp zinc-800 border */
}

.theme-dark input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):focus,
.theme-dark select:focus,
.theme-dark textarea:focus {
  border-color: var(--discord-primary) !important;
  box-shadow: 0 0 0 2px rgba(var(--tw-discord-primary) / 0.2) !important;
}

/* Crisp and sharp table grids in dark mode */
.theme-dark table {
  border-color: rgba(var(--tw-discord-secondary) / 0.5) !important;
}

.theme-dark table th {
  color: var(--discord-text) !important;
  background-color: rgba(var(--tw-discord-card) / 0.9) !important;
  border-bottom: 2px solid rgba(var(--tw-discord-secondary) / 0.8) !important;
  font-weight: 700 !important;
}

.theme-dark table td {
  border-bottom: 1px solid rgba(var(--tw-discord-secondary) / 0.3) !important;
}

.theme-dark table tr:hover td {
  background-color: rgba(var(--tw-discord-secondary) / 0.15) !important;
}

/* Elevate general dark mode cards, secondary background panels, and buttons */
.theme-dark .bg-discord-secondary {
  border-color: rgba(var(--tw-discord-secondary) / 0.9) !important;
}

.theme-dark button:not(.bg-discord-primary):not(.bg-discord-green):not(.bg-discord-red):not(.bg-emerald-500):not(.bg-rose-500):not(.bg-transparent) {
  border-color: rgba(var(--tw-discord-secondary) / 0.8) !important;
  background-color: rgba(var(--tw-discord-card) / 0.5) !important;
}

.theme-dark button:not(.bg-discord-primary):not(.bg-discord-green):not(.bg-discord-red):not(.bg-emerald-500):not(.bg-rose-500):not(.bg-transparent):hover {
  border-color: rgba(var(--tw-discord-primary) / 0.6) !important;
  background-color: rgba(var(--tw-discord-secondary) / 0.5) !important;
}

/* ==========================================
   DYNAMIC RARITY BORDERS FOR DONATION ITEMS
   ========================================== */

.tech-panel.rarity-super,
.tech-panel.rarity-elite,
.tech-panel.rarity-refined,
.tech-panel.rarity-normal {
  border: 1px solid rgba(var(--tw-discord-secondary) / 0.5) !important;
}

.tech-panel.rarity-super:hover {
  border-color: rgba(245, 158, 11, 0.75) !important;
}

.tech-panel.rarity-elite:hover {
  border-color: rgba(168, 85, 247, 0.75) !important;
}

.tech-panel.rarity-refined:hover {
  border-color: rgba(14, 165, 233, 0.75) !important;
}

.tech-panel.rarity-normal:hover {
  border-color: rgba(var(--tw-discord-primary) / 0.5) !important;
}

/* Force atmospheric glowing orbs to fixed layout so they do not cause scroll overflow */
.radial-glow-orb-1,
.radial-glow-orb-2 {
  position: fixed !important;
}

/* Touch-friendly horizontal scroll utility for mobile tabs */
.scroll-x-touch {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}
.scroll-x-touch::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* ==========================================
   MARKET HUD GAMING PANEL & HERO BUTTON
   ========================================== */

.market-hud-card {
  background: #090b0f;
  border: 1px solid #1e232f;
  border-radius: 18px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(217, 4, 4, 0.08);
  box-sizing: border-box;
}

/* HUD Corner Brackets - 100% Flush, Box-Sizing Border-Box, No Floating */
.hud-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  pointer-events: none;
  z-index: 20;
  box-sizing: border-box;
}
.hud-corner-tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid #ff2424;
  border-left: 2px solid #ff2424;
  border-top-left-radius: 18px;
  filter: drop-shadow(0 0 6px rgba(255, 36, 36, 0.8));
}
.hud-corner-tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid #ff2424;
  border-right: 2px solid #ff2424;
  border-top-right-radius: 18px;
  filter: drop-shadow(0 0 6px rgba(255, 36, 36, 0.8));
}
.hud-corner-bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid #ff2424;
  border-left: 2px solid #ff2424;
  border-bottom-left-radius: 18px;
  filter: drop-shadow(0 0 6px rgba(255, 36, 36, 0.8));
}
.hud-corner-br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid #ff2424;
  border-right: 2px solid #ff2424;
  border-bottom-right-radius: 18px;
  filter: drop-shadow(0 0 6px rgba(255, 36, 36, 0.8));
}

/* Edge Center Laser Accents */
.hud-edge-t {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: #ff2424;
  box-shadow: 0 0 8px #ff2424, 0 0 16px #ff2424, 0 0 25px rgba(255, 36, 36, 0.8);
  pointer-events: none;
  z-index: 20;
  box-sizing: border-box;
}
.hud-edge-b {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: #ff2424;
  box-shadow: 0 0 8px #ff2424, 0 0 16px #ff2424, 0 0 25px rgba(255, 36, 36, 0.8);
  pointer-events: none;
  z-index: 20;
  box-sizing: border-box;
}
.hud-edge-l {
  position: absolute;
  top: 50%;
  left: -1px;
  transform: translateY(-50%);
  width: 2px;
  height: 32px;
  background: #ff2424;
  box-shadow: 0 0 8px #ff2424, 0 0 16px #ff2424;
  pointer-events: none;
  z-index: 20;
  box-sizing: border-box;
}
.hud-edge-r {
  position: absolute;
  top: 50%;
  right: -1px;
  transform: translateY(-50%);
  width: 2px;
  height: 32px;
  background: #ff2424;
  box-shadow: 0 0 8px #ff2424, 0 0 16px #ff2424;
  pointer-events: none;
  z-index: 20;
  box-sizing: border-box;
}

/* Custom Styled Range Slider */
.market-slider-custom {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: #1e232f;
  border-radius: 2px;
  outline: none;
  position: relative;
}

.market-slider-custom::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff2424;
  cursor: pointer;
  box-shadow: 0 0 8px #ff2424, 0 0 16px rgba(255, 36, 36, 0.8);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.market-slider-custom::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 12px #ff2424, 0 0 24px #ff2424;
}

.market-slider-custom::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff2424;
  cursor: pointer;
  box-shadow: 0 0 8px #ff2424, 0 0 16px rgba(255, 36, 36, 0.8);
  border: 2px solid #ffffff;
}

/* Chamfered Hero Gaming Action Button */
.btn-market-action-hero {
  position: relative;
  width: 100%;
  padding: 16px 28px;
  background: linear-gradient(180deg, #990000 0%, #700000 45%, #420000 100%);
  border-top: 2px solid #ff3b3b;
  border-bottom: 2px solid #ff3b3b;
  border-left: 1px solid rgba(255, 59, 59, 0.3);
  border-right: 1px solid rgba(255, 59, 59, 0.3);
  box-shadow: 0 0 25px rgba(217, 4, 4, 0.45), inset 0 1px 2px rgba(255, 140, 140, 0.5), inset 0 -1px 2px rgba(0, 0, 0, 0.8);
  clip-path: polygon(14px 0%, calc(100% - 14px) 0%, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0% calc(100% - 14px), 0% 14px);
  color: #ffffff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

.btn-market-action-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
}

.btn-market-action-hero:hover::before {
  left: 140%;
}

.btn-market-action-hero:hover {
  background: linear-gradient(180deg, #b30000 0%, #850000 45%, #550000 100%);
  box-shadow: 0 0 35px rgba(255, 36, 36, 0.65), inset 0 1px 3px rgba(255, 180, 180, 0.7);
  transform: translateY(-1px);
}

.btn-market-action-hero:active {
  transform: translateY(1px);
  box-shadow: 0 0 15px rgba(217, 4, 4, 0.4);
}

/* Subtle Dragon Crest Watermark inside the Button */
.btn-watermark-dragon {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 55px;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("../images/btn_dragon_crest.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center right;
}

/* ==========================================
   EVENTS & WARS HUD STYLING
   ========================================== */

.event-hud-card {
  background: linear-gradient(180deg, #0d1017 0%, #080a0e 100%);
  border: 1px solid #1c212d;
  border-radius: 16px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.event-hud-card:hover {
  border-color: rgba(255, 36, 36, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(217, 4, 4, 0.15);
  transform: translateY(-2px);
}

.event-hud-card.featured-war {
  border-color: rgba(217, 4, 4, 0.6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 36, 36, 0.2);
}

.event-crest-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: radial-gradient(circle at center, #260a0f 0%, #120508 100%);
  border: 1px solid rgba(255, 36, 36, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(217, 4, 4, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.event-hud-card:hover .event-crest-box {
  transform: scale(1.05);
  border-color: #ff2424;
  box-shadow: 0 0 20px rgba(255, 36, 36, 0.5);
}

/* Event Filter Tab Buttons */
.event-filter-tab {
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  background: #0d1017;
  border: 1px solid #1c212d;
  color: #72777d;
  cursor: pointer;
  white-space: nowrap;
}

.event-filter-tab:hover {
  color: #ffffff;
  border-color: rgba(255, 36, 36, 0.4);
  background: #141822;
}

.event-filter-tab.active {
  background: #17090b;
  border-color: #ff2424;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 36, 36, 0.35);
}

/* Hero Live Next Event Countdown Banner */
.hero-event-banner {
  background: radial-gradient(ellipse at top right, rgba(217, 4, 4, 0.15) 0%, transparent 60%),
              linear-gradient(180deg, #10141d 0%, #090b10 100%);
  border: 1px solid #232a3b;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(217, 4, 4, 0.12);
}

.hero-event-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff2424, transparent);
  pointer-events: none;
}

/* Digital Countdown Digit Unit */
.countdown-unit-box {
  background: #090b0f;
  border: 1px solid #1e2433;
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 58px;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Weekly Schedule Matrix */
.schedule-matrix-card {
  background: #0a0c12;
  border: 1px solid #1a202c;
  border-radius: 16px;
  overflow: hidden;
}

.schedule-day-column {
  border-right: 1px solid #161b26;
  transition: background 0.2s ease;
}

.schedule-day-column:last-child {
  border-right: none;
}

.schedule-day-column.today {
  background: rgba(217, 4, 4, 0.04);
  border-color: rgba(255, 36, 36, 0.3);
}

/* ==========================================
   CLASSES & BUILDS HUD STYLING
   ========================================== */

.class-hud-card {
  background: linear-gradient(180deg, #0e1219 0%, #080a0e 100%);
  border: 1px solid #1c212d;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5);
}

.class-hud-card:hover {
  border-color: rgba(255, 36, 36, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(217, 4, 4, 0.12);
}

/* Class Top Selector Tabs */
.class-selector-btn {
  background: #0b0e14;
  border: 1px solid #1a202d;
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.class-selector-btn:hover {
  background: #131722;
  border-color: rgba(255, 36, 36, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7), 0 0 15px rgba(217, 4, 4, 0.2);
}

/* Stat Meter Progress Bars */
.stat-meter-bar {
  height: 6px;
  border-radius: 3px;
  background: #141722;
  overflow: hidden;
  position: relative;
}

.stat-fill-physical {
  background: linear-gradient(90deg, #b91c1c, #ff2424);
  box-shadow: 0 0 8px #ff2424;
}

.stat-fill-magic {
  background: linear-gradient(90deg, #4338ca, #6366f1);
  box-shadow: 0 0 8px #6366f1;
}

.stat-fill-defense {
  background: linear-gradient(90deg, #b45309, #f59e0b);
  box-shadow: 0 0 8px #f59e0b;
}

.stat-fill-mobility {
  background: linear-gradient(90deg, #047857, #10b981);
  box-shadow: 0 0 8px #10b981;
}

.stat-fill-farm {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  box-shadow: 0 0 8px #38bdf8;
}

/* Class Skill Box */
.class-skill-badge {
  background: #0a0d13;
  border: 1px solid #1c2230;
  border-radius: 12px;
  padding: 12px;
  transition: all 0.2s ease;
}

.class-skill-badge:hover {
  border-color: rgba(255, 36, 36, 0.4);
  background: #10141e;
  transform: translateY(-1px);
}

/* ============================================================
   GAMING NEWS & PATCH NOTES HUD SYSTEM
   ============================================================ */
.news-featured-card {
  position: relative;
  background: linear-gradient(135deg, #101216 0%, #15181f 50%, #0c0e12 100%);
  border: 1px solid rgba(114, 119, 125, 0.3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-featured-card:hover {
  border-color: rgba(217, 4, 4, 0.6);
  box-shadow: 0 20px 45px -10px rgba(217, 4, 4, 0.25), 0 0 25px rgba(217, 4, 4, 0.15);
  transform: translateY(-2px);
}

.news-hud-card {
  position: relative;
  background: #101216;
  border: 1px solid rgba(114, 119, 125, 0.22);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-hud-card:hover {
  border-color: rgba(217, 4, 4, 0.55);
  background: #14171d;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(217, 4, 4, 0.15);
  transform: translateY(-3px);
}

.news-crest-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #171a1e 0%, #0b0d10 100%);
  border: 1px solid rgba(114, 119, 125, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 4px 10px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.news-hud-card:hover .news-crest-box {
  border-color: rgba(255, 36, 36, 0.5);
  transform: scale(1.05);
}

.news-sidebar-box {
  background: #101216;
  border: 1px solid rgba(114, 119, 125, 0.25);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
}

.news-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #171a1e;
  color: #bfc3c7;
  border: 1px solid rgba(114, 119, 125, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-filter-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 36, 36, 0.5);
  background: #1e2228;
}

.news-filter-btn.active {
  background: linear-gradient(135deg, #8b0000 0%, #d90404 100%);
  color: #ffffff;
  border-color: #ff2424;
  box-shadow: 0 0 16px rgba(217, 4, 4, 0.5);
}

.news-staff-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
}

.news-badge-gm {
  background: rgba(217, 4, 4, 0.15);
  color: #ff4d4d;
  border: 1px solid rgba(217, 4, 4, 0.35);
}

.news-badge-dev {
  background: rgba(76, 111, 255, 0.15);
  color: #7b98ff;
  border: 1px solid rgba(76, 111, 255, 0.35);
}

.news-badge-staff {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* ============================================================
   WIKI & CODEX ENCYCLOPEDIA HUD SYSTEM
   ============================================================ */
.wiki-sidebar-panel {
  background: #101216;
  border: 1px solid rgba(114, 119, 125, 0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

.wiki-nav-category {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #72777D;
  padding: 10px 16px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wiki-guide-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 3px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #BFC3C7;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.wiki-guide-btn:hover {
  color: #ffffff;
  background: #171A1E;
  border-color: rgba(114, 119, 125, 0.3);
  transform: translateX(3px);
}

.wiki-guide-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.4) 0%, rgba(217, 4, 4, 0.2) 100%);
  border-color: rgba(217, 4, 4, 0.5);
  box-shadow: 0 0 15px rgba(217, 4, 4, 0.2);
}

.wiki-guide-btn.active .wiki-btn-icon {
  color: #FF2424;
  transform: scale(1.1);
}

.wiki-btn-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #0a0d13;
  border: 1px solid rgba(114, 119, 125, 0.2);
  color: #72777D;
  flex-shrink: 0;
  font-size: 13px;
  transition: all 0.2s ease;
}

.wiki-guide-btn:hover .wiki-btn-icon {
  border-color: rgba(255, 36, 36, 0.4);
  color: #E6E8EA;
}

.wiki-viewport-card {
  background: #101216;
  border: 1px solid rgba(114, 119, 125, 0.25);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8);
}

.wiki-coord-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 8px;
  background: #0a0d13;
  border: 1px solid rgba(76, 111, 255, 0.3);
  color: #7B98FF;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.wiki-stat-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(114, 119, 125, 0.25);
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
  font-size: 12px;
}

.wiki-stat-table th {
  background: #171A1E;
  color: #E6E8EA;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(114, 119, 125, 0.25);
  text-align: left;
}

.wiki-stat-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(114, 119, 125, 0.15);
  color: #BFC3C7;
}

.wiki-stat-table tr:last-child td {
  border-bottom: none;
}

.wiki-stat-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.wiki-search-box {
  background: #101216;
  border: 1px solid rgba(114, 119, 125, 0.3);
  border-radius: 14px;
  padding: 10px 16px;
  color: #E6E8EA;
  font-size: 13px;
  transition: all 0.2s ease;
}

.wiki-search-box:focus {
  outline: none;
  border-color: #D90404;
  box-shadow: 0 0 15px rgba(217, 4, 4, 0.25);
}

/* ============================================================
   GAMING ACCOUNT PANEL & HUD SYSTEM
   ============================================================ */
.account-hero-banner {
  position: relative;
  background: linear-gradient(180deg, rgba(23, 26, 30, 0.9) 0%, rgba(16, 18, 22, 0.95) 100%);
  border: 1px solid rgba(114, 119, 125, 0.25);
  border-radius: 20px;
  padding: 24px 30px;
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
}

.account-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #D90404, #FF2424, transparent);
}

.account-panel-card {
  position: relative;
  background: #101216;
  border: 1px solid rgba(114, 119, 125, 0.25);
  border-radius: 20px;
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
  transition: all 0.25s ease;
}

.account-panel-card:hover {
  border-color: rgba(114, 119, 125, 0.4);
}

.account-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(114, 119, 125, 0.2);
}

.account-avatar-frame {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #171A1E 0%, #07080A 100%);
  border: 2px solid rgba(217, 4, 4, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(217, 4, 4, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.1);
  position: relative;
  margin: 0 auto;
}

.account-avatar-frame.vip-gold {
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.15);
}

.account-input-group {
  position: relative;
}

.account-input {
  width: 100%;
  background: #07080A;
  border: 1px solid rgba(114, 119, 125, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: #E6E8EA;
  transition: all 0.2s ease;
}

.account-input:focus {
  outline: none;
  border-color: #D90404;
  box-shadow: 0 0 12px rgba(217, 4, 4, 0.25);
}

.account-input.is-valid {
  border-color: rgba(16, 185, 129, 0.7) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2) !important;
}

.account-input.is-invalid {
  border-color: rgba(244, 63, 94, 0.8) !important;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.25) !important;
}

.account-input.is-checking {
  border-color: rgba(99, 102, 241, 0.7) !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2) !important;
}

.account-char-hud {
  background: #171A1E;
  border: 1px solid rgba(114, 119, 125, 0.25);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.25s ease;
}

.account-char-hud:hover {
  border-color: rgba(217, 4, 4, 0.45);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(217, 4, 4, 0.1);
}

.account-crest-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f2329 0%, #0c0e12 100%);
  border: 1px solid rgba(114, 119, 125, 0.35);
  color: #FF2424;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.account-sub-box {
  background: #101216;
  border: 1px solid rgba(114, 119, 125, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
}

.account-item-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #171A1E;
  border: 1px solid rgba(114, 119, 125, 0.2);
  border-radius: 8px;
  font-size: 11px;
  transition: all 0.2s ease;
}

.account-item-pill:hover {
  border-color: rgba(217, 4, 4, 0.35);
  background: #1d2126;
}

.account-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #8B0000 0%, #D90404 50%, #FF2424 100%);
  color: #FFFFFF;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid rgba(255, 36, 36, 0.5);
  box-shadow: 0 4px 15px rgba(217, 4, 4, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.account-btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 4, 4, 0.5), 0 0 15px rgba(255, 36, 36, 0.3);
  filter: brightness(1.08);
}

.account-btn-action:active {
  transform: translateY(0);
}

.captcha-hud-box {
  background: linear-gradient(135deg, #07080A 0%, #171A1E 100%);
  border: 1px solid rgba(217, 4, 4, 0.4);
  color: #FF2424;
  text-shadow: 0 0 10px rgba(217, 4, 4, 0.7);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.25em;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 12px rgba(217, 4, 4, 0.2);
  transition: all 0.2s ease;
}

.captcha-hud-box:hover {
  border-color: #FF2424;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 18px rgba(255, 36, 36, 0.4);
  transform: scale(1.02);
}

/* Custom Gaming Stepper for Number Inputs */
.coins-stepper-input::-webkit-inner-spin-button,
.coins-stepper-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.coins-stepper-input {
  -moz-appearance: textfield;
}

.stepper-btn {
  transition: all 0.15s ease;
}
.stepper-btn:hover {
  background-color: #D90404;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(217, 4, 4, 0.5);
}
.stepper-btn:active {
  background-color: #8B0000;
  transform: scale(0.92);
}

/* ============================================================
   MYSTIC CONQUER — PORTAL REDESIGN
   A shared visual layer used by every public page. It preserves
   existing routes and behaviour while giving them one hierarchy.
   ============================================================ */
:root {
  --mc-ink: #08090c;
  --mc-surface: #11141a;
  --mc-surface-raised: #171b22;
  --mc-line: rgba(214, 222, 232, .16);
  --mc-silver: #eef1f5;
  --mc-muted: #9aa3af;
  --mc-red: #d91822;
  --mc-red-bright: #ff3a42;
}

html { background: var(--mc-ink); }
body.tech-grid-bg {
  background: radial-gradient(circle at 50% -15%, rgba(174, 15, 25, .18), transparent 34%), var(--mc-ink) !important;
  color: var(--mc-silver) !important;
}

header {
  background: rgba(8, 9, 12, .9) !important;
  border-color: var(--mc-line) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .24);
}

header a img[alt*="Mystic"], footer img[alt*="Logo"] {
  content: url("../images/mystic-conquer-logo-transparent.png");
  width: 128px !important;
  height: 58px !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: drop-shadow(0 0 7px rgba(255, 45, 54, .48)) drop-shadow(0 5px 11px rgba(0, 0, 0, .65));
  animation: mc-logo-glow 3.4s ease-in-out infinite;
}
/* The official mark already carries the name; avoid repeating it beside the logo. */
header a[href="./index"] > div { display: none !important; }

@keyframes mc-logo-glow {
  0%, 100% { filter: drop-shadow(0 0 7px rgba(255, 45, 54, .42)) drop-shadow(0 5px 11px rgba(0, 0, 0, .65)); }
  50% { filter: drop-shadow(0 0 13px rgba(255, 45, 54, .78)) drop-shadow(0 5px 13px rgba(0, 0, 0, .7)); }
}

.nav-link {
  border-radius: 7px !important;
  color: #c4cad2 !important;
}
.nav-link.active, .nav-link:hover {
  color: #fff !important;
  background: rgba(217, 24, 34, .12) !important;
  border-color: rgba(255, 58, 66, .45) !important;
}

.mc-shortcut-card {
  display: flex;
  min-height: 126px;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--mc-line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(25, 29, 36, .94), rgba(11, 13, 17, .96));
  color: var(--mc-silver);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mc-shortcut-card:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: rgba(255, 58, 66, .58);
  box-shadow: 0 15px 32px rgba(0, 0, 0, .34), 0 0 20px rgba(217, 24, 34, .11);
}
.mc-shortcut-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(255, 58, 66, .48);
  border-radius: 12px;
  background: rgba(217, 24, 34, .12);
  color: #ff6670;
}
.mc-eyebrow { color: #ff6670; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.mc-title { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.mc-copy { color: var(--mc-muted); font-size: .8rem; line-height: 1.35; }

.mc-download-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 58, 66, .35);
  border-radius: 99px;
  background: rgba(217, 24, 34, .12);
  color: #ffb5b8;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

footer { background: #0b0d11 !important; border-color: var(--mc-line) !important; }
.mc-site-footer {
  margin-top: auto;
  background: #0b0d11 !important;
  border-top: 1px solid var(--mc-line) !important;
  padding: 14px 0 !important;
}
.mc-site-footer__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.mc-site-footer__brand { display: flex; align-items: center; line-height: 0; }
.mc-site-footer .mc-site-footer__brand img {
  width: 92px !important;
  height: 42px !important;
  object-fit: contain !important;
}
.mc-site-footer__copyright { color: #747c88; font: 600 10px/1.3 monospace; }
.mc-site-footer__links { display: flex; align-items: center; gap: 20px; }
.mc-site-footer__links a { color: #a6afbd; font-size: 12px; font-weight: 700; text-decoration: none; }
.mc-site-footer__links a:hover { color: #fff; }
@media (max-width: 640px) {
  .mc-site-footer { padding: 12px 0 !important; }
  .mc-site-footer__inner { flex-wrap: wrap; justify-content: center; text-align: center; gap: 10px 16px; }
  .mc-site-footer__copyright { width: 100%; order: 3; }
}
@media (max-width: 640px) {
  header a img[alt*="Mystic"] { width: 96px !important; height: 44px !important; }
  .mc-shortcut-card { min-height: 104px; padding: 16px; }
}

/* Home composition: matches the approved game-portal direction. */
.mc-hero-shell {
  position: relative;
  min-height: 610px;
  isolation: isolate;
  background-image: linear-gradient(90deg, rgba(5, 7, 10, .94) 0%, rgba(7, 9, 12, .7) 47%, rgba(7, 9, 12, .26) 100%), url("../images/hero-battlefield-v2.png") !important;
  background-position: center;
  background-size: cover;
  border-color: rgba(255, 85, 92, .26) !important;
}
.mc-hero-video { position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none; opacity:.64; }
.mc-hero-video iframe, .mc-hero-video video { position:absolute; top:50%; left:50%; width:177.78%; height:100%; min-width:100%; min-height:56.25%; transform:translate(-50%,-50%); border:0; object-fit:cover; }
.mc-hero-video::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(5,7,10,.88) 0%, rgba(7,9,12,.56) 51%, rgba(7,9,12,.22) 100%); }
.mc-hero-copy { z-index: 1; }
.mc-hero-copy h1 {
  font-size: clamp(4.8rem, 8vw, 8.2rem) !important;
  text-shadow: 0 7px 26px rgba(0,0,0,.82), 0 1px 0 #fff;
}
.mc-hero-copy > div > div:last-child a:first-child {
  background: linear-gradient(135deg, #8f0a12, #ed222c 52%, #a20b13) !important;
  color: #fff !important;
  border: 1px solid #ff6570;
  box-shadow: 0 0 24px rgba(235, 34, 44, .36);
}
.mc-hero-copy > div > div:last-child a:nth-child(2) {
  background: linear-gradient(135deg, #f8fafc, #cbd5e1) !important;
  color: #111827 !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 0 22px rgba(255, 255, 255, .22);
}
.mc-hero-copy > div > div:last-child a:nth-child(2):hover {
  background: linear-gradient(135deg, #ffffff, #e2e8f0) !important;
  box-shadow: 0 0 30px rgba(255, 255, 255, .38);
}
.mc-discord-cta {
  color: #dbeafe !important;
  background: linear-gradient(135deg, #5865f2, #4049c4) !important;
  border: 1px solid rgba(147, 158, 255, .8) !important;
  box-shadow: 0 0 20px rgba(88, 101, 242, .28);
}
.mc-discord-cta:hover { background: linear-gradient(135deg, #6975ff, #4b55d8) !important; box-shadow: 0 0 28px rgba(88, 101, 242, .46); }
.mc-patch-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(7px);
  animation: mc-modal-in .24s ease-out;
}
.mc-patch-modal__card {
  width: min(100%, 390px);
  padding: 26px 24px 22px;
  text-align: center;
  border: 1px solid rgba(239, 41, 52, .72);
  border-radius: 15px;
  background: linear-gradient(145deg, #1a1d23, #121419);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .75), 0 0 30px rgba(217,4,4,.18), inset 0 1px 0 rgba(255,255,255,.05);
}
.mc-patch-modal__icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  margin: 0 auto 14px;
  border: 1px solid rgba(237, 44, 54, .7);
  border-radius: 14px;
  color: #ff5360;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 0 21px rgba(217,4,4,.24);
}
.mc-patch-modal h2 { margin: 0; color: #fff; font-size: 19px; font-weight: 900; letter-spacing: .025em; text-transform: uppercase; }
.mc-patch-modal p { margin: 10px auto 18px; max-width: 310px; color: #9fa7b4; font-size: 12px; line-height: 1.55; }
.mc-patch-modal p strong { color: #fff; }
.mc-patch-modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mc-patch-modal__actions a, .mc-patch-modal__actions button { min-height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; text-decoration: none; text-transform: uppercase; font-size: 11px; font-weight: 900; cursor: pointer; }
.mc-patch-modal__actions a { color: #fff; background: linear-gradient(135deg, #8f0a12, #ed222c); border: 1px solid #ff5c67; box-shadow: 0 5px 17px rgba(217,4,4,.3); }
.mc-patch-modal__actions button { color: #d7dce5; background: #15181e; border: 1px solid #292e37; }
.mc-patch-modal__actions button:hover { color: #fff; background: #1c2027; }
@keyframes mc-modal-in { from { opacity: 0; } to { opacity: 1; } }
.mc-server-panel {
  align-self: center;
  z-index: 2;
  border: 1px solid rgba(237, 241, 245, .28);
  background: linear-gradient(145deg, rgba(14, 17, 22, .94), rgba(7, 9, 12, .9));
  box-shadow: 0 24px 60px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
}
.mc-panel-label { display:block; color:#9aa3af; font-size:.7rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.mc-panel-value { display:block; margin-top:4px; color:#fff; font-size:1.65rem; line-height:1; }
.mc-panel-link { display:inline-flex; gap:8px; margin-top:24px; color:#ff6670; font-size:.76rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.mc-disabled-systems { margin-left: -10px; margin-right: -10px; padding: 10px; border: 1px solid rgba(255, 58, 66, .42); border-radius: 10px; background: rgba(217, 24, 34, .12); }
.mc-disabled-systems .mc-panel-label { color: #ff6870; }
.mc-disabled-systems p { color: #ffb2b6; font-weight: 700; }

/* Download page: a short, focused installation flow. */
.mc-download-hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(217, 24, 34, .20), transparent 58%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mc-download-hero h1 { font-size: clamp(2.2rem, 5vw, 4.25rem) !important; }
.mc-download-main { max-width: 1120px !important; }
.mc-download-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(21,25,32,.92), rgba(8,10,14,.96));
  box-shadow: 0 18px 45px rgba(0,0,0,.24);
}
.mc-download-card + .mc-download-card { margin-top: 2.5rem; }
.mc-download-card #client-mirrors-grid { gap: 1rem; }
.mc-download-card #client-mirrors-grid > div { border-color: rgba(255,255,255,.13) !important; background: #0b0e13 !important; box-shadow: none !important; }
.mc-download-card #client-mirrors-grid > .client-download-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(250px, 1.25fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px 28px;
  border: 1px solid color-mix(in srgb, var(--provider-color), transparent 35%) !important;
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(20,25,39,.98), #0b0e13 64%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 14px 32px rgba(0,0,0,.22) !important;
}
.client-download-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.client-download-logo { width: 58px; height: 58px; flex: 0 0 58px; border: 1px solid; border-radius: 15px; display: grid; place-items: center; }
.client-download-logo img { width: 72%; height: 72%; object-fit: contain; }
.client-download-tag { display: inline-flex; margin-bottom: 5px; padding: 2px 7px; border: 1px solid; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.client-download-brand h3 { color: #fff; font-size: 1.1rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; text-transform: uppercase; }
.client-download-brand p { margin-top: 3px; color: #9aa3b1; font-size: 11px; font-weight: 600; }
.client-download-detail { padding: 10px 12px; border: 1px solid; border-radius: 10px; font-size: 11px; font-weight: 600; }
.client-download-meta { display: flex; gap: 14px; color: #bfc3c7; font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.client-download-meta i { margin-right: 5px; color: var(--provider-color); }
.client-download-button { min-width: 210px; padding: 13px 17px; border-radius: 10px; box-shadow: 0 8px 22px color-mix(in srgb, var(--provider-color), transparent 75%); }
@media (max-width: 850px) {
  .mc-download-card #client-mirrors-grid > .client-download-card { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .client-download-button { width: 100%; }
}
@media (max-width: 460px) { .client-download-meta { gap: 10px; font-size: 9px; } }

/* Retired public destinations: hide them in every desktop/mobile/footer menu.
   Files remain intact for administration and future restoration. */
a[href="./news"], a[href="./wiki"], a[href="./classes"] { display: none !important; }
@media (max-width: 1023px) {
  .mc-hero-shell { min-height: 0; background-position: 62% center; }
  .mc-server-panel { margin-top: 0; }
}

/* Registration: visual polish only. Field names, validation, and form flow stay unchanged. */
.register-page {
  background: radial-gradient(ellipse 58% 42% at 18% 24%, rgba(170, 8, 18, .12), transparent 72%), radial-gradient(ellipse 46% 36% at 88% 56%, rgba(81, 15, 22, .13), transparent 74%), #07080a;
}
.register-page .account-hero-banner {
  background: linear-gradient(125deg, rgba(24, 27, 33, .98), rgba(10, 12, 16, .94));
  border-color: rgba(222, 40, 51, .34);
  box-shadow: 0 18px 42px -20px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255,255,255,.05);
}
.register-page .account-panel-card {
  background: linear-gradient(145deg, rgba(26, 30, 37, .98), rgba(14, 17, 22, .98));
  border-color: rgba(143, 154, 170, .34);
  box-shadow: 0 22px 48px -26px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.035);
}
.register-page .account-panel-card:first-child { border-color: rgba(219, 31, 43, .38); }
.register-page #register-form { gap: 18px; }
.register-page #register-form > div:not(.grid):not(.pt-2) {
  padding: 12px 14px;
  border: 1px solid rgba(141, 153, 170, .25);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(21, 25, 32, .92), rgba(12, 15, 20, .92));
}
.register-page .account-input {
  min-height: 44px;
  border-color: rgba(151, 163, 180, .42);
  background: linear-gradient(180deg, #151a21, #0f1319);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.register-page #register-form .text-discord-muted,
.register-page .account-panel-card .text-discord-muted { color: #a6b0bf !important; }
.register-page .lg\:col-span-5 .account-panel-card > div:last-child {
  background: rgba(15, 19, 25, .92) !important;
  border-color: rgba(142, 153, 169, .25) !important;
}
.register-page .account-input:hover { border-color: rgba(188, 198, 209, .5); }
.register-page .account-input:focus {
  border-color: #f02b35;
  background: #0b0d12;
  box-shadow: 0 0 0 3px rgba(217, 4, 4, .12), 0 0 22px rgba(217, 4, 4, .15);
}
.register-page .account-btn-action {
  min-height: 52px;
  border-radius: 13px;
  background: linear-gradient(105deg, #8d0a12 0%, #e21a25 52%, #a40b14 100%);
  box-shadow: 0 10px 26px rgba(217,4,4,.28), inset 0 1px 0 rgba(255,255,255,.24);
}
.register-page .account-btn-action:hover { box-shadow: 0 13px 30px rgba(217,4,4,.42), 0 0 20px rgba(255,36,36,.16); }
.register-page .captcha-hud-box { min-height: 44px; border-color: rgba(238, 43, 54, .58); }
.register-page .lg\:col-span-5 > div:last-child {
  border: 1px solid rgba(217, 4, 4, .23);
  box-shadow: 0 18px 34px -26px rgba(217,4,4,.48);
}
@media (max-width: 640px) {
  .register-page .account-hero-banner { padding: 20px; border-radius: 16px; }
  .register-page .account-panel-card { border-radius: 16px; }
  .register-page #register-form > div:not(.grid):not(.pt-2) { padding: 11px; }
}

