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

body.vibe-ui-enabled {
  --vibe-ink: #040915;
  --vibe-ink-soft: #091428;
  --vibe-header-bg: linear-gradient(145deg, rgba(7, 15, 31, 0.94), rgba(4, 10, 22, 0.95));
  --vibe-header-chip: rgba(8, 18, 36, 0.88);
  --vibe-header-chip-hover: rgba(16, 30, 56, 0.92);
  --vibe-header-chip-active: rgba(24, 43, 77, 0.94);
  --vibe-panel: rgba(10, 20, 42, 0.78);
  --vibe-panel-strong: rgba(8, 16, 34, 0.92);
  --vibe-border: rgba(122, 164, 255, 0.24);
  --vibe-border-strong: rgba(98, 186, 255, 0.42);
  --vibe-cyan: #4bc7ff;
  --vibe-blue: #3f7eff;
  --vibe-red: #ff6e5a;
  --vibe-gold: #ffcf64;
  --vibe-text: #e9f1ff;
  --vibe-text-soft: #a7bce3;
  --vibe-shadow: 0 16px 42px rgba(3, 8, 19, 0.4);
  --vibe-ring: 0 0 0 0.2rem rgba(75, 199, 255, 0.2);
  --bs-body-bg: #05070d;
  --bs-body-color: #e9f1ff;
  font-family: "Space Grotesk", "Exo 2", "Segoe UI", sans-serif;
  background: #05070d !important;
  background-color: #05070d !important;
  background-image: none !important;
  background-attachment: initial !important;
}

/* In battle pages keep Battle background only (avoid vibe overlay washout) */
body.vibe-ui-enabled.battle-zone {
  background-image: none !important;
  background-attachment: initial !important;
}

body.vibe-ui-enabled.battle-zone::after {
  display: none !important;
}

body.vibe-ui-enabled::after { display: none !important; }
body.vibe-ui-enabled::before { display: none !important; }

body.vibe-ui-enabled > * {
  position: relative;
  z-index: 1;
}

body.vibe-ui-enabled .container,
body.vibe-ui-enabled .container-fluid {
  max-width: min(1320px, 96vw);
}

