/* ==============================================================================
   9NBET.GG BRAZILIAN CASINO DESIGN SYSTEM (ORANGE, GOLD, RED ACCENTS & PIX)
   ============================================================================== */

:root {
  /* Vibrant Brazilian Casino Palette derived from 9Nbet image assets */
  --9n-orange: #ff6600;
  --9n-orange-dark: #e65100;
  --9n-orange-light: #ff7d1a;
  --9n-gold: #ffd200;
  --9n-gold-hover: #ffb700;
  --9n-red: #d32f2f;
  --9n-dark-brown: #2d0e04;
  --9n-dark-header: #1f0801;
  --9n-pix-green: #00b894;
  
  /* Body & Surface Tokens */
  --9n-bg-body: #f75c03;
  --9n-bg-dark: #120703;
  --9n-bg-card: #200c05;
  --9n-border-color: rgba(255, 210, 0, 0.25);
  --9n-text-light: #ffffff;
  --9n-text-muted: #fcd5b8;
  --9n-radius-sm: 8px;
  --9n-radius-md: 14px;
  --9n-radius-lg: 20px;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}

body {
  background: radial-gradient(circle at 50% 20%, #ff7700 0%, #eb5200 60%, #cf4000 100%);
  color: var(--9n-text-light);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  padding-bottom: 68px;
}

@media (min-width: 992px) {
  body { padding-bottom: 0; }
}

/* --- 1. LOGO STYLING --- */
.brand-text-logo {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}
.logo-9n { color: var(--9n-gold); }
.logo-bet { color: #ffffff; }
.logo-com { color: #ffe6aa; font-size: 1rem; font-weight: 700; }

/* Top Announcement */
.top-announcement-bar {
  background-color: #1a0802;
  color: #ffdeb8;
  border-bottom: 1px solid rgba(255, 210, 0, 0.2);
}

/* --- 2. HEADER & DESKTOP NAVIGATION --- */
.navbar {
  background: linear-gradient(180deg, #ff5e00 0%, #f05400 100%);
  border-bottom: 2px solid rgba(255, 210, 0, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.6rem 0.85rem !important;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--9n-gold) !important;
  transform: translateY(-1px);
}

.navbar .dropdown-menu {
  border-radius: var(--9n-radius-md);
  border: 1px solid var(--9n-border-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  padding: 0.5rem;
  min-width: 230px;
  background-color: #1f0b04;
  margin-top: 0;
}

.navbar .dropdown-item {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f7d5c5;
  padding: 0.55rem 0.9rem;
  border-radius: var(--9n-radius-sm);
  transition: all 0.2s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item.active {
  background-color: #3b160a;
  color: var(--9n-gold);
}

@media (min-width: 992px) {
  .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes fadeInDropdown {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 3. BADGES & LABELS --- */
.nav-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  vertical-align: middle;
}
.nav-badge.badge-gold {
  background: linear-gradient(135deg, #ffd200, #ff9900);
  color: #210a01;
}
.nav-badge.badge-neon-pink {
  background: linear-gradient(135deg, #ff0055, #c70039);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 0, 85, 0.6);
}

/* --- 4. BUTTON SYSTEM (EXACT MATCHING 9NBET SCREENSHOT) --- */
.btn-9n-login {
  background-color: #381206;
  border: 1.5px solid rgba(255, 210, 0, 0.4);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.45rem 1.25rem;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-9n-login:hover {
  background-color: #521c0b;
  border-color: var(--9n-gold);
  color: var(--9n-gold) !important;
}

.btn-9n-register {
  background: linear-gradient(135deg, #ff8c00 0%, #e65100 100%);
  color: #ffffff !important;
  font-weight: 800;
  border: 1px solid #ffd200;
  border-radius: 8px;
  padding: 0.45rem 1.4rem;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-9n-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.6);
  background: linear-gradient(135deg, #ffa024 0%, #f05e00 100%);
}

.btn-9n-primary {
  background: linear-gradient(135deg, #ffd200 0%, #ff8800 100%);
  color: #260c02 !important;
  font-weight: 800;
  border: none;
  border-radius: var(--9n-radius-sm);
  padding: 0.65rem 1.6rem;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-9n-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 180, 0, 0.6);
  color: #000000 !important;
}

/* --- 5. BREADCRUMB --- */
.breadcrumb-wrapper {
  background-color: rgba(30, 10, 3, 0.7);
  border-bottom: 1px solid rgba(255, 210, 0, 0.2);
  padding: 8px 0;
  font-size: 0.85rem;
}
.breadcrumb-wrapper a {
  color: #ffdeb8;
  text-decoration: none;
}
.breadcrumb-wrapper a:hover {
  color: var(--9n-gold);
  text-decoration: underline;
}
.breadcrumb-wrapper .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #ff9d66;
  padding: 0 8px;
}
.breadcrumb-wrapper .breadcrumb-item.active {
  color: var(--9n-gold);
  font-weight: 700;
}

/* --- 6. LANGUAGE SWITCHER --- */
.btn-lang-toggle {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 210, 0, 0.4);
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.85rem;
  padding: 6px 12px;
  font-weight: 700;
}
.flag-icon {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
}
.flag-br { background: linear-gradient(45deg, #009c3b, #ffdf00); }
.flag-gb { background: linear-gradient(45deg, #012169, #C8102E); }

/* --- 7. CARDS & HERO COMPONENT --- */
.card-9n {
  background: linear-gradient(145deg, #2a0f05, #1c0802);
  border: 1px solid rgba(255, 210, 0, 0.25);
  border-radius: var(--9n-radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}
.card-9n:hover {
  transform: translateY(-5px);
  border-color: var(--9n-gold);
  box-shadow: 0 12px 30px rgba(255, 140, 0, 0.35);
}

/* Jackpot Display Box (Matching Screenshot Wings & Mascot) */
.jackpot-hero-box {
  background: radial-gradient(circle, #850000 0%, #400000 100%);
  border: 2px solid var(--9n-gold);
  border-radius: 24px;
  box-shadow: 0 0 35px rgba(255, 210, 0, 0.4);
  position: relative;
  overflow: hidden;
  padding: 24px 16px;
  text-align: center;
}
.jackpot-digits-9n {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--9n-gold);
  text-shadow: 0 0 20px rgba(255, 210, 0, 0.7);
  letter-spacing: 1.5px;
}

/* Game Category Scroll Bar (Popular, Slots, Minijogos, Ao Vivo, Pescaria) */
.category-pill-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.category-pill-bar::-webkit-scrollbar { display: none; }

.category-pill-btn {
  background: rgba(45, 14, 4, 0.7);
  border: 1px solid rgba(255, 210, 0, 0.3);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.category-pill-btn.active, .category-pill-btn:hover {
  background: linear-gradient(135deg, #ffd200, #ff8c00);
  color: #1f0801;
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.5);
}

/* Floating Telegram Widget */
.floating-telegram-btn {
  position: fixed;
  bottom: 85px;
  right: 18px;
  background: linear-gradient(135deg, #0088cc, #006699);
  color: #ffffff !important;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
  z-index: 1020;
  transition: transform 0.2s ease;
  text-decoration: none;
}
.floating-telegram-btn:hover {
  transform: scale(1.1);
}
.floating-badge {
  position: absolute;
  top: -8px;
  right: -5px;
  background: #ff0055;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid #fff;
}

/* --- 8. MOBILE FLOATING BOTTOM BAR (EXACT 9NBET MATCH) --- */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #ff5e00 0%, #e64a00 100%);
  border-top: 2px solid rgba(255, 210, 0, 0.4);
  z-index: 1030;
  display: flex;
  justify-content: space-around;
  padding: 6px 0 4px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}

.mobile-bottom-bar a {
  color: #ffe6d4;
  font-size: 0.72rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
  position: relative;
}

.mobile-bottom-bar a.active, .mobile-bottom-bar a:hover {
  color: var(--9n-gold);
}

.mobile-bottom-bar i {
  font-size: 1.35rem;
  margin-bottom: 1px;
}

.mobile-bottom-bar a.deposit-tab .bonus-tag {
  position: absolute;
  top: -10px;
  background: #d32f2f;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 8px;
  border: 1px solid #ffd200;
}

/* --- 9. MOBILE DRAWER NAVIGATION --- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 290px;
  height: 100vh;
  background: #210c05;
  border-left: 2px solid var(--9n-gold);
  z-index: 1055;
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list .nav-link {
  color: #ffdeb8;
  display: block;
  padding: 9px 12px;
  border-radius: var(--9n-radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.mobile-nav-list .nav-link:hover,
.mobile-nav-list .nav-link.active {
  background-color: #3b160a;
  color: var(--9n-gold);
}

/* Footer Styling */
.site-footer {
  background-color: #120501;
  color: #e5bdaf;
  border-top: 2px solid rgba(255, 210, 0, 0.3);
}
.site-footer a {
  color: #ffcbaf;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: var(--9n-gold);
}
.pix-badge {
  background: rgba(0, 184, 148, 0.15);
  border: 1px solid var(--9n-pix-green);
  color: #00ffc4;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}