/* ==========================================================================
   PLAYRADARX v2 — MODERN GAMING UI DESIGN SYSTEM (MODERN.CSS)
   Aesthetic: Ultra-Deep Obsidian, Cyberpunk Accents & Glassmorphism
   Designed for Visual Excellence, 60fps Micro-interactions & High Legibility
   ========================================================================== */

:root {
  /* ── 1. Color Palette: Deep Obsidian Gaming Theme ── */
  --mx-bg-base: #07090e;
  --mx-bg-elevated: #0d121d;
  --mx-bg-surface: #131b2e;
  --mx-bg-card: rgba(32, 38, 58, 0.85);
  --mx-bg-glass: rgba(13, 18, 29, 0.82);
  --mx-border-subtle: rgba(255, 255, 255, 0.07);
  --mx-border-glow: #8B19FF;
  --mx-border-vip: rgba(139, 25, 255, 0.45);

  /* ── 2. Accent Lighting (Luminous Gradients) ── */
  --mx-cyan: #00f2fe;
  --mx-blue: #38bdf8;
  --mx-purple: #fbbf24;
  --mx-gold: var(--color-primary);
  --mx-gold-light: #fbbf24;
  --mx-emerald: #22C55E;
  --mx-rose: #f43f5e;

  /* ── 3. High-Fidelity Typography ── */
  --mx-text-primary: #f8fafc;
  --mx-text-secondary: #A1A1B5;
  --mx-text-muted: #64748b;
  --mx-text-gold: #fde047;

  /* ── 4. Spatial Tokens & Shadows ── */
  --mx-radius-sm: 6px;
  --mx-radius-md: 10px;
  --mx-radius-lg: 16px;
  --mx-radius-xl: 20px;
  --mx-shadow-card: 0 8px 32px -4px rgba(0, 0, 0, 0.5), 0 2px 8px -2px rgba(0, 0, 0, 0.4);
  --mx-shadow-hover: 0 16px 40px -8px rgba(0, 0, 0, 0.7), 0 0 24px -4px rgba(56, 189, 248, 0.2);
  --mx-shadow-vip: 0 12px 36px -6px rgba(0, 0, 0, 0.7), 0 0 28px -4px rgba(139, 25, 255, 0.3);
  --mx-blur: blur(16px);
  --mx-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== GLOBAL BODY & BACKGROUND TEXTURE ===== */
body {
  background-color: var(--mx-bg-base) !important;
  color: var(--mx-text-primary) !important;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Subtle glowing background ambient spots */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 20%;
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 10%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.035) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== 1. ULTRA-PREMIUM GLASSMORPHIC HEADER ===== */
.site-header {
  background: var(--mx-bg-glass) !important;
  backdrop-filter: var(--mx-blur) saturate(180%) !important;
  -webkit-backdrop-filter: var(--mx-blur) saturate(180%) !important;
  border-bottom: 2px solid var(--mx-gold) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s var(--mx-ease) !important;
}

/* Luminous bottom accent line for header */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(139, 25, 255, 0.3) 25%, rgba(251, 191, 36, 0.75) 50%, rgba(139, 25, 255, 0.3) 75%, transparent);
  pointer-events: none;
}

/* Logo enhancement */
.site-header .logo h1,
.site-header .logo .logo-title {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #A1A1B5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Oswald', sans-serif !important;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

/* Navigation Links */
.nav-link {
  color: var(--mx-text-secondary) !important;
  font-weight: 500 !important;
  font-size: 14.5px !important;
  padding: 8px 14px !important;
  border-radius: var(--mx-radius-sm) !important;
  transition: all 0.2s var(--mx-ease) !important;
}

.nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--mx-gold-light) !important;
  background: rgba(139, 25, 255, 0.12) !important;
  box-shadow: 0 0 12px rgba(139, 25, 255, 0.2);
}

/* Primary Action Buttons in Header */
.site-header .btn-admin,
.site-header .btn-submit {
  background: linear-gradient(135deg, #8B19FF 0%, var(--color-primary-dark) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(139, 25, 255, 0.35) !important;
  border-radius: var(--mx-radius-md) !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  transition: all 0.25s var(--mx-ease) !important;
}

.site-header .btn-admin:hover,
.site-header .btn-submit:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #8B19FF 100%) !important;
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

/* ===== 2. HERO CAROUSEL LUXURY STYLING ===== */
.hero-banner {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--mx-border-subtle);
  background: radial-gradient(ellipse at top, #111827 0%, var(--mx-bg-base) 80%) !important;
}

.hero-slide {
  transition: opacity 0.6s var(--mx-ease), transform 0.6s var(--mx-ease) !important;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.3) 0%, rgba(7, 9, 14, 0.7) 60%, var(--mx-bg-base) 100%) !important;
}

