:root {
  --primary: #5c2e91;
  --primary-rgb: 92, 46, 145;
  --accent-color: var(--primary);
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Poppins", sans-serif;

  /* TEMA CLARO (DEFAULT) */
  --bg-canvas: #ffffff;
  --bg-surface: #f8f9fa;
  --text-heading: #18181b;
  --text-body: #52525b;
  --text-muted: #71717a;
  --border-color: #e4e4e7;
  --primary-light-theme: #f4effa;
}

body.dark-theme {
  /* TEMA ESCURO (SOBRESCRITAS) */
  --bg-canvas: #0d1117;
  --bg-surface: #161b22;
  --text-heading: #f0f6fc;
  --text-body: #c9d1d9;
  --text-muted: #8b949e;
  --border-color: #30363d;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-body);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-heading);
  transition: color 0.3s ease;
}

.action-btn,
.discord-btn,
.login-button,
.feature-card,
.stat-card {
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.action-btn:hover,
.discord-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.15);
}

.topbar {
  background: rgba(var(--bg-canvas-rgb, 255, 255, 255), 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.dark-theme .topbar {
  background: rgba(13, 17, 23, 0.8);
}

.topbar-logo {
  height: 38px;
}
.topbar-nav {
  gap: 0.5rem;
  align-items: center;
}
.topbar-button {
  background: transparent;
  border: none;
  color: var(--text-body);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.topbar-button.active {
  color: var(--primary);
  background-color: var(--primary-light-theme);
}
.dark-theme .topbar-button.active {
  color: var(--text-heading);
  background-color: rgba(255, 255, 255, 0.05);
}
.topbar-button:hover {
  color: var(--primary);
  background-color: var(--primary-light-theme);
}
.dark-theme .topbar-button:hover {
  color: var(--text-heading);
  background-color: rgba(255, 255, 255, 0.05);
}

.theme-switcher-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-right: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
  width: 25px;
  height: 25px;
  vertical-align: middle;
}
.theme-switcher-btn:hover {
  color: var(--primary);
}
.theme-switcher-btn .theme-icon-sun {
  display: none;
}
.dark-theme .theme-switcher-btn .theme-icon-sun {
  display: block;
}
.dark-theme .theme-switcher-btn .theme-icon-moon {
  display: none;
}

.login-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: transparent;
  color: var(--text-body);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}
.login-button:hover {
  background-color: var(--bg-surface);
  border-color: var(--text-body);
  color: var(--text-heading);
}
.login-button.logged-in {
  background-color: var(--bg-surface);
  border-color: var(--border-color);
}
.login-button.logged-in:hover {
  border-color: var(--text-body);
}
.user-avatar {
  width: 25px;
  height: 25px;
  border-radius: 6px;
}

.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 200px;
  z-index: 1001;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dropdown.active .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.dropdown-item {
  color: var(--text-body);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.dropdown-item:hover {
  color: var(--primary);
  background-color: var(--primary-light-theme);
}
.dark-theme .dropdown-item:hover {
  color: var(--text-heading);
  background-color: rgba(var(--primary-rgb), 0.1);
}

.hero-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}
.aurora-background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1400px;
  height: 1400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(var(--primary-rgb), 0.15) 0%,
    rgba(var(--primary-rgb), 0) 60%
  );
  animation: aurora-spin 20s linear infinite;
}
@keyframes aurora-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  font-weight: 900;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-body);
  margin: 1.5rem auto 2.5rem;
  max-width: 900px;
}
.action-btn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.2);
}
.action-btn:hover {
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.3);
}

.stats-section {
  padding: 80px 0;
}
.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1rem;
  text-align: center;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}
.stat-number {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent-color);
}

.dark-theme .stat-number {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-heading);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: -6px;
}

.features-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
}
.section-description {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 900px;
  margin: 0.5rem auto 0;
}
.feature-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--primary-rgb), 0.7);
  background-color: rgba(var(--primary-rgb), 0.05);
}
.feature-icon {
  font-size: 1.75rem;
  color: var(--accent-color);
  width: 60px;
  height: 60px;
  background-color: var(--primary-light-theme);
  border-radius: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}
.dark-theme .feature-icon {
  background-color: rgba(var(--primary-rgb), 0.1);
}

.portfolio-section {
  padding: 80px 0;
}

.portfolio-container {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 480px;
}

