/*
 * MU Zulia — unified obsidian, fire and molten-gold theme.
 * Loaded last so legacy component styles inherit the current brand palette.
 */

:root,
[data-bs-theme="dark"] {
  --bs-primary: #f19e2b;
  --bs-primary-rgb: 241, 158, 43;
  --bs-secondary-color: #bfae9c;
  --bs-body-color: #f8f1e3;
  --bs-body-bg: #030100;
  --bs-emphasis-color: #fcf6c2;
  --bs-link-color: #f19e2b;
  --bs-link-hover-color: #fde931;
  --bs-border-color: rgba(241, 158, 43, 0.24);
  --bs-tertiary-bg: #1d0a05;
  --bs-focus-ring-color: rgba(241, 158, 43, 0.35);
}

html,
body {
  background-color: var(--ziriuz-bg) !important;
  color: var(--ziriuz-text);
}

body {
  background-image:
    radial-gradient(circle at 50% -15%, rgba(233, 101, 14, 0.16), transparent 38%),
    linear-gradient(180deg, #0b0301 0%, var(--ziriuz-bg) 40%, #000 100%);
}

::selection {
  background: rgba(241, 158, 43, 0.78);
  color: #140201;
}

* {
  scrollbar-color: var(--ziriuz-gold-dark) var(--ziriuz-bg);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ziriuz-gold), var(--ziriuz-red-glow));
}

a,
.text-lime,
.text-gold {
  color: var(--ziriuz-gold) !important;
}

a:hover,
.text-lime-link:hover {
  color: var(--ziriuz-gold-bright) !important;
}

.text-muted,
.content-sub,
.nav-sub,
.news-excerpt,
.footer-desc {
  color: var(--ziriuz-text-muted) !important;
}

.navbar,
.barra-top,
.home-site-chrome {
  background: linear-gradient(180deg, rgba(20, 2, 1, 0.97), rgba(3, 1, 0, 0.9)) !important;
  border-color: var(--ziriuz-border) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.72), 0 1px 0 rgba(241, 158, 43, 0.12);
}

.navbar-brand,
.navbar-brand-name,
.nav-label,
.content-header,
.page-title,
.panel-title,
.info-main-title,
.best-title-1,
.footer-title {
  color: var(--ziriuz-text) !important;
}

.navbar .nav-link,
.redes-top,
.we-clock {
  color: var(--ziriuz-text-muted) !important;
}

.navbar .nav-link.active,
.navbar .nav-link:hover,
.redes-top:hover,
.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
  color: var(--ziriuz-gold-light) !important;
  text-shadow: 0 0 12px var(--ziriuz-shadow);
}

.navbar-toggler,
.status-box {
  border-color: var(--ziriuz-border) !important;
  background: rgba(241, 158, 43, 0.08) !important;
  color: var(--ziriuz-gold-light) !important;
}

