html {
  scroll-behavior: smooth;
}

body::-webkit-scrollbar {
  width: 4px;
}

body::-webkit-scrollbar-track {
  background: #2e2e2e;
}

body::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #888;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  margin-top: 70px;
}

h1, h2, h3 {
  color: #333;
  font-weight: 600;
}

header {
  transition: background-color 0.3s ease;
}

.bg-custom {
  background: linear-gradient(to right, #4b0082, #8a2be2);
}

.main-content {
  margin-top: 20px;
}

.ancho-tienda {
  width: 90%;
  margin: auto;
}

.ancho-org {
  width: 90%;
  margin: auto;
}

/*
-------------------------------------------------------------------
                             NAVBAR
-------------------------------------------------------------------
*/

.navbar {
  padding-left: 50px;
  padding-right: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"%3E%3Cpath stroke="%23fff" stroke-width="2" d="M4 6h22M4 12h22M4 18h22" /%3E%3C/svg%3E');
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  width: 80px;
  height: 80px;
  margin-right: 10px;
}

.navbar-brand span {
  font-weight: 700;
  color: #fff;
  display: inline-block;
  vertical-align: middle;
  font-size: 1.3rem;
}

.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1.2rem;
  color: #fff;
  padding: 10px 15px;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 5px;
  text-align: center;
  background-color: transparent;
}

.navbar-nav .nav-link img {
  max-height: 25px;
  margin-right: 8px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.226);
}

.navbar-nav .nav-link:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-login {
  margin-left: auto;
}

.navbar-nav > li {
  margin-right: 5px;
}

@media (max-width: 768px) {
  .navbar {
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 10px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .navbar-nav {
    text-align: center;
    margin-right: 0;
    justify-content: center;
  }

  .navbar-nav .nav-link {
    padding: 10px 0;
  }

  .nav-login {
    margin-left: 0;
    margin-right: 0;
    text-align: center;
  }

  .navbar-nav > li {
    margin-right: 0;
  }
}

/*
====================================================================
================= ESTILO DE LOS BOTONES DEL NAVBAR==================
====================================================================
*/

.dropdown {
  display: inline-block;
  position: relative;
}

.dropdown img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

.dropdown-content {
  display: none;
  position: absolute;
  width: 100%;
  overflow: auto;
  box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.4);
  background-color: rgba(75, 0, 130, 0.8);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  color: #FFF;
  padding: 5px;
  text-decoration: none;
}

.dropdown-content a:hover {
  color: #FFFFFF;
  background-color: #00A4BD;
}

/*
==========================================================================
*/

.nav-tabs {
  border: none;
  margin-right: 0;
}

.nav-tabs .nav-item {
  width: 100%;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 12px;
  padding: 15px;
  background-color: #f8f9fa;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#normativas {
  background-color: #ffffff;
  padding: 60px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
  background-color: #4b0082;
  color: #fff;
  padding: 20px 30px;
  font-weight: 600;
  text-align: center;
  border-radius: 15px 15px 0 0;
}

.card-body-rules {
  background-color: #f9f9f9;
  padding: 25px 30px;
}

.nav-tabs {
  display: flex;
  flex-direction: column;
}

.nav-tabs .nav-item {
  width: 100%;
  margin-bottom: 10px;
}

.nav-tabs .nav-link {
  display: block;
  padding: 15px 25px;
  font-weight: 500;
  background-color: #f8f9fa;
  color: #333;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-tabs .nav-link.active {
  background-color: #4b0082;
  color: #fff;
  font-weight: 600;
  transform: scale(1.05);
}

.nav-tabs .nav-link:hover {
  background-color: #4c008246;
  transform: scale(1.03);
}

.tab-content {
  padding: 20px;
}

.tab-pane iframe {
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  height: 700px;
  border: none;
}

.custom-table tbody tr td {
  font-size: 15px;
  font-weight: normal;
}

#info-donaciones {
  background-color: #f1f1f1;
  padding: 60px 20px;
}

.card {
  background-color: #ffffff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-content {
  background-color: #4b0082;
  border-top: 1px solid #ddd;
  padding: 20px 0;
}

.footer-icon {
  color: #ffffff;
  transition: color 0.3s ease;
}

.footer-icon:hover {
  color: #35015a;
}

.footer-content p {
  color: #ffffff;
  margin-top: 15px;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: none;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

#scrollToTopBtn:hover {
  background-color: #0056b3;
}

.separator {
  border-top: 2px dashed #ddd;
  margin: 20px 0;
}

.error-message {
  padding: 20px;
  border: 1px solid #f0ad4e;
  background-color: #fcf8e3;
  color: #8a6d3b;
  border-radius: 5px;
  text-align: center;
}