.portfolio-image-bg {
  border-radius: 16px;
  width: 60%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.portfolio-container:nth-child(odd) .portfolio-image-bg {
  right: 0;
}

.portfolio-container:nth-child(even) .portfolio-image-bg {
  left: 0;
}

.portfolio-content-card {
  position: relative;
  z-index: 2;
  width: 55%;
  background: rgba(var(--bg-canvas-rgb, 255, 255, 255), 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.portfolio-container:nth-child(odd) .portfolio-content-card {
  margin-right: auto;
}

.portfolio-container:nth-child(even) .portfolio-content-card {
  margin-left: auto;
  text-align: right;
}

.dark-theme .portfolio-content-card {
  background: rgba(22, 27, 34, 0.7);
}

.partner-badge {
  display: inline-block;
  background-color: var(--primary-light-theme);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
}

.dark-theme .partner-badge {
  background-color: rgba(var(--primary-rgb), 0.15);
}

.partner-name {
  font-size: 2.25rem;
  margin: 1rem 0;
  color: var(--text-heading);
}

.partner-description {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.partner-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.portfolio-container:nth-child(even) .partner-stats {
  justify-content: flex-end;
}

.partner-stat-item {
  text-align: left;
}

.portfolio-container:nth-child(even) .partner-stat-item {
  text-align: right;
}

.partner-stat-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
}

.partner-stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  background: #5865f2;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.final-cta-section {
  padding: 80px 0;
}
.cta-box {
  background-color: var(--bg-surface);
  padding: 4rem;
  text-align: center;
  border-radius: 24px;
}
.cta-title {
  font-size: 2.25rem;
  color: var(--text-heading);
}
.cta-subtitle {
  color: var(--text-body);
  margin: 1rem auto 2rem;
  max-width: 900px;
}
.dark-theme .cta-box {
  background-color: var(--bg-surface);
}

.site-footer {
  padding: 3rem 0;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
}
.footer-logo {
  height: 40px;
}
.footer-text {
  color: var(--text-body);
  margin-bottom: 0;
  font-size: 0.9rem;
}
.footer-link {
  text-decoration: none;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: var(--animation-delay, 0ms);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hamburger-menu,
.close-menu {
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 1.5rem;
  margin-left: 1rem;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: var(--bg-canvas);
  z-index: 1040;
  padding: 6rem 2rem 2rem;
  transition: right 0.4s ease-out;
}
.mobile-menu.open {
  right: 0;
}
.close-menu {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}
.mobile-menu-content .topbar-button {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 1.2rem;
  padding: 1rem;
}
.mobile-menu-content .dropdown {
  width: 100%;
}

.mobile-menu-content .dropdown-menu {
  position: static;
  display: none;
  background: transparent;
  border: none;
  padding-left: 1rem;
  width: 100%;
  box-shadow: none;
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 991.98px) {
  .footer-logo {
    display: none;
  }
  .portfolio-container {
    flex-direction: column;
    min-height: auto;
  }
  .portfolio-image-bg {
    position: relative;
    width: 100%;
    transform: none;
    aspect-ratio: 21 / 9;
    border-radius: 16px;
    margin-bottom: 0;
  }
  .portfolio-content-card {
    width: 100%;
    border-radius: 16px;
    box-shadow: none;
    margin-top: -50px;
  }
}
@media (max-width: 767.98px) {
  .footer-logo {
    display: none;
  }
  .stat-card {
    border-right: none;
  }
  .stats-section .row > .col-6:nth-child(odd) {
    padding-right: 0.75rem;
  }
  .stats-section .row > .col-6:nth-child(even) {
    padding-left: 0.75rem;
  }
  .portfolio-content-card {
    padding: 2rem;
  }
}

/* --- ESTILOS PARA PÁGINA DA LOJA --- */

.products-section {
  padding: 80px 0;
}

.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.dark-theme .product-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.product-card.popular {
  border: 2px solid var(--primary);
}

.popular-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background-color: var(--primary);
  color: white;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

.product-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.product-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.product-icon.sakura {
  background-color: #ffebee;
  color: #e57373;
}
.product-icon.tsuki {
  background-color: #e3f2fd;
  color: #64b5f6;
}
.product-icon.onny {
  background-color: #ede7f6;
  color: #9575cd;
}
.dark-theme .product-icon.sakura {
  background-color: rgba(229, 115, 115, 0.1);
}
.dark-theme .product-icon.tsuki {
  background-color: rgba(100, 181, 246, 0.1);
}
.dark-theme .product-icon.onny {
  background-color: rgba(149, 117, 205, 0.1);
}

.product-title {
  font-size: 1.5rem;
  margin: 0;
  color: var(--text-heading);
}
.product-tier {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}
.product-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-body);
}
.product-features li i {
  color: #28a745;
}

.system-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}
.system-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-body);
  font-size: 14px;
}
.system-features li i {
  color: #28a745;
}

