/* =====================================================================
   1xBet Affiliate — consolidated stylesheet (auto-generated)
   Theme: 1xbet dark-navy + blue accents. Do not add inline <style>.
   ===================================================================== */

/* ============================================================
   SHARED CHROME (base, header, footer, drawer, mobile-sticky)  (from header.php)
   ============================================================ */
/* ─── BASE ────────────────────────────────────────────── */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html,body{font-family:'Poppins',sans-serif;background:#0e3860;color:#3da5ff;overflow-x:hidden}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}

/* ─── HEADER ─────────────────────────────────────────── */
.site-header{background:#fff;position:sticky;top:0;z-index:1000;border-bottom:1px solid #e0e0e0;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.header-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;height:70px;padding:0 20px;gap:16px}
.header-logo img{height:32px;width:auto}
@media(max-width:767px){.header-logo img{height:22px}}
@media(max-width:480px){.header-logo img{height:22px}}
.header-nav ul{list-style:none;display:flex;gap:28px}
.header-nav ul li a{color:#082238;font-size:14px;font-weight:500;letter-spacing:.4px;transition:color .2s}
.header-nav ul li a:hover,.header-nav ul li a.active{color:#1c69b0}
.header-actions{display:flex;align-items:center;gap:10px}
.btn-login{background:#1c69b0;color:#ffffff;border:none;padding:10px 26px;border-radius:5px;font-size:14px;font-weight:700;cursor:pointer;transition:background .2s;display:inline-block}
.btn-login:hover{background:#14538c}
.btn-join{background:#f5f5f5;color:#082238;border:1px solid #ddd;padding:10px 26px;border-radius:5px;font-size:14px;font-weight:600;cursor:pointer;transition:background .2s;display:inline-block}
.btn-join:hover{background:#e8e8e8}
.lang-switcher{display:flex;align-items:center;gap:6px;color:#ffffff;font-size:13px;cursor:pointer;border:1px solid #ddd;padding:7px 12px;border-radius:4px;white-space:nowrap}
.lang-switcher img{width:18px;height:12px}

/* ─── FOOTER ─────────────────────────────────────────── */
.site-footer{background:#000;padding:50px 20px 0}
.footer-inner{max-width:1200px;margin:0 auto}
.footer-main{display:grid;grid-template-columns:1fr;gap:24px;padding-bottom:24px;border-bottom:1px solid #0e3860}
.footer-brand h3{font-size:14px;font-weight:700;color:#fff;margin-bottom:12px;line-height:1.5}
.footer-brand p{font-size:13px;color:#888;line-height:1.75;margin-bottom:14px}
.footer-brand .cert-label{font-size:12px;color:#777;margin-bottom:8px}
.footer-brand .official-logo{max-height:28px;width:auto}
.footer-right{display:flex;flex-direction:column;gap:20px}
.footer-partners h4,.footer-resp h4{font-size:14px;font-weight:600;color:#fff;margin-bottom:12px}
.partner-logos img{max-height:66px;width:auto}
.resp-icons{display:flex;gap:10px;align-items:center}
.resp-icons img{height:34px;width:auto}
.footer-bottom-row{display:grid;grid-template-columns:1fr;gap:18px;padding:32px 0}
.footer-payment h4,.footer-follow h4{font-size:14px;font-weight:600;color:#fff;margin-bottom:14px}
.payment-logos{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.payment-logos img{height:24px;width:auto}
.social-icons{display:flex;gap:10px}
.social-icon{width:38px;height:38px;background:#082238;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;transition:background .2s}
.social-icon:hover{background:#0e3860}
.footer-copyright{border-top:1px solid #082238;padding:20px 0;text-align:center;font-size:13px;color:#555}
.footer-follow{display:flex;flex-direction:column;align-items:flex-start}

/* Match includes/footer.php sponsor + payment styles */
.footer-section{
  padding:1.25rem 0;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.footer-section:last-of-type{border-bottom:none;}
.footer-section__title{
  font-size:.7rem;
  font-weight:800;
  color:#3da5ff;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:.85rem;
}

.footer-sponsor-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.75rem;
  align-items:stretch;
}
.footer-sponsor{
  width:100%;
  min-height:56px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:.5rem;
  background:linear-gradient(180deg,#114675 0%,#0e3860 100%);
  border-radius:8px;
  padding:.35rem .65rem;
  border:1px solid rgba(255,255,255,.14);
}
.footer-sponsor__icon{width:38px;height:38px;object-fit:contain;border-radius:4px;}
.footer-sponsor__info{display:flex;flex-direction:column;}
.footer-sponsor__name{font-size:1.05rem;font-weight:700;color:#fff;line-height:1.15;}

.footer-payment-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.75rem;
  align-items:stretch;
}
.footer-payment-item{
  width:100%;
  min-height:56px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
  border-radius:8px;
  padding:.35rem .65rem;
  border:1px solid rgba(255,255,255,.14);
}
.footer-payment-item span{font-size:.72rem;font-weight:700;color:#ccc;}

@media(min-width:992px){
  .footer-sponsor-grid,
  .footer-payment-grid{
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
}

@media(max-width:767px){
  .footer-sponsor-grid,
  .footer-payment-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:.6rem;
  }
  .footer-sponsor__name{font-size:.78rem;}
  .footer-sponsor__icon{width:30px;height:30px;}
}

.footer-responsible-grid{display:flex;gap:.75rem;align-items:center;}
.footer-responsible-badge{
  display:flex;
  align-items:center;
  gap:.35rem;
  background:linear-gradient(180deg,#114675 0%,#0e3860 100%);
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  padding:.35rem .7rem;
  font-size:.72rem;
  color:#aaa;
}
.footer-responsible-badge span{font-size:1.1rem;}

/* ─── MOBILE STICKY BAR ──────────────────────────────── */
.mobile-sticky{display:none;position:fixed;bottom:0;left:0;right:0;z-index:999;display:flex}
.mobile-sticky a{flex:1;display:flex;align-items:center;justify-content:center;padding:14px;font-size:15px;font-weight:700;text-transform:uppercase}
.mobile-sticky .ms-login{background:#1c69b0;color:#ffffff}
.mobile-sticky .ms-join{background:#0e3860;color:#fff}

/* ─── HAMBURGER + MOBILE DRAWER ──────────────────────── */
.hamburger-btn{display:none;flex-direction:column;justify-content:center;align-items:center;width:40px;height:40px;background:none;border:none;cursor:pointer;padding:4px;gap:5px;position:absolute;left:16px;top:50%;transform:translateY(-50%);z-index:10}
.hamburger-btn span{display:block;width:22px;height:2px;background:#1c69b0;border-radius:2px;transition:.3s}
.mobile-drawer-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:1100}
.mobile-drawer-overlay.open{display:block}
.mobile-drawer{position:fixed;top:0;left:-280px;width:280px;height:100%;background:#fff;z-index:1200;transition:left .3s ease;overflow-y:auto;box-shadow:4px 0 20px rgba(0,0,0,.15)}
.mobile-drawer.open{left:0}
.mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #eee}
.mobile-drawer-head img{height:22px;width:auto}
.mobile-drawer-close{background:none;border:none;font-size:32px;cursor:pointer;color:#fff;line-height:1;padding:4px}
.mobile-drawer-nav a{display:block;padding:14px 24px;font-size:15px;font-weight:600;color:#082238;text-decoration:none;border-bottom:1px solid #f5f5f5}
.mobile-drawer-nav a:hover,.mobile-drawer-nav a.active{background:#f9f9f9;color:#1c69b0}
.mobile-drawer-btns{display:flex;flex-direction:column;gap:10px;padding:16px 24px}
.mobile-drawer-btns a{padding:12px;font-size:15px;font-weight:700;border-radius:6px;text-align:center;text-decoration:none;display:block}
.mobile-drawer-btns .btn-login{background:#1c69b0;color:#ffffff}
.mobile-drawer-btns .btn-join{background:#082238;color:#fff}
.mobile-drawer-lang{padding:16px 24px;border-top:1px solid #eee}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media(max-width:767px){
  .hamburger-btn{display:flex}
  .header-inner{justify-content:flex-start;position:relative}
  .header-logo{margin-left:52px}
  .header-nav{display:none}
  .header-actions .btn-login,.header-actions .btn-join{display:none}
  .header-actions{position:absolute;right:16px;top:50%;transform:translateY(-50%)}
  .footer-main,.footer-bottom-row{grid-template-columns:1fr}
  body{padding-bottom:56px}
  .mobile-sticky{display:flex}
  .mobile-drawer-head{padding:12px 16px}
}
@media(min-width:768px){.mobile-sticky{display:none!important}}

/* ─── HOME.PHP COLOR THEME ───────────────────────────── */
html,body{background:#0e3860 !important;color:#3da5ff !important}

body.affiliate-black-theme section,
body.affiliate-black-theme main {
  background:#082238 !important;
  color:#3da5ff !important;
}

body.affiliate-black-theme .site-header {
  background:#0e3860 !important;
  border-color:#0e3860 !important;
}

body.affiliate-black-theme .header-nav ul li a {
  color:#99d1ff !important;
}

body.affiliate-black-theme .mobile-drawer {
  background:#082238 !important;
}

body.affiliate-black-theme .mobile-drawer-nav a {
  color:#99d1ff !important;
  border-color:#0e3860 !important;
}

body.affiliate-black-theme .site-footer,
body.affiliate-black-theme .footer-main,
body.affiliate-black-theme .footer-bottom-row {
  background:#082238 !important;
  border-color:#0e3860 !important;
}

body.affiliate-black-theme .footer-brand p,
body.affiliate-black-theme .footer-copyright,
body.affiliate-black-theme .cert-label {
  color:#66baff !important;
}

body.affiliate-black-theme input,
body.affiliate-black-theme select,
body.affiliate-black-theme textarea {
  background:#082238 !important;
  color:#99d1ff !important;
  border-color:#0e3860 !important;
}

body.affiliate-black-theme input::placeholder,
body.affiliate-black-theme textarea::placeholder {
  color:#14548c !important;
}

/* ============================================================
   LOGIN PAGE  (from login.php)
   ============================================================ */
.login-page-shell {
  min-height: calc(100vh - 250px);
  padding: 48px 20px;
  background:
    radial-gradient(circle at 15% 10%, rgba(61,165,255,0.18), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(61,165,255,0.12), transparent 35%),
    linear-gradient(180deg, #0e3860 0%, #082238 100%);
}

.login-wrap {
  max-width: 420px;
  margin: 0 auto;
}

.login-brand {
  text-align: center;
  margin-bottom: 20px;
}

.login-brand img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #082238;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.login-brand h1 {
  font-size: 26px;
  letter-spacing: .3px;
  color: #3da5ff;
}

.login-card {
  background: #082238;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}

.login-alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.login-alert-danger { background: #fff2f2; color: #bd1420; border: 1px solid #ffbdbf; }
.login-alert-success { background: #e0f0ff; color: #0e3860; border: 1px solid #c2e3ff; }

.login-field {
  position: relative;
  margin-bottom: 14px;
}

.login-label {
  display: block;
  font-size: 12px;
  color: #66baff;
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

.login-input {
  width: 100%;
  height: 48px;
  border: 1px solid #0e3860;
  border-radius: 6px;
  padding: 0 42px 0 12px;
  font-size: 14px;
  background: #0c2a49;
  color: #eaf3ff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.login-input::placeholder { color: #93b4d8; }

.login-input:focus {
  border-color: #1c69b0;
  box-shadow: 0 0 0 3px rgba(61,165,255,0.25);
}

.login-icon-btn {
  position: absolute;
  right: 10px;
  top: 34px;
  border: none;
  background: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 14px;
}

.login-submit {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 8px;
  background: #1c69b0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}

.login-submit:hover { background: #14538c; }

.login-help {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: #66baff;
}

.login-help a {
  color: #3da5ff;
  font-weight: 700;
}

.login-lang {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.login-lang .lang-switcher {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

@media (max-width: 767px) {
  .login-page-shell { padding: 28px 14px; }
  .login-card { padding: 18px; }
  .login-brand h1 { font-size: 22px; }
}

/* ============================================================
   LANDING / INDEX PAGE  (from index.php)
   ============================================================ */
/* ─── MARQUEE ────────────────────────────────────────── */
.marquee-wrapper{background:#2277c9;padding:4px 0;line-height:1}
.marquee-wrapper marquee{color:#ffffff;font-weight:500;font-size:13px;letter-spacing:.4px;line-height:1}

/* ─── HERO SLIDER ────────────────────────────────────── */
.hero-slider-section{background:#082238;line-height:0}
.hero-swiper{width:100%}
.hero-swiper .swiper-slide{position:relative;height:340px;background-size:cover;background-position:center;background-repeat:no-repeat;background-color:#0e3860}
.swiper-button-next,.swiper-button-prev{color:rgba(255,255,255,.85)!important;--swiper-navigation-size:28px}
.swiper-pagination-bullet{background:#fff!important;opacity:.6}
.swiper-pagination-bullet-active{opacity:1!important}

/* ─── SECTION HEADING ────────────────────────────────── */
.section-heading{text-align:center;font-family:'Lato',sans-serif;font-size:28px;font-weight:700;color:#3da5ff;letter-spacing:.8px;margin-bottom:32px}

/* ─── BE 3xbet AGENTS ───────────────────────────────── */
.agents-section{background:#082238;padding:50px 20px}
.agents-inner{max-width:1200px;margin:0 auto}
.agents-content{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.agents-text p{font-size:14.5px;color:#66baff;line-height:1.85;margin-bottom:12px}
.agents-text p.check-line{display:flex;align-items:flex-start;gap:8px;color:#99d1ff}
.agents-text .check-icon{color:#3da5ff;margin-top:2px;flex-shrink:0}
.earn-box{background:#1c69b0;color:#ffffff;padding:36px 30px;border-radius:10px;text-align:center;box-shadow:3px 3px 8px rgba(0,0,0,.5)}
.earn-box .earn-label{font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:1px;margin-bottom:6px}
.earn-box .earn-pct{font-size:96px;font-weight:900;line-height:1;margin:4px 0}
.earn-box .earn-sub{font-size:18px;font-weight:700;text-transform:uppercase;letter-spacing:2px;margin-bottom:22px}
.btn-join-now{display:inline-block;background:#082238;color:#fff;padding:13px 38px;border-radius:6px;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:1px;transition:background .2s}
.btn-join-now:hover{background:#0e3860}

/* ─── COMMISSION STRUCTURE ───────────────────────────── */
.commission-section{background:#082238;padding:50px 20px}
.commission-inner{max-width:1200px;margin:0 auto}
.commission-table-wrap{overflow-x:auto;margin-top:8px}
.commission-table{width:100%;border-collapse:collapse;min-width:600px}
.commission-table thead tr{background:#2277c9}
.commission-table thead th{color:#082238;font-family:'Lato',sans-serif;font-size:14px;font-weight:700;padding:16px 14px;text-align:center;letter-spacing:.3px}
.commission-table tbody tr{background:#0b2c4c;border-bottom:2px solid #082238}
.commission-table tbody tr:nth-child(even){background:#082238}
.commission-table tbody td{color:#99d1ff;font-family:'Lato',sans-serif;font-size:15px;font-weight:600;padding:17px 14px;text-align:center}
.find-more-wrapper{text-align:center;margin-top:28px}
.btn-find-more{display:inline-block;background:#1c69b0;color:#ffffff;padding:14px 44px;border-radius:6px;font-size:15px;font-weight:800;text-transform:uppercase;letter-spacing:1px;transition:background .2s}
.btn-find-more:hover{background:#1a63a8}

/* ─── WHY 3xbet ─────────────────────────────────────── */
.why-section{background:#082238;padding:50px 20px}
.why-inner{max-width:1200px;margin:0 auto}
.why-section .section-heading{color:#3da5ff}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:36px}
.why-card{text-align:center;padding:24px 16px;background:#0b2c4c;border-radius:8px}
.why-card .why-icon{width:80px;height:80px;margin:0 auto 16px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center}
.why-card .why-icon img{width:80px;height:80px;object-fit:contain}
.why-card h4{font-family:'Roboto',sans-serif;font-size:15px;font-weight:600;color:#3da5ff;margin-bottom:10px}
.why-card p{font-family:'Roboto',sans-serif;font-size:13px;color:#66baff;line-height:1.65}

@media(max-width:1024px){
  .hero-swiper .swiper-slide{height:224px}
  .why-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:767px){
  .hero-swiper .swiper-slide{height:100px}
  .agents-content{grid-template-columns:1fr}
  .earn-box .earn-pct{font-size:60px}
  .why-grid{grid-template-columns:repeat(2,1fr)}
}


body.affiliate-black-theme,
body.affiliate-black-theme .hero-slider-section,
body.affiliate-black-theme .agents-section,
body.affiliate-black-theme .commission-section,
body.affiliate-black-theme .agents-inner,
body.affiliate-black-theme .commission-inner {
  background:#082238 !important;
}

body.affiliate-black-theme .why-section,
body.affiliate-black-theme .why-inner {
  background:#082238 !important;
}

body.affiliate-black-theme .why-card {
  background:#0b2c4c !important;
}

body.affiliate-black-theme .commission-table tbody tr {
  background:#0b2c4c !important;
  border-bottom:1px solid #082238 !important;
}

body.affiliate-black-theme .commission-table tbody tr:nth-child(even) {
  background:#082238 !important;
}

body.affiliate-black-theme .section-heading {
  color:#3da5ff !important;
}

body.affiliate-black-theme .why-card h4 {
  color:#3da5ff !important;
}

body.affiliate-black-theme .agents-text p,
body.affiliate-black-theme .why-card p {
  color:#66baff !important;
}

body.affiliate-black-theme .commission-table tbody td {
  color:#99d1ff !important;
}

body.affiliate-black-theme .marquee-wrapper marquee {
  color:#05192f !important;
}

/* ============================================================
   FAQ PAGE  (from faq.php)
   ============================================================ */


/* ─── FAQ BANNER ─────────────────────────────────────── */
.faq-banner{max-width:900px;margin:40px auto 0;padding:0 20px}
.faq-banner img{width:100%;border-radius:10px}

/* ─── FAQ CONTENT ────────────────────────────────────── */
.faq-section{max-width:900px;margin:0 auto;padding:40px 20px 60px}
.faq-section-title{font-family:'Lato',sans-serif;font-size:24px;font-weight:700;color:#3da5ff;margin-bottom:20px;text-align:center}

/* ─── ACCORDION ──────────────────────────────────────── */
.accordion-item{background:#0b2c4c;border-radius:6px;margin-bottom:8px;overflow:hidden}
.accordion-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;cursor:pointer;user-select:none;gap:12px}
.accordion-header h3{font-size:14px;font-weight:600;color:#3da5ff;margin:0;line-height:1.4}
.accordion-header .accordion-icon{flex-shrink:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;color:#3da5ff;transition:transform .3s}
.accordion-item.open .accordion-header .accordion-icon{transform:rotate(180deg)}
.accordion-item.open .accordion-header h3{color:#3da5ff}
.accordion-body{display:none;padding:0 20px 18px;font-size:13.5px;color:#66baff;line-height:1.75}
.accordion-body p{margin-bottom:8px}
.accordion-body p:last-child{margin-bottom:0}
.accordion-item.open .accordion-body{display:block}

/* ─── CTA SECTION ────────────────────────────────────── */
.faq-cta{background:#082238;text-align:center;padding:60px 20px}
.faq-cta h2{font-size:26px;font-weight:700;color:#3da5ff;margin-bottom:12px}
.faq-cta p{font-size:14px;color:#66baff;margin-bottom:28px}
.btn-message{display:inline-block;background:transparent;color:#fff;border:2px solid #888;padding:14px 44px;border-radius:50px;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:1px;transition:all .2s}
.btn-message:hover{background:#fff;color:#082238}




body.affiliate-black-theme .faq-section,
body.affiliate-black-theme .faq-cta {
  background:#082238 !important;
}

body.affiliate-black-theme .accordion-item {
  background:#0b2c4c !important;
  border:1px solid #0e3860 !important;
}

body.affiliate-black-theme .faq-section-title,
body.affiliate-black-theme .faq-cta h2,
body.affiliate-black-theme .accordion-header h3 {
  color:#3da5ff !important;
}

body.affiliate-black-theme .accordion-body,
body.affiliate-black-theme .faq-cta p {
  color:#66baff !important;
}

body.affiliate-black-theme .btn-message {
  color:#3da5ff !important;
  border-color:#3da5ff !important;
}

/* ============================================================
   LEGEND PAGE  (from legend.php)
   ============================================================ */


/* HERO BANNER */
.hero-banner{width:100%;line-height:0;background:#082238;overflow:hidden}
.hero-banner img{width:100%;max-height:560px;object-fit:cover;object-position:center top;display:block}

/* INTRO SECTION */
.intro-section{background:#082238;padding:56px 20px 48px;text-align:center}
.intro-section h2{font-family:'Lato',sans-serif;font-size:clamp(20px,3vw,32px);font-weight:800;color:#3da5ff;margin-bottom:18px;line-height:1.3}
.intro-section p{font-size:14px;color:#66baff;line-height:1.8;max-width:720px;margin:0 auto 12px}
.btn-findout{display:inline-block;margin-top:28px;background:#1c69b0;color:#ffffff;padding:15px 52px;border-radius:6px;font-size:14px;font-weight:800;text-transform:uppercase;letter-spacing:1.5px;transition:background .2s;cursor:pointer;border:none}
.btn-findout:hover{background:#1a63a8}

/* LEVELS SECTION */
.levels-section{background:#082238;padding:10px 20px 70px}
.levels-inner{max-width:900px;margin:0 auto;background:#082238;border:1px solid #0e3860;border-radius:14px;padding:28px 24px}
.levels-section .section-heading{text-align:center;font-family:'Lato',sans-serif;font-size:clamp(20px,2.5vw,28px);font-weight:900;color:#3da5ff;letter-spacing:2px;margin-bottom:48px;text-transform:uppercase}

/* LEVEL CARD */
.level-card{display:flex;align-items:center;margin-bottom:20px;gap:0;position:relative;background:#082238;border:1px solid #0e3860;border-radius:12px;padding:6px}

/* Pill */
.level-pill{flex:1;background:#082238;padding:22px 32px;min-height:100px;display:flex;align-items:center;position:relative;overflow:hidden;border-radius:12px;border:1px solid #0e3860}
.level-pill::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(34,119,201,.08),transparent 60%);pointer-events:none}
.pill-inner{display:flex;align-items:center;justify-content:space-between;width:100%;gap:20px}
.pill-name-col{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:120px}
.pill-level-num{font-family:'Lato',sans-serif;font-size:13px;font-weight:700;color:#3da5ff;letter-spacing:2px;text-transform:uppercase}
.pill-level-name{font-family:'Lato',sans-serif;font-size:clamp(22px,3vw,34px);font-weight:900;color:#fff;line-height:1;text-transform:uppercase;letter-spacing:2px}
.pill-stats{display:flex;flex-direction:column;gap:7px;flex:1}
.stat-line{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#99d1ff;white-space:nowrap}
.stat-line i{color:#3da5ff;font-size:12px;width:16px;text-align:center;flex-shrink:0}
.stat-line.mystery-line{color:#66baff}
.stat-line.mystery-line i{color:#66baff}

/* T&C SECTION */
.tnc-section{background:#2277c9;padding:0}
.tnc-header{background:#082238;padding:22px 20px;text-align:center}
.tnc-header h2{font-family:'Lato',sans-serif;font-size:20px;font-weight:700;color:#fff;letter-spacing:.5px}
.tnc-body{max-width:860px;margin:0 auto;padding:28px 20px 50px}
.tnc-accordion-item{border-bottom:1px solid rgba(0,0,0,.15);overflow:hidden}
.tnc-accordion-header{display:flex;align-items:center;justify-content:space-between;padding:16px 4px;cursor:pointer;user-select:none;gap:12px}
.tnc-accordion-header h3{font-size:14px;font-weight:600;color:#082238;margin:0;line-height:1.4}
.tnc-accordion-icon{flex-shrink:0;width:22px;height:22px;display:flex;align-items:center;justify-content:center;color:#082238;font-size:16px;font-weight:700;border:2px solid #082238;border-radius:3px;transition:all .2s}
.tnc-accordion-item.open .tnc-accordion-icon{background:#082238;color:#3da5ff}
.tnc-accordion-body{display:none;padding:4px 4px 18px;font-size:13.5px;color:#082238;line-height:1.8}
.tnc-accordion-body p{margin-bottom:8px}
.tnc-accordion-body ul{padding-left:20px;margin-bottom:8px}
.tnc-accordion-body ul li{margin-bottom:5px}
.tnc-accordion-body p:last-child,.tnc-accordion-body ul:last-child{margin-bottom:0}
.tnc-accordion-item.open .tnc-accordion-body{display:block}

/* MODAL */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.80);z-index:2000;align-items:center;justify-content:center;padding:20px}
.modal-overlay.open{display:flex}
.modal-box{background:#082238;border-radius:12px;max-width:640px;width:100%;max-height:90vh;overflow-y:auto;border:1px solid #0e3860}
.modal-header{background:#2277c9;padding:22px 26px;display:flex;align-items:center;justify-content:space-between;border-radius:12px 12px 0 0}
.modal-header h2{font-family:'Lato',sans-serif;font-size:20px;font-weight:900;color:#082238;text-transform:uppercase;letter-spacing:1px}
.modal-close{background:none;border:none;font-size:24px;color:#082238;cursor:pointer;line-height:1;font-weight:700}
.modal-body{padding:28px 26px;font-size:14px;color:#66baff;line-height:1.75}
.modal-body h3{font-size:15px;font-weight:700;color:#3da5ff;margin:20px 0 8px}
.modal-body h3:first-child{margin-top:0}
.modal-body p,.modal-body ul{margin-bottom:10px}
.modal-body ul{padding-left:20px}
.modal-body ul li{margin-bottom:5px}
.modal-levels-table{width:100%;border-collapse:collapse;font-size:12.5px;margin-top:14px}
.modal-levels-table thead tr{background:#2277c9}
.modal-levels-table thead th{color:#082238;font-weight:700;padding:10px;text-align:center}
.modal-levels-table tbody tr{background:#082238;border-bottom:1px solid #05192f}
.modal-levels-table tbody td{color:#99d1ff;padding:10px;text-align:center}

@media(max-width:767px){
  .levels-inner{padding:16px 12px;border-radius:10px}
  .pill-level-name{font-size:20px}
  .stat-line{font-size:11.5px;white-space:normal}
  .level-pill{padding:16px 18px}
}
@media(max-width:480px){
  .pill-level-name{font-size:16px;letter-spacing:1px}
  .pill-inner{flex-direction:column;gap:10px}
  .level-card{margin-bottom:14px}
}




body.affiliate-black-theme .hero-banner,
body.affiliate-black-theme .intro-section,
body.affiliate-black-theme .levels-section {
  background:#082238 !important;
}

body.affiliate-black-theme .modal-box {
  background:#082238 !important;
  border-color:#0e3860 !important;
}

body.affiliate-black-theme .modal-levels-table tbody tr {
  background:#082238 !important;
  border-bottom-color:#05192f !important;
}

body.affiliate-black-theme .modal-levels-table tbody td,
body.affiliate-black-theme .modal-body {
  color:#99d1ff !important;
}

body.affiliate-black-theme .intro-section h2,
body.affiliate-black-theme .levels-section .section-heading {
  color:#3da5ff !important;
}

body.affiliate-black-theme .intro-section p,
body.affiliate-black-theme .tnc-accordion-body {
  color:#66baff !important;
}

body.affiliate-black-theme .tnc-accordion-item {
  border-bottom:1px solid #0e3860 !important;
}

body.affiliate-black-theme .tnc-accordion-header h3 {
  color:#3da5ff !important;
}

body.affiliate-black-theme .modal-body h3,
body.affiliate-black-theme .tnc-accordion-item.open .tnc-accordion-icon {
  color:#3da5ff !important;
}

/* ============================================================
   REGISTER PAGE  (from register.php)
   ============================================================ */





/* ─── HEADER ─── */
.site-header{background:#fff;position:sticky;top:0;z-index:1000;border-bottom:1px solid #e0e0e0;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.header-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;height:70px;padding:0 20px;gap:16px}
.header-logo img{height:42px;width:auto}
@media(max-width:480px){.header-logo img{height:26px}}
.header-nav ul{list-style:none;display:flex;gap:28px}
.header-nav ul li a{color:#082238;font-size:14px;font-weight:500;letter-spacing:.4px;transition:color .2s}
.header-nav ul li a:hover{color:#1c69b0}
.header-actions{display:flex;align-items:center;gap:10px}
.btn-login{background:#1c69b0;color:#ffffff;border:none;padding:10px 26px;border-radius:5px;font-size:14px;font-weight:700;cursor:pointer;transition:background .2s;display:inline-block}
.btn-login:hover{background:#14538c}
.btn-join{background:#f5f5f5;color:#082238;border:1px solid #ddd;padding:10px 26px;border-radius:5px;font-size:14px;font-weight:600;cursor:pointer;transition:background .2s;display:inline-block}
.btn-join:hover{background:#e8e8e8}
.lang-switcher{display:flex;align-items:center;gap:6px;color:#ffffff;font-size:13px;cursor:pointer;border:1px solid #ddd;padding:7px 12px;border-radius:4px;white-space:nowrap}
.lang-switcher img{width:18px;height:12px}

.marquee-wrapper{background:#1c69b0;padding:4px 0;line-height:1}
.marquee-wrapper marquee{color:#ffffff;font-weight:500;font-size:13px;letter-spacing:.4px;line-height:1}

.reg-page{background:#082238;min-height:calc(100vh - 70px - 40px);padding:50px 20px 60px}

.reg-container{max-width:600px;margin:0 auto}
.reg-title{text-align:center;font-size:26px;font-weight:700;color:#3da5ff;margin-bottom:10px}
.reg-subtitle{text-align:center;font-size:14px;color:#66baff;line-height:1.6;margin-bottom:32px}

/* ─── STEP INDICATORS ─── */
.step-indicators{display:none;align-items:flex-start;justify-content:center;margin-bottom:36px;gap:0}
.step-item{display:flex;flex-direction:column;align-items:center;width:120px}
.step-circle{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;border:2px solid transparent;flex-shrink:0}
.step-circle.active{background:#1c69b0;color:#ffffff;border-color:#3da5ff}
.step-circle.inactive{background:#555;color:#999;border-color:#555}
.step-label{font-size:11px;color:#ccc;margin-top:8px;text-align:center;line-height:1.3}
.step-label.active{color:#3da5ff}
.step-separator{flex:1;height:2px;background:#555;margin-top:19px;min-width:60px;max-width:200px}

/* ─── FORM STEPS ─── */
.form-step{display:block}
.form-step.active{display:block}

/* ─── FIELD GROUPS ─── */
.field-group{margin-bottom:18px}
.field-group label{display:block;font-size:13px;font-weight:500;color:#66baff;margin-bottom:6px}
.field-group label .req{color:#f0454e;margin-left:3px}
.field-group input,.field-group select{width:100%;padding:12px 14px;background:#082238;border:1px solid #0e3860;border-radius:4px;font-size:14px;color:#99d1ff;outline:none;transition:border-color .2s;font-family:'Poppins',sans-serif}
.field-group input:focus,.field-group select:focus{border-color:#3da5ff}
.field-group input::placeholder{color:#93b4d8}
.field-row{display:grid;grid-template-columns:1fr 3fr;gap:12px}
.password-toggle-wrap{position:relative}
.password-toggle-wrap input{padding-right:44px}
.password-toggle-wrap .eye-icon{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#888;cursor:pointer;font-size:15px}
.wallet-note{font-size:13px;color:#66baff;text-align:center;margin-bottom:16px}

/* â”€â”€â”€ BUTTONS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn-next,.btn-submit{width:100%;padding:15px;background:#1c69b0;color:#ffffff;border:none;border-radius:4px;font-size:16px;font-weight:700;cursor:pointer;transition:background .2s;font-family:'Poppins',sans-serif;margin-top:8px}
.btn-next:hover,.btn-submit:hover{background:#14538c}
.btn-previous{background:#555;color:#fff;border:none;border-radius:4px;font-size:14px;font-weight:600;cursor:pointer;padding:12px 28px;font-family:'Poppins',sans-serif;margin-right:10px}
.btn-previous:hover{background:#666}
.form-buttons{display:flex;align-items:center;margin-top:10px}
.form-buttons .btn-submit{flex:1}

/* ─── DISCLAIMER ─── */
.disclaimer{font-size:12px;color:#66baff;text-align:center;margin-top:14px;line-height:1.5}

/* ─── ERROR / SUCCESS MESSAGES ─── */
.form-error{background:#e02531;color:#fff;padding:10px 14px;border-radius:4px;font-size:13px;margin-bottom:14px;display:none}
.form-error ul{padding-left:18px;margin:0}

/* ─── SUCCESS SECTION ─── */
.success-section{display:none;text-align:center;padding:20px 0}
.success-icon{font-size:64px;color:#3da5ff;margin-bottom:16px}
.success-title{font-size:20px;font-weight:700;color:#fff;margin-bottom:20px;line-height:1.4}
.success-card{background:#082238;border-radius:8px;padding:24px;margin-bottom:20px;text-align:left}
.success-card h4{font-size:14px;font-weight:700;color:#3da5ff;margin-bottom:14px}
.success-card p{font-size:14px;color:#66baff;margin-bottom:8px;word-break:break-all}
.success-card p strong{color:#3da5ff}
.success-note{font-size:13px;color:#66baff;margin-bottom:20px}
.btn-copy{display:inline-flex;align-items:center;gap:6px;background:#1c69b0;color:#ffffff;border:none;padding:10px 20px;border-radius:4px;font-size:13px;font-weight:700;cursor:pointer;font-family:'Poppins',sans-serif;margin-top:8px}
.btn-copy:hover{background:#14538c}
.onboarding-card{background:#082238;border-radius:8px;padding:24px;margin-bottom:20px;text-align:left}
.onboarding-card h4{font-size:14px;font-weight:700;color:#3da5ff;margin-bottom:10px}
.onboarding-card p{font-size:13px;color:#66baff;margin-bottom:14px}
.onboarding-actions{display:flex;flex-wrap:wrap;gap:10px}
.btn-telegram{display:inline-flex;align-items:center;gap:8px;background:#1a63a8;color:#fff;border:none;padding:10px 20px;border-radius:4px;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;font-family:'Poppins',sans-serif}
.btn-telegram:hover{background:#1a63a8}
.btn-dl-telegram{display:inline-flex;align-items:center;gap:8px;background:#555;color:#fff;border:none;padding:10px 20px;border-radius:4px;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;font-family:'Poppins',sans-serif}
.btn-dl-telegram:hover{background:#666}

/* ─── FOOTER ─── */
.site-footer{background:#000;padding:50px 20px 0}
.footer-inner{max-width:1200px;margin:0 auto}
.footer-main{display:grid;grid-template-columns:1fr;gap:24px;padding-bottom:24px;border-bottom:1px solid #0e3860}
.footer-brand h3{font-size:14px;font-weight:700;color:#fff;margin-bottom:12px;line-height:1.5}
.footer-brand p{font-size:13px;color:#888;line-height:1.75;margin-bottom:14px}
.footer-brand .cert-label{font-size:12px;color:#777;margin-bottom:8px}
.footer-brand .official-logo{max-height:28px;width:auto}
.footer-right{display:flex;flex-direction:column;gap:20px}
.footer-partners h4,.footer-resp h4{font-size:14px;font-weight:600;color:#fff;margin-bottom:12px}
.partner-logos img{max-height:66px;width:auto}
.resp-icons{display:flex;gap:10px;align-items:center}
.resp-icons img{height:34px;width:auto}
.footer-bottom-row{display:grid;grid-template-columns:1fr;gap:18px;padding:32px 0}
.footer-payment h4,.footer-follow h4{font-size:14px;font-weight:600;color:#fff;margin-bottom:14px}
.payment-logos{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.payment-logos img{height:24px;width:auto}
.social-icons{display:flex;gap:10px}
.social-icon{width:38px;height:38px;background:#082238;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;transition:background .2s}
.social-icon:hover{background:#0e3860}
.footer-copyright{border-top:1px solid #082238;padding:20px 0;text-align:center;font-size:13px;color:#555}
.footer-follow{display:flex;flex-direction:column;align-items:flex-start}

/* Match shared footer payment/responsible classes used in footer.php */
.footer-section{padding:1.25rem 0;border-bottom:1px solid rgba(255,255,255,.07)}
.footer-section:last-of-type{border-bottom:none}
.footer-section__title{font-size:.7rem;font-weight:800;color:#3da5ff;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.85rem}
.footer-payment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;align-items:stretch}
.footer-payment-item{width:100%;min-height:56px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:8px;padding:.35rem .65rem;border:1px solid rgba(255,255,255,.14)}
.footer-responsible-grid{display:flex;gap:.75rem;align-items:center}
.footer-responsible-badge{display:flex;align-items:center;gap:.35rem;background:linear-gradient(180deg,#114675 0%,#0e3860 100%);border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:.35rem .7rem;font-size:.72rem;color:#aaa}
.footer-responsible-badge span{font-size:1.1rem}

@media(min-width:992px){
  .footer-payment-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}

/* ─── MOBILE STICKY BAR ─── */
.mobile-sticky{display:none;position:fixed;bottom:0;left:0;right:0;z-index:999}
.mobile-sticky a{flex:1;display:flex;align-items:center;justify-content:center;padding:14px;font-size:15px;font-weight:700;text-transform:uppercase}
.mobile-sticky .ms-login{background:#1c69b0;color:#ffffff}
.mobile-sticky .ms-join{background:#0e3860;color:#fff}

/* ─── RESPONSIVE ─── */
/* ─── HAMBURGER + MOBILE DRAWER ─── */
.hamburger-btn{display:none;flex-direction:column;justify-content:center;align-items:center;width:40px;height:40px;background:none;border:none;cursor:pointer;padding:4px;gap:5px;position:absolute;left:16px;top:50%;transform:translateY(-50%);z-index:10}
.hamburger-btn span{display:block;width:22px;height:2px;background:#1c69b0;border-radius:2px;transition:.3s}
.mobile-drawer-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:1100}
.mobile-drawer-overlay.open{display:block}
.mobile-drawer{position:fixed;top:0;left:-280px;width:280px;height:100%;background:#fff;z-index:1200;transition:left .3s ease;overflow-y:auto;box-shadow:4px 0 20px rgba(0,0,0,.15)}
.mobile-drawer.open{left:0}
.mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #eee}
.mobile-drawer-close{background:none;border:none;font-size:22px;cursor:pointer;color:#0e3860;line-height:1;padding:4px}
.mobile-drawer-nav a{display:block;padding:14px 24px;font-size:15px;font-weight:600;color:#082238;text-decoration:none;border-bottom:1px solid #f5f5f5}
.mobile-drawer-nav a:hover{background:#f9f9f9;color:#1c69b0}
.mobile-drawer-btns{display:flex;flex-direction:column;gap:10px;padding:16px 24px}
.mobile-drawer-btns a{padding:12px;font-size:15px;font-weight:700;border-radius:6px;text-align:center;text-decoration:none;display:block}
.mobile-drawer-btns .btn-login{background:#1c69b0;color:#ffffff}
.mobile-drawer-btns .btn-join{background:#082238;color:#fff}
.mobile-drawer-lang{padding:16px 24px;border-top:1px solid #eee}
@media(max-width:767px){
  .hamburger-btn{display:flex}
  .header-inner{justify-content:flex-start;position:relative}
  .header-logo{margin-left:52px}
  .header-nav{display:none}
  .header-actions .btn-login,.header-actions .btn-join{display:none}
  .header-actions{position:absolute;right:16px;top:50%;transform:translateY(-50%)}
  .footer-main,.footer-bottom-row{grid-template-columns:1fr}
  .step-item{width:90px}

  .mobile-sticky{display:flex}
}




body.affiliate-black-theme .reg-page,
body.affiliate-black-theme .reg-container {
  background:#082238 !important;
}

body.affiliate-black-theme .success-card,
body.affiliate-black-theme .onboarding-card {
  background:#082238 !important;
}

body.affiliate-black-theme .reg-title,
body.affiliate-black-theme .success-title,
body.affiliate-black-theme .success-card h4,
body.affiliate-black-theme .onboarding-card h4 {
  color:#3da5ff !important;
}

body.affiliate-black-theme .reg-subtitle,
body.affiliate-black-theme .field-group label,
body.affiliate-black-theme .wallet-note,
body.affiliate-black-theme .disclaimer,
body.affiliate-black-theme .success-card p,
body.affiliate-black-theme .onboarding-card p,
body.affiliate-black-theme .step-label,
body.affiliate-black-theme .success-note {
  color:#66baff !important;
}

body.affiliate-black-theme .field-group input,
body.affiliate-black-theme .field-group select,
body.affiliate-black-theme .password-toggle-wrap input {
  background:#082238 !important;
  color:#99d1ff !important;
  border-color:#0e3860 !important;
}

body.affiliate-black-theme .field-group input::placeholder {
  color:#14548c !important;
}

body.affiliate-black-theme .form-error {
  background:#5c0007 !important;
  color:#ffbdbf !important;
}

/* ============================================================
   AGENT DASHBOARD (scoped to .aff-dashboard)  (from dashboard.php)
   ============================================================ */

html.aff-dashboard,body.aff-dashboard{height:100%;font-family:'Segoe UI',Roboto,Arial,sans-serif;background:#0e3860;color:#3da5ff;overflow:hidden;font-size:15px}


/* -- LAYOUT -- */
.x1bets-app{display:flex;height:100vh;overflow:hidden}

/* -- SIDEBAR -- */
.x1bets-sidebar{width:265px;min-width:265px;background:#082238;color:#fff;display:flex;flex-direction:column;height:100vh;overflow-y:auto;transition:width .25s,min-width .25s,transform .25s;z-index:200}
.x1bets-sidebar.collapsed{width:0;min-width:0;overflow:hidden}
.x1bets-sidebar::-webkit-scrollbar{width:4px}.x1bets-sidebar::-webkit-scrollbar-thumb{background:#0e3860}
.sidebar-brand{display:flex;align-items:center;gap:10px;padding:0 16px;height:60px;color:#fff;font-size:20px;font-weight:700;letter-spacing:.5px;border-bottom:1px solid #0e3860;cursor:pointer}
.sidebar-brand i{font-size:24px}
.sidebar-brand .brand-label{color:#3da5ff;text-transform:uppercase;letter-spacing:1px}
.nav-list{list-style:none;padding:8px 0;flex:1}
.nav-item{position:relative}
.nav-link{display:flex;align-items:center;gap:12px;padding:13px 20px;font-size:14px;font-weight:500;color:#99d1ff;cursor:pointer;transition:background .15s,color .15s;white-space:nowrap;user-select:none}
.nav-link i,.nav-link .nav-icon{font-size:18px;width:20px;flex-shrink:0;color:#3da5ff}
.nav-link:hover{background:#0b2c4c;color:#fff}
.nav-link:hover i,.nav-link:hover .nav-icon{color:#3da5ff}
.nav-link.active{background:#0e3860;color:#fff}
.nav-link.active i,.nav-link.active .nav-icon{color:#fff}
.nav-group-title{display:flex;align-items:center;gap:12px;padding:13px 20px;font-size:14px;font-weight:500;color:#99d1ff;cursor:pointer;transition:background .15s,color .15s;user-select:none}
.nav-group-title i{font-size:18px;width:20px;flex-shrink:0;color:#3da5ff}
.nav-group-title .arrow{margin-left:auto;font-size:13px;transition:transform .2s}
.nav-group-title:hover{background:#0b2c4c;color:#fff}
.nav-group-title.open .arrow{transform:rotate(180deg)}
.nav-sub{list-style:none;overflow:hidden;max-height:0;transition:max-height .25s ease}
.nav-sub.open{max-height:400px}
.nav-sub .nav-link{padding-left:52px;font-size:13.5px}

/* -- RIGHT WRAPPER -- */
.x1bets-right{flex:1;display:flex;flex-direction:column;overflow:hidden}

/* -- HEADER -- */
.x1bets-header{height:60px;background:#0e3860;border-bottom:1px solid #0e3860;display:flex;align-items:center;padding:0 16px 0 20px;gap:12px;flex-shrink:0;z-index:100}
.header-menu-btn{background:none;border:none;cursor:pointer;color:#3da5ff;font-size:24px;padding:4px;display:flex;align-items:center}
.header-brand{font-size:19px;font-weight:700;color:#3da5ff;text-transform:uppercase;letter-spacing:1.5px;cursor:pointer}
.header-spacer{flex:1}
.header-time{font-size:12px;color:#66baff;text-align:right;line-height:1.4}
.header-user{font-size:14px;font-weight:700;color:#3da5ff;white-space:nowrap}
.header-icon-btn{width:36px;height:36px;border-radius:50%;border:1.5px solid #2277c9;background:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#3da5ff;transition:background .15s,color .15s}
.header-icon-btn:hover{background:#1c69b0;color:#ffffff}
.header-icon-btn i{font-size:22px}

/* -- TABS BAR -- */
.x1bets-tabs-bar{background:#0e3860;padding:4px 12px 0;display:flex;align-items:center;gap:4px;flex-wrap:wrap;min-height:32px;flex-shrink:0}
.tab-chip{display:inline-flex;align-items:center;gap:6px;background:#082238;color:#fff;padding:4px 12px;border-radius:3px;font-size:13px;font-weight:700;cursor:pointer;transition:background .15s}
.tab-chip:hover{background:#0e3860}
.tab-chip .close-btn{background:none;border:none;color:#ccc;cursor:pointer;padding:0;font-size:14px;line-height:1;display:flex;align-items:center}
.tabs-close-all{margin-left:auto;display:inline-flex;align-items:center;gap:4px;color:rgba(255,255,255,.8);font-size:12px;cursor:pointer;padding:3px 8px;border-radius:3px}
.tabs-close-all:hover{background:rgba(255,255,255,.15)}

/* -- MAIN CONTENT -- */
.x1bets-main{flex:1;overflow-y:auto;background:#082238;padding:24px}
.x1bets-main::-webkit-scrollbar{width:6px}.x1bets-main::-webkit-scrollbar-thumb{background:#0e3860;border-radius:3px}

/* -- SECTIONS -- */
.x1bets-section{display:none}
.x1bets-section.active{display:block}

/* -- CONTENT CARD -- */
.bc-card{background:#082238;border-radius:2px;box-shadow:0 1px 4px rgba(0,0,0,.25);margin-bottom:20px}
.bc-card-body{padding:16px 20px}

/* -- PAGE TITLE ROW -- */
.page-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.page-title{font-size:20px;font-weight:700;letter-spacing:.5px;color:#3da5ff;text-transform:uppercase;flex:1}
.commission-labels{display:flex;gap:24px;flex-wrap:wrap}
.comm-label{font-size:15px;font-weight:700;color:#3da5ff}
.comm-label.green{color:#2f8ae0}
.commission-refresh{background:none;border:none;cursor:pointer;color:#3da5ff;font-size:16px;padding:2px}

/* -- SEARCH FORM -- */
.search-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:16px 20px}
.sf-field{position:relative;min-width:160px}
.sf-field-wide{min-width:200px}
.sf-label{font-size:11px;font-weight:600;color:#66baff;letter-spacing:.6px;text-transform:uppercase;position:absolute;top:-9px;left:12px;background:#082238;padding:0 4px}
.sf-input{width:100%;padding:10px 34px 10px 12px;border:1px solid #0e3860;border-radius:4px;background:#082238;font-size:14px;color:#99d1ff;outline:none;height:44px;font-family:inherit}
.sf-input:focus{border-color:#3da5ff}
.sf-input[disabled]{background:#05192f;color:#14548c;cursor:not-allowed}
.sf-icon{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#888;font-size:16px;pointer-events:none}
.sf-select{width:100%;padding:10px 32px 10px 12px;border:1px solid #0e3860;border-radius:4px;background:#082238;font-size:14px;color:#99d1ff;outline:none;height:44px;font-family:inherit;appearance:none;cursor:pointer}
.sf-select:focus{border-color:#3da5ff}
.sf-spacer{flex:1}
.btn-search{padding:10px 24px;background:#0e3860;color:#fff;border:none;border-radius:3px;font-size:14px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;cursor:pointer;height:44px;font-family:inherit;transition:background .15s}
.btn-search:hover{background:#082238}
.btn-withdraw{padding:9px 20px;background:#082238;color:#3da5ff;border:1.5px solid #2277c9;border-radius:3px;font-size:14px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;cursor:pointer;font-family:inherit;transition:background .15s,color .15s}
.btn-withdraw:hover{background:#1c69b0;color:#ffffff}

/* -- DATA TABLE -- */
.table-wrap{overflow-x:auto}
table.x1bets-table{width:100%;border-collapse:collapse;font-size:13px}
table.x1bets-table thead th{background:#0e3860;color:#fff;padding:10px 12px;text-align:center;font-size:12px;font-weight:700;letter-spacing:.4px;white-space:nowrap;border:1px solid #0e3860}
table.x1bets-table tbody td{padding:10px 12px;text-align:center;border:1px solid #0e3860;color:#99d1ff;white-space:nowrap}
table.x1bets-table tbody tr:hover td{background:#082238}
.empty-row td{color:#aaa;font-style:italic;padding:20px!important}

/* -- DOWNLINE TITLE -- */
.section-inner-title{font-size:17px;font-weight:700;color:#14548c;margin-bottom:4px;padding:12px 20px 0}
.section-inner-title + hr{margin:0 20px 12px;border:none;border-top:1px solid #0e3860}

/* -- PAGINATION -- */
.x1bets-pagination{display:flex;align-items:center;gap:8px;padding:10px 16px;font-size:13px;color:#555;flex-wrap:wrap}
.pagination-select{border:none;border-bottom:1px solid #bbb;background:transparent;font-size:13px;padding:2px 4px;outline:none;color:#0e3860;cursor:pointer}
.pag-spacer{flex:1}
.pag-btn{background:none;border:none;color:#14548c;cursor:pointer;font-size:18px;padding:2px;display:flex;align-items:center}
.pag-btn:disabled{color:#ccc;cursor:not-allowed}
.pag-info{font-size:13px;color:#66baff;margin:0 4px}
.pag-items{font-size:13px;color:#66baff;margin-left:auto}

/* -- PROFILE / MY ACCOUNT -- */
.profile-link-section{padding:20px;text-align:center}
.profile-link-section h4{font-size:14px;font-weight:700;color:#14548c;margin-bottom:16px;text-align:left}
.qr-img{width:130px;height:130px;margin:0 auto 12px;display:block}
.qr-url{font-size:12px;color:#66baff;margin-bottom:12px}
.qr-buttons{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:16px}
.qr-btn{padding:8px 16px;border:1.5px solid #bbb;background:#fff;font-size:12px;font-weight:600;color:#555;border-radius:3px;cursor:pointer;font-family:inherit;text-transform:uppercase;letter-spacing:.3px;transition:background .15s}
.qr-btn:hover{background:#f0f0f0}
.profile-banner-row{display:flex;align-items:center;gap:10px;justify-content:center}
.profile-banner-label{font-size:11px;color:#888;letter-spacing:.5px}
.profile-banner-select{border:none;border-bottom:1px solid #bbb;font-size:13px;padding:4px 8px;outline:none;color:#0e3860;background:none;cursor:pointer;min-width:160px}
.profile-cards-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:0 20px 20px}
@media(max-width:700px){.profile-cards-grid{grid-template-columns:1fr}}
.profile-card{border-radius:4px;overflow:hidden}
.profile-card-hd{background:#0e3860;color:#fff;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:700}
.profile-card-hd button{width:34px;height:34px;border-radius:50%;background:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#14548c;font-size:18px}
.profile-card-body{padding:20px;border:1px solid #0e3860;border-top:none;border-radius:0 0 4px 4px;background:#082238}
.profile-field{position:relative;margin-bottom:14px;display:flex;align-items:center;gap:8px}
.profile-field-wrap{flex:1;position:relative;border:1px solid #0e3860;border-radius:4px;background:#05192f}
.pf-label{position:absolute;top:-9px;left:12px;background:#05192f;padding:0 4px;font-size:11px;font-weight:700;color:#66baff;letter-spacing:.6px;white-space:nowrap}
.pf-input{width:100%;padding:11px 12px;border:none;border-radius:4px;font-size:14px;color:#99d1ff;background:#05192f;outline:none;font-family:inherit}
.pf-input[type="password"]{letter-spacing:2px}
.pf-eye{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#aaa;font-size:16px}
.pf-edit-btn{background:none;border:none;cursor:pointer;color:#14548c;font-size:20px;flex-shrink:0}
.pw-btns{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}
.btn-reset{padding:9px 20px;background:#fff;border:1.5px solid #bbb;border-radius:3px;font-size:13px;font-weight:600;color:#555;cursor:pointer;font-family:inherit;transition:background .15s}
.btn-reset:hover{background:#f0f0f0}
.btn-update{padding:9px 24px;background:#0e3860;border:none;border-radius:3px;font-size:13px;font-weight:700;color:#fff;cursor:pointer;font-family:inherit;transition:background .15s}
.btn-update:hover{background:#082238}

/* -- COMMISSION PAGE -- */
.comm-table-wrap table.x1bets-table{min-width:auto}
.comm-lifetime-hd{background:#0e3860;color:#fff;padding:12px 16px;font-size:13px;font-weight:700;text-align:center;letter-spacing:.5px}

/* -- ALERT -- */
.x1bets-alert{padding:10px 14px;border-radius:3px;font-size:13px;margin-bottom:14px;display:none}
.x1bets-alert-success{background:#e0f0ff;border:1px solid #99d1ff;color:#114675}
.x1bets-alert-danger{background:#fff3f3;border:1px solid #ffbdbf;color:#e02531}
.x1bets-alert-visible{display:flex;align-items:center;gap:8px}

/* -- MOBILE OVERLAY -- */
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:150}
@media(max-width:900px){
  .x1bets-sidebar{position:fixed;top:0;left:0;bottom:0;transform:translateX(-100%);z-index:200}
  .x1bets-sidebar.open{transform:translateX(0)}
  .sidebar-overlay.visible{display:block}
  body.aff-dashboard{overflow:auto}
  .x1bets-app{overflow:auto;flex-direction:column;height:auto;min-height:100vh}
  .x1bets-right{height:auto}
  .x1bets-main{overflow:visible}
  .x1bets-header{padding:0 10px 0 12px;gap:8px}
  .header-time{display:none}
  .header-user{max-width:118px;overflow:hidden;text-overflow:ellipsis;font-size:11px;letter-spacing:.2px;white-space:nowrap}
  .header-icon-btn{width:32px;height:32px;flex-shrink:0}
  .header-icon-btn i{font-size:19px}
  .x1bets-header .header-icon-btn[title="Profile"]{display:none}
}
/* -- WALLET NUMBER MODAL -- */
.wn-modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:999;align-items:center;justify-content:center}
.wn-modal-overlay.open{display:flex}
.wn-modal{background:#fff;border-radius:4px;width:100%;max-width:440px;box-shadow:0 8px 32px rgba(0,0,0,.25);overflow:hidden}
.wn-modal-hd{background:#114675;color:#fff;padding:16px 20px;font-size:15px;font-weight:700;letter-spacing:.5px;text-transform:uppercase}
.wn-modal-body{padding:18px 20px}
.wn-note{color:#e02531;font-size:12px;margin-bottom:16px}
.wn-field{display:flex;align-items:center;border:1px solid #d0d0d0;border-radius:4px;margin-bottom:14px;overflow:hidden;background:#f5f5f5}
.wn-prefix{padding:0 12px;font-size:13px;color:#555;border-right:1px solid #d0d0d0;background:#eaeaea;height:42px;display:flex;align-items:center;white-space:nowrap}
.wn-input{flex:1;border:none;outline:none;padding:0 12px;height:42px;background:transparent;font-size:13px;color:#0b2c4c}
.wn-modal-ft{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid #eee}
.wn-btn-close{background:none;border:1px solid #aaa;color:#555;padding:8px 22px;border-radius:3px;font-size:13px;font-weight:600;letter-spacing:.5px;cursor:pointer;text-transform:uppercase}
.wn-btn-update{background:#114675;color:#fff;border:none;padding:8px 22px;border-radius:3px;font-size:13px;font-weight:600;letter-spacing:.5px;cursor:pointer;text-transform:uppercase}
.wn-btn-update:disabled{opacity:.55;cursor:not-allowed}
.wn-alert{font-size:12px;padding:8px 12px;border-radius:3px;margin-bottom:12px;display:none}
.wn-alert.show{display:block}
.wn-alert.success{background:#e0f0ff;border:1px solid #99d1ff;color:#114675}
.wn-alert.error{background:#fff3f3;border:1px solid #ffbdbf;color:#e02531}
@media(max-width:480px){.wn-modal{max-width:96vw}}

/* -- GLOBAL BLACK THEME OVERRIDE -- */
body.aff-dashboard,
body.aff-dashboard .x1bets-app,
body.aff-dashboard .x1bets-right,
body.aff-dashboard .x1bets-main,
body.aff-dashboard .bc-card,
body.aff-dashboard .x1bets-header,
body.aff-dashboard .x1bets-tabs-bar,
body.aff-dashboard .table-wrap,
body.aff-dashboard table,
body.aff-dashboard thead,
body.aff-dashboard tbody,
body.aff-dashboard tr,
body.aff-dashboard td,
body.aff-dashboard th,
body.aff-dashboard .profile-card,
body.aff-dashboard .profile-link-section {
  background:#000 !important;
  color:#f1f1f1 !important;
  border-color:#0b2c4c !important;
}

body.aff-dashboard .x1bets-sidebar,
body.aff-dashboard .nav-link,
body.aff-dashboard .nav-group-title,
body.aff-dashboard .sidebar-brand,
body.aff-dashboard .tab-chip,
body.aff-dashboard .tab-chip .close-btn,
body.aff-dashboard .header-time,
body.aff-dashboard .header-user,
body.aff-dashboard .page-title,
body.aff-dashboard .comm-label,
body.aff-dashboard .sf-label,
body.aff-dashboard .pf-label,
body.aff-dashboard .pf-input,
body.aff-dashboard .qr-url,
body.aff-dashboard .pag-info,
body.aff-dashboard .pag-items {
  color:#e5e5e5 !important;
}

body.aff-dashboard .nav-link:hover,
body.aff-dashboard .nav-link.active,
body.aff-dashboard .nav-group-title:hover,
body.aff-dashboard .header-icon-btn:hover,
body.aff-dashboard .tab-chip:hover {
  background:#05192f !important;
}

body.aff-dashboard input,
body.aff-dashboard select,
body.aff-dashboard textarea,
body.aff-dashboard .sf-input,
body.aff-dashboard .sf-select,
body.aff-dashboard .pf-input,
body.aff-dashboard .wn-field,
body.aff-dashboard .wn-prefix,
body.aff-dashboard .wn-input {
  background:#05192f !important;
  color:#f1f1f1 !important;
  border-color:#0e3860 !important;
}

body.aff-dashboard input::placeholder,
body.aff-dashboard textarea::placeholder {
  color:#9f9f9f !important;
}

/* -- HOME STYLE BRAND OVERRIDES -- */
:root {
  --aff-home-accent: #e0f0ff;
  --aff-home-accent-dark: #99d1ff;
  --aff-home-bg: #0b2c4c;
  --aff-home-bg-gradient: linear-gradient(145deg, #0e3860 0%, #114675 45%, #1a63a8 100%);
  --aff-violet-grad-soft: linear-gradient(145deg, #114675 0%, #14548c 50%, #2277c9 100%);
  --aff-violet-grad-deep: linear-gradient(145deg, #0b2c4c 0%, #114675 50%, #14548c 100%);
  --aff-violet-grad-strong: linear-gradient(145deg, #114675 0%, #1a63a8 55%, #2f8ae0 100%);
  --aff-home-panel: #0e3860;
  --aff-home-border: #2277c9;
}

.x1bets-sidebar,
.x1bets-header,
.bc-card,
.profile-card-body,
.wn-modal,
#withdraw-modal,
.x1bets-main {
  border-color: var(--aff-home-border) !important;
}

.x1bets-sidebar {
  background: var(--aff-violet-grad-deep) !important;
}

.x1bets-main,
html,
body.aff-dashboard{
  background: var(--aff-home-bg-gradient) !important;
}

body.aff-dashboard,
body.aff-dashboard .x1bets-app,
body.aff-dashboard .x1bets-right,
body.aff-dashboard .x1bets-main {
  background: var(--aff-home-bg-gradient) !important;
}

.x1bets-header,
.bc-card,
.profile-card-body,
.wn-modal,
#withdraw-modal {
  background: var(--aff-violet-grad-soft) !important;
}

.header-brand,
.header-menu-btn,
.header-icon-btn,
.section-inner-title,
.page-title,
.comm-label.green,
.profile-card-hd button {
  color: var(--aff-home-accent) !important;
}

.header-icon-btn,
.btn-withdraw,
.btn-reset,
.qr-btn,
.wn-btn-close {
  border-color: var(--aff-home-accent) !important;
}

.header-icon-btn:hover,
.btn-search,
.btn-update,
.wn-btn-update,
.profile-card-hd,
table.x1bets-table thead th,
.comm-lifetime-hd,
#withdraw-modal > div:first-child {
  background: var(--aff-violet-grad-strong) !important;
  color: #f0f7ff !important;
}

.btn-search:hover,
.btn-update:hover,
.wn-btn-update:hover {
  background: var(--aff-violet-grad-soft) !important;
}

.tab-chip,
.x1bets-tabs-bar,
.nav-link.active,
.nav-group-title.open,
.sf-label {
  background: var(--aff-violet-grad-deep) !important;
}

.nav-link:hover,
.nav-group-title:hover,
.tab-chip:hover {
  background: var(--aff-violet-grad-soft) !important;
}

table.x1bets-table tbody td,
.pf-input,
.sf-input,
.sf-select,
.wn-input,
.wn-prefix,
#wd-modal-amount {
  background: var(--aff-violet-grad-deep) !important;
  color: #e5e5e5 !important;
  border-color: var(--aff-home-border) !important;
}

.x1bets-sidebar,
.nav-link,
.nav-group-title,
.sidebar-brand,
.table-wrap,
table.x1bets-table,
tbody,
tr,
.profile-link-section,
.profile-field-wrap,
.pf-label,
.pagination-select,
.profile-banner-select,
.qr-btn,
.btn-reset,
.btn-withdraw,
.wn-field,
.wn-modal-ft,
.x1bets-alert-success,
.x1bets-alert-danger,
.wn-alert.success,
.wn-alert.error {
  background: var(--aff-violet-grad-soft) !important;
}

/* -- FORCE ALL DASHBOARD BACKGROUNDS TO VIOLET GRADIENT -- */
body.aff-dashboard,
body.aff-dashboard .x1bets-app,
body.aff-dashboard .x1bets-right,
body.aff-dashboard .x1bets-main {
  background: var(--aff-home-bg-gradient) !important;
}

body.aff-dashboard .x1bets-sidebar,
body.aff-dashboard .x1bets-header,
body.aff-dashboard .x1bets-tabs-bar,
body.aff-dashboard .bc-card,
body.aff-dashboard .table-wrap,
body.aff-dashboard table,
body.aff-dashboard thead,
body.aff-dashboard tbody,
body.aff-dashboard tr,
body.aff-dashboard td,
body.aff-dashboard th,
body.aff-dashboard .profile-card,
body.aff-dashboard .profile-link-section,
body.aff-dashboard .profile-card-body,
body.aff-dashboard .profile-field-wrap,
body.aff-dashboard .pf-label,
body.aff-dashboard .sf-label,
body.aff-dashboard .wn-modal,
body.aff-dashboard .wn-modal-hd,
body.aff-dashboard .wn-modal-body,
body.aff-dashboard .wn-modal-ft,
body.aff-dashboard .wn-field,
body.aff-dashboard .wn-prefix,
body.aff-dashboard .wn-input,
body.aff-dashboard .x1bets-alert-success,
body.aff-dashboard .x1bets-alert-danger,
body.aff-dashboard .wn-alert.success,
body.aff-dashboard .wn-alert.error,
body.aff-dashboard .nav-link,
body.aff-dashboard .nav-group-title,
body.aff-dashboard .tab-chip,
body.aff-dashboard .sidebar-brand,
body.aff-dashboard .pagination-select,
body.aff-dashboard .profile-banner-select,
body.aff-dashboard .btn-search,
body.aff-dashboard .btn-update,
body.aff-dashboard .btn-reset,
body.aff-dashboard .btn-withdraw,
body.aff-dashboard .qr-btn,
body.aff-dashboard .wn-btn-close,
body.aff-dashboard .wn-btn-update,
body.aff-dashboard #withdraw-modal,
body.aff-dashboard #withdraw-modal > div,
body.aff-dashboard #withdraw-modal button,
body.aff-dashboard #wd-modal-amount,
body.aff-dashboard input,
body.aff-dashboard select,
body.aff-dashboard textarea {
  background: var(--aff-violet-grad-soft) !important;
}

body.aff-dashboard .nav-link:hover,
body.aff-dashboard .nav-link.active,
body.aff-dashboard .nav-group-title:hover,
body.aff-dashboard .tab-chip:hover,
body.aff-dashboard .btn-search:hover,
body.aff-dashboard .btn-update:hover,
body.aff-dashboard .wn-btn-update:hover,
body.aff-dashboard table.x1bets-table tbody tr:hover td {
  background: var(--aff-violet-grad-strong) !important;
}

/* -- FORCE ALL TEXT TO WHITE/GOLD ONLY -- */
body.aff-dashboard,
body.aff-dashboard * {
  color: #ffffff !important;
}

body.aff-dashboard .header-brand,
body.aff-dashboard .header-menu-btn,
body.aff-dashboard .header-user,
body.aff-dashboard .page-title,
body.aff-dashboard .section-inner-title,
body.aff-dashboard .comm-label,
body.aff-dashboard .comm-label.green,
body.aff-dashboard .sidebar-brand .brand-label,
body.aff-dashboard .nav-link i,
body.aff-dashboard .nav-link .nav-icon,
body.aff-dashboard .nav-group-title i,
body.aff-dashboard .header-icon-btn,
body.aff-dashboard .profile-card-hd button,
body.aff-dashboard .btn-search,
body.aff-dashboard .btn-update,
body.aff-dashboard .btn-reset,
body.aff-dashboard .btn-withdraw,
body.aff-dashboard .qr-btn,
body.aff-dashboard .wn-btn-close,
body.aff-dashboard .wn-btn-update,
body.aff-dashboard .pag-btn,
body.aff-dashboard .commission-refresh {
  color: #2277c9 !important;
}

body.aff-dashboard input::placeholder,
body.aff-dashboard textarea::placeholder,
body.aff-dashboard .sf-icon,
body.aff-dashboard .pf-eye,
body.aff-dashboard .tab-chip .close-btn {
  color: #ffffff !important;
  opacity: 1 !important;
}