.hero-badge {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid var(--mx-cyan) !important;
  color: var(--mx-cyan) !important;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.3) !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.hero-content h1 {
  font-family: 'Oswald', sans-serif !important;
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  color: var(--mx-text-secondary) !important;
  font-size: 1.1rem !important;
  max-width: 620px;
  line-height: 1.7;
}

/* Hero Action Buttons */
.btn-hero-primary {
  background: linear-gradient(135deg, #8B19FF 0%, #5B00B8 100%) !important;
  color: #ffffff !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.8px;
  padding: 12px 28px !important;
  border-radius: var(--mx-radius-md) !important;
  box-shadow: 0 8px 25px rgba(139, 25, 255, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.25s var(--mx-ease) !important;
}

.btn-hero-primary:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 12px 32px rgba(139, 25, 255, 0.6) !important;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px) !important;
  color: var(--mx-text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 12px 24px !important;
  border-radius: var(--mx-radius-md) !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  letter-spacing: 0.5px;
  transition: all 0.25s var(--mx-ease) !important;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px) !important;
}

/* Hero Controls */
.hero-prev,
.hero-next {
  background: rgba(13, 18, 29, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  width: 46px !important;
  height: 46px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.2s var(--mx-ease) !important;
}

.hero-prev:hover,
.hero-next:hover {
  background: linear-gradient(135deg, #8B19FF 0%, #5B00B8 100%) !important;
  border-color: #8B19FF !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6) !important;
  transform: translateY(-50%) scale(1.08) !important;
}

/* ===== 3. CATEGORY CARDS — SLEEK GAMING TILES ===== */
.categories-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)) !important;
  gap: 14px !important;
}

.cat-card {
  position: relative;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: var(--mx-bg-card) !important;
  backdrop-filter: var(--mx-blur) !important;
  -webkit-backdrop-filter: var(--mx-blur) !important;
  border: 1px solid var(--mx-border-subtle) !important;
  border-radius: var(--mx-radius-md) !important;
  padding: 12px 14px 12px 16px !important;
  box-shadow: var(--mx-shadow-card) !important;
  transition: all 0.22s var(--mx-ease) !important;
  overflow: hidden;
  text-decoration: none !important;
}

.cat-card:hover {
  transform: translateY(-2px) !important;
  border-color: var(--c, var(--mx-blue)) !important;
  box-shadow: 0 8px 22px -4px rgba(0, 0, 0, 0.6), 0 0 14px -2px var(--c, rgba(56, 189, 248, 0.3)) !important;
}

.cat-icon {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 17px !important;
  color: var(--c, var(--mx-gold));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.25s var(--mx-ease) !important;
}

.cat-card:hover .cat-icon {
  background: var(--c, var(--mx-gold)) !important;
  color: #0c0d14 !important;
  border-color: var(--c, var(--mx-gold)) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 14px var(--c, rgba(139, 25, 255, 0.45)) !important;
}

.cat-info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.cat-info h3 {
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  margin: 0 0 3px 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.cat-info p {
  color: #cbd5e1 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
}

.cat-arrow {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  font-size: 10px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--c, var(--mx-gold)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.6 !important;
  transition: all 0.2s var(--mx-ease);
}

.cat-card:hover .cat-arrow {
  opacity: 1 !important;
  transform: translateX(2px) !important;
}

/* ===== 4. VIP SERVER CARDS — RADIANT GLOW & LUXURY BORDER ===== */
.vip-servers-section {
  background: linear-gradient(180deg, rgba(139, 25, 255, 0.05) 0%, transparent 100%);
  border: 1px solid rgba(139, 25, 255, 0.2);
  border-radius: 8px !important;
  padding: 8px 10px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 14px -6px rgba(139, 25, 255, 0.12) !important;
}

.vip-server-card {
  background: linear-gradient(135deg, rgba(26, 34, 52, 0.85) 0%, rgba(15, 22, 36, 0.95) 100%) !important;
  border: 1px solid var(--mx-border-vip) !important;
  border-radius: 6px !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(12px) !important;
  position: relative;
  transition: all 0.2s var(--mx-ease) !important;
  overflow: hidden !important;
}

.vip-server-card:hover {
  transform: translateY(-1px) !important;
  border-color: var(--mx-gold-light) !important;
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.7), 0 0 16px 1px rgba(139, 25, 255, 0.25) !important;
}