.product-price {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.price-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  letter-spacing: 1px;
}
.price-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
  margin: 0;
}
.price-period {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.purchase-btn {
  border: none;
  border-radius: 10px;
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  width: 100%;
}
.sakura-btn {
  background-color: #e57373;
}
.tsuki-btn {
  background-color: #64b5f6;
}
.onny-btn {
  background-color: #9575cd;
}

/* --- ESTILOS PARA O SISTEMA DE ALERTAS (POP-UP) --- */

#alertContainer {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 9999;
  width: 450px;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-popup {
  position: relative;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: var(--text-light);
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  transform: translateX(120%);
  animation: slideIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-popup i {
  font-size: 1.25rem;
}

.alert-popup .close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  font-size: 1.5rem;
  padding: 0 0 0 1rem;
}
.alert-popup .close-btn:hover {
  opacity: 1;
}

.alert-success {
  background-color: #28a745;
}

.alert-error {
  background-color: #dc3545;
}

.alert-warning {
  background-color: #ffc107;
  color: #0d1117;
}

@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.animate-fade-out {
  animation: fadeOut 0.4s ease-out forwards;
}

.valorant-hero .game-logo {
  max-height: 80px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}
.dark-theme .valorant-hero .game-logo {
  filter: none;
}
.command-details-section {
  padding: 80px 0;
  background-color: var(--bg-surface);
}
.command-info .command-path {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  background-color: var(--bg-canvas);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}
.command-info .command-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.command-info .command-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.command-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
}
.command-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
}
.command-features li i {
  color: var(--primary);
  background-color: var(--primary-light-theme);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dark-theme .command-features li i {
  background-color: rgba(var(--primary-rgb), 0.1);
}
.command-mockup-wrapper {
  perspective: 1500px;
}
.command-mockup {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transform: rotateY(-15deg) rotateX(5deg) scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
}
.command-mockup-wrapper:hover .command-mockup {
  transform: rotateY(0deg) rotateX(0deg) scale(1);
}
.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.mockup-bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.mockup-bot-name {
  font-weight: 600;
  color: var(--text-heading);
}
.mockup-bot-tag {
  font-size: 0.7rem;
  background-color: var(--primary);
  color: white;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 700;
}
.mockup-command-title {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.mockup-username {
  color: var(--text-heading);
  font-weight: 600;
}
.mockup-match-result {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: inline-block;
}
.mockup-match-result.victory {
  color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
}
.mockup-match-result.defeat {
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}
.mockup-kda {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1;
}
.mockup-kda .kda-ratio {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}
.mockup-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.mockup-stat-card {
  background-color: var(--bg-surface);
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
}
.mockup-stat-card .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
}
.mockup-stat-card .value {
  font-size: 1.25rem;
  color: var(--text-heading);
  font-weight: 700;
  display: block;
}
.mockup-teams-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.team-column .team-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  margin-left: 5px;
  margin-right: 5px;
  border-bottom: 1px solid var(--border-color);
}
.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}
.player-row.mvp .player-agent {
  font-weight: 700;
  color: var(--text-heading);
}
.player-agent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 10px;
  color: var(--text-body);
}
.player-kda {
  font-size: 0.85rem;
  margin-right: 10px;
  color: var(--text-muted);
}

.mockup-rank-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--bg-surface);
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1.5rem;
}
.mockup-rank-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
}
.mockup-rank-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-heading);
  line-height: 1;
}
.mockup-rank-progress {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .command-mockup-wrapper .command-mockup {
    transform: rotateY(0deg) rotateX(0deg) scale(1);
  }
  .portfolio-image-wrapper {
    aspect-ratio: 21 / 9;
    border-radius: 16px 16px 0 0;
  }
  .portfolio-showcase .row > div {
    width: 100%;
  }
}
@media (max-width: 767.98px) {
  .command-mockup-wrapper .command-mockup {
    transform: rotateY(0deg) rotateX(0deg) scale(1);
  }
  .stat-card {
    border-right: none;
  }
  .stats-section .row > .col-6:nth-child(odd) {
    padding-right: 0.75rem;
  }
  .stats-section .row > .col-6:nth-child(even) {
    padding-left: 0.75rem;
  }
  .portfolio-content {
    padding: 2rem;
  }
}

/* --- ESTILOS PARA PÁGINA 404 --- */

.body-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-404 {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.error-section {
  width: 100%;
  padding: 40px 0;
}

.error-title {
  font-size: 10rem;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
  text-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.1);
}

.error-subtitle {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text-heading);
}

.error-description {
  font-size: 1.1rem;
  max-width: 750px;
  margin: 0 auto 2.5rem auto;
  color: var(--text-body);
}