.spinner-container {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner-text {
  font-size: 14px;
  color: #3498db;
}

.footer-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.footer-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.margen {
  margin-top: 10px;
}

.banner {
  background: linear-gradient(to right,
      rgba(75, 0, 130, 0.7),
      rgba(138, 43, 226, 0.7)),
      url("assets/images/banner-zs-inicio.gif");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 20px 20px;
  margin-bottom: 10px;
  position: relative;
  border-radius: 12px;
}

.banner-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: white;
}

.banner-subtitle {
  font-size: 1.25rem;
  margin: 0;
}

@media (max-width: 768px) {
  .banner-title {
    font-size: 1.75rem;
  }

  .banner-subtitle {
    font-size: 1rem;
  }

  .banner-tamaño {
    height: 120px;
  }
}

.banner-contenedores {
  background: linear-gradient(to right,
      rgba(75, 0, 130, 0.7),
      rgba(138, 43, 226, 0.7)),
      url("assets/images/banner-zs-inicio.gif");
  background-size: cover;
  padding: 15px 0;
  position: relative;
  border-radius: 12px;
}

.banner-contenedores h2 {
  z-index: 1;
  font-size: 1.8rem;
  color: white;
}

/*
====================================================
=================BOTONES DE COMPRA==================
====================================================
*/

.mercado-pago-btn {
  background-color: #009EE3;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.mercado-pago-btn i {
  margin-right: 8px;
  font-size: 14px;
  color: inherit;
  transition: transform 0.3s ease, color 0.3s ease;
}

.card-mp .mercado-pago-btn i {
  color: #ffffff;
}

.card-mp:hover .mercado-pago-btn i {
  color: #BFE8FF;
}

.mercado-pago-btn:hover {
  background-color: #008BC8;
  color: #BFE8FF;
}

.mercado-pago-btn:active {
  background-color: #007BB5;
  transform: scale(0.98);
}

.qs-btn {
  display: inline-block;
  background: #8d5cc4;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  margin: 0 8px;
  padding: 8px 16px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.qs-btn:hover {
  background: #a87cc6;
  transform: translateY(-2px);
}

.qs-btn.is-active {
  background: #ffbf00;
  color: #2b2000 !important;
}

.qs-btn,
.qs-btn:hover,
.qs-btn:focus,
.qs-btn:active {
  text-decoration: none !important;
}

.rank-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 20px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .3px;
}