.vip-tag-crown {
  background: linear-gradient(135deg, #8B19FF 0%, #5B00B8 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 9.5px !important;
  letter-spacing: 0.5px;
  padding: 1.5px 6px !important;
  border-radius: 3px !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4) !important;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.vip-server-title a {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  text-decoration: none !important;
  transition: color 0.2s var(--mx-ease);
}

.vip-server-title a:hover {
  color: var(--mx-gold-light) !important;
}

.btn-vip-view {
  background: linear-gradient(135deg, #8B19FF 0%, var(--color-primary-dark) 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 10.5px !important;
  padding: 2.5px 8px !important;
  border-radius: 3px !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s var(--mx-ease);
}

.btn-vip-view:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #8B19FF 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(139, 25, 255, 0.45) !important;
}

/* Pulsing Online Dot */
.vip-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22C55E;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #22C55E;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ===== 5. REGULAR SERVER & GAME ITEMS ===== */
.game-group-container {
  background: var(--mx-bg-card) !important;
  backdrop-filter: var(--mx-blur) !important;
  border: 1px solid var(--mx-border-subtle) !important;
  border-radius: 6px !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  box-shadow: var(--mx-shadow-card) !important;
  transition: all 0.2s var(--mx-ease) !important;
  overflow: hidden !important;
}

.game-group-container:hover {
  transform: translateY(-1px) !important;
  border-color: #8B19FF !important;
  box-shadow: var(--mx-shadow-hover) !important;
}

.game-title a {
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.2s var(--mx-ease);
}

.game-title a:hover {
  color: var(--mx-cyan) !important;
}

.btn-game {
  background: linear-gradient(135deg, rgba(139, 25, 255, 0.22) 0%, rgba(168, 85, 247, 0.22) 100%) !important;
  border: 1px solid rgba(139, 25, 255, 0.4) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 10.5px !important;
  padding: 2px 8px !important;
  border-radius: 3px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: all 0.2s var(--mx-ease) !important;
}

.btn-game:hover {
  background: linear-gradient(135deg, #8B19FF 0%, #5B00B8 100%) !important;
  border-color: #8B19FF !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(139, 25, 255, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* ===== 6. SIDEBAR & WIDGET CARDS ===== */
.sidebar .widget {
  background: var(--mx-bg-card) !important;
  backdrop-filter: var(--mx-blur) !important;
  border: 1px solid var(--mx-border-subtle) !important;
  border-radius: var(--mx-radius-lg) !important;
  padding: 20px !important;
  margin-bottom: 24px !important;
  box-shadow: var(--mx-shadow-card) !important;
}

.sidebar .widget-title {
  color: #ffffff !important;
  font-family: 'Oswald', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px;
  border-bottom: 2px solid rgba(139, 25, 255, 0.4) !important;
  padding-bottom: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar .widget-title i {
  color: var(--mx-gold);
}

.top-server-list li {
  padding: 10px 8px !important;
  border-radius: var(--mx-radius-sm);
  transition: background 0.2s var(--mx-ease);
}

.top-server-list li:hover {
  background: rgba(255, 255, 255, 0.04);
}

.top-server-list .rank {
  font-family: 'Oswald', sans-serif !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
}

.top-server-list .rank-1 {
  background: linear-gradient(135deg, #8B19FF, var(--color-primary-dark)) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.top-server-list .rank-2 {
  background: linear-gradient(135deg, #A1A1B5, #64748b) !important;
  color: #fff !important;
}

.top-server-list .rank-3 {
  background: linear-gradient(135deg, #b45309, #78350f) !important;
  color: #fff !important;
}

/* ===== 7. NEWS CARDS ===== */
.news-card {
  background: var(--mx-bg-card) !important;
  border: 1px solid var(--mx-border-subtle) !important;
  border-radius: var(--mx-radius-lg) !important;
  box-shadow: var(--mx-shadow-card) !important;
  overflow: hidden;
  transition: all 0.28s var(--mx-ease) !important;
}

.news-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: var(--mx-shadow-hover) !important;
}

.news-card img {
  transition: transform 0.4s var(--mx-ease);
}

.news-card:hover img {
  transform: scale(1.05);
}

.news-body h3 a,
.news-mini-body h4 a {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: color 0.2s var(--mx-ease);
}

.news-body h3 a:hover,
.news-mini-body h4 a:hover {
  color: var(--mx-gold-light) !important;
}

/* ===== 8. HIGH-END FORM CONTROLS & MODALS ===== */
html:not([data-theme="light"]) .form-control,
html:not([data-theme="light"]) input[type="text"]:not(#headerSearchInput):not(.otp-digit-cell):not(.search-form-big input):not(.srv-table-search input),
html:not([data-theme="light"]) input[type="password"],
html:not([data-theme="light"]) input[type="email"],
html:not([data-theme="light"]) input[type="tel"],
html:not([data-theme="light"]) input[type="number"],
html:not([data-theme="light"]) select,
html:not([data-theme="light"]) textarea {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: var(--mx-radius-sm) !important;
  transition: all 0.2s var(--mx-ease) !important;
}

html:not([data-theme="light"]) .form-control:focus,
html:not([data-theme="light"]) input[type="text"]:not(#headerSearchInput):not(.otp-digit-cell):not(.search-form-big input):not(.srv-table-search input):focus,
html:not([data-theme="light"]) input[type="password"]:focus,
html:not([data-theme="light"]) input[type="email"]:focus,
html:not([data-theme="light"]) input[type="tel"]:focus,
html:not([data-theme="light"]) input[type="number"]:focus,
html:not([data-theme="light"]) select:focus,
html:not([data-theme="light"]) textarea:focus {
  border-color: var(--mx-blue) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
  background: rgba(15, 23, 42, 0.95) !important;
  outline: none !important;
}

/* Dedicated OTP 6-cell styling */
html:not([data-theme="light"]) .otp-digit-cell {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  width: 44px !important;
  height: 50px !important;
  text-align: center !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

.otp-digit-cell:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 14px rgba(139, 25, 255, 0.4) !important;
  background: rgba(26, 34, 52, 0.95) !important;
  outline: none !important;
}

/* Header Search Input Specific: Pure transparent input without dark box */
.header-search-form {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 20px !important;
  transition: all 0.25s var(--mx-ease) !important;
}

.header-search-form:focus-within {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--mx-blue) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25) !important;
}

.header-search-form input,
#headerSearchInput,
.search-form-big input,
.srv-table-search input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.header-search-form input:focus,
#headerSearchInput:focus,
.search-form-big input:focus,
.srv-table-search input:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Auth Modal Backdrop */
.modal-backdrop,
.auth-modal-overlay {
  background: rgba(7, 9, 14, 0.85) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.auth-modal-content,
.modal-content {
  background: linear-gradient(135deg, rgba(19, 27, 46, 0.95) 0%, rgba(13, 18, 29, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--mx-radius-xl) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.15) !important;
  color: #ffffff !important;
}

/* ===== 9. FOOTER ELEGANCE ===== */
.site-footer {
  background: #05070a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 50px !important;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3) 30%, rgba(139, 25, 255, 0.3) 70%, transparent);
}

.footer-col h4 {
  color: #ffffff !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col a:not(.btn-footer-ad) {
  color: var(--mx-text-secondary) !important;
  text-decoration: none !important;
  transition: all 0.2s var(--mx-ease);
}

.footer-col a:not(.btn-footer-ad):hover {
  color: var(--mx-gold-light) !important;
  padding-left: 4px;
}

.footer-col .btn-footer-ad,
.btn-footer-ad {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  margin-top: 6px !important;
  padding: 4px 10px !important;
  background: linear-gradient(135deg, var(--color-primary) 0%, #5B00B8 100%) !important;
  color: #0b0f19 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 8px rgba(139, 25, 255, 0.25) !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.footer-col .btn-footer-ad:hover,
.btn-footer-ad:hover {
  background: linear-gradient(135deg, #fbbf24 0%, var(--color-primary) 100%) !important;
  color: #000000 !important;
  box-shadow: 0 3px 12px rgba(139, 25, 255, 0.4) !important;
  transform: translateY(-1px) !important;
  padding-left: 10px !important;
}

/* ===== 10. RESPONSIVE PERFECTION ===== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem !important;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cat-card {
    padding: 12px 10px !important;
  }

  .cat-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 16px !important;
  }
}

/* ===== 11. P2-04 / FA-01: MOBILE THUMBNAIL RESILIENCE ===== */
.news-list-thumb {
  flex-shrink: 0 !important;
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
}

@media (max-width: 480px) {
  .news-list-card {
    min-width: 0 !important;
  }

  .news-list-thumb {
    flex-shrink: 0 !important;
    min-width: 84px !important;
    width: 84px !important;
    height: 84px !important;
    min-height: 84px !important;
    object-fit: cover !important;
  }

  .news-list-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
}

/* Accessibility: Tôn trọng tùy chọn giảm chuyển động của hệ điều hành (UX-001) */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Accessibility: Skip Navigation Link & Semantic Main Landmark (UX-001) */
.skip-nav-link {
  position: absolute;
  top: -120px;
  left: 16px;
  background: var(--color-primary, var(--color-primary));
  color: #0b0e14;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 999999;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-nav-link:focus {
  top: 16px;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.site-main {
  display: block;
  min-height: calc(100vh - 380px);
  position: relative;
}