/* --- ESTILOS ADICIONAIS PARA A PÁGINA DO PAINEL --- */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-canvas);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hide {
  opacity: 0;
  visibility: hidden;
}
.loader-logo {
  width: 80px;
  height: 80px;
  background-image: url(/pages/assets/onny_compact_logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  animation: floating 2s ease-in-out infinite;
}
@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.profile-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.profile-avatar-container {
  position: relative;
  flex-shrink: 0;
}
.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid var(--bg-canvas);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.level-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 3px solid var(--bg-surface);
}
.profile-info {
  flex-grow: 1;
}
.profile-name {
  font-size: 2rem;
  margin: 0;
  line-height: 1.2;
}
.profile-tag {
  color: var(--text-muted);
  font-weight: 600;
}
.logout-button {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.logout-button:hover {
  background-color: var(--bg-canvas);
  color: #dc3545;
  border-color: #dc3545;
}

.level-progress-container {
  margin-top: 1.5rem;
}
.level-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.progress-bar-bg {
  height: 8px;
  background-color: var(--bg-canvas);
  border-radius: 8px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: 8px;
  transition: width 0.5s ease-out;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.dashboard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
}
.card-icon-header {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.card-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
}
.card-description {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.card-link {
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.5rem;
  display: inline-block;
  text-decoration: none;
}
.card-link:hover {
  text-decoration: underline;
}

.main-content-section {
  margin-bottom: 2rem;
}
.content-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
}

.content-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
}
.content-card .card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.content-card .card-icon {
  font-size: 1.25rem;
  color: var(--primary);
  width: 40px;
  height: 40px;
  background-color: var(--primary-light-theme);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.dark-theme .content-card .card-icon {
  background-color: rgba(var(--primary-rgb), 0.1);
}
.content-card .card-title {
  font-size: 1.25rem;
  margin: 0;
}
.content-card .card-body {
  padding: 0;
}
.content-card .card-body p {
  margin-bottom: 1rem;
}
.card-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--primary-light-theme);
  color: var(--primary);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 1rem;
  font-weight: 600;
}
body.dark-theme .card-alert {
  background-color: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.2);
}
.btn-add {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  background-color: var(--primary-light-theme);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}
body.dark-theme .btn-add {
  background-color: rgba(var(--primary-rgb), 0.1);
}
.btn-add:hover {
  filter: brightness(0.95);
}
.list-group-item {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-color);
  color: var(--text-body);
  border-radius: 12px !important;
}
.list-group-item small {
  display: block;
  color: var(--text-muted);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: var(--animation-delay, 0ms);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--bg-canvas) !important;
  opacity: 0.7;
}
.empty-state i {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.empty-state h6 {
  font-weight: 600;
  color: var(--text-heading);
}

.form-control,
.form-select {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-color);
  color: var(--text-body);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.form-control:focus,
.form-select:focus {
  background-color: var(--bg-canvas);
  color: var(--text-body);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

:root {
  --primary: #5c2e91;
  --primary-rgb: 92, 46, 145;
  --accent-color: var(--primary);
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Poppins", sans-serif;

  /* Cores de Status */
  --color-error: #e57373;
  --color-warn: #ffb74d;
  --color-info: #64b5f6;
  --color-success: #81c784;
  --color-pending: #9575cd;
  --color-paid: #26a69a;

  /* TEMA CLARO (DEFAULT) */
  --bg-canvas: #ffffff;
  --bg-surface: #f8f9fa;
  --text-heading: #18181b;
  --text-body: #52525b;
  --text-muted: #71717a;
  --border-color: #e4e4e7;
  --primary-light-theme: #f4effa;
}

body.dark-theme {
  /* TEMA ESCURO (SOBRESCRITAS) */
  --bg-canvas: #0d1117;
  --bg-surface: #161b22;
  --text-heading: #f0f6fc;
  --text-body: #c9d1d9;
  --text-muted: #8b949e;
  --border-color: #30363d;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-body);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-heading);
  transition: color 0.3s ease;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
}
.section-description {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 900px;
  margin: 0.5rem auto 0;
}

.topbar {
  background: rgba(var(--bg-canvas-rgb, 255, 255, 255), 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.dark-theme .topbar {
  background: rgba(13, 17, 23, 0.8);
}

.content-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  height: 100%;
  transition: all 0.3s ease;
}
.content-card .card-header {
  padding: 1rem 1.5rem;
  background-color: transparent;
  border-bottom: 1px solid var(--border-color);
}
.content-card .card-body {
  padding: 1.5rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}
.btn-primary:disabled {
  background-color: var(--text-muted);
  filter: brightness(0.8);
  transform: translateY(0);
}

.btn-outline-secondary {
  color: var(--text-muted);
  border-color: var(--border-color);
}
.btn-outline-secondary:hover {
  color: var(--text-heading);
  background-color: var(--bg-surface);
  border-color: var(--text-body);
}

.form-control,
.form-select {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-color);
  color: var(--text-body);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.form-control:focus,
.form-select:focus {
  background-color: var(--bg-canvas);
  color: var(--text-body);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: var(--animation-delay, 0ms);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- ESTILOS DO LOG EXPLORER (MISSION CONTROL) --- */

.mission-control-hero {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}
.aurora-background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1400px;
  height: 1400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(var(--primary-rgb), 0.15) 0%,
    rgba(var(--primary-rgb), 0) 60%
  );
  animation: aurora-spin 20s linear infinite;
}
@keyframes aurora-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.stat-showcase-card {
  background-color: rgba(var(--bg-surface-rgb, 248, 249, 250), 0.5);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  height: 100%;
}
.dark-theme .stat-showcase-card {
  background-color: rgba(22, 27, 34, 0.5);
}
.stat-showcase-card .stat-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.stat-showcase-card .stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-showcase-card .stat-value.text-danger {
  color: var(--color-error) !important;
}
.stat-showcase-card .stat-value.text-warning {
  color: var(--color-warn) !important;
}

.small-decimals {
  font-size: 0.75em;
  vertical-align: bottom;
}

.sidebar .card-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.sidebar .chart-container {
  height: 180px;
}

.log-feed-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.log-feed-table thead {
  display: none;
}
.log-feed-table tbody tr {
  background-color: var(--bg-surface);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.log-feed-table tbody tr:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}
.dark-theme .log-feed-table tbody tr:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
.log-feed-table td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.log-feed-table td:first-child {
  border-left: 1px solid var(--border-color);
  padding: 1rem;
  width: 20px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.log-feed-table td:last-child {
  border-right: 1px solid var(--border-color);
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.log-feed-table .log-level-indicator {
  width: 6px;
  height: 24px;
  border-radius: 3px;
  background-color: var(--text-muted);
}
.log-level-indicator.level-error,
.log-level-indicator.level-critical {
  background-color: var(--color-error);
}
.log-level-indicator.level-warn {
  background-color: var(--color-warn);
}
.log-level-indicator.level-info {
  background-color: var(--color-info);
}
.log-level-indicator.level-success {
  background-color: var(--color-success);
}
.log-level-indicator.pending_payment {
  background-color: var(--color-success);
}
.log-level-indicator.paid {
  background-color: var(--color-success);
}

.log-feed-table .log-timestamp {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-width: 150px;
}
.log-feed-table .log-service {
  font-weight: 600;
  color: var(--text-heading);
  min-width: 120px;
}

.modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.modal-header,
.modal-footer {
  border-color: var(--border-color);
}
.modal-body pre {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-height: 60vh;
}

/* --- ESTILOS PARA PÁGINA DE STATUS DE INTEGRAÇÃO --- */
.status-page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 200px);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}
.aurora-background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1400px;
  height: 1400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(var(--primary-rgb), 0.1) 0%,
    rgba(var(--primary-rgb), 0) 60%
  );
  animation: aurora-spin 20s linear infinite;
  z-index: 1;
}
@keyframes aurora-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.diagnostic-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.5s ease-in-out;
}
.node-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 2rem;
  border: 3px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-muted);
  position: relative;
  transition: all 0.5s ease-in-out;
}
.node-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.node-name {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.5s ease-in-out;
}