body.vibe-ui-enabled main h1,
body.vibe-ui-enabled main h2,
body.vibe-ui-enabled main h3,
body.vibe-ui-enabled .section-title {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

body.vibe-ui-enabled .text-secondary,
body.vibe-ui-enabled .text-muted {
  color: var(--vibe-text-soft) !important;
}

body.vibe-ui-enabled .fecod-header,
body.vibe-ui-enabled .battle-header {
  border-bottom: 1px solid var(--vibe-border-strong) !important;
  background: var(--vibe-header-bg) !important;
  box-shadow:
    0 10px 30px rgba(2, 5, 12, 0.44),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
}

body.vibe-ui-enabled .fecod-main-nav {
  padding: 0.2rem 0.32rem;
  border-radius: 10px;
  border: 1px solid rgba(122, 164, 255, 0.16);
  background: linear-gradient(145deg, rgba(7, 15, 31, 0.45), rgba(6, 12, 25, 0.45));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.vibe-ui-enabled .navbar-nav .nav-link,
body.vibe-ui-enabled .battle-nav-list .nav-link {
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.vibe-ui-enabled .navbar-nav .nav-link:hover,
body.vibe-ui-enabled .navbar-nav .nav-link:focus,
body.vibe-ui-enabled .battle-nav-list .nav-link:hover,
body.vibe-ui-enabled .battle-nav-list .nav-link:focus,
body.vibe-ui-enabled .navbar-nav .nav-link.active,
body.vibe-ui-enabled .battle-nav-list .nav-link.active {
  background: rgba(24, 43, 77, 0.6);
  border-color: rgba(98, 186, 255, 0.34);
  box-shadow: 0 8px 20px rgba(3, 9, 23, 0.36);
  color: #ffffff !important;
  transform: none;
}

body.vibe-ui-enabled .navbar-nav .nav-link.active,
body.vibe-ui-enabled .battle-nav-list .nav-link.active {
  background: rgba(28, 49, 86, 0.78);
  border-color: rgba(98, 186, 255, 0.45);
}

body.vibe-ui-enabled .navbar-nav .nav-link:focus-visible,
body.vibe-ui-enabled .battle-nav-list .nav-link:focus-visible,
body.vibe-ui-enabled .btn:focus-visible,
body.vibe-ui-enabled .form-control:focus-visible,
body.vibe-ui-enabled .form-select:focus-visible {
  outline: 0;
  box-shadow: var(--vibe-ring);
}

body.vibe-ui-enabled .dropdown-menu {
  border: 1px solid var(--vibe-border) !important;
  background: linear-gradient(145deg, rgba(8, 18, 36, 0.98), rgba(5, 13, 27, 0.98));
  box-shadow: var(--vibe-shadow);
  z-index: 1200;
  pointer-events: auto;
}

body.vibe-ui-enabled .dropdown-item:hover,
body.vibe-ui-enabled .dropdown-item:focus {
  background: rgba(75, 199, 255, 0.12);
}

body.vibe-ui-enabled .card,
body.vibe-ui-enabled .panel,
body.vibe-ui-enabled .hub-card,
body.vibe-ui-enabled .battle-card,
body.vibe-ui-enabled .hub-match,
body.vibe-ui-enabled .social-card,
body.vibe-ui-enabled .feature-card,
body.vibe-ui-enabled .cookie-card,
body.vibe-ui-enabled .legal-page,
body.vibe-ui-enabled .list-group-item {
  border-color: var(--vibe-border) !important;
  background: linear-gradient(145deg, var(--vibe-panel), var(--vibe-panel-strong)) !important;
  box-shadow: var(--vibe-shadow);
}

body.vibe-ui-enabled .card:hover,
body.vibe-ui-enabled .hub-card:hover,
body.vibe-ui-enabled .battle-card:hover,
body.vibe-ui-enabled .hub-match:hover,
body.vibe-ui-enabled .feature-card:hover {
  border-color: var(--vibe-border-strong) !important;
  box-shadow:
    0 20px 45px rgba(2, 7, 18, 0.46),
    0 0 0 1px rgba(75, 199, 255, 0.12);
}

body.vibe-ui-enabled .btn {
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.vibe-ui-enabled .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(4, 10, 22, 0.34);
}

body.vibe-ui-enabled .btn-primary,
body.vibe-ui-enabled .btn-success {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--vibe-blue), var(--vibe-cyan));
}

body.vibe-ui-enabled .btn-outline-info,
body.vibe-ui-enabled .btn-outline-light,
body.vibe-ui-enabled .btn-outline-warning,
body.vibe-ui-enabled .btn-outline-secondary {
  border-color: var(--vibe-border-strong);
  background: rgba(10, 20, 42, 0.56);
}

body.vibe-ui-enabled .btn-outline-info:hover,
body.vibe-ui-enabled .btn-outline-light:hover,
body.vibe-ui-enabled .btn-outline-warning:hover,
body.vibe-ui-enabled .btn-outline-secondary:hover {
  background: rgba(75, 199, 255, 0.14);
}

body.vibe-ui-enabled .badge {
  border: 1px solid rgba(128, 165, 245, 0.26);
}

body.vibe-ui-enabled .alert {
  border: 1px solid var(--vibe-border);
  backdrop-filter: blur(3px);
}

body.vibe-ui-enabled .alert-info {
  background: rgba(43, 115, 208, 0.17);
}

body.vibe-ui-enabled .alert-success {
  background: rgba(33, 167, 114, 0.16);
}

body.vibe-ui-enabled .alert-warning {
  background: rgba(201, 140, 36, 0.2);
}

body.vibe-ui-enabled .alert-danger {
  background: rgba(173, 62, 62, 0.2);
}

body.vibe-ui-enabled .table,
body.vibe-ui-enabled .table-dark {
  --bs-table-bg: rgba(9, 18, 36, 0.7);
  --bs-table-striped-bg: rgba(15, 28, 54, 0.66);
  --bs-table-hover-bg: rgba(22, 38, 70, 0.76);
  --bs-table-border-color: var(--vibe-border);
  color: var(--vibe-text);
}

body.vibe-ui-enabled .form-control,
body.vibe-ui-enabled .form-select,
body.vibe-ui-enabled textarea,
body.vibe-ui-enabled input:not([type="checkbox"]):not([type="radio"]) {
  border: 1px solid var(--vibe-border);
  background: rgba(7, 14, 30, 0.86);
  color: var(--vibe-text);
}

body.vibe-ui-enabled .form-control::placeholder,
body.vibe-ui-enabled .form-select::placeholder,
body.vibe-ui-enabled textarea::placeholder,
body.vibe-ui-enabled input::placeholder {
  color: #8ea6cf;
}

body.vibe-ui-enabled .form-control:focus,
body.vibe-ui-enabled .form-select:focus,
body.vibe-ui-enabled textarea:focus,
body.vibe-ui-enabled input:focus {
  border-color: var(--vibe-cyan);
  box-shadow: var(--vibe-ring);
}

body.vibe-ui-enabled .modal-content {
  border: 1px solid var(--vibe-border);
  background: linear-gradient(145deg, rgba(8, 16, 34, 0.98), rgba(7, 14, 28, 0.98));
}

body.vibe-ui-enabled .footer-dark,
body.vibe-ui-enabled .battle-footer {
  border-top: 1px solid var(--vibe-border);
  background: linear-gradient(180deg, rgba(6, 12, 24, 0.96), rgba(4, 9, 18, 0.98));
}

body.vibe-ui-enabled .mobile-nav-wrap .mobile-nav a.active {
  box-shadow: 0 0 0 1px rgba(75, 199, 255, 0.28);
}

body.vibe-ui-enabled .battle-zone .chall-card,
body.vibe-ui-enabled .battle-zone .battle-card,
body.vibe-ui-enabled .battle-zone .hub-match {
  position: relative;
  overflow: hidden;
}

body.vibe-ui-enabled .battle-zone .chall-card::before,
body.vibe-ui-enabled .battle-zone .battle-card::before,
body.vibe-ui-enabled .battle-zone .hub-match::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(75, 199, 255, 0.12), transparent 35%),
    linear-gradient(305deg, rgba(255, 110, 90, 0.1), transparent 36%);
}