.rank-1 { background:#2d2d44; color:#b0b0c3; }
.rank-2 { background:#3a3a55; color:#d6d6e0; }
.rank-3 { background:#6a1b9a; color:white; }
.rank-4 { background:#8d5cc4; color:white; }
.rank-5 { background:#c89b3c; color:#1e1e2f; }
.rank-6 {
  background: linear-gradient(135deg, #e53935, #b71c1c);
  color:white;
  box-shadow: 0 0 12px rgba(229,57,53,.35);
}

.ranking-title h2 {
  color: #fff !important;
}

body.light-mode .ranking-title h2 {
  color: #1e1e2f !important;
}

.rank-text {
  font-size: 11px;
  opacity: .65;
  font-weight: 900;
  color: red;
}

.online-dot {
  color: #00ff88;
  text-shadow: 0 0 8px #00ff88;
}

.offline-dot {
  color: #ff3b3b;
  font-size: 14px;
  margin-right: 6px;
}

.source-id {
  color: #00ff88;
  font-weight: bold;
}

.icon-copy {
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease;
}

.icon-copy:hover {
  transform: scale(1.2);
}

.fa-discord {
  color: #5865F2;
}

.fa-steam {
  color: #1b2838;
}

/* Hover fila completa */
#tabla-mafias tbody tr {
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

#tabla-mafias tbody tr:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}

#tabla-mafias tbody tr:hover td {
  background: rgba(255,255,255,0.03) !important;
}

body.light-mode #tabla-mafias tbody tr:hover td {
  background: rgba(0,0,0,0.04) !important;
}

/*
====================================================
===================== HOME HERO ====================
====================================================
*/

.welcome-section {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 140px);
}

.hero-content h1 {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
  margin-bottom: 22px !important;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.96);
  max-width: 1100px;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-buttons {
  gap: 18px;
  margin-top: 28px !important;
}

.hero-fivem-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.swipe-up {
  margin-top: 28px !important;
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.swipe-up span {
  font-size: 0.95rem;
  color: #fff;
}

.swipe-up:hover {
  color: #fff;
  opacity: .9;
}

/*
====================================================
==================== CHANGELOG =====================
====================================================
*/

.changelog-section {
  padding: 40px 0 20px;
}

.changelog-box {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(88,101,242,.95), rgba(122,127,255,.95));
  color: #fff;
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
  text-align: left;
}

.changelog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.changelog-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .95;
}

.changelog-meta {
  font-weight: 700;
  opacity: .95;
  white-space: nowrap;
  text-align: right;
}

.changelog-text {
  font-size: .98rem;
  line-height: 1.45;
}

.changelog-text ul {
  margin: 0;
  padding-left: 18px;
}

.changelog-text li {
  margin-bottom: 6px;
}

/*
====================================================
====================== MOBILE ======================
====================================================
*/

/*
====================================================
================== MODERN THEME =====================
====================================================
*/

:root {
  --page-bg: #050816;
  --page-bg-alt: #0b1220;
  --surface-1: rgba(11, 18, 32, 0.88);
  --surface-2: rgba(17, 24, 39, 0.92);
  --surface-3: rgba(30, 41, 59, 0.88);
  --surface-card: rgba(15, 23, 42, 0.94);
  --surface-hover: rgba(139, 92, 246, 0.12);
  --text-primary: #f8fafc;
  --text-secondary: #a8b5cf;
  --text-muted-modern: #7f8aa3;
  --accent: #8b5cf6;
  --accent-strong: #6d28d9;
  --accent-soft: rgba(139, 92, 246, 0.2);
  --border-soft: rgba(148, 163, 184, 0.18);
  --shadow-soft: 0 24px 55px rgba(2, 6, 23, 0.32);
  --shadow-strong: 0 26px 70px rgba(2, 6, 23, 0.45);
}

body.light-mode {
  --page-bg: #eef2ff;
  --page-bg-alt: #f8fafc;
  --surface-1: rgba(255, 255, 255, 0.82);
  --surface-2: rgba(255, 255, 255, 0.96);
  --surface-3: rgba(235, 240, 255, 0.95);
  --surface-card: rgba(255, 255, 255, 0.96);
  --surface-hover: rgba(124, 58, 237, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted-modern: #64748b;
  --accent: #7c3aed;
  --accent-strong: #a855f7;
  --accent-soft: rgba(124, 58, 237, 0.14);
  --border-soft: rgba(99, 102, 241, 0.14);
  --shadow-soft: 0 18px 48px rgba(99, 102, 241, 0.12);
  --shadow-strong: 0 24px 60px rgba(99, 102, 241, 0.18);
}

body {
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 24%),
    linear-gradient(180deg, var(--page-bg), var(--page-bg-alt));
  color: var(--text-primary);
  margin-top: 96px;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 24%),
    linear-gradient(180deg, var(--page-bg), var(--page-bg-alt));
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

p,
li,
label,
.descr,
.card-text,
.banner-subtitle,
.text-muted {
  color: var(--text-secondary) !important;
}

a {
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

header.site-header,
header {
  background: rgba(7, 11, 24, 0.84);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.light-mode header.site-header,
body.light-mode header {
  background: rgba(255, 255, 255, 0.88);
}

.bg-custom {
  background: transparent !important;
}

header .navbar {
  min-height: 78px;
  padding: 14px 28px;
  gap: 18px;
}

header .navbar-brand {
  padding: 0;
  margin-right: 24px;
}

header .navbar-brand img {
  width: 42px;
  height: 42px;
  margin-right: 14px;
  padding: 7px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 26px rgba(2, 6, 23, 0.18);
}

body.light-mode header .navbar-brand img {
  background: rgba(124, 58, 237, 0.1);
}

header .navbar-brand span {
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-crown {
  display: inline-block;
  margin-left: 6px;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.35));
}

header .navbar-nav {
  flex-grow: 0;
  gap: 6px;
}

header .navbar-nav .nav-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 11px 16px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

header .navbar-nav .nav-link:hover,
header .navbar-nav .nav-link.active,
header .dropdown:hover > .nav-user-trigger {
  color: var(--text-primary);
  background: var(--surface-hover);
}

header .nav-link-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)) !important;
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(109, 40, 217, 0.28);
}

header .nav-link-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(109, 40, 217, 0.34);
}

header .theme-toggle-item {
  display: flex;
  align-items: center;
}

header .theme-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.18);
}

header .theme-toggle:hover {
  background: var(--surface-hover);
  border-color: rgba(168, 85, 247, 0.45);
  transform: translateY(-1px);
}

header .dropdown {
  position: relative;
}

header .dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}

header .dropdown img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.16);
}

body.light-mode header .dropdown img {
  border-color: rgba(124, 58, 237, 0.2);
}

header .dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  left: auto;
  min-width: 220px;
  width: max-content;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
}

header .dropdown:hover .dropdown-content,
header .dropdown:focus-within .dropdown-content {
  display: block;
}

header .dropdown-content a,
header .dropdown-content .nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-secondary);
}

header .dropdown-content a:hover,
header .dropdown-content .nav-link:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.main-content {
  margin-top: 0;
  padding-top: 18px;
}