.connector {
  flex-grow: 1;
  height: 4px;
  background-color: var(--border-color);
  position: relative;
  overflow: hidden;
  transition: background-color 0.5s ease-in-out;
}
.connector .pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  animation: pulse-animation 1s ease-in-out;
}
.connector .pulse.success {
  background-color: var(--color-success);
}
.connector .pulse.fail {
  background-color: var(--color-error);
  animation-duration: 0.3s;
}
@keyframes pulse-animation {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0%);
  }
}

/* ESTADOS DOS NÓS */
.node.is-success .node-icon {
  border-color: var(--color-success);
  color: var(--color-success);
  box-shadow: 0 0 15px rgba(var(--color-success), 0.3);
}
.node.is-success .node-name {
  color: var(--text-heading);
}
.node.is-success + .connector {
  background-color: var(--color-success);
}

.node.is-fail .node-icon {
  border-color: var(--color-error);
  color: var(--color-error);
  animation: shake 0.5s;
}
.node.is-fail .node-name {
  color: var(--color-error);
  font-weight: 700;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.node.is-pending {
  opacity: 0.4;
}

/* PAINEL DE MENSAGEM */
.status-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  max-width: 1000px;
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInPanel 0.8s 0.5s ease-out forwards;
  position: relative;
  z-index: 2;
}
@keyframes fadeInPanel {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-panel .status-title {
  font-size: 1rem;
  max-width: 900px;
}
.status-panel .status-explanation {
  color: var(--text-body);
  line-height: 1.7;
  max-width: 900px;
}
.status-panel .solution-box {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 12px;
}

@media (max-width: 767.98px) {
  .diagnostic-flow {
    flex-direction: column;
    gap: 1rem;
  }
  .connector {
    width: 4px;
    height: 40px;
  }
  .connector .pulse {
    animation-name: pulse-animation-vertical;
  }
  @keyframes pulse-animation-vertical {
    from {
      transform: translateY(-100%);
    }
    to {
      transform: translateY(0%);
    }
  }
}

.profile-panel-custom {
  position: absolute;
  top: 65px;
  right: 0;
  background: #181a2a;
  border-radius: 16px;
  box-shadow: 0 4px 24px #0006;
  padding: 18px 0 10px 0;
  min-width: 170px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: opacity 0.25s, transform 0.25s;
  opacity: 1;
  transform: translateY(0);
}
.profile-panel-custom.d-none {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}
.profile-panel-link {
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  padding: 10px 24px;
  font-size: 1em;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-panel-link:hover {
  background: #23244a;
  color: #6c5ce7;
  text-decoration: none;
}

.legal-section {
  padding: 80px 0;
  color: var(--text-color);
}
.legal-section h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--title-color);
}
.legal-section h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--title-color);
}
.legal-section h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--title-color);
}
.legal-section p,
.legal-section li {
  font-family: "Poppins", sans-serif;
  line-height: 1.8;
  text-align: justify;
}
.legal-section .alert {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

/* ESTILOS CORRIGIDOS PARA A TABELA */
.table-dark {
  --bs-table-bg: var(--card-bg-color);
  --bs-table-border-color: var(--border-color);
  --bs-table-color: var(--text-color);
}
.table-dark thead th {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--title-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.table-dark td,
.table-dark th {
  vertical-align: middle;
}

.service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.service-title {
  font-size: 1.25rem;
  margin: 0;
}
.service-status-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.service-status-badge.status-online {
  background-color: rgba(129, 199, 132, 0.15);
  color: var(--color-success);
}
.service-status-badge.status-offline {
  background-color: rgba(229, 115, 115, 0.15);
  color: var(--color-error);
}
.service-status-badge.status-verificando {
  background-color: rgba(255, 183, 77, 0.15);
  color: var(--color-warn);
}
.service-metrics {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.metric-item {
  flex-grow: 1;
  text-align: center;
}
.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
}
.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.chart-container {
  flex-grow: 1;
  min-height: 120px;
  position: relative;
}
.log-service-tag {
  font-weight: 600;
  color: var(--primary);
  background-color: var(--primary-light-theme);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
  margin-right: 8px;
}
body.dark-theme .log-service-tag {
  background-color: rgba(var(--primary-rgb), 0.15);
}

.status-header {
  padding: 4rem 0 2rem 0;
  text-align: center;
}
.status-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
}
.status-overview {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 3rem;
}
.status-overview-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.status-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}
.status-indicator.online {
  background-color: var(--color-success);
}
.status-indicator.degraded {
  background-color: var(--color-warn);
}
.status-indicator.offline {
  background-color: var(--color-error);
}
.status-overview-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}
.status-overview-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.status-metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
  display: block;
  line-height: 1.1;
}
.status-metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
}
.components-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.component-item {
  background-color: var(--bg-surface);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
}
.component-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.component-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-heading);
}
.component-status {
  font-weight: 600;
}
.status-online {
  color: var(--color-success);
}
.status-offline {
  color: var(--color-error);
}
.status-degraded {
  color: var(--color-warn);
}
.component-chart-container {
  height: 120px;
  margin-bottom: 1rem;
}
.uptime-bar {
  display: flex;
  width: 100%;
  height: 35px;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--border-color);
}
.uptime-bar-segment {
  flex-grow: 1;
  transition: background-color 0.3s;
  cursor: pointer;
}
.uptime-bar-segment.status-online {
  background-color: var(--color-success);
}
.uptime-bar-segment.status-offline {
  background-color: var(--color-error);
}
.uptime-bar-segment.status-degraded {
  background-color: var(--color-warn);
}
.uptime-bar-segment.status-nodata {
  background-color: var(--border-color);
}
.component-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}
.incident-timeline {
  border-left: 3px solid var(--border-color);
  padding-left: 1.5rem;
}
.incident-day-header {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
  margin-top: 2rem;
}
.incident-item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.incident-item::before {
  content: "";
  position: absolute;
  left: -7.5px;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 3px solid;
}
.incident-item.error::before {
  border-color: var(--color-error);
}
.incident-item.warn::before {
  border-color: var(--color-warn);
}
.incident-item.resolved::before {
  border-color: var(--color-success);
}
.incident-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
}
.incident-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.incident-description {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stat-card .stat-tooltip {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.stat-card .stat-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-tooltip .online-dot {
  width: 9px;
  height: 9px;
  background-color: #3ba55d;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

#online-tooltip-text {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-heading);
}

.stat-tooltip {
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-tooltip .online-dot {
  width: 9px;
  height: 9px;
  background-color: #3ba55d;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 165, 93, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 165, 93, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 165, 93, 0);
  }
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

a.app-list-item:hover {
  background-color: var(--bg-surface);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.dark-theme a.app-list-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.app-list-item.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.app-list-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light-theme);
  border-radius: 10px;
  color: var(--primary);
  font-size: 1.2rem;
}

.dark-theme .app-list-icon {
  background-color: rgba(var(--primary-rgb), 0.1);
}

.app-list-content {
  flex-grow: 1;
}

.app-list-content strong {
  color: var(--text-heading);
  font-weight: 600;
  display: block;
}

.app-list-content small {
  color: var(--text-muted);
  font-size: 0.9em;
}

.app-list-item .badge {
  margin-left: auto;
}

.dashboard-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 992px) {
  .dashboard-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .dashboard-sidebar {
    position: sticky;
    top: 100px;
    width: 300px;
    flex-shrink: 0;
  }
  .dashboard-main {
    flex-grow: 1;
    min-width: 0;
  }
}

.dashboard-sidebar .form-label.small {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.dashboard-sidebar .form-control,
.dashboard-sidebar .form-select {
  background-color: transparent !important;
  border: none;
  border-bottom: 2px solid var(--border-color);
  border-radius: 0;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  font-weight: 600;
  color: var(--text-heading);
  transition: border-color 0.3s ease;
}

.dashboard-sidebar .form-control:focus,
.dashboard-sidebar .form-select:focus {
  box-shadow: none;
  border-color: var(--primary);
}

.dashboard-sidebar .form-select {
  background-position: right 0.25rem center;
}

body.dark-theme .dashboard-sidebar .form-select option {
  background-color: var(--bg-surface);
  color: var(--text-body);
}

.btn-reset-filters {
  font-weight: 600;
  color: var(--text-muted);
  background-color: transparent;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}
.btn-reset-filters:hover {
  background-color: var(--bg-canvas);
  color: var(--primary);
  border-color: var(--primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.stat-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  padding-left: 2rem;
}
.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
}
.stat-card[data-level="info"]::before {
  background-color: var(--color-info);
}
.stat-card[data-level="error"]::before {
  background-color: var(--color-error);
}
.stat-card[data-level="warn"]::before {
  background-color: var(--color-warn);
}
.stat-card[data-level="success"]::before {
  background-color: var(--color-success);
}

.stat-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.1;
}

.log-feed-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.log-entry {
  display: flex;
  align-items: stretch;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.log-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
}
.dark-theme .log-entry:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.log-indicator-bar {
  width: 4px;
  flex-shrink: 0;
  border-radius: 4px;
  margin-right: 1rem;
}
.log-indicator-bar.level-critical,
.log-indicator-bar.level-error {
  background-color: var(--color-error);
}
.log-indicator-bar.level-warn {
  background-color: var(--color-warn);
}
.log-indicator-bar.level-info {
  background-color: var(--color-info);
}
.log-indicator-bar.level-success,
.log-indicator-bar.level-paid,
.log-indicator-bar.level-pending_payment {
  background-color: var(--color-success);
}

.log-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
}
.log-main-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.log-service {
  font-weight: 600;
  color: var(--text-heading);
  background-color: var(--bg-surface);
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}
.log-message {
  color: var(--text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-meta-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}
.log-timestamp {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.log-footer-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.log-meta-tag {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: "Courier New", Courier, monospace;
  white-space: nowrap;
}
.log-meta-tag i {
  margin-right: 0.3rem;
}

.log-actions {
  display: flex;
  align-items: center;
  padding-left: 1rem;
  margin-left: auto;
  color: var(--text-muted);
}
.log-actions i {
  cursor: pointer;
  transition: color 0.2s ease;
}
.log-actions i:hover {
  color: var(--primary);
}

.modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.modal-header,
.modal-footer {
  border-color: var(--border-color);
}
.modal-body pre {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-height: 60vh;
}

:root {
  --syntax-key: #d73a49;
  --syntax-string: #032f62;
  --syntax-number: #005cc5;
  --syntax-boolean: #e36209;
  --syntax-null: #6f42c1;
}
.dark-theme {
  --syntax-key: #ff7b72;
  --syntax-string: #a5d6ff;
  --syntax-number: #79c0ff;
  --syntax-boolean: #ffab70;
  --syntax-null: #d2a8ff;
}

.api-reference-section {
  background: var(--bg-canvas);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
  font-size: 14.5px;
}

.api-reference-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 40%;
  gap: 2.5rem;
  align-items: flex-start;
}

.api-nav-column {
  position: sticky;
  top: 110px;
}
.api-search-box {
  position: relative;
  margin-bottom: 1.5rem;
}
.api-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
#endpoint-search {
  padding-left: 2.75rem;
  font-size: 0.9rem;
}
.api-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
}
.api-nav-list .nav-link {
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.api-nav-list .nav-link:hover {
  background-color: var(--bg-surface);
  color: var(--text-heading);
}
.api-nav-list .nav-link.active {
  background-color: var(--primary-light-theme);
  color: var(--primary);
  font-weight: 600;
}
.dark-theme .api-nav-list .nav-link.active {
  background-color: rgba(var(--primary-rgb), 0.15);
}
.api-no-results {
  padding: 1rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
}

.api-content-column {
  min-width: 0;
}
.endpoint-content {
  display: none;
}
.endpoint-content.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.api-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.api-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.api-card-header .sub-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.api-card-body {
  padding: 1.5rem;
}
.param-group {
  margin-bottom: 1.25rem;
}
.param-group:last-child {
  margin-bottom: 0;
}
.param-group .form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.param-group .form-label code {
  font-size: 0.9rem;
}
.form-text-helper {
  font-size: 0.8rem;
  padding: 0.5rem 0.25rem 0;
  color: var(--text-muted);
}
.form-text-helper a {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.form-text-helper a:hover {
  text-decoration: underline;
}

.method-badge {
  font-size: 0.8rem;
  display: inline-block;
  font-family: "Courier New", monospace;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}
.method-badge.method-get {
  background-color: #0d6efd;
}
.method-badge.method-post {
  background-color: #eb459e;
}
.endpoint-path {
  font-size: 14px;
  font-family: "Courier New", monospace;
  font-weight: 400;
  color: var(--text-heading);
  word-wrap: break-word;
}
.endpoint-description {
  font-size: 0.95rem;
  line-height: 1.7;
}

#apiResponseWrapper {
  background-color: var(--bg-canvas);
  border-radius: 8px;
  padding: 1rem;
  min-height: 150px;
  max-height: 500px;
  transition: max-height 0.4s ease-in-out;
  overflow-x: hidden;
  overflow-y: auto;
}

#apiResponseWrapper pre {
  white-space: pre-wrap;
  word-break: break-all;
}