body.vibe-ui-enabled .battle-zone .chall-card > *,
body.vibe-ui-enabled .battle-zone .battle-card > *,
body.vibe-ui-enabled .battle-zone .hub-match > * {
  position: relative;
  z-index: 1;
}

body.vibe-ui-enabled .fecod-header .logo-h-img,
body.vibe-ui-enabled .battle-header .battle-brand-logo {
  filter: drop-shadow(0 0 10px rgba(75, 199, 255, 0.16));
}

@media (prefers-reduced-motion: reduce) {
  body.vibe-ui-enabled .btn,
  body.vibe-ui-enabled .navbar-nav .nav-link,
  body.vibe-ui-enabled .battle-nav-list .nav-link,
  body.vibe-ui-enabled .vibe-in {
    transition: none !important;
    transform: none !important;
  }
}

body.vibe-ui-enabled .vibe-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.vibe-ui-enabled .vibe-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  body.vibe-ui-enabled .container,
  body.vibe-ui-enabled .container-fluid {
    max-width: 100%;
  }

  body.vibe-ui-enabled .fecod-main-nav {
    padding: 0;
    border: 0;
    background: transparent;
  }

  body.vibe-ui-enabled .navbar-collapse.show {
    border: 1px solid var(--vibe-border);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(8, 17, 35, 0.96), rgba(6, 13, 26, 0.96));
    box-shadow: 0 10px 24px rgba(2, 8, 20, 0.4);
  }
}

