/* V73 - đồng bộ màu chủ đạo/phụ trên toàn bộ website và trang quản trị */
:root{
  --theme-primary:var(--site-primary,#0caf60);
  --theme-secondary:var(--site-secondary,#2563eb);
  --theme-primary-dark:color-mix(in srgb,var(--theme-primary) 76%,#121212);
  --theme-primary-deep:color-mix(in srgb,var(--theme-primary) 56%,#080808);
  --theme-primary-soft:color-mix(in srgb,var(--theme-primary) 8%,#fff);
  --theme-primary-soft-2:color-mix(in srgb,var(--theme-primary) 15%,#fff);
  --theme-primary-line:color-mix(in srgb,var(--theme-primary) 30%,#e4e9ee);
  --theme-primary-shadow:color-mix(in srgb,var(--theme-primary) 24%,transparent);
  --theme-gradient:linear-gradient(135deg,var(--theme-primary),var(--theme-primary-dark));
  --green:var(--theme-primary)!important;--green-dark:var(--theme-primary-dark)!important;
  --primary:var(--theme-primary)!important;--primary-color:var(--theme-primary)!important;
  --home-green:var(--theme-primary)!important;--home-green-dark:var(--theme-primary-dark)!important;--home-green-soft:var(--theme-primary-soft)!important;
  --mission-green:var(--theme-primary)!important;--mission-green-dark:var(--theme-primary-dark)!important;--mission-green-soft:var(--theme-primary-soft)!important;--mission-green-line:var(--theme-primary-line)!important;
  --notice-green:var(--theme-primary)!important;--notice-green-dark:var(--theme-primary-dark)!important;
  --pf-green:var(--theme-primary)!important;--pf-green-dark:var(--theme-primary-dark)!important;
  --wd-green:var(--theme-primary)!important;--wd-green-dark:var(--theme-primary-dark)!important;
  --wk-green:var(--theme-primary)!important;--wk-border:var(--theme-primary-line)!important;
  --level-primary:var(--theme-primary)!important;--level-secondary:var(--theme-secondary)!important;
  --gr-green:var(--theme-primary)!important;--gr-green-dark:var(--theme-primary-dark)!important;
  --eo-green:var(--theme-primary)!important;--eo-green-2:color-mix(in srgb,var(--theme-primary) 68%,var(--theme-secondary))!important;
  --color-customColor:var(--theme-primary)!important;
  accent-color:var(--theme-primary);
}

/* Bootstrap / thành phần dùng chung */
.text-success,.link-success,.text-primary{color:var(--theme-primary)!important}
.bg-success,.bg-primary,.badge-success,.badge-primary,.page-item.active .page-link,.nav-pills .nav-link.active,.settings-tab.active{background-color:var(--theme-primary)!important;border-color:var(--theme-primary)!important}
.btn-success,.btn-primary,.btn-theme,[class*="button--primary"],[class*="submit--primary"]{color:#fff!important;background:var(--theme-gradient)!important;border-color:var(--theme-primary)!important;box-shadow:0 10px 24px var(--theme-primary-shadow)!important}
.btn-outline-success,.btn-outline-primary{color:var(--theme-primary)!important;border-color:var(--theme-primary)!important}
.btn-outline-success:hover,.btn-outline-primary:hover{color:#fff!important;background:var(--theme-primary)!important}
a:not(.btn):not(.nav-link):hover{color:var(--theme-primary-dark)}
.form-control:focus,.form-select:focus,input:focus,select:focus,textarea:focus{border-color:var(--theme-primary)!important;box-shadow:0 0 0 .2rem var(--theme-primary-soft-2)!important}
.form-check-input:checked,.custom-control-input:checked~.custom-control-label::before,[role="switch"][aria-checked="true"]{background-color:var(--theme-primary)!important;border-color:var(--theme-primary)!important}
.progress-bar,.page-link.active{background:var(--theme-primary)!important}

/* Menu người dùng + icon */
.member-nav-list .dash-link.is-active,.member-nav-list .dash-link.active,.dash-sidebar .dash-link.is-active,.dash-sidebar .dash-link.active,
.member-sidebar .nav-link.active,.dash-sidebar .nav-link.active{color:#fff!important;background:var(--theme-gradient)!important;box-shadow:0 12px 26px var(--theme-primary-shadow)!important}
.member-nav-list .dash-link:hover,.dash-sidebar .dash-link:hover{color:var(--theme-primary-dark)!important;background:var(--theme-primary-soft)!important}
.member-nav-list .dash-link.is-active .dash-link-icon,.member-nav-list .dash-link.active .dash-link-icon,
.member-nav-list .dash-link.is-active i,.member-nav-list .dash-link.active i{color:var(--theme-primary)!important;background:#fff!important}
.member-nav-list .dash-link:not(.is-active):not(.active) .dash-link-icon,.member-nav-list .dash-link:not(.is-active):not(.active)>i,
.member-account-card__arrow,.member-nav-badge,.member-nav-live{color:var(--theme-primary)!important;background:var(--theme-primary-soft)!important}
.member-account-card__meta--rank strong,.member-account-card__meta--balance strong{color:var(--theme-primary)!important}

/* Tổng quan, thông báo, nhiệm vụ */
.announcebar.site-announcement-bar,.home-welcome,.home-action--primary,.home-task-card__button,.home-welcome__cta,.home-account-card__link,
.site-notice-modal .modal-header,.site-notice-understood,.mission-start-button:not(.mission-start-button--vip),.mission-primary-button:not(.mission-vip-primary-button),
.weekly-card__reward button{background:var(--theme-gradient)!important;border-color:var(--theme-primary)!important;box-shadow:0 10px 26px var(--theme-primary-shadow)!important}
.site-notice,.site-notice--success{--notice-accent:var(--theme-primary)!important;border-color:var(--theme-primary-line)!important;background:linear-gradient(135deg,var(--theme-primary-soft),#fff 76%)!important}
.site-notice__icon,.site-notice--success .site-notice__icon{color:#fff!important;background:var(--theme-gradient)!important;box-shadow:0 9px 22px var(--theme-primary-shadow)!important}
.site-notice__icon svg{stroke:#fff!important;fill:none!important}
.home-page-head__eyebrow,.home-panel-kicker:not(.home-panel-kicker--vip),.home-panel__head a,.home-preview-head>a,.home-task-card__reward,
.home-task-card__attempt b,.home-task-card__meta i,.home-weekly-card strong,.home-weekly-card>a,.mission-reward,.mission-today b,.mission-security,
.weekly-panel__head span,.weekly-card__reward strong{color:var(--theme-primary)!important}
.home-task-card__tag,.home-stat__icon,.home-weekly-card__icon,.mission-page-badge,.mission-provider,.mission-summary-grid article>span,
.weekly-card__icon,.level-stat-grid article>span,.profile-stat-icon{color:var(--theme-primary)!important;background:var(--theme-primary-soft)!important;border-color:var(--theme-primary-line)!important}
.home-task-card__progress span.is-completed,.home-weekly-card__progress i,.mission-attempts span.is-completed,.mission-progress-dots span.is-complete,
.weekly-progress i,.profile-rank-card__bar i,.level-progress i{background:linear-gradient(90deg,var(--theme-primary),color-mix(in srgb,var(--theme-primary) 58%,var(--theme-secondary)))!important}
.home-task-card:hover,.home-stat:hover,.home-weekly-card:hover,.mission-card:hover,.weekly-card:hover{border-color:var(--theme-primary-line)!important;box-shadow:0 14px 32px var(--theme-primary-shadow)!important}

/* Affiliate + lịch sử */
.affiliate31-page{--affiliate-primary:var(--theme-primary)!important}
.affiliate31-hero,.affiliate31-history-head{border-color:var(--theme-primary-line)!important;background:linear-gradient(135deg,var(--theme-primary-soft),#fff 50%,color-mix(in srgb,var(--theme-secondary) 8%,#fff))!important;box-shadow:0 20px 55px var(--theme-primary-shadow)!important}
.affiliate31-hero:after,.affiliate31-history-head:after{border-color:color-mix(in srgb,var(--theme-primary) 9%,transparent)!important}
.affiliate31-kicker,.affiliate31-card-head small,.affiliate31-card-head>a,.affiliate31-hero h1 em,.affiliate31-history-head h1 em,.affiliate31-money,
.affiliate31-empty i{color:var(--theme-primary)!important}
.affiliate31-hero-card,.affiliate31-link button,.affiliate31-steps article>b,.affiliate31-search button,.affiliate31-pagination a.is-active{color:#fff!important;background:var(--theme-gradient)!important;border-color:var(--theme-primary)!important;box-shadow:0 12px 28px var(--theme-primary-shadow)!important}
.affiliate31-stats .is-green,.affiliate31-card-head>span,.affiliate31-status{color:var(--theme-primary)!important;background:var(--theme-primary-soft)!important}
.affiliate31-chart-legend .is-members,.affiliate31-status i{background:var(--theme-primary)!important}
.affiliate31-card,.affiliate31-link,.affiliate31-search,.affiliate31-pagination a{border-color:var(--theme-primary-line)!important}

/* Giftcode, rút tiền, lịch sử nhiệm vụ, cấp bậc */
.giftcode-page,.gc-history-page,.withdrawal-page,.withdraw-page,.mission-history-page,.member-level-page,.profile-page{--primary:var(--theme-primary)!important;--green:var(--theme-primary)!important}
.giftcode-submit,.gc-history-head__action,.withdraw-submit,.withdraw-history-filter button,.profile-panel button[type="submit"],.profile-hero__rank-link,.level-action{
  color:#fff!important;background:var(--theme-gradient)!important;border-color:var(--theme-primary)!important;box-shadow:0 12px 26px var(--theme-primary-shadow)!important
}
.giftcode-icon,.gc-success-pill,.saved-method-icon,.recent-method,.withdraw-method.is-active,.withdraw-verification__icon,.mission-history-icon{
  color:var(--theme-primary)!important;background:var(--theme-primary-soft)!important;border-color:var(--theme-primary-line)!important
}
.giftcode-card:hover,.gc-history-item:hover,.withdraw-card:hover,.withdraw-method-tabs button.is-active,.mission-history-item:hover,.level-card.is-current{
  border-color:var(--theme-primary)!important;box-shadow:0 14px 30px var(--theme-primary-shadow)!important
}
.gc-history-pagination a.active,.withdraw-pagination a.active,.mission-history-pagination a.active{color:#fff!important;background:var(--theme-primary)!important;border-color:var(--theme-primary)!important}

/* Chẵn lẻ / Tài xỉu */
.evenodd-page,.taixiu-page,.eo31-page{--gr-green:var(--theme-primary)!important;--gr-green-dark:var(--theme-primary-dark)!important;--eo-green:var(--theme-primary)!important}
.game-compact-head,.eo31-topbar,.game-room-header{background:var(--theme-gradient)!important;box-shadow:0 16px 36px var(--theme-primary-shadow)!important}
.game-balance-pill,.game-switcher a.is-active,.eo31-switch a.is-active,.evenodd-play-button,.eo31-play{background:var(--theme-gradient)!important;border-color:var(--theme-primary)!important;box-shadow:0 12px 28px var(--theme-primary-shadow)!important}
.game-compact-head__icon,.evenodd-live i,.eo31-live-dot{color:var(--theme-primary)!important;background:var(--theme-primary-soft)!important;box-shadow:0 0 0 5px var(--theme-primary-soft-2)!important}
.evenodd-choice[aria-pressed="true"],.evenodd-choice.is-selected{border-color:var(--theme-primary)!important;box-shadow:0 0 0 4px var(--theme-primary-soft-2),0 15px 32px var(--theme-primary-shadow)!important}
.evenodd-quick-bets button:hover,.evenodd-quick-bets button.is-active,.evenodd-history__head span,.eo-positive{color:var(--theme-primary)!important;border-color:var(--theme-primary)!important;background:var(--theme-primary-soft)!important}

/* Admin */
.main-sidebar .nav-sidebar>.nav-item>.nav-link.active,.main-sidebar .nav-treeview>.nav-item>.nav-link.active,
.admin-page .btn-success,.affiliate-admin-page .btn-success,.task-admin-page .btn-success,.content-wrapper .btn-primary,.content-wrapper .btn-success{
  color:#fff!important;background:var(--theme-gradient)!important;border-color:var(--theme-primary)!important;box-shadow:0 10px 24px var(--theme-primary-shadow)!important
}
.main-sidebar .nav-link.active .nav-icon,.main-sidebar .nav-link.active i{color:#fff!important}
.content-wrapper .text-success,.content-wrapper a.text-success,.content-wrapper .nav-tabs .nav-link.active{color:var(--theme-primary)!important}
.content-wrapper .badge-success,.content-wrapper .page-item.active .page-link{background:var(--theme-primary)!important;border-color:var(--theme-primary)!important}
.content-wrapper .card-primary.card-outline,.content-wrapper .card-success.card-outline{border-top-color:var(--theme-primary)!important}

/* Auth */
.auth-page{--auth-primary:var(--theme-primary)!important;--auth-primary-dark:var(--theme-primary-dark)!important;--auth-primary-soft:var(--theme-primary-soft)!important;--auth-primary-line:var(--theme-primary-line)!important}
.auth-kicker,.auth-brand h1 strong,.auth-brand-footer a,.auth-tab.active,.auth-input-wrap>i{color:var(--theme-primary)!important}
.auth-submit,.auth-feature-icon,.auth-stat-icon{background:var(--theme-gradient)!important;box-shadow:0 10px 25px var(--theme-primary-shadow)!important}
.auth-tab.active,.auth-input-wrap:focus-within,.auth-feature:hover,.auth-stat:hover{border-color:var(--theme-primary-line)!important;box-shadow:0 10px 28px var(--theme-primary-shadow)!important}

@supports not (color:color-mix(in srgb,#000,#fff)){
  :root{--theme-primary-dark:var(--theme-primary);--theme-primary-deep:var(--theme-primary);--theme-primary-soft:#f5f5f5;--theme-primary-soft-2:#eeeeee;--theme-primary-line:#dddddd;--theme-primary-shadow:rgba(0,0,0,.12)}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* V74 - độ tương phản tự động và sửa icon đăng nhập/đăng ký bị tối */
:root{
  --theme-on-primary:var(--site-primary-contrast,#fff);
  --theme-on-secondary:var(--site-secondary-contrast,#fff);
}
.btn-success,.btn-primary,.btn-theme,[class*="button--primary"],[class*="submit--primary"],
.content-wrapper .btn-primary,.content-wrapper .btn-success,.auth-submit,
.home-action--primary,.home-task-card__button,.home-welcome__cta,.home-account-card__link,
.site-notice-understood,.mission-start-button:not(.mission-start-button--vip),
.mission-primary-button:not(.mission-vip-primary-button),.weekly-card__reward button{
  color:var(--theme-on-primary)!important;
}
body.auth-page .auth-feature-icon,
body.auth-page .auth-stat-icon{
  color:var(--theme-on-primary)!important;
  border-color:color-mix(in srgb,var(--theme-on-primary) 24%,transparent)!important;
  background:var(--theme-gradient)!important;
  box-shadow:0 12px 28px var(--theme-primary-shadow),inset 0 1px 0 color-mix(in srgb,var(--theme-on-primary) 28%,transparent)!important;
}
body.auth-page .auth-feature-icon svg,
body.auth-page .auth-stat-icon svg,
body.auth-page .auth-feature-icon svg *,
body.auth-page .auth-stat-icon svg *{
  fill:none!important;
  stroke:currentColor!important;
}
body.auth-page .auth-tab:hover .auth-tab-icon,
body.auth-page .auth-tab.active .auth-tab-icon{
  color:var(--theme-on-primary)!important;
  border-color:color-mix(in srgb,var(--theme-on-primary) 28%,transparent)!important;
  background:var(--theme-gradient)!important;
}
body.auth-page .auth-tab:hover .auth-tab-icon svg,
body.auth-page .auth-tab.active .auth-tab-icon svg,
body.auth-page .auth-tab:hover .auth-tab-icon svg *,
body.auth-page .auth-tab.active .auth-tab-icon svg *{
  fill:none!important;
  stroke:currentColor!important;
}
body.auth-page .auth-submit .app-spinner{border-top-color:var(--theme-on-primary)!important}
body.auth-page .auth-card{
  border-color:color-mix(in srgb,var(--theme-primary) 15%,#dce5ee)!important;
  box-shadow:0 26px 72px color-mix(in srgb,var(--theme-primary) 13%,rgba(15,23,42,.16))!important;
}
body.auth-page .auth-feature:hover .auth-feature-icon,
body.auth-page .auth-feature.is-icon-active .auth-feature-icon,
body.auth-page .auth-stat:hover .auth-stat-icon,
body.auth-page .auth-stat.is-icon-active .auth-stat-icon{
  box-shadow:0 16px 34px color-mix(in srgb,var(--theme-primary) 30%,transparent),inset 0 1px 0 color-mix(in srgb,var(--theme-on-primary) 30%,transparent)!important;
}