#apiResponseWrapper {
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) transparent;
}

#apiResponseWrapper::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

#apiResponseWrapper::-webkit-scrollbar-track {
  background: transparent;
}

#apiResponseWrapper::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
  transition: background-color 0.2s ease;
}

#apiResponseWrapper::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-muted);
}

#apiResponseWrapper pre {
  margin: 0;
}
#apiResponseWrapper code {
  font-size: 0.85rem;
  line-height: 1.6;
}
.json-key {
  color: var(--syntax-key);
}
.json-string {
  color: var(--syntax-string);
}
.json-number {
  color: var(--syntax-number);
}
.json-boolean {
  color: var(--syntax-boolean);
}
.json-null {
  color: var(--syntax-null);
}

.api-examples-column {
  position: sticky;
  top: 110px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.examples-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 20;
  height: 60px;
  padding: 0.75rem 0.75rem 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.examples-title {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  vertical-align: middle;
  margin-top: auto;
  margin-bottom: auto;
  margin-right: 50px;
  word-wrap: break-word;
  word-break: break-all;
}

.language-dropdown {
  position: relative;
}
.language-dropdown-toggle {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.language-dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  list-style: none;
  padding: 0.5rem;
  margin: 0;
  width: 180px;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}
.language-dropdown.open .language-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.language-dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: var(--text-body);
  text-decoration: none;
  cursor: pointer;
}
.language-dropdown-menu .dropdown-item:hover {
  background-color: var(--bg-canvas);
  color: var(--text-heading);
}