/* Rebranding layer: neon dark identity on top of vibe mode */
body.vibe-ui-enabled {
  --vibe-magenta: #ff4fd8;
  background:
    radial-gradient(circle at 8% 6%, rgba(76, 140, 255, 0.2), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(255, 79, 216, 0.14), transparent 35%),
    radial-gradient(circle at 50% 110%, rgba(41, 196, 255, 0.14), transparent 44%),
    linear-gradient(175deg, #040813 0%, #050b1a 55%, #04070f 100%) !important;
}

body.vibe-ui-enabled main h1,
body.vibe-ui-enabled main h2,
body.vibe-ui-enabled main h3,
body.vibe-ui-enabled .section-title {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 20px rgba(75, 199, 255, 0.14);
}

body.vibe-ui-enabled .card,
body.vibe-ui-enabled .panel,
body.vibe-ui-enabled .hub-card,
body.vibe-ui-enabled .battle-card,
body.vibe-ui-enabled .hub-match,
body.vibe-ui-enabled .feature-card,
body.vibe-ui-enabled .staff-panel,
body.vibe-ui-enabled .fecod-card {
  position: relative;
  overflow: clip;
}

body.vibe-ui-enabled .card::after,
body.vibe-ui-enabled .panel::after,
body.vibe-ui-enabled .hub-card::after,
body.vibe-ui-enabled .battle-card::after,
body.vibe-ui-enabled .hub-match::after,
body.vibe-ui-enabled .feature-card::after,
body.vibe-ui-enabled .staff-panel::after,
body.vibe-ui-enabled .fecod-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(128deg, rgba(75, 199, 255, 0.14), transparent 32%),
    linear-gradient(312deg, rgba(255, 79, 216, 0.11), transparent 34%);
  mix-blend-mode: screen;
}

