:root {
  /* Brand green + dark backgrounds */
  --finwallapp-theme-color: #29d75a;
  --finwallapp-header-active: #000000;
  --finwallapp-footer: #000000;
  --finwallapp-page-bg-1: #000000;
  --finwallapp-page-bg-2: #000000;
  --finwallapp-page-bg-3: #0a0a0a;

  /* Bootstrap base colors */
  --bs-body-bg: #000000;
  --bs-body-color: #ffffff;
  --bs-dark: #000000;
  --bs-primary: #29d75a;
  --bs-success: #29d75a;
}

html, body { max-width: 100%; overflow-x: hidden; }
body { background-color: #000 !important; color: #fff; background-attachment: scroll !important; }
.header { background-color: #000 !important; }
.sidebar { background-color: #000 !important; }
.nav-link, .navbar-brand { color: #fff !important; }
/* Slimmer nav link typography (menus and sidebars) */
.main-menu .nav-link,
.nav-link.text-white { font-weight: 400 !important; letter-spacing: .2px; }
.btn-success, .btn-outline-success { border-color: #29d75a; }
.btn-success { background-color: #29d75a; }
.btn-outline-success { color: #29d75a; }

/* Links hover */
.main-menu .nav-link:hover, .main-menu .nav-link.active { color: #29d75a !important; }

/* Compact sidebar menu spacing (fit more links with less scrolling) */
.sidebar-wrap .sidebar .nav .nav-item { margin-bottom: 0 !important; }
.sidebar-wrap .sidebar .nav .nav-link {
  padding: .55rem .65rem !important;   /* +~10% vertical again */
  line-height: 1.5 !important;         /* nudge for readability */
  font-size: .95rem !important;        /* keep readable size */
}
/* Keep icons aligned without adding height */
.sidebar-wrap .sidebar .nav .nav-link .icon { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 420px) {
  /* A touch friendlier on very small screens */
  .sidebar-wrap .sidebar .nav .nav-link { padding: .64rem .7rem !important; }
}

/* Ensure content isn't hidden behind fixed footer */
main { padding-bottom: 100px; }
body { padding-bottom: 100px; }
/* Avoid accidental clipping from padded containers */
.container, .container-fluid { padding-bottom: 0 !important; }
.footer { position: fixed !important; bottom: 0; left: 0; right: 0; z-index: 1030; }
.footer-info { height: 0 !important; padding: 0 !important; margin: 0 !important; }
.footer .nav { max-width: 100vw; width: 100%; overflow-x: hidden; }
.header .container-fluid { max-width: 100vw; overflow-x: hidden; }
/* Balanced header layout */
.header .container-fluid {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.header .navbar-brand { justify-self: center; }
.header .header-actions { justify-self: end; }
.menu-btn svg { width: 24px; height: 24px; }
.header .btn.btn-sm { padding: 0.25rem 0.5rem; font-size: .85rem; }
.menu-btn { border-color: transparent !important; background: transparent !important; }
.menu-btn:hover, .menu-btn:focus { background: transparent !important; }
.menu-btn svg { color: #29D054 !important; fill: #29D054 !important; stroke: #29D054 !important; }
.menu-btn i.fa-bars { color: #29D054 !important; font-size: 24px; line-height: 1; }

/* Ensure mobile header controls are clearly sized */
@media (max-width: 768px) {
  .menu-btn svg { width: 26px !important; height: 26px !important; }
  .menu-btn i.fa-bars { font-size: 26px !important; }
  .menu-btn svg { color: #29D054 !important; fill: #29D054 !important; stroke: #29D054 !important; }
  .header .navbar-brand img { height: 26px !important; }
  .header .btn.btn-sm { font-size: .8rem !important; padding: .25rem .5rem !important; }
  .header .container-fluid { padding-left: 8px; padding-right: 8px; }
}
img, svg { max-width: 100%; height: auto; }

/* Cards: force dark theme everywhere */
.card { background-color: #000 !important; color: #fff !important; border-color: #333 !important; }
.card-header, .card-footer { background-color: #000 !important; color: #fff !important; border-color: #333 !important; }
.card-body { color: #fff !important; }

/* Tables: dark readable styling */
.table { color: #fff !important; }
.table thead th { color: #fff !important; border-color: #333 !important; background-color: transparent !important; }
.table td, .table th { border-color: #333 !important; }
.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(255,255,255,0.06) !important; }
.table-striped tbody tr:nth-of-type(even) { background-color: rgba(255,255,255,0.02) !important; }
.table a { color: #fff; }
.table a:hover { color: #29D054; }

/* Badges: align with brand palette */
.badge { border-radius: 999px !important; font-weight: 600 !important; letter-spacing: .2px; }
.badge-success { background-color: #29D054 !important; color: #000 !important; }
.badge-primary { background-color: #1FA947 !important; color: #000 !important; }
.badge-warning { background-color: #d4af37 !important; color: #000 !important; }
.badge-dark { background-color: #222 !important; color: #fff !important; border: 1px solid #444 !important; }

/* Copy-to-clipboard feedback used on referral page */
.copied::after {
  position: absolute;
  top: 0;
  right: 10%;
  display: block;
  content: "COPIED";
  font-size: 1em;
  padding: 2px 5px;
  color: #000;
  background-color: #29D054;
  border-radius: 3px;
  opacity: 0;
  will-change: opacity, transform;
  animation: showcopied 1.5s ease;
}
@keyframes showcopied {
  0% { opacity: 0; transform: translateX(100%); }
  50% { opacity: .85; transform: translateX(40%); }
  70% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; }
}

/* Vendor tabs (desktop + mobile) */
.tabs-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabs-box { display: flex; flex-wrap: nowrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 14px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabs-box::-webkit-scrollbar { display: none; }
.tab { display: inline-block; background-color: #29D054; color: #000; padding: 10px 16px; border-radius: 5px; white-space: nowrap; cursor: pointer; transition: background-color .2s ease; }
.tab:hover { background-color: #1FA947; color: #000; }
/* Make vendor labels thinner even if wrapped in <b> */
.tabs-box .tab,
.tabs-box .tab a,
.tabs-box .tab a b { font-weight: 300 !important; }

/* Sidebar icons: brand green */
.sidebar-wrap .sidebar .nav .nav-item .nav-link .icon i {
  color: #29D054 !important;
}

/* (language widgets were removed) */
.sidebar-wrap .sidebar .nav .nav-item .nav-link:hover .icon i,
.sidebar-wrap .sidebar .nav .nav-item .nav-link.active .icon i {
  color: #29D054 !important; /* keep consistent on hover/active */
}

/* Modern pagination (global) */
.pagination { justify-content: center; gap: .5rem; flex-wrap: wrap; }
.page-link {
  border-radius: 999px !important;
  border: 1px solid #29D054 !important;
  background-color: #000 !important;
  color: #29D054 !important;
  padding: .35rem .9rem !important;
  line-height: 1.2 !important;
  min-width: 2.25rem;
  text-align: center;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.page-link:hover, .page-link:focus {
  background-color: #1FA947 !important;
  color: #000 !important;
  border-color: #1FA947 !important;
  box-shadow: 0 0 0 .15rem rgba(41,208,84,.25) !important;
}
.page-item.active .page-link {
  background-color: #29D054 !important;
  color: #000 !important;
  border-color: #29D054 !important;
  box-shadow: 0 0 0 .15rem rgba(41,208,84,.35) !important;
}
.page-item.disabled .page-link {
  background-color: #0a0a0a !important;
  border-color: #333 !important;
  color: #666 !important;
  opacity: .75;
}
/* Compact on very small screens */
@media (max-width: 420px) {
  .pagination { gap: .35rem; }
  .page-link { padding: .3rem .7rem !important; min-width: 2rem; }
}

/* Desktop: show all vendor pills (wrap to multiple lines) */
@media (min-width: 992px) {
  .tabs-container { overflow-x: visible; }
  .tabs-box {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center !important; /* center rows of pills on desktop */
  }
  /* Ensure desktop pages can scroll fully */
  .winner-slider, .winner-list { overflow: visible !important; }
  .modal-content { max-height: none !important; }
  html, body { overflow-y: auto !important; height: auto !important; }
  html.menu-open { overflow: auto !important; }
}

/* Home: compact legacy footer area for mobile */
@media (max-width: 576px) {
  /* Hide decorative top image that creates extra space */
  img[src*="footer_background_top.jpg"] { display: none !important; }

  /* Collapse legacy footer block spacing and remove bg image */
  .footer__top { 
    padding-top: .5rem !important; 
    padding-bottom: 1rem !important; 
    background: none !important; 
  }
  .footer__top.pb-60 { padding-bottom: 1rem !important; }
  .footer__top .row { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
  .footer__top [class*="col-"] { flex: 0 0 100% !important; max-width: 100% !important; }
  .footer__top .widget__items { margin-bottom: .5rem !important; }
  .footer__top .footer-head .title { font-size: 1rem !important; margin-bottom: .5rem !important; }
  .footer__top .content-area { margin-top: 0 !important; }
  .footer__top .quick-link { 
    margin: 0 !important; padding: 0 !important; 
    display: grid !important; gap: .25rem; grid-template-columns: 1fr; 
  }
  .footer__top .quick-link li { list-style: none; margin: 0 !important; }
  .footer__top .quick-link a { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem 0; }

  /* Reduce huge custom inline margin on the legal container */
  .container[style*="margin-top: 120px"] { margin-top: 24px !important; }
}

/* Footer badges sizing */
.footer-badges img.footer-badge { height: 42px; width: auto; display: inline-block; }
@media (max-width: 576px) {
  .footer-badges { gap: .5rem !important; }
  .footer-badges img.footer-badge { height: 28px; }
}

/* Footer Telegram icon aligned with Partner title */
.footer-telegram { display: inline-flex; align-items: center; }
.footer-telegram img { height: 32px; width: auto; display: block; }
@media (max-width: 576px) {
  .footer-telegram img { height: 24px; }
  /* Pull icon slightly away from the right edge on phones */
  .footer-head .footer-telegram { margin-right: 12px; }
}

/* Partner column Telegram CTA (text + icon) */
.partner-telegram { display: flex; align-items: center; }
.partner-telegram .link-telegram { display: inline-flex; align-items: center; gap: .5rem; color: #29D054 !important; text-decoration: none; font-weight: 500; }
.partner-telegram .link-telegram:hover { text-decoration: underline; }
.partner-telegram img { height: 28px; width: auto; display: block; }
@media (max-width: 576px) {
  /* Left-align like Partner list and make icon a bit larger on mobile */
  .partner-telegram { justify-content: flex-start; }
  .partner-telegram img { height: 32px; }
}

/* Game card overlay (replaces Adora CSS) */
.casino__box { position: relative; overflow: hidden; border-radius: 6px; }
.casino__box > img { display: block; width: 100%; height: auto; }
.casino__overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.25); opacity: 0; transition: opacity .25s ease; }
.casino__overlay a { display:flex; align-items:center; justify-content:center; width:100%; height:100%; }
.casino__box:hover .casino__overlay, .casino__box:focus-within .casino__overlay { opacity: 1; }
.casino__overlay img { max-width: 70%; height: auto; }

/* Mobile grid: 2 per row is ensured by col-6, but tighten gutters */
@media (max-width: 576px) {
  .row.g-4 { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
  /* Hide visual overlay on mobile but keep clickability */
  .casino__overlay { opacity: 0 !important; background: transparent !important; pointer-events: auto; }
  .casino__overlay img { display: none !important; }
}

/* Center button sizing tweaks to avoid clipping */
.footer .nav .nav-item.centerbutton .nav-link {
  height: 58px !important;
  width: 58px !important;
  margin-top: -18px !important; /* pull up slightly, avoid clipping */
}
.footer .nav .nav-item.centerbutton .nav-link > span {
  height: 44px !important;
  width: 44px !important;
  line-height: 42px !important;
  border-radius: 12px !important; /* sharper diamond, avoid circle look */
  background-color: #29D054 !important;
  border-color: #29D054 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.footer .nav .nav-item.centerbutton .nav-link > span i {
  font-size: 18px !important;
  color: #000 !important;
  transform: rotate(-45deg) !important; /* keep icon upright in rotated diamond */
}
/* Replace center diamond with custom image (if present) */
.footer .nav .nav-item.centerbutton .nav-link > span {
  background-color: #000 !important; /* black bubble for contrast */
  border: none !important; /* no green frame */
  transform: none !important; /* do not rotate the box when using image */
  display: grid !important;
  place-items: center !important;
  border-radius: 12px !important;
  position: relative !important; /* anchor for pulse pseudo-element */
}
.footer .nav .nav-item.centerbutton .nav-link > span::before {
  content: '';
  display: block;
  width: 44px;  /* inner image box */
  height: 44px;
  background: url('/assets/new/img/center-diamond.png') center/contain no-repeat;
  position: relative; /* above pulse ring */
  z-index: 1;
}
.footer .nav .nav-item.centerbutton .nav-link > span i { display: none !important; }

/* Soft pulse ring behind the image */
.footer .nav .nav-item.centerbutton .nav-link > span::after {
  content: '';
  position: absolute;
  inset: 0; /* match bubble */
  border-radius: 12px;
  box-shadow: 0 0 0 0 rgba(41,208,84,.35);
  z-index: 0;
  animation: ms-center-pulse 2.4s ease-out infinite;
}

@keyframes ms-center-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(41,208,84,.35); }
  60%  { box-shadow: 0 0 0 12px rgba(41,208,84,0); }
  100% { box-shadow: 0 0 0 0 rgba(41,208,84,0); }
}

@media (prefers-reduced-motion: reduce) {
  .footer .nav .nav-item.centerbutton .nav-link > span::after { animation: none !important; }
}
/* Balance pill under the diamond */
.footer .nav .nav-item.centerbutton { position: relative; }
.balance-pill {
  position: absolute;
  bottom: 6px; /* sit inside footer, avoid scroll */
  left: 50%;
  transform: translateX(-50%) rotate(0deg) !important;
  background: transparent; /* no pill */
  color: #d4af37; /* gold text */
  border: none;
  padding: 0; /* pure text */
  font-weight: 700;
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
  z-index: 1030; /* below diamond */
  pointer-events: none; /* do not block clicks */
}

/* Replace old pill with simple text below diamond */
.balance-amount {
  margin-top: -16px; /* 5px higher again for visibility */
  color: #d4af37;
  font-weight: 700;
  font-size: 14px; /* slightly larger for readability */
  line-height: 1.1;
  text-align: center;
  position: relative;
  z-index: 1051; /* render in front of diamond */
  pointer-events: none; /* do not block clicks on diamond */
  background: #000; /* improve contrast over green diamond */
  padding: 0 6px;
  border-radius: 6px;
}

.balance-amount::after {
  content: ' €';
  color: #d4af37;
}
/* (no external translate floaters) */
/* (no Google translate banners) */