.btn-primary,
button[type="submit"],
.btn-register-submit,
.btn-shop-pay,
.admincp-button,
.home-hub-rates-link,
.launch-popup-primary,
.imperiox-rank-panel .buttonsub,
.box-wind {
  background: linear-gradient(135deg, var(--ziriuz-gold-bright), var(--ziriuz-gold) 52%, var(--ziriuz-red-glow)) !important;
  border-color: var(--ziriuz-gold) !important;
  color: #140201 !important;
  box-shadow: 0 8px 22px rgba(219, 64, 5, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.btn-primary:hover,
button[type="submit"]:hover,
.btn-register-submit:hover,
.btn-shop-pay:hover,
.admincp-button:hover,
.home-hub-rates-link:hover,
.launch-popup-primary:hover,
.imperiox-rank-panel .buttonsub:hover,
.box-wind:hover {
  background: linear-gradient(135deg, #fff7c8, var(--ziriuz-gold-bright) 48%, var(--ziriuz-red-glow)) !important;
  border-color: var(--ziriuz-gold-light) !important;
  color: #030100 !important;
  box-shadow: 0 10px 30px rgba(233, 101, 14, 0.38), 0 0 18px rgba(241, 158, 43, 0.24);
}

.btn-outline-success,
.btn-hero.btn-download,
.home-hub-widget-btn,
.shop-tab-btn,
.btn-read-more,
.launch-popup-actions button:not(.launch-popup-primary),
.rankings_menu a {
  background: rgba(20, 2, 1, 0.78) !important;
  border-color: rgba(241, 158, 43, 0.48) !important;
  color: var(--ziriuz-gold-light) !important;
}

.btn-outline-success:hover,
.btn-hero.btn-download:hover,
.home-hub-widget-btn:hover,
.shop-tab-btn:hover,
.shop-tab-btn.is-active,
.btn-read-more:hover,
.launch-popup-actions button:not(.launch-popup-primary):hover,
.rankings_menu a:hover,
.rankings_menu a.active {
  background: rgba(233, 101, 14, 0.2) !important;
  border-color: var(--ziriuz-gold) !important;
  color: var(--ziriuz-gold-bright) !important;
  box-shadow: 0 0 16px rgba(233, 101, 14, 0.22);
}

.panel,
.we-module-box,
.info-nav-container,
.info-content-container,
.panel-shop,
.paypal-gateway-content,
.home-hub-block,
.home-hub-widget,
.home-scroll-nav-inner,
.imperiox-rank-panel.blockHome,
.rankings-page-shell,
.rankings-premium-wrap,
.launch-popup-dialog {
  background:
    radial-gradient(circle at 50% 0%, rgba(241, 158, 43, 0.08), transparent 42%),
    linear-gradient(155deg, rgba(29, 10, 5, 0.98), rgba(3, 1, 0, 0.98)) !important;
  border-color: var(--ziriuz-border) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(252, 246, 194, 0.04);
}

.panel-heading,
.home-hub-block-head,
.home-hub-widget-head,
.rankings-module-title,
.imperiox-rank-panel .imperiox-rank-title {
  background: linear-gradient(90deg, rgba(103, 21, 5, 0.68), rgba(20, 2, 1, 0.34)) !important;
  border-color: var(--ziriuz-border) !important;
  color: var(--ziriuz-gold-light) !important;
}

.page-title span,
.info-main-title span,
.hero-kicker,
.hero-season-title,
.home-hub-stat i,
.home-hub-player-score,
.event-schedule-open,
.event-schedule-inprogress {
  color: var(--ziriuz-gold) !important;
  text-shadow: 0 0 16px rgba(233, 101, 14, 0.3);
}

.form-control,
.form-control-custom,
.form-select,
.we-module-box input[type="text"],
.we-module-box input[type="password"],
.we-module-box input[type="email"],
.we-module-box textarea,
.paypal-gateway-form input[type="text"] {
  background: rgba(3, 1, 0, 0.88) !important;
  border-color: rgba(241, 158, 43, 0.28) !important;
  color: var(--ziriuz-text) !important;
}

.form-control:focus,
.form-control-custom:focus,
.form-select:focus,
.we-module-box input:focus,
.we-module-box textarea:focus {
  border-color: var(--ziriuz-gold) !important;
  box-shadow: 0 0 0 0.2rem rgba(241, 158, 43, 0.16), 0 0 18px rgba(233, 101, 14, 0.14) !important;
}

.table,
.rankings-table:not(.rankings-table-premium),
.events-section .event-row {
  --bs-table-color: var(--ziriuz-text);
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(241, 158, 43, 0.14);
  color: var(--ziriuz-text) !important;
}

.table th,
.rankings-table:not(.rankings-table-premium) tr:first-child td,
.rankings-table-premium thead th {
  background: linear-gradient(180deg, rgba(103, 21, 5, 0.9), rgba(66, 16, 7, 0.82)) !important;
  border-color: var(--ziriuz-border) !important;
  color: var(--ziriuz-gold-light) !important;
}

.table-striped > tbody > tr:nth-of-type(odd),
.rankings-table-premium tbody td,
.rankings-table-premium tbody tr:nth-child(even) td {
  background-color: rgba(29, 10, 5, 0.58) !important;
  border-color: rgba(241, 158, 43, 0.1) !important;
  color: var(--ziriuz-text) !important;
}

.table-hover > tbody > tr:hover,
.rankings-table-premium tbody tr:hover td {
  background: rgba(233, 101, 14, 0.16) !important;
}

.home-scroll-panel--noticias,
.home-scroll-panel--rankings,
.home-scroll-panel--streamers,
.news-section,
.stream-section,
.info-server-section,
.rankings-full-section {
  background-color: var(--ziriuz-bg) !important;
}

.home-scroll-panel--noticias,
.home-scroll-panel--rankings,
.home-scroll-panel--streamers {
  background-image:
    radial-gradient(circle at 50% 0%, rgba(233, 101, 14, 0.12), transparent 42%),
    linear-gradient(180deg, #090301, #030100) !important;
}

.home-hub-stat,
.home-hub-news-item,
.home-hub-player-row,
.home-hub-event-row,
.shop-card-highlight,
.server-stat-item {
  background: rgba(241, 158, 43, 0.055) !important;
  border-color: rgba(241, 158, 43, 0.16) !important;
}

.home-hub-news-title,
.home-hub-stat-value,
.home-hub-player-name a,
.home-hub-event-name,
.imperiox-rank-panel .tableBlock-conten_name a {
  color: var(--ziriuz-text) !important;
}

.home-hub-news-title:hover,
.home-hub-player-name a:hover,
.imperiox-rank-panel .tableBlock-conten_name a:hover {
  color: var(--ziriuz-gold-bright) !important;
}

.home-scroll-nav-btn {
  background: rgba(20, 2, 1, 0.78) !important;
  border-color: rgba(241, 158, 43, 0.2) !important;
  color: var(--ziriuz-text-muted) !important;
}

.home-scroll-nav-btn:hover,
.home-scroll-nav-btn.is-active {
  background: linear-gradient(135deg, rgba(241, 158, 43, 0.26), rgba(219, 64, 5, 0.2)) !important;
  border-color: var(--ziriuz-gold) !important;
  color: var(--ziriuz-gold-light) !important;
}

.gallery-card,
.gallery-lightbox-figure {
  border-color: var(--ziriuz-border) !important;
  background: var(--ziriuz-bg-panel) !important;
}

.gallery-arrow,
.gallery-lightbox-close,
.gallery-lightbox-next {
  background: rgba(20, 2, 1, 0.9) !important;
  border-color: rgba(241, 158, 43, 0.5) !important;
  color: var(--ziriuz-gold-light) !important;
}

.rankings-page-heading,
.rankings_menu.rankings-premium-menu,
.rankings-podium-card {
  background: linear-gradient(145deg, rgba(29, 10, 5, 0.98), rgba(3, 1, 0, 0.98)) !important;
  border-color: var(--ziriuz-border) !important;
  color: var(--ziriuz-text) !important;
}

.rankings-page-heading h1,
.rankings-podium-card h2 a,
.rankings-podium-card-guild h2 a {
  color: var(--ziriuz-text) !important;
}

.rankings-page-heading p,
.rankings-podium-country,
.rankings-podium-class i,
.rankings-update-time {
  color: var(--ziriuz-text-muted) !important;
}

.rankings-heading-icon,
.rankings_menu.rankings-premium-menu a.active,
.rankings_menu.rankings-premium-menu a:hover {
  background: rgba(241, 158, 43, 0.12) !important;
  border-color: var(--ziriuz-gold) !important;
  color: var(--ziriuz-gold) !important;
}

.rankings-podium-card footer {
  background: linear-gradient(120deg, var(--ziriuz-red-deep), var(--ziriuz-bg-panel)) !important;
  color: var(--ziriuz-text-muted) !important;
}

.rankings-premium-table-wrap {
  border-color: var(--ziriuz-border) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
}

.launch-popup-backdrop {
  background: rgba(3, 1, 0, 0.9) !important;
}

.launch-popup-dialog::before {
  background: linear-gradient(135deg, rgba(241, 158, 43, 0.7), rgba(233, 101, 14, 0.28), rgba(66, 16, 7, 0.72)) !important;
}

.launch-popup-content,
.launch-popup-art-fallback {
  background:
    radial-gradient(circle at 20% 20%, rgba(241, 158, 43, 0.16), transparent 44%),
    linear-gradient(145deg, #1d0a05, #030100) !important;
}

.launch-popup-content h2,
.launch-popup-art-day,
.launch-popup-art-month {
  color: var(--ziriuz-text) !important;
}

.launch-popup-eyebrow,
.launch-popup-art-kicker,
.launch-popup-eyebrow i {
  color: var(--ziriuz-gold) !important;
}

.footer-section {
  background-color: #090301 !important;
  background-blend-mode: multiply;
  border-top: 1px solid var(--ziriuz-border);
}

.redes-footer {
  background: linear-gradient(135deg, var(--ziriuz-gold), var(--ziriuz-red-glow)) !important;
  color: #140201 !important;
  outline-color: var(--ziriuz-gold) !important;
}

.alert-success {
  background: rgba(241, 158, 43, 0.11) !important;
  border-color: rgba(241, 158, 43, 0.4) !important;
  color: var(--ziriuz-gold-light) !important;
}

.alert-info,
.alert-warning {
  background: rgba(233, 101, 14, 0.1) !important;
  border-color: rgba(233, 101, 14, 0.34) !important;
  color: #ffd18b !important;
}

@media (max-width: 767.98px) {
  .navbar-collapse {
    background: rgba(20, 2, 1, 0.98) !important;
    border-color: var(--ziriuz-border) !important;
  }
}