body.vibe-ui-enabled .btn-primary,
body.vibe-ui-enabled .btn-success,
body.vibe-ui-enabled .btn-fecod {
  background: linear-gradient(130deg, #2c5fda 0%, #24b8ff 62%, #49d2ff 100%);
  box-shadow:
    0 8px 22px rgba(13, 30, 73, 0.42),
    0 0 0 1px rgba(111, 215, 255, 0.22);
}

body.vibe-ui-enabled .btn-outline-warning,
body.vibe-ui-enabled .btn-outline-danger,
body.vibe-ui-enabled .btn-outline-info {
  backdrop-filter: blur(6px);
}

body.vibe-ui-enabled .dropdown-menu,
body.vibe-ui-enabled .modal-content {
  box-shadow:
    0 16px 34px rgba(1, 5, 14, 0.62),
    0 0 0 1px rgba(92, 177, 255, 0.18);
}

body.vibe-ui-enabled .table thead th,
body.vibe-ui-enabled .staff-table th,
body.vibe-ui-enabled .fecod-table th {
  color: #c4d9ff !important;
}

body.vibe-ui-enabled .badge.text-bg-secondary {
  background: rgba(26, 44, 82, 0.78) !important;
  color: #d6e7ff !important;
  border: 1px solid rgba(110, 176, 255, 0.3);
}

body.vibe-ui-enabled .alert-info,
body.vibe-ui-enabled .alert-success,
body.vibe-ui-enabled .alert-warning,
body.vibe-ui-enabled .alert-danger {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

@media (max-width: 991.98px) {
  body.vibe-ui-enabled {
    background:
      radial-gradient(circle at 12% 4%, rgba(76, 140, 255, 0.16), transparent 36%),
      radial-gradient(circle at 85% 8%, rgba(255, 79, 216, 0.12), transparent 34%),
      linear-gradient(180deg, #050a16 0%, #04080f 100%) !important;
  }
}

/* ==========================================
   Overdrive (Jinx-inspired) global pass
   Aggressive neon identity for full site.
   ========================================== */
body.vibe-ui-enabled {
  --vibe-cyan-hot: #33f5ff;
  --vibe-blue-hot: #1f6dff;
  --vibe-magenta-hot: #ff3db3;
  --vibe-acid-hot: #baff3b;
  --vibe-surface-0: rgba(4, 10, 24, 0.76);
  --vibe-surface-1: rgba(8, 14, 33, 0.84);
  --vibe-surface-2: rgba(10, 18, 40, 0.9);
  --vibe-stroke-soft: rgba(59, 132, 255, 0.25);
  --vibe-stroke-hot: rgba(51, 245, 255, 0.42);
  --vibe-title-glow:
    0 0 8px rgba(51, 245, 255, 0.36),
    0 0 24px rgba(31, 109, 255, 0.34),
    0 0 36px rgba(255, 61, 179, 0.2);
  background:
    radial-gradient(circle at 8% -5%, rgba(51, 245, 255, 0.22), transparent 30%),
    radial-gradient(circle at 92% 2%, rgba(255, 61, 179, 0.18), transparent 34%),
    radial-gradient(circle at 78% 108%, rgba(31, 109, 255, 0.26), transparent 36%),
    linear-gradient(165deg, #04060f 0%, #060c1d 44%, #050914 70%, #03040a 100%) !important;
}

body.vibe-ui-enabled::before,
body.vibe-ui-enabled::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: block !important;
  z-index: 0;
}

body.vibe-ui-enabled::before {
  opacity: 0.16;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(-32deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 24px);
  mix-blend-mode: screen;
}

body.vibe-ui-enabled::after {
  opacity: 0.12;
  background:
    linear-gradient(28deg, transparent 42%, rgba(51, 245, 255, 0.28) 43%, transparent 44%),
    linear-gradient(-18deg, transparent 65%, rgba(255, 61, 179, 0.22) 66%, transparent 67%),
    radial-gradient(circle at 15% 80%, rgba(255, 61, 179, 0.2), transparent 16%),
    radial-gradient(circle at 82% 26%, rgba(51, 245, 255, 0.18), transparent 14%);
}

body.vibe-ui-enabled main h1,
body.vibe-ui-enabled main h2,
body.vibe-ui-enabled main h3,
body.vibe-ui-enabled .section-title {
  text-shadow: var(--vibe-title-glow);
  color: #f7fbff;
  letter-spacing: 0.06em;
}

body.vibe-ui-enabled p,
body.vibe-ui-enabled li,
body.vibe-ui-enabled label,
body.vibe-ui-enabled small,
body.vibe-ui-enabled .small {
  color: #dceaff;
}

body.vibe-ui-enabled .text-secondary,
body.vibe-ui-enabled .text-muted {
  color: #9cb9ef !important;
}

body.vibe-ui-enabled .fecod-header,
body.vibe-ui-enabled .battle-header {
  border-bottom: 0 !important;
  background:
    linear-gradient(135deg, rgba(6, 13, 29, 0.95), rgba(4, 9, 20, 0.94)) !important;
  box-shadow:
    0 16px 40px rgba(1, 4, 12, 0.62),
    inset 0 -1px 0 rgba(102, 174, 255, 0.16);
}

body.vibe-ui-enabled .fecod-main-nav {
  border: 0 !important;
  border-radius: 0;
  padding: 0.16rem 0.2rem;
  background: transparent;
  box-shadow: none;
}

body.vibe-ui-enabled .navbar-nav .nav-link,
body.vibe-ui-enabled .battle-nav-list .nav-link {
  position: relative;
  z-index: 0;
  border: 0 !important;
  border-radius: 0;
  padding: 0.48rem 0.84rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.77rem;
  font-weight: 700;
  color: #cfe0ff !important;
  background: transparent !important;
  overflow: hidden;
  transition: color 0.2s ease, transform 0.2s ease;
}

body.vibe-ui-enabled .navbar-nav .nav-link::before,
body.vibe-ui-enabled .battle-nav-list .nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.72;
  transform: skewX(-15deg);
  transform-origin: left center;
  background:
    linear-gradient(130deg, rgba(25, 48, 96, 0.5), rgba(8, 15, 32, 0.62));
  box-shadow: inset 0 0 0 1px rgba(88, 146, 255, 0.2);
}

body.vibe-ui-enabled .navbar-nav .nav-link::after,
body.vibe-ui-enabled .battle-nav-list .nav-link::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(51, 245, 255, 0.78), rgba(255, 61, 179, 0.72));
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.vibe-ui-enabled .navbar-nav .nav-link:hover,
body.vibe-ui-enabled .navbar-nav .nav-link:focus,
body.vibe-ui-enabled .battle-nav-list .nav-link:hover,
body.vibe-ui-enabled .battle-nav-list .nav-link:focus,
body.vibe-ui-enabled .navbar-nav .nav-link.active,
body.vibe-ui-enabled .battle-nav-list .nav-link.active {
  color: #ffffff !important;
  transform: translateY(-1px);
}

body.vibe-ui-enabled .navbar-nav .nav-link:hover::before,
body.vibe-ui-enabled .navbar-nav .nav-link:focus::before,
body.vibe-ui-enabled .battle-nav-list .nav-link:hover::before,
body.vibe-ui-enabled .battle-nav-list .nav-link:focus::before,
body.vibe-ui-enabled .navbar-nav .nav-link.active::before,
body.vibe-ui-enabled .battle-nav-list .nav-link.active::before {
  background:
    linear-gradient(125deg, rgba(33, 84, 182, 0.8), rgba(16, 32, 66, 0.82));
  box-shadow:
    inset 0 0 0 1px rgba(91, 186, 255, 0.45),
    0 0 18px rgba(31, 109, 255, 0.28);
}

body.vibe-ui-enabled .navbar-nav .nav-link:hover::after,
body.vibe-ui-enabled .navbar-nav .nav-link:focus::after,
body.vibe-ui-enabled .battle-nav-list .nav-link:hover::after,
body.vibe-ui-enabled .battle-nav-list .nav-link:focus::after,
body.vibe-ui-enabled .navbar-nav .nav-link.active::after,
body.vibe-ui-enabled .battle-nav-list .nav-link.active::after {
  opacity: 1;
}

body.vibe-ui-enabled .dropdown-menu {
  border: 0 !important;
  border-radius: 14px;
  padding: 0.48rem;
  background:
    linear-gradient(148deg, rgba(8, 15, 33, 0.98), rgba(6, 11, 24, 0.98));
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(81, 144, 255, 0.3) inset,
    0 0 18px rgba(51, 245, 255, 0.2);
}

body.vibe-ui-enabled .dropdown-item {
  border-radius: 8px;
  margin-bottom: 0.1rem;
  color: #dcedff;
  letter-spacing: 0.02em;
}

body.vibe-ui-enabled .dropdown-item:hover,
body.vibe-ui-enabled .dropdown-item:focus {
  background: linear-gradient(135deg, rgba(33, 72, 157, 0.48), rgba(19, 36, 80, 0.72));
  color: #ffffff;
}

body.vibe-ui-enabled .card,
body.vibe-ui-enabled .panel,
body.vibe-ui-enabled .hub-card,
body.vibe-ui-enabled .battle-card,
body.vibe-ui-enabled .hub-match,
body.vibe-ui-enabled .social-card,
body.vibe-ui-enabled .feature-card,
body.vibe-ui-enabled .cookie-card,
body.vibe-ui-enabled .legal-page,
body.vibe-ui-enabled .staff-panel,
body.vibe-ui-enabled .fecod-card,
body.vibe-ui-enabled .list-group-item {
  border: 0 !important;
  border-radius: 12px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  background:
    linear-gradient(156deg, rgba(51, 245, 255, 0.09), transparent 30%),
    linear-gradient(322deg, rgba(255, 61, 179, 0.08), transparent 35%),
    linear-gradient(152deg, var(--vibe-surface-1), var(--vibe-surface-2)) !important;
  box-shadow:
    0 18px 36px rgba(2, 6, 16, 0.54),
    0 0 0 1px var(--vibe-stroke-soft) inset;
}

body.vibe-ui-enabled .card::before,
body.vibe-ui-enabled .panel::before,
body.vibe-ui-enabled .hub-card::before,
body.vibe-ui-enabled .battle-card::before,
body.vibe-ui-enabled .hub-match::before,
body.vibe-ui-enabled .feature-card::before,
body.vibe-ui-enabled .staff-panel::before,
body.vibe-ui-enabled .fecod-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 52%;
  height: 2px;
  transform: skewX(-28deg);
  background: linear-gradient(90deg, rgba(51, 245, 255, 0.9), rgba(255, 61, 179, 0.85), transparent);
  pointer-events: none;
}