.code-example-wrapper {
  position: relative;
  background-color: var(--bg-canvas);
  max-height: 70vh;
  overflow: auto;
  border-radius: 0 0 11px 11px;
}
.code-example {
  display: none;
}
.code-example.active {
  display: block;
}
.code-example pre {
  margin: 0;
  padding: 1.5rem;
}
.code-example code {
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-body);
}
.copy-btn {
  position: sticky;
  top: 0.75rem;
  float: right;
  margin-right: 0.75rem;
  z-index: 10;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 1;
}

.code-example-wrapper:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  background-color: var(--bg-canvas);
  color: var(--text-heading);
  transform: scale(1.05);
}
.copy-btn.copied {
  background-color: #198754;
  border-color: #198754;
  color: #fff;
}
.dark-theme .copy-btn.copied {
  background-color: #2ea043;
  border-color: #2ea043;
}

@media (max-width: 1200px) {
  .api-reference-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "nav" "content" "examples";
  }
  .api-nav-column,
  .api-examples-column {
    position: static;
    width: 100%;
  }
  .api-examples-column {
    margin-top: 1.5rem;
  }
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  position: relative;
}
.promo-banner span {
  font-size: 0.9rem;
  font-weight: 500;
}
.promo-banner strong {
  margin: 0 0.3em;
}

