/* ALLANDRICH Final Forced Design System
   Loaded after page content to override old Bootstrap/light page styles. */
:root{
  --ar-bg:#050506;
  --ar-surface:#0b0b0d;
  --ar-surface-2:#111113;
  --ar-surface-3:#17130a;
  --ar-gold:#ffd35a;
  --ar-gold-2:#f0a91f;
  --ar-text:#f8fafc;
  --ar-muted:#b8bcc6;
  --ar-border:rgba(255,211,90,.22);
}
html, body{background:var(--ar-bg)!important;color:var(--ar-text)!important;}
body .bg-white,body .bg-light,body .bg-body,body .bg-body-tertiary,body .bg-transparent.card-header,
body .card,body .card-body,body .card-footer,body .modal-content,body .offcanvas,body .dropdown-menu,
body .list-group,body .list-group-item,body .accordion-item,body .accordion-button,
body .filter-card,body .reward-panel,body .queue-panel,body .flp-card,body .queue-kpi,body .queue-card-v3,
body .cashback-stat-card,body .queue-cashback-card,body .cashback-ticket,body .ticket-meta div,
body .reward-stat-card,body .stat-card,body .deposit-summary-card,body .deposit-card,body .deposit-quick-item,body .deposit-mobile-card,
body .bg-white *, body .bg-light *{
  background-color:transparent;
}
body .card,body .card-body,body .modal-content,body .offcanvas,body .dropdown-menu,
body .list-group-item,body .accordion-item,body .filter-card,body .reward-panel,body .queue-panel,body .flp-card,
body .queue-kpi,body .queue-card-v3,body .cashback-stat-card,body .queue-cashback-card,body .cashback-ticket,
body .ticket-meta div,body .reward-stat-card,body .stat-card,body .deposit-summary-card,body .deposit-card,body .deposit-quick-item,body .deposit-mobile-card,
body .admin-v2-card,body .admin-v2-data-card,body .admin-v2-table-wrap{
  background:linear-gradient(180deg,rgba(20,20,22,.98),rgba(7,7,8,.98))!important;
  color:var(--ar-text)!important;
  border:1px solid var(--ar-border)!important;
  box-shadow:0 18px 48px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.035)!important;
}
body .card-header,body .modal-header,body .modal-footer,body .accordion-header .accordion-button,
body .queue-panel-head,body .queue-card-top,body .reward-panel-header,body .queue-card-head{
  background:linear-gradient(180deg,rgba(36,28,10,.98),rgba(13,13,15,.98))!important;
  color:var(--ar-gold)!important;
  border-color:var(--ar-border)!important;
}
body h1,body h2,body h3,body h4,body h5,body h6,body .h1,body .h2,body .h3,body .h4,body .h5,body .h6,
body .card-title,body .fw-bold,body strong,body label,body .form-label,body .leader-name,body .reward-stat-value,
body .queue-kpi-value,body .cashback-stat-value,body .deposit-title,body .admin-v2-card-title,body .admin-v2-card-value{
  color:var(--ar-text)!important;
}
body p,body small,body .small,body .text-muted,body .form-text,body .leader-meta,body .reward-stat-label,
body .queue-kpi-label,body .deposit-muted,body .deposit-mobile-label,body .admin-v2-card-note{
  color:var(--ar-muted)!important;
  opacity:1!important;
}
body .text-dark:not(.badge), body .card .text-dark, body .card-body.text-dark, body .bg-white.text-dark, body .bg-light.text-dark{color:var(--ar-text)!important;}
body .text-primary, body .text-warning, body a:not(.btn):not(.nav-link):not(.dropdown-item), body .deposit-title i{color:var(--ar-gold)!important;}
body .border, body .border-top, body .border-bottom, body .border-start, body .border-end{border-color:rgba(255,211,90,.16)!important;}
/* Tables */
body .table-responsive,body .table-wrap,body .admin-v2-table-wrap{
  background:#070708!important;
  border:1px solid var(--ar-border)!important;
  border-radius:18px!important;
  overflow:auto!important;
}
body table,body .table,body .table-dark-custom{
  background:#070708!important;
  color:var(--ar-text)!important;
  border-color:rgba(255,211,90,.14)!important;
  --bs-table-bg:#070708!important;
  --bs-table-color:#f8fafc!important;
  --bs-table-striped-bg:#101012!important;
  --bs-table-striped-color:#f8fafc!important;
  --bs-table-hover-bg:rgba(255,211,90,.085)!important;
  --bs-table-hover-color:#fff!important;
  --bs-table-border-color:rgba(255,211,90,.14)!important;
}
body table thead,body table thead tr,body table thead th,body .table thead,body .table thead tr,body .table thead th,
body .table-light,body thead.table-light,body .table > thead > tr > th{
  background:linear-gradient(180deg,#241c0a,#0d0d0e)!important;
  color:var(--ar-gold)!important;
  border-color:rgba(255,211,90,.22)!important;
  text-transform:uppercase!important;
  letter-spacing:.055em!important;
  font-weight:900!important;
}
body table tbody,body table tbody tr,body table tbody td,body table tbody th,
body .table tbody,body .table tbody tr,body .table tbody td,body .table tbody th,
body .table > :not(caption) > * > *{
  background-color:#0b0b0c!important;
  color:var(--ar-text)!important;
  border-color:rgba(255,211,90,.13)!important;
  box-shadow:none!important;
}
body table tbody tr:nth-child(even) td,body .table tbody tr:nth-child(even) td{background-color:#111113!important;}
body table tbody tr:hover td,body .table tbody tr:hover td{background-color:#18130a!important;color:#fff!important;}
body table .text-muted,body table small,body table .small{color:var(--ar-muted)!important;}
/* Forms */
body .form-control,body .form-select,body .input-group-text,body input:not([type=checkbox]):not([type=radio]),body select,body textarea{
  background:#101012!important;
  color:#fff!important;
  border:1px solid rgba(255,211,90,.28)!important;
  box-shadow:none!important;
}
body .form-control::placeholder,body input::placeholder,body textarea::placeholder{color:#858a96!important;}
body .form-control:focus,body .form-select:focus,body input:focus,body textarea:focus{
  border-color:rgba(255,211,90,.62)!important;
  box-shadow:0 0 0 .2rem rgba(255,211,90,.14)!important;
}
/* Buttons */
body .btn-primary,body .btn-warning,body .btn-gold,body button.btn-primary,body button.btn-warning{
  background:linear-gradient(135deg,var(--ar-gold),var(--ar-gold-2))!important;
  border-color:rgba(255,211,90,.60)!important;
  color:#070707!important;
  font-weight:900!important;
}
body .btn-outline-primary,body .btn-outline-warning,body .btn-outline-secondary,body .btn-light{
  background:rgba(255,211,90,.06)!important;
  border-color:rgba(255,211,90,.48)!important;
  color:var(--ar-gold)!important;
  font-weight:800!important;
}
body .btn-secondary{background:#151515!important;border-color:rgba(255,211,90,.28)!important;color:var(--ar-text)!important;}
/* Badges */
body .badge{border:1px solid rgba(255,255,255,.10)!important;font-weight:800!important;}
body .badge.bg-warning,body .bg-warning.text-dark{background:linear-gradient(135deg,var(--ar-gold),var(--ar-gold-2))!important;color:#111!important;}
body .badge.bg-light,body .bg-light.text-dark{background:rgba(255,211,90,.12)!important;color:var(--ar-gold)!important;}
body .badge.bg-info,body .bg-info.text-dark{background:rgba(59,130,246,.18)!important;color:#a8c7ff!important;}
/* Alerts */
body .alert{border-radius:18px!important;border-color:rgba(255,211,90,.22)!important;}
body .alert-info,body .alert-light{background:linear-gradient(180deg,rgba(20,20,22,.98),rgba(7,7,8,.98))!important;color:var(--ar-text)!important;}
body .alert-warning{background:linear-gradient(180deg,rgba(55,39,8,.88),rgba(18,14,8,.96))!important;color:#ffe7a3!important;}
body .alert-success{background:linear-gradient(180deg,rgba(12,42,24,.90),rgba(7,16,10,.96))!important;color:#8ef1a7!important;}
body .alert-danger{background:linear-gradient(180deg,rgba(61,12,16,.90),rgba(20,8,10,.96))!important;color:#ffb4b4!important;}
/* Public/custom page components */
body .queue-empty,body .empty-queue,body .filter-chip,body .stat-pill,body .queue-mini-metric,body .recognition-row,
body .leader-row,body .queue-badge,body .rank-badge{
  background:rgba(255,211,90,.055)!important;
  color:var(--ar-text)!important;
  border-color:rgba(255,211,90,.18)!important;
}
body .queue-progress-track,body .queue-progress,body .reward-progress,body .progress{background:#171717!important;}
body .progress-bar,body .queue-progress-fill,body .queue-progress span{background:linear-gradient(90deg,var(--ar-gold),var(--ar-gold-2))!important;}
/* Timeline icons etc */
body .timeline-icon.bg-white{background:#101012!important;color:var(--ar-gold)!important;border-color:var(--ar-border)!important;}

/* =====================================================================
   ALLANDRICH DESIGN SYSTEM - FINAL FORM & BUTTON CONTROL PASS
   Applies to public, user and admin pages. Prevents Bootstrap defaults
   from producing light/blue/gray controls inside the black-gold theme.
   ===================================================================== */
:root{
  --ar-ds-bg:#070708;
  --ar-ds-surface:#0d0d0f;
  --ar-ds-surface-2:#141416;
  --ar-ds-surface-3:#1a1a1d;
  --ar-ds-gold:#ffd35a;
  --ar-ds-gold-2:#b8872f;
  --ar-ds-gold-3:#fff0b8;
  --ar-ds-text:#f8fafc;
  --ar-ds-muted:#a1a1aa;
  --ar-ds-border:rgba(255,211,90,.24);
  --ar-ds-border-strong:rgba(255,211,90,.48);
}

/* Buttons */
body .btn,
body button,
body input[type="submit"],
body input[type="button"],
body input[type="reset"],
body a.btn{
  border-radius:999px!important;
  font-weight:850!important;
  letter-spacing:.01em!important;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease!important;
}
body .btn:hover,
body button:hover,
body input[type="submit"]:hover,
body input[type="button"]:hover,
body input[type="reset"]:hover,
body a.btn:hover{
  transform:translateY(-1px)!important;
}
body .btn-primary,
body .btn-warning,
body .btn-light,
body .btn-dark,
body .btn-gold,
body .allandrich-btn.btn-primary,
body .allandrich-btn.btn-warning,
body .allandrich-btn.btn-light,
body .allandrich-btn.btn-dark,
body button.btn-primary,
body button.btn-warning,
body button.btn-light,
body button.btn-dark,
body input[type="submit"].btn-primary,
body input[type="submit"].btn-warning,
body input[type="submit"].btn-light,
body input[type="submit"].btn-dark{
  background:linear-gradient(135deg,var(--ar-ds-gold),var(--ar-ds-gold-2))!important;
  border:1px solid rgba(255,211,90,.70)!important;
  color:#070707!important;
  box-shadow:0 10px 28px rgba(184,135,47,.22), inset 0 1px 0 rgba(255,255,255,.32)!important;
}
body .btn-primary:hover,
body .btn-warning:hover,
body .btn-light:hover,
body .btn-dark:hover,
body .btn-gold:hover{
  background:linear-gradient(135deg,var(--ar-ds-gold-3),var(--ar-ds-gold))!important;
  color:#050505!important;
  box-shadow:0 16px 38px rgba(255,211,90,.26)!important;
}
body .btn-outline-primary,
body .btn-outline-warning,
body .btn-outline-light,
body .btn-outline-secondary,
body .btn-outline-dark,
body .btn-outline-info,
body .btn-outline-success,
body .allandrich-btn.btn-outline-primary,
body .allandrich-btn.btn-outline-warning,
body .allandrich-btn.btn-outline-light,
body .allandrich-btn.btn-outline-secondary,
body .allandrich-btn.btn-outline-dark,
body .allandrich-btn.btn-outline-info,
body .allandrich-btn.btn-outline-success{
  background:rgba(255,211,90,.055)!important;
  border:1px solid rgba(255,211,90,.45)!important;
  color:var(--ar-ds-gold)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}
body .btn-outline-primary:hover,
body .btn-outline-warning:hover,
body .btn-outline-light:hover,
body .btn-outline-secondary:hover,
body .btn-outline-dark:hover,
body .btn-outline-info:hover,
body .btn-outline-success:hover{
  background:rgba(255,211,90,.16)!important;
  border-color:rgba(255,211,90,.72)!important;
  color:#fff2bf!important;
  box-shadow:0 12px 30px rgba(255,211,90,.13)!important;
}
body .btn-success{
  background:linear-gradient(135deg,#36d77a,#15803d)!important;
  border-color:rgba(54,215,122,.55)!important;
  color:#04110a!important;
  box-shadow:0 10px 26px rgba(34,197,94,.16)!important;
}
body .btn-danger{
  background:linear-gradient(135deg,#ff7070,#b91c1c)!important;
  border-color:rgba(255,112,112,.55)!important;
  color:#fff!important;
  box-shadow:0 10px 26px rgba(239,68,68,.16)!important;
}
body .btn-info{
  background:linear-gradient(135deg,#7dd3fc,#2563eb)!important;
  border-color:rgba(125,211,252,.55)!important;
  color:#06101c!important;
  box-shadow:0 10px 26px rgba(59,130,246,.16)!important;
}
body .btn-secondary,
body .btn-default{
  background:linear-gradient(180deg,#1b1b1e,#0d0d0f)!important;
  border:1px solid rgba(255,211,90,.30)!important;
  color:var(--ar-ds-text)!important;
}
body .btn-link{
  color:var(--ar-ds-gold)!important;
  text-decoration:none!important;
}
body .btn:disabled,
body .btn.disabled,
body button:disabled,
body input:disabled,
body select:disabled,
body textarea:disabled{
  opacity:.58!important;
  cursor:not-allowed!important;
  transform:none!important;
  box-shadow:none!important;
}

/* Form controls */
body .form-control,
body .form-select,
body .form-control-lg,
body .form-control-sm,
body .form-select-lg,
body .form-select-sm,
body .allandrich-input,
body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body select,
body textarea,
body .input-group-text,
body .choices__inner,
body .select2-container .select2-selection{
  background:linear-gradient(180deg,#111114,#09090a)!important;
  color:var(--ar-ds-text)!important;
  border:1px solid rgba(255,211,90,.30)!important;
  border-radius:14px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}
body .input-group .form-control,
body .input-group .form-select{border-radius:14px!important;}
body .input-group-text{
  color:var(--ar-ds-gold)!important;
  font-weight:800!important;
  background:linear-gradient(180deg,#1a1508,#0b0b0c)!important;
}
body .form-control:focus,
body .form-select:focus,
body .allandrich-input:focus,
body input:focus,
body select:focus,
body textarea:focus,
body .select2-container .select2-selection:focus{
  background:#0d0d0f!important;
  color:#fff!important;
  border-color:rgba(255,211,90,.78)!important;
  outline:none!important;
  box-shadow:0 0 0 .22rem rgba(255,211,90,.14), inset 0 1px 0 rgba(255,255,255,.05)!important;
}
body .form-control::placeholder,
body .allandrich-input::placeholder,
body input::placeholder,
body textarea::placeholder{
  color:#7b808a!important;
  opacity:1!important;
}
body .form-label,
body label,
body legend,
body .col-form-label{
  color:var(--ar-ds-text)!important;
  font-weight:800!important;
}
body .form-text,
body .invalid-feedback,
body .valid-feedback{
  color:var(--ar-ds-muted)!important;
}
body .form-control.is-invalid,
body .was-validated .form-control:invalid,
body .form-select.is-invalid,
body .was-validated .form-select:invalid{
  border-color:#ef4444!important;
  box-shadow:0 0 0 .2rem rgba(239,68,68,.12)!important;
}
body .form-control.is-valid,
body .was-validated .form-control:valid,
body .form-select.is-valid,
body .was-validated .form-select:valid{
  border-color:#22c55e!important;
  box-shadow:0 0 0 .2rem rgba(34,197,94,.12)!important;
}
body input[type="file"].form-control{
  background:#0f0f11!important;
  color:var(--ar-ds-muted)!important;
}
body input[type="file"]::file-selector-button{
  background:linear-gradient(135deg,var(--ar-ds-gold),var(--ar-ds-gold-2))!important;
  border:0!important;
  color:#070707!important;
  font-weight:900!important;
  border-radius:10px!important;
  margin-right:12px!important;
}
body input[type="date"],body input[type="time"],body input[type="datetime-local"],body input[type="month"],body input[type="week"]{
  color-scheme:dark!important;
}
body select option{
  background:#0d0d0f!important;
  color:#fff!important;
}

/* Checkbox, radio, switches, ranges */
body .form-check-input,
body input[type="checkbox"],
body input[type="radio"]{
  background-color:#0d0d0f!important;
  border:1px solid rgba(255,211,90,.45)!important;
  box-shadow:none!important;
}
body .form-check-input:checked,
body input[type="checkbox"]:checked,
body input[type="radio"]:checked{
  background-color:var(--ar-ds-gold)!important;
  border-color:var(--ar-ds-gold)!important;
}
body .form-check-input:focus,
body input[type="checkbox"]:focus,
body input[type="radio"]:focus{
  border-color:rgba(255,211,90,.78)!important;
  box-shadow:0 0 0 .2rem rgba(255,211,90,.14)!important;
}
body .form-check-label{color:var(--ar-ds-text)!important;}
body input[type="range"]{accent-color:var(--ar-ds-gold)!important;}

/* Search/filter/action bars */
body .search-box,
body .filter-box,
body .filter-bar,
body .toolbar,
body .action-bar,
body .dataTables_filter input,
body .dataTables_length select{
  background:linear-gradient(180deg,#111114,#09090a)!important;
  color:var(--ar-ds-text)!important;
  border-color:rgba(255,211,90,.26)!important;
}

/* Modals/offcanvas/dropdowns */
body .modal-content,
body .offcanvas,
body .dropdown-menu{
  background:linear-gradient(180deg,#141416,#070708)!important;
  color:var(--ar-ds-text)!important;
  border:1px solid rgba(255,211,90,.24)!important;
  box-shadow:0 24px 80px rgba(0,0,0,.70)!important;
}
body .modal-header,
body .modal-footer,
body .offcanvas-header{
  border-color:rgba(255,211,90,.18)!important;
}
body .btn-close,
body .btn-close-white{
  filter:invert(1) grayscale(1) brightness(1.7)!important;
  opacity:.86!important;
}
body .dropdown-item{color:var(--ar-ds-text)!important;}
body .dropdown-item:hover,
body .dropdown-item:focus{
  background:rgba(255,211,90,.12)!important;
  color:var(--ar-ds-gold)!important;
}

/* Pagination, tabs, nav pills */
body .pagination .page-link,
body .page-link{
  background:#101012!important;
  color:var(--ar-ds-gold)!important;
  border-color:rgba(255,211,90,.22)!important;
}
body .pagination .page-item.active .page-link,
body .page-item.active .page-link{
  background:linear-gradient(135deg,var(--ar-ds-gold),var(--ar-ds-gold-2))!important;
  color:#070707!important;
  border-color:rgba(255,211,90,.70)!important;
}
body .nav-tabs,
body .nav-pills{border-color:rgba(255,211,90,.18)!important;}
body .nav-tabs .nav-link,
body .nav-pills .nav-link{
  color:var(--ar-ds-muted)!important;
  border-color:transparent!important;
  border-radius:999px!important;
}
body .nav-tabs .nav-link.active,
body .nav-pills .nav-link.active{
  background:rgba(255,211,90,.13)!important;
  color:var(--ar-ds-gold)!important;
  border-color:rgba(255,211,90,.28)!important;
}

/* Read-only/plain values and code blocks */
body .form-control-plaintext,
body output,
body code,
body pre{
  color:var(--ar-ds-gold)!important;
  background:rgba(255,211,90,.08)!important;
  border:1px solid rgba(255,211,90,.18)!important;
  border-radius:10px!important;
  padding:.15rem .45rem!important;
}

/* ALLANDRICH FORM/BUTTON FINAL PATCH 2026-07-08 */
:root{
  --ar-gold:#ffd35a;
  --ar-gold-2:#f4b42a;
  --ar-bg:#050506;
  --ar-surface:#0b0b0d;
  --ar-surface-2:#141416;
  --ar-text:#f8fafc;
  --ar-muted:#b8bcc6;
}
body .btn, body button, body input[type="submit"], body input[type="button"], body a.btn{
  border-radius:12px!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
  box-shadow:0 10px 24px rgba(0,0,0,.25)!important;
}
body .btn-primary, body .btn-warning, body .btn-success, body .btn-info,
body .btn-outline-primary, body .btn-outline-warning, body .allandrich-btn,
body button.btn-primary, body button.btn-warning, body button.btn-outline-primary,
body a.btn-primary, body a.btn-warning, body a.btn-outline-primary{
  background:linear-gradient(135deg,var(--ar-gold),var(--ar-gold-2) 58%,#c78300)!important;
  color:#080808!important;
  border:1px solid rgba(255,211,90,.82)!important;
  text-shadow:none!important;
}
body .btn-primary:hover, body .btn-warning:hover, body .btn-outline-primary:hover, body .allandrich-btn:hover{
  filter:brightness(1.08)!important;
  transform:translateY(-1px)!important;
  color:#000!important;
}
body .btn-secondary, body .btn-outline-secondary, body .btn-dark, body .btn-light{
  background:linear-gradient(180deg,#171719,#0a0a0b)!important;
  color:var(--ar-gold)!important;
  border:1px solid rgba(255,211,90,.30)!important;
}
body .form-control, body .form-select, body textarea, body select,
body input[type="text"], body input[type="email"], body input[type="number"], body input[type="password"], body input[type="url"], body input[type="date"], body input[type="search"],
body .input-group-text{
  background:linear-gradient(180deg,#131315,#09090a)!important;
  color:var(--ar-text)!important;
  border:1px solid rgba(255,211,90,.32)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 0 0 transparent!important;
}
body .form-control:focus, body .form-select:focus, body textarea:focus,
body input:focus, body select:focus{
  background:#0b0b0d!important;
  color:#fff!important;
  border-color:rgba(255,211,90,.78)!important;
  box-shadow:0 0 0 .2rem rgba(255,211,90,.14)!important;
}
body .form-control::placeholder, body input::placeholder, body textarea::placeholder{color:#737985!important;opacity:1!important;}
body .form-label{color:var(--ar-gold)!important;font-weight:800!important;}
body .form-text, body .text-muted{color:var(--ar-muted)!important;opacity:1!important;}
body .bg-body-secondary, body .bg-light, body .bg-white{
  background:linear-gradient(180deg,#131315,#080809)!important;
  color:var(--ar-text)!important;
  border:1px solid rgba(255,211,90,.22)!important;
}
body .card, body .allandrich-card{
  background:linear-gradient(180deg,#151517,#080809)!important;
  color:var(--ar-text)!important;
  border:1px solid rgba(255,211,90,.24)!important;
}
body .card-header, body .allandrich-card-header{
  background:linear-gradient(180deg,#241c0a,#0b0b0c)!important;
  color:var(--ar-gold)!important;
  border-color:rgba(255,211,90,.22)!important;
  font-weight:900!important;
}
body .allandrich-value-box{
  background:linear-gradient(180deg,#131315,#080809)!important;
  color:var(--ar-text)!important;
  border:1px solid rgba(255,211,90,.24)!important;
  border-radius:12px!important;
  padding:.65rem .85rem!important;
}
body .badge.bg-warning, body .badge.bg-warning-soft, body .badge.bg-primary-soft,
body .badge.bg-info, body .badge.bg-secondary, body .badge.bg-success, body .badge.bg-danger,
body .allandrich-badge{
  border:1px solid rgba(255,211,90,.30)!important;
  box-shadow:0 6px 16px rgba(0,0,0,.24)!important;
  font-weight:800!important;
}
body .badge.bg-warning, body .badge.bg-warning-soft, body .badge.bg-primary-soft{
  background:rgba(255,211,90,.18)!important;
  color:var(--ar-gold)!important;
}
body .deposit-card .btn, body .deposit-card button, body .deposit-mobile-card .btn,
body form[action="/user/withdraw/"] .btn, body form[action="/user/deposit/"] .btn{
  background:linear-gradient(135deg,var(--ar-gold),var(--ar-gold-2) 58%,#c78300)!important;
  color:#080808!important;
  border:1px solid rgba(255,211,90,.82)!important;
}
body form[action="/user/withdraw/"] .bg-body-secondary,
body #availableBalance, body #feeDisplay, body #netAmountDisplay{
  background:linear-gradient(180deg,#131315,#080809)!important;
  color:var(--ar-text)!important;
  border:1px solid rgba(255,211,90,.24)!important;
  border-radius:12px!important;
}

/* =========================================================
   ALLANDRICH USER PAGE BUTTON + CARD FINAL MIGRATION
   Covers: /user/deposit, /user/tasks, /user/platform-fund,
   /user/leaderboard, /user/available-packages, /user/tickets,
   /user/waiting, /user/queues, /user/referrals
   ========================================================= */
.app-content,
.user-dashboard,
.user-leaderboard-page{
  color:#f8fafc!important;
}

/* Cards and custom page blocks */
.app-content .card,
.app-content .allandrich-card,
.app-content .stat-card,
.app-content .queue-level-card,
.app-content .queue-cashback-card,
.app-content .cashback-stat-card,
.app-content .cashback-ticket,
.app-content .leadership-card,
.app-content .leadership-rank-card,
.app-content .leadership-link-box,
.app-content .leadership-plan-row,
.app-content .leaderboard-card,
.app-content .package-card,
.app-content .ticket-card,
.app-content .task-card,
.app-content .fund-card,
.app-content .wallet-card,
.app-content .deposit-summary-card,
.app-content .deposit-card,
.app-content .deposit-mobile-card,
.app-content .empty-queue,
.app-content .list-group-item,
.app-content .bg-white,
.app-content .bg-light,
.app-content .bg-body,
.app-content .bg-body-secondary,
.app-content .border,
.app-content .shadow-sm{
  background:linear-gradient(180deg,rgba(20,20,22,.98),rgba(7,7,8,.98))!important;
  color:#f8fafc!important;
  border:1px solid rgba(255,211,90,.24)!important;
  box-shadow:0 18px 48px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.035)!important;
}
.app-content .card-header,
.app-content .allandrich-card-header,
.app-content .queue-card-head,
.app-content .modal-header,
.app-content .modal-footer{
  background:linear-gradient(180deg,rgba(36,28,10,.98),rgba(10,10,12,.98))!important;
  color:#ffd35a!important;
  border-color:rgba(255,211,90,.22)!important;
  font-weight:900!important;
}
.app-content .card-body,
.app-content .allandrich-card-body,
.app-content .card-footer{
  background:transparent!important;
  color:#f8fafc!important;
  border-color:rgba(255,211,90,.18)!important;
}

/* Typography in cards/pages */
.app-content h1,.app-content h2,.app-content h3,.app-content h4,.app-content h5,.app-content h6,
.app-content .fw-bold,.app-content strong,.app-content .stat-value,.app-content .cashback-stat-value,
.app-content .rank-title,.app-content .deposit-title{
  color:#f8fafc!important;
}
.app-content .text-muted,.app-content .stat-label,.app-content .small,.app-content small,
.app-content .form-text,.app-content .deposit-muted,.app-content .ticket-meta,
.app-content .leadership-note,.app-content .plan-state{
  color:#b8bcc6!important;
  opacity:1!important;
}
.app-content .text-primary,.app-content .text-primary-custom,.app-content .text-warning,
.app-content .stat-icon.primary,.app-content .stat-icon.warning,
.app-content .fa-ticket-alt,.app-content .fa-trophy,.app-content .fa-wallet{
  color:#ffd35a!important;
}
.app-content .text-success,.app-content .stat-icon.success{color:#7ff0b3!important;}
.app-content .text-danger{color:#ff9b9b!important;}
.app-content .text-dark{color:#0a0a0b!important;}

/* Buttons: make every user action match black/gold system */
.app-content .btn,
.app-content button.btn,
.app-content input[type="submit"].btn,
.app-content .package-buy-btn,
.app-content .queue-activate-btn,
.app-content .task-visit-btn{
  border-radius:12px!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
  border:1px solid rgba(255,211,90,.62)!important;
  box-shadow:0 10px 22px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.16)!important;
  text-decoration:none!important;
  transition:transform .18s ease, filter .18s ease, box-shadow .18s ease!important;
}
.app-content .btn:hover,
.app-content .package-buy-btn:hover,
.app-content .queue-activate-btn:hover,
.app-content .task-visit-btn:hover{
  transform:translateY(-1px)!important;
  filter:brightness(1.07)!important;
  box-shadow:0 14px 30px rgba(0,0,0,.38),0 0 0 3px rgba(255,211,90,.08)!important;
}
.app-content .btn-primary,
.app-content .btn-warning,
.app-content .btn-success,
.app-content .btn-info,
.app-content .btn-light,
.app-content .btn-outline-primary,
.app-content .btn-outline-warning,
.app-content .btn-outline-success,
.app-content .btn-outline-info,
.app-content .package-buy-btn,
.app-content .queue-activate-btn,
.app-content .task-visit-btn{
  background:linear-gradient(135deg,#ffd35a,#f4b42a 58%,#c78300)!important;
  color:#080808!important;
  border-color:rgba(255,211,90,.78)!important;
}
.app-content .btn-secondary,
.app-content .btn-outline-secondary,
.app-content .btn-dark{
  background:linear-gradient(180deg,#171719,#0a0a0b)!important;
  color:#ffd35a!important;
  border-color:rgba(255,211,90,.36)!important;
}
.app-content .btn-danger,
.app-content .btn-outline-danger{
  background:linear-gradient(135deg,#4b1111,#9f1d1d)!important;
  color:#fff!important;
  border-color:rgba(255,211,90,.45)!important;
}
.app-content .btn:disabled,
.app-content .btn.disabled,
.app-content button:disabled{
  background:linear-gradient(180deg,#2a2a2d,#141416)!important;
  color:#777!important;
  border-color:rgba(255,211,90,.14)!important;
  opacity:.70!important;
  box-shadow:none!important;
}
.app-content .btn-close{
  filter:invert(1) sepia(1) saturate(3) hue-rotate(350deg)!important;
  opacity:.9!important;
}

/* Forms/inputs in requested user pages */
.app-content .form-control,
.app-content .form-select,
.app-content textarea,
.app-content select,
.app-content input[type="text"],
.app-content input[type="email"],
.app-content input[type="number"],
.app-content input[type="password"],
.app-content input[type="url"],
.app-content input[type="search"],
.app-content .input-group-text,
.app-content .form-check-input{
  background:linear-gradient(180deg,#131315,#09090a)!important;
  color:#f8fafc!important;
  border:1px solid rgba(255,211,90,.32)!important;
  border-radius:12px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important;
}
.app-content .form-control:focus,
.app-content .form-select:focus,
.app-content textarea:focus,
.app-content input:focus,
.app-content select:focus{
  background:#0b0b0d!important;
  color:#fff!important;
  border-color:rgba(255,211,90,.78)!important;
  box-shadow:0 0 0 .2rem rgba(255,211,90,.14)!important;
}
.app-content .form-check-input:checked{
  background-color:#f4b42a!important;
  border-color:#ffd35a!important;
}
.app-content .form-label,.app-content label{color:#ffd35a!important;font-weight:800!important;}

/* Badges/status pills */
.app-content .badge,
.app-content .allandrich-badge,
.app-content [class*="bg-primary"],
.app-content [class*="bg-warning"],
.app-content [class*="bg-info"],
.app-content [class*="bg-secondary"]{
  background:rgba(255,211,90,.16)!important;
  color:#ffd35a!important;
  border:1px solid rgba(255,211,90,.34)!important;
  font-weight:900!important;
}
.app-content [class*="bg-success"]{
  background:rgba(14,120,73,.22)!important;
  color:#7ff0b3!important;
  border:1px solid rgba(255,211,90,.30)!important;
}
.app-content [class*="bg-danger"]{
  background:rgba(130,22,22,.26)!important;
  color:#ff9b9b!important;
  border:1px solid rgba(255,211,90,.30)!important;
}

/* Tables inside requested user pages */
.app-content .table-responsive,
.app-content .allandrich-table-wrap,
.app-content .dashboard-table{
  background:#070708!important;
  border:1px solid rgba(255,211,90,.22)!important;
  border-radius:16px!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  -webkit-overflow-scrolling:touch!important;
}
.app-content .table,
.app-content table{
  background:#070708!important;
  color:#f8fafc!important;
  --bs-table-bg:#070708!important;
  --bs-table-color:#f8fafc!important;
  --bs-table-striped-bg:#101012!important;
  --bs-table-hover-bg:rgba(255,211,90,.08)!important;
  --bs-table-border-color:rgba(255,211,90,.14)!important;
}
.app-content .table th,
.app-content table th{
  background:linear-gradient(180deg,#241c0a,#0d0d0e)!important;
  color:#ffd35a!important;
  border-color:rgba(255,211,90,.20)!important;
}
.app-content .table td,
.app-content table td{
  background-color:transparent!important;
  color:#f8fafc!important;
  border-color:rgba(255,211,90,.13)!important;
}
.app-content .table tr:nth-child(even) td{background-color:rgba(255,255,255,.02)!important;}

/* Alerts and empty states */
.app-content .alert{
  border-radius:16px!important;
  border:1px solid rgba(255,211,90,.24)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.28)!important;
}
.app-content .alert-success{
  background:linear-gradient(180deg,rgba(13,77,49,.28),rgba(7,20,14,.94))!important;
  color:#d6ffe8!important;
}
.app-content .alert-danger{
  background:linear-gradient(180deg,rgba(96,19,19,.32),rgba(24,8,8,.96))!important;
  color:#ffd6d6!important;
}
.app-content .alert-warning{
  background:linear-gradient(180deg,rgba(88,60,11,.32),rgba(25,18,8,.96))!important;
  color:#ffe7a3!important;
}

/* Progress/tabs/cards special pages */
.app-content .progress,
.app-content .queue-progress{
  background:#111114!important;
  border:1px solid rgba(255,211,90,.16)!important;
}
.app-content .progress-bar,
.app-content .queue-progress > span{
  background:linear-gradient(90deg,#ffd35a,#f4b42a,#c78300)!important;
}
.app-content .queue-tab{
  background:linear-gradient(180deg,#151517,#09090a)!important;
  color:#ffd35a!important;
  border:1px solid rgba(255,211,90,.22)!important;
  border-radius:999px!important;
}
.app-content code,.app-content .font-mono{color:#ffe7a3!important;}

/* V5.2 Global White Text Override */
body, body p, body span, body label, body h1, body h2, body h3, body h4, body h5, body h6,
.main-content, .content, .page-content, .card, .card-body, .card-title, .card-text,
.table-dark th, .table-dark td, .sidebar *, .navbar *, .footer *, .breadcrumb *,
.user-panel *, .admin-panel * { color:#FFFFFF !important; }

/* V6.1 Waiting / Q-Ready Center button state lock
   Keep the Queue Ready control visually consistent while the countdown
   temporarily disables it and after JavaScript enables it. */
.app-content .qrc-shell .qrc-action.queue-activate-btn,
.app-content .qrc-shell .qrc-action.queue-activate-btn:link,
.app-content .qrc-shell .qrc-action.queue-activate-btn:visited,
.app-content .qrc-shell .qrc-action.queue-activate-btn:hover,
.app-content .qrc-shell .qrc-action.queue-activate-btn:focus,
.app-content .qrc-shell .qrc-action.queue-activate-btn:focus-visible,
.app-content .qrc-shell .qrc-action.queue-activate-btn:active,
.app-content .qrc-shell .qrc-action.queue-activate-btn:disabled {
  background:linear-gradient(135deg,#ffd35a,#f4b42a 58%,#c78300)!important;
  color:#080808!important;
  border:1px solid rgba(255,211,90,.78)!important;
  -webkit-text-fill-color:#080808!important;
}
.app-content .qrc-shell .qrc-action.queue-activate-btn *,
.app-content .qrc-shell .qrc-action.queue-activate-btn:disabled * {
  color:#080808!important;
  fill:#080808!important;
  -webkit-text-fill-color:#080808!important;
}
.app-content .qrc-shell .qrc-action.queue-activate-btn:disabled {
  opacity:.58!important;
  filter:saturate(.78)!important;
  box-shadow:none!important;
  cursor:not-allowed!important;
}
.app-content .qrc-shell .qrc-action.queue-activate-btn:not(:disabled):hover,
.app-content .qrc-shell .qrc-action.queue-activate-btn:not(:disabled):focus-visible {
  opacity:1!important;
  filter:brightness(1.08)!important;
  transform:translateY(-1px)!important;
}