body.vibe-ui-enabled .card:hover,
body.vibe-ui-enabled .hub-card:hover,
body.vibe-ui-enabled .battle-card:hover,
body.vibe-ui-enabled .hub-match:hover,
body.vibe-ui-enabled .feature-card:hover {
  box-shadow:
    0 20px 44px rgba(1, 5, 14, 0.6),
    0 0 0 1px var(--vibe-stroke-hot) inset,
    0 0 24px rgba(51, 245, 255, 0.18);
}

body.vibe-ui-enabled .btn {
  border: 0 !important;
  border-radius: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.vibe-ui-enabled .btn:hover {
  transform: translateY(-1px);
}

body.vibe-ui-enabled .btn-primary,
body.vibe-ui-enabled .btn-success,
body.vibe-ui-enabled .btn-fecod {
  color: #fff;
  background: linear-gradient(128deg, var(--vibe-blue-hot) 0%, var(--vibe-cyan-hot) 68%, #65ffe9 100%) !important;
  box-shadow:
    0 10px 22px rgba(8, 26, 67, 0.5),
    0 0 0 1px rgba(103, 225, 255, 0.22),
    0 0 18px rgba(51, 245, 255, 0.24);
}

body.vibe-ui-enabled .btn-outline-info,
body.vibe-ui-enabled .btn-outline-light,
body.vibe-ui-enabled .btn-outline-warning,
body.vibe-ui-enabled .btn-outline-secondary,
body.vibe-ui-enabled .btn-outline-danger {
  color: #dcedff;
  border: 1px solid rgba(76, 146, 255, 0.45) !important;
  background: linear-gradient(140deg, rgba(17, 34, 68, 0.64), rgba(11, 20, 42, 0.72));
}

body.vibe-ui-enabled .btn-outline-info:hover,
body.vibe-ui-enabled .btn-outline-light:hover,
body.vibe-ui-enabled .btn-outline-warning:hover,
body.vibe-ui-enabled .btn-outline-secondary:hover,
body.vibe-ui-enabled .btn-outline-danger:hover {
  color: #fff;
  border-color: rgba(51, 245, 255, 0.55) !important;
  background: linear-gradient(130deg, rgba(30, 69, 149, 0.76), rgba(15, 32, 70, 0.84));
}

body.vibe-ui-enabled .form-control,
body.vibe-ui-enabled .form-select,
body.vibe-ui-enabled textarea,
body.vibe-ui-enabled input:not([type="checkbox"]):not([type="radio"]) {
  border: 1px solid rgba(76, 144, 255, 0.4);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(7, 15, 33, 0.9), rgba(5, 11, 25, 0.92));
  color: #ebf5ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

body.vibe-ui-enabled .form-control::placeholder,
body.vibe-ui-enabled .form-select::placeholder,
body.vibe-ui-enabled textarea::placeholder,
body.vibe-ui-enabled input::placeholder {
  color: #89a7de;
}

body.vibe-ui-enabled .form-control:focus,
body.vibe-ui-enabled .form-select:focus,
body.vibe-ui-enabled textarea:focus,
body.vibe-ui-enabled input:focus {
  border-color: rgba(51, 245, 255, 0.74);
  box-shadow:
    0 0 0 0.18rem rgba(51, 245, 255, 0.17),
    0 0 18px rgba(51, 245, 255, 0.2);
}

body.vibe-ui-enabled .table,
body.vibe-ui-enabled .table-dark {
  --bs-table-bg: rgba(8, 16, 35, 0.62);
  --bs-table-striped-bg: rgba(14, 28, 58, 0.72);
  --bs-table-hover-bg: rgba(24, 44, 88, 0.74);
  --bs-table-border-color: rgba(84, 136, 240, 0.26);
}

body.vibe-ui-enabled .table thead th {
  color: #d7e8ff !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

body.vibe-ui-enabled .modal-content {
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(9, 18, 39, 0.98), rgba(6, 12, 27, 0.98));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(87, 149, 255, 0.32) inset;
}

body.vibe-ui-enabled .badge {
  border: 0 !important;
  box-shadow: 0 0 0 1px rgba(97, 160, 255, 0.26) inset;
}

body.vibe-ui-enabled .alert {
  border: 0 !important;
  border-radius: 10px;
  color: #e8f3ff;
  background:
    linear-gradient(145deg, rgba(17, 32, 66, 0.68), rgba(11, 21, 45, 0.76));
  box-shadow: 0 0 0 1px rgba(83, 136, 239, 0.25) inset;
}

body.vibe-ui-enabled .alert-warning {
  color: #ffe7b7 !important;
  background: linear-gradient(145deg, rgba(73, 46, 7, 0.55), rgba(42, 28, 7, 0.72));
}

body.vibe-ui-enabled .alert-danger {
  color: #ffd0dc !important;
  background: linear-gradient(145deg, rgba(70, 12, 34, 0.56), rgba(41, 8, 20, 0.72));
}

body.vibe-ui-enabled .alert-success {
  color: #ccffe8 !important;
  background: linear-gradient(145deg, rgba(10, 61, 47, 0.52), rgba(6, 36, 28, 0.72));
}

body.vibe-ui-enabled .alert-info {
  color: #d5f8ff !important;
  background: linear-gradient(145deg, rgba(11, 53, 84, 0.52), rgba(8, 31, 56, 0.72));
}

body.vibe-ui-enabled .footer-dark,
body.vibe-ui-enabled .battle-footer {
  border-top: 0 !important;
  background:
    linear-gradient(170deg, rgba(5, 10, 22, 0.98), rgba(3, 7, 15, 0.98));
  box-shadow: 0 -1px 0 rgba(96, 154, 255, 0.18) inset;
}

@media (max-width: 991.98px) {
  body.vibe-ui-enabled .navbar-collapse.show {
    border: 0;
    border-radius: 14px;
    background:
      linear-gradient(150deg, rgba(8, 16, 35, 0.98), rgba(4, 9, 20, 0.98));
    box-shadow:
      0 16px 30px rgba(0, 0, 0, 0.58),
      0 0 0 1px rgba(86, 147, 255, 0.3) inset;
  }

  body.vibe-ui-enabled .navbar-nav .nav-link,
  body.vibe-ui-enabled .battle-nav-list .nav-link {
    padding: 0.62rem 0.84rem !important;
  }
}

/* ------------------------------------------------------------------
   Override: simplify background to avoid heavy gradients on vibe UI
   ------------------------------------------------------------------ */
body.vibe-ui-enabled {
  background: #05070d !important;
  background-image: none !important;
}
body.vibe-ui-enabled::before,
body.vibe-ui-enabled::after {
  display: none !important;
  background: none !important;
}