.promo-banner {
  background-color: var(--primary-light-theme);
  color: var(--primary);
}

.dark-theme .promo-banner {
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--text-heading);
}

.endpoint-tag {
  display: inline-block;
  vertical-align: middle;
  background-color: transparent;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 1px 8px;
  border-radius: 10px;
  margin-left: 6px;
  transition: all 0.2s ease-in-out;
}

.api-nav-list .nav-link.active .endpoint-tag {
  color: var(--primary);
  font-weight: 600;
  border-color: var(--text-heading);
  background-color: var(--bg-canvas);
  box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.1);
}

.dark-theme .endpoint-tag.tag-version {
  background-color: rgba(131, 194, 255, 0.15);
  color: #83c2ff;
}

.dark-theme .endpoint-tag.tag-feature {
  background-color: rgba(110, 218, 169, 0.1);
  color: #6edaa9;
}

body:not(.dark-theme) .endpoint-tag.tag-version {
  background-color: #e6f1ff;
  color: #2c68b4;
}

body:not(.dark-theme) .endpoint-tag.tag-feature {
  background-color: #dff7e9;
  color: #1a633f;
}

.dark-theme .endpoint-tag.tag-deprecated {
  background-color: #7d3434;
  color: #ffc2c2;
}

body:not(.dark-theme) .endpoint-tag.tag-deprecated {
  background-color: #ffe0e0;
  color: #7d3434;
}

.nav-separator {
  border: none;
  height: 1px;
  background-color: var(--border-color);
  margin: 1rem 0.5rem;
}

.api-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.api-group-title:first-of-type {
  margin-top: 0;
}

.example-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-surface);
  border-radius: 12px 12px 0 0;
}
.example-tab-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  background-color: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.example-tab-btn:hover {
  color: var(--text-heading);
}
.example-tab-btn.active {
  background-color: var(--bg-canvas);
  color: var(--primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.dark-theme .example-tab-btn.active {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.example-tab-pane {
  display: none;
}
.example-tab-pane.active {
  display: block;
}
#request-panel .examples-header {
  border-top: 1px solid var(--border-color);
}
#response-panel .examples-header {
  border-top: 1px solid var(--border-color);
}
.example-tabs + .example-tab-pane .examples-header {
  border-top: none;
}

.code-example-wrapper {
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) transparent;
}

.code-example-wrapper::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.code-example-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.code-example-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
  transition: background-color 0.2s ease;
}

.code-example-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-muted);
}

/* =========================================
   Componente: Banner de Informação (info-banner)
   ========================================= */

.info-banner {
  display: flex;
  align-items: flex-start; /* Alinha o ícone com o início do texto */
  padding: 1rem 1.5rem;
  margin: 2.5rem 0; /* Espaçamento vertical para separar das outras seções */
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-banner .fas {
  font-size: 1.25rem;
  margin-right: 1rem;
  margin-top: 0.25rem; /* Ajuste fino para alinhamento vertical */
}

.info-banner strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.info-banner code {
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* --- Estilos para o Tema Claro --- */
body:not(.dark-theme) .info-banner {
  background-color: #e7f3fe; /* Fundo azul claro */
  border-color: #bce8f1; /* Borda azul suave */
  color: #31708f; /* Cor do texto principal */
}

body:not(.dark-theme) .info-banner .fas {
  color: #31708f; /* Cor do ícone */
}

body:not(.dark-theme) .info-banner strong {
  color: #2c6681; /* Cor do título um pouco mais escura */
}

body:not(.dark-theme) .info-banner code {
  background-color: rgba(0, 123, 255, 0.1);
  color: #2c5b78;
}

/* --- Estilos para o Tema Escuro --- */
.dark-theme .info-banner {
  background-color: #1a2c44; /* Fundo azul escuro */
  border-color: #2a4a75; /* Borda azul mais evidente */
  color: #a6c5e4; /* Cor do texto principal */
}

.dark-theme .info-banner .fas {
  color: #58a6ff; /* Cor do ícone mais vibrante */
}

.dark-theme .info-banner strong {
  color: #c9d1d9; /* Cor do título mais clara */
}

.dark-theme .info-banner code {
  background-color: rgba(56, 139, 253, 0.15);
  color: #79c0ff;
}