.ancho-tienda,
.ancho-org {
  width: min(1280px, 92vw);
}

.banner,
.banner-contenedores {
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.26), transparent 28%),
    linear-gradient(135deg, rgba(31, 41, 55, 0.94), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 28px;
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

body.light-mode .banner,
body.light-mode .banner-contenedores {
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 242, 255, 0.98));
}

.banner-title,
.banner-contenedores h2 {
  color: var(--text-primary) !important;
}

#normativas,
.card,
.card-rules,
.minimal-stat-card,
.connect-step,
.card-store,
.card-peds,
.changelog-box,
.modal-content {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.card,
.minimal-stat-card,
.connect-step,
.card-store,
.card-peds,
.modal-content {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}

.card:hover,
.minimal-stat-card:hover,
.connect-step:hover,
.card-store:hover,
.card-peds:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(168, 85, 247, 0.32);
}

.modal-header,
.modal-body,
.modal-footer,
.card-body-rules {
  background: transparent;
  color: var(--text-secondary);
}

.modal-header {
  color: var(--text-primary);
}

.close {
  color: var(--text-primary);
  opacity: 0.9;
  text-shadow: none;
}

.close:hover {
  color: var(--accent);
}

table {
  background: transparent;
}

th,
.table thead th {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.94), rgba(109, 40, 217, 0.94));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.table td,
.table th {
  border-color: rgba(255, 255, 255, 0.08);
}

.table-striped tbody tr:nth-of-type(odd),
tr:nth-child(even),
tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

body.light-mode .table-striped tbody tr:nth-of-type(odd),
body.light-mode tr:nth-child(even),
body.light-mode tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.82);
  color: var(--text-primary);
}

tbody tr:hover td,
.custom-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.04) !important;
}

body.light-mode tbody tr:hover td,
body.light-mode .custom-table tbody tr:hover td {
  background: rgba(124, 58, 237, 0.06) !important;
}

.btn,
.btn-outline-primary,
.btn-danger,
.btn-info {
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.btn-danger,
.btn-info {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
}

.btn-danger:hover,
.btn-info:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-color: rgba(139, 92, 246, 0.38);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline-primary:hover {
  background: var(--accent-soft);
  border-color: rgba(139, 92, 246, 0.48);
  color: var(--text-primary);
}

.footer-content {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.74), rgba(5, 8, 22, 0.96));
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -24px 70px rgba(2, 6, 23, 0.28);
}

body.light-mode .footer-content {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(238, 242, 255, 0.98));
}

.footer-content p,
.footer-icon {
  color: var(--text-secondary);
}

.footer-icon:hover {
  color: var(--text-primary);
}

.qs-btn {
  background: var(--surface-2);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.14);
}

.qs-btn:hover {
  background: var(--surface-hover);
}

.qs-btn.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 18px 30px rgba(109, 40, 217, 0.22);
}

.nav-tabs .nav-link {
  background: var(--surface-1);
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
}

.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 30px rgba(109, 40, 217, 0.22);
}

#scrollToTopBtn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 30px rgba(109, 40, 217, 0.24);
}

#scrollToTopBtn:hover {
  filter: brightness(1.06);
}

@media (max-width: 991px) {
  body {
    margin-top: 90px;
  }

  header .navbar {
    padding: 12px 18px;
  }

  header .navbar-collapse {
    margin-top: 14px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid var(--border-soft);
    background: var(--surface-card);
    box-shadow: var(--shadow-soft);
  }

  header .navbar-nav {
    gap: 8px;
  }

  header .navbar-nav .nav-link,
  header .theme-toggle {
    width: 100%;
    justify-content: center;
  }

  header .theme-toggle-item {
    width: 100%;
  }
}

@media (max-width: 576px) {
  body {
    margin-top: 84px;
  }

  header .navbar-brand span {
    font-size: 1.12rem;
  }

  .banner,
  .banner-contenedores,
  .card,
  .card-store,
  .minimal-stat-card,
  .connect-step,
  .modal-content {
    border-radius: 22px;
  }
}

@media (max-width: 768px) {
  body {
    margin-top: 60px;
  }

  .welcome-section {
    min-height: calc(100vh - 60px);
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .hero-content {
    min-height: calc(100vh - 100px);
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.25;
  }

  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 95%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 22px !important;
  }

  .hero-buttons .btn {
    margin-right: 0 !important;
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .swipe-up {
    margin-top: 22px !important;
  }

  .changelog-section {
    padding: 24px 0 10px;
  }

  .changelog-box {
    padding: 16px 16px;
    border-radius: 14px;
  }

  .changelog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .changelog-meta {
    text-align: left;
    white-space: normal;
  }

  .changelog-text {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .changelog-text li {
    margin-bottom: 8px;
  }
}
