@import url("public/vendor/fontawesome/all.min.css");

:root {
  --blue: #007bff;
  --green: #28a745;
  --danger: #dc3545;
  --dark: #343a40;
  --light-bg: #f4f6f9;
  --border: #dee2e6;
  --muted: #869099;
  --sidebar-width: 250px;
  --sidebar-collapsed: 73.6px;
  --font: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
/* Live Hub refreshes the same page while the user scrolls. Smooth browser
   scrolling would animate every corrective position update and make the
   mobile page feel like it drops or fights the finger. */
html { scroll-behavior: auto; }
body { margin: 0; background: #fff; color: #212529; font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.5; overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }
button, input, select { font: inherit; }
.wrapper { position: relative; min-height: 100vh; width: 100%; }
.main-header { position: relative; z-index: 1000; display: flex; align-items: center; height: 57px; margin-left: var(--sidebar-width); padding: 8px; background: #fff; color: #1f2d3d; border-bottom: 1px solid rgba(0,0,0,.08); }
.nav-link { display: block; padding: 8px 16px; color: rgba(0,0,0,.5); line-height: 24px; white-space: nowrap; }
.nav-link:hover { color: rgba(0,0,0,.7); }
.menu-toggle { width: 46px; padding: 8px 16px; }
.suggestions-link { color: rgba(0,0,0,.5); }
.navbar-actions { display: flex; align-items: center; margin-left: auto; }
.navbar-search-form { display: none; align-items: center; padding: 0 8px; }
.navbar-search-form.is-open { display: flex; }
.navbar-search-form input { height: 31px; width: 180px; padding: 4px 8px; border: 1px solid #ced4da; border-right: 0; border-radius: 3px 0 0 3px; outline: 0; }
.btn-navbar { height: 31px; border: 1px solid #ced4da; border-left: 0; padding: 4px 8px; background: #f5f5f5; color: rgba(52,58,64,.8); cursor: pointer; }
.main-sidebar { position: fixed; z-index: 1038; top: 0; bottom: 0; left: 0; height: 100vh; width: var(--sidebar-width); overflow-y: auto; overflow-x: hidden; color: #c2c7d0; background: var(--dark); box-shadow: 0 14px 28px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.22); transition: margin-left .3s ease-in-out, width .3s ease-in-out; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.main-sidebar::-webkit-scrollbar { width: 6px; }
.main-sidebar::-webkit-scrollbar-track { background: transparent; }
.main-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 4px; }
.main-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .3); }
.brand-link { display: block; width: var(--sidebar-width); height: 57px; padding: 13px 8px; color: rgba(255,255,255,.8); border-bottom: 1px solid #4b545c; white-space: nowrap; transition: width .3s ease-in-out; }
.logo-image { display: block; float: left; width: auto; height: 16px; margin: 0 14.2px 0 12.8px; color: rgba(255,255,255,.8); font-size: 16px; line-height: 16px; vertical-align: middle; }
.brand-text { display: inline; color: rgba(255,255,255,.8); font-size: 20px; font-weight: 300; line-height: 30px; transition: margin-left .3s linear, opacity .3s, visibility .3s; }
.sidebar { padding: 0 8px; }
.user-panel { display: flex; align-items: center; gap: 12px; padding: 16px 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.avatar { display: block; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #f0f0f0; color: #666; font-size: 14px; object-fit: cover; }
.user-info a { color: #c2c7d0; font-size: 14px; }
.sidebar-search { display: flex; height: 38px; margin: 16px 0 8px; }
.sidebar-search input { min-width: 0; flex: 1; width: 1%; padding: 8px 12px; color: rgba(255,255,255,.8); background: #3f474e; border: 1px solid #56616a; border-right: 0; border-radius: 3px 0 0 3px; outline: 0; }
.sidebar-search input::placeholder { color: rgba(255,255,255,.6); }
.sidebar-search button { width: 46px; border: 1px solid #56616a; border-radius: 0 3px 3px 0; background: #3f474e; color: #fff; cursor: pointer; }
.side-nav { margin-top: 8px; }
.nav-sidebar { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.nav-item { width: 100%; }
.side-nav .nav-link { position: relative; display: block; width: 100%; height: 40px; min-height: 0; margin: 0 0 3.2px; padding: 8px 16px; color: #c2c7d0; border-radius: 4px; line-height: 24px; }
.side-nav .nav-link:hover, .side-nav .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.modern-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.modern-check { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border: 1px solid #28476f; border-radius: 14px; background: linear-gradient(135deg,#132849,#0c1d39); color: #dbeafe; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.modern-check:hover { border-color: #3b82f6; box-shadow: 0 8px 22px rgba(15,67,145,.22); transform: translateY(-1px); }
.modern-check input { position: absolute; opacity: 0; pointer-events: none; }
.modern-check-box { width: 26px; height: 26px; flex: 0 0 26px; border: 2px solid #5b77a0; border-radius: 8px; background: #0b1830; position: relative; }
.modern-check input:checked + .modern-check-box { border-color: #3b82f6; background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.modern-check input:checked + .modern-check-box::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; }
.modern-check strong, .modern-check small { display: block; }
.modern-check small { margin-top: 3px; color: #8fa8c9; font-size: 11px; }
.manager-avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 8px; border-radius: 10px; background: linear-gradient(135deg,#2563eb,#38bdf8); color: #fff; }
.manager-page-note { margin-bottom: 14px; }
@media (max-width: 720px) { .modern-checks { grid-template-columns: 1fr; } }
.side-nav .nav-link p { display: inline; margin: 0; transition: margin-left .3s linear, opacity .3s, visibility .3s; }
.nav-icon { display: inline-block; width: 25.6px; margin: 0 3.2px 0 .8px; font-size: 17.6px; line-height: 17.6px; text-align: center; }
.chevron { position: absolute; top: 12px; right: 16px; margin: 0; font-size: 12px; transition: transform .3s ease-in-out; }
.menu-open > .nav-link .chevron { transform: rotate(-90deg); }
.nav-treeview { display: none; width: 100%; margin: 0; padding: 0; list-style: none; }
.menu-open > .nav-treeview { display: block; animation: submenu-open .3s ease-in-out; }
.nav-treeview .nav-link { color: #c2c7d0; font-size: 16px; }
.nav-treeview .nav-link:hover { color: #fff; }
@keyframes submenu-open { from { max-height: 0; opacity: .35; } to { max-height: 240px; opacity: 1; } }
.content-wrapper { min-height: calc(100vh - 57px); margin-left: var(--sidebar-width); background: var(--light-bg); transition: margin-left .3s ease-in-out; }
.content-header { display: flex; justify-content: space-between; min-height: 72.55px; padding: 15px 16px; }
.content-header h1 { margin: 0; color: #212529; font-size: 28.8px; font-weight: 500; line-height: 34.56px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; color: #212529; list-style: none; line-height: 28.8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: #6c757d; }
.content { padding: 0 15.5px; }
.card { display: flex; flex-direction: column; margin-bottom: 16px; background: #fff; border-radius: 4px; box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2); }
.card-header { min-height: 49px; padding: 12px 20px; border-bottom: 1px solid rgba(0,0,0,.125); font-size: 20px; line-height: 24px; }
.card-body { padding: 20px; }
.toolbar { position: relative; height: 59.4px; min-height: 59.4px; margin-bottom: 10px; }
.btn { display: inline-block; padding: 6px 12px; border: 1px solid transparent; border-radius: 4px; color: #fff; font-size: 16px; line-height: 24px; text-align: center; vertical-align: middle; cursor: pointer; transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out; }
.btn:hover { filter: brightness(.93); }
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.new-user { min-width: 133.8px; }
.table-search { position: absolute; right: -10px; bottom: -4.8px; display: flex; align-items: stretch; margin: 0; }
.table-search input { width: 219px; height: 31px; padding: 4px 8px; color: rgba(52,58,64,.8); background: #f5f5f5; border: 1px solid #ced4da; border-right: 0; border-radius: 3.2px 0 0 3.2px; outline: 0; font-size: 14px; line-height: 21px; }
.table-search button { width: 32px; height: 31px; margin-left: -1px; padding: 4px 8px; color: rgba(52,58,64,.8); background: #f5f5f5; border: 1px solid #ced4da; border-radius: 0 3.2px 3.2px 0; cursor: pointer; }
.table-responsive { width: 100%; overflow: auto; }
table { width: 100%; min-width: 789.25px; margin-bottom: 16px; border-collapse: collapse; table-layout: fixed; color: #212529; }
col.col-type { width: 14.109%; } col.col-user { width: 15.591%; } col.col-manager { width: 15.56%; } col.col-room { width: 8.972%; } col.col-balance { width: 11.586%; } col.col-limit { width: 11.654%; } col.col-status { width: 9.213%; } col.col-actions { width: 13.215%; }
th, td { padding: 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; white-space: normal; }
th { height: 49.5px; padding: 12px; border-top: 1px solid var(--border); border-bottom-width: 2px; font-weight: 700; vertical-align: bottom; }
th:first-child { padding-left: 24px; }
tbody tr { height: 63px; }
tbody tr:nth-child(odd) { background: rgba(0,0,0,.05); }
td { height: 63px; }
.badge { display: inline-block; padding: 3px 4.8px; border-radius: 4px; color: #fff; font-size: 12px; font-weight: 700; line-height: 12px; text-align: center; white-space: nowrap; }
.badge-success { background: var(--green); }
.badge-primary { background: var(--blue); }
.badge-danger { background: var(--danger); }
.badge-info { background: #17a2b8; }
.badge-light { background: #f8f9fa; color: #212529 !important; border: 1px solid #ced4da; }

.ticket-ball-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 22px;
  margin: 1.5px 2px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 800;
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
  color: #0f172a !important;
  background-color: #e2e8f0;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.dark-mode .ticket-ball-num,
[data-theme="dark"] .ticket-ball-num {
  color: #f8fafc !important;
  background-color: #334155;
  border-color: #64748b;
}

.ticket-numbers-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  max-width: 350px;
  min-width: 180px;
  white-space: normal !important;
}

.ticket-code-cell {
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.actions { padding-right: 24px; white-space: nowrap; }
.actions .btn { margin-right: 3px; padding: 6px 12px; }
.actions .btn-primary { width: 44px; } .actions .btn-danger { width: 40px; }
.pagination-row { padding-top: 40px; }
.pagination-row select { display: block; width: 368px; height: 38px; padding: 6px 12px; color: #495057; background: #fff; border: 1px solid #ced4da; border-radius: 4px; }
.main-footer { display: block; min-height: 57px; margin-left: var(--sidebar-width); padding: 16px; color: var(--muted); background: #fff; transition: margin-left .3s ease-in-out; }
.footer-company { float: right; }
.control-sidebar { position: fixed; z-index: 1200; top: 0; right: -300px; width: 300px; height: 100vh; padding: 70px 20px 20px; color: #fff; background: #343a40; transition: right .3s ease-in-out; }
.control-sidebar.is-open { right: 0; }
.control-sidebar h3 { margin-top: 0; font-size: 20px; font-weight: 400; }
.close-control { position: absolute; top: 18px; right: 16px; border: 0; background: transparent; color: #fff; font-size: 28px; cursor: pointer; }
#sidebar-overlay { display: none; }

body.sidebar-collapse .main-sidebar { width: var(--sidebar-collapsed); }
body.sidebar-collapse .brand-link { width: var(--sidebar-collapsed); }
body.sidebar-collapse .main-header, body.sidebar-collapse .content-wrapper, body.sidebar-collapse .main-footer { margin-left: var(--sidebar-collapsed); }
body.sidebar-collapse .brand-text, body.sidebar-collapse .logo-image, body.sidebar-collapse .user-panel, body.sidebar-collapse .sidebar-search { opacity: 0; visibility: hidden; }
body.sidebar-collapse .side-nav .nav-link { padding-left: 8px; padding-right: 8px; text-align: center; }
body.sidebar-collapse .side-nav .nav-link > p, body.sidebar-collapse .side-nav .chevron, body.sidebar-collapse .nav-treeview { display: none !important; }
body.sidebar-collapse .nav-icon { margin-right: 0; }

.is-fullscreen .main-header { position: fixed; top: 0; right: 0; left: 0; margin-left: 0; }
.is-fullscreen .main-sidebar { display: none; }
.is-fullscreen .content-wrapper, .is-fullscreen .main-footer { margin-left: 0; }

@media (max-width: 991.98px) {
  .main-header, .content-wrapper, .main-footer { margin-left: 0; }
  .main-sidebar { margin-left: -250px; }
  body.sidebar-open .main-sidebar { margin-left: 0; }
  /* The reference panel keeps the page readable while the off-canvas menu is open. */
  body.sidebar-open #sidebar-overlay { display: block; position: fixed; z-index: 1037; inset: 0; background: transparent; }
  body.sidebar-open .content-wrapper, body.sidebar-open .main-footer { margin-left: 0; }
  body.sidebar-collapse .main-sidebar { width: 250px; }
  body.sidebar-collapse .main-header, body.sidebar-collapse .content-wrapper, body.sidebar-collapse .main-footer { margin-left: 0; }
  body.sidebar-collapse .brand-link { width: 250px; }
  body.sidebar-collapse .brand-text, body.sidebar-collapse .logo-image, body.sidebar-collapse .user-panel, body.sidebar-collapse .sidebar-search { opacity: 1; visibility: visible; }
  body.sidebar-collapse .side-nav .nav-link { padding-left: 16px; padding-right: 16px; text-align: left; }
  body.sidebar-collapse .side-nav .nav-link > p { display: inline !important; }
  body.sidebar-collapse .side-nav .chevron { display: block !important; }
  body.sidebar-collapse .nav-icon { margin: 0 3.2px 0 .8px; }
  .content-header { min-height: 72.55px; }
  .content { padding: 0 15.5px; }
  .actions { white-space: normal; }
  table { width: 789.25px; min-width: 789.25px; }
  col.col-type { width: 132.609px; } col.col-user { width: 146.547px; } col.col-manager { width: 98.578px; } col.col-room { width: 84.328px; } col.col-balance { width: 88.625px; } col.col-limit { width: 69.969px; } col.col-status { width: 86.594px; } col.col-actions { width: 81px; }
}

.empty-state { padding: 48px 12px; color: #6c757d; text-align: center; }
.form-card .card-body { padding: 20px; }
.form-grid { display: grid; gap: 0 20px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-group { min-width: 0; margin-bottom: 16px; }
.form-group.full { width: 100%; }
.form-group label { display: inline-block; margin-bottom: 8px; color: #212529; font-weight: 400; }
.form-group code { color: #e83e8c; font-size: 87.5%; }
.form-control { display: block; width: 100%; height: 38px; padding: 6px 12px; color: #495057; background: #fff; border: 1px solid #ced4da; border-radius: 4px; outline: 0; transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out; }
.form-control:focus { border-color: #80bdff; box-shadow: 0 0 0 .2rem rgba(0,123,255,.25); }
textarea.form-control { height: auto; resize: vertical; }
.form-checks { display: flex; flex-wrap: wrap; gap: 20px; margin: 8px 0 20px; }
.form-checks label { color: #212529; cursor: pointer; }
.form-checks input { margin-right: 8px; accent-color: var(--blue); }
.form-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.btn-toggle-password { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #64748b; padding: 4px 6px; font-size: 15px; line-height: 1; border-radius: 4px; z-index: 3; transition: color .15s ease-in-out; }
.btn-toggle-password:hover { color: #1e293b; }
.btn-toggle-password-label { background: none; border: none; color: #007bff; font-size: 12px; cursor: pointer; padding: 0 4px; font-weight: 600; margin-left: 8px; transition: color .15s ease-in-out; }
.btn-toggle-password-label:hover { text-decoration: underline; color: #0056b3; }
.btn-success { background: #28a745; border-color: #28a745; }
.btn-secondary { color: #fff; background: #6c757d; border-color: #6c757d; }
.btn-info { color: #fff; background: #17a2b8; border-color: #17a2b8; }
.btn-warning { color: #212529; background: #ffc107; border-color: #ffc107; }
.btn-light { color: #17345b; background: #f0f6ff; border-color: #c7ddf7; }
.btn-light:hover { color: #102846; background: #dceaff; border-color: #a6c6f0; }
.btn-outline-light { color: #fff; background: transparent; border-color: #bed8f5; }
.btn-outline-light:hover { color: #17345b; background: #f0f6ff; border-color: #f0f6ff; }
.btn-outline-info { color: #087687; background: transparent; border-color: #138496; }
.btn-outline-info:hover { color: #fff; background: #087687; border-color: #087687; }
.btn-light:focus-visible, .btn-outline-light:focus-visible, .btn-outline-info:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
.descarrego-rotation-banner .btn { min-height: 38px; border-radius: 8px; font-weight: 700; }
.descarrego-rotation-banner .btn-outline-info { color: #e2f4ff; background: #124671; border-color: #73c8f7; }
.descarrego-rotation-banner .btn-outline-info:hover { color: #102846; background: #c9ebff; }
.module-body { min-height: 280px; padding: 42px 32px; }
.module-body h2 { margin: 10px 0; font-size: 24px; font-weight: 500; }
.module-body p { max-width: 620px; color: #6c757d; }
.module-icon { color: var(--blue); font-size: 32px; }
.modal-overlay { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.45); }
.modal-overlay[hidden] { display: none; }
.confirm-modal { width: min(420px, 100%); padding: 24px; background: #fff; border-radius: 4px; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.confirm-modal h2 { margin: 0 0 12px; font-size: 22px; font-weight: 500; }
.confirm-copy { margin: 0 0 20px; color: #6c757d; }
.toast { position: fixed; z-index: 3000; right: 20px; bottom: 20px; max-width: calc(100vw - 40px); padding: 12px 18px; color: #fff; background: #10b981; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); font-weight: 600; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast-error { background: #ef4444; }
body.hub-dark-mode .toast,
body.admin-dark-mode .toast { background: rgba(6, 78, 59, 0.96); border: 1px solid rgba(52, 211, 153, 0.45); color: #ecfdf5; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); }
body.hub-dark-mode .toast.toast-error,
body.admin-dark-mode .toast.toast-error { background: rgba(127, 29, 29, 0.96); border: 1px solid rgba(248, 113, 113, 0.45); color: #fef2f2; }
@media (max-width: 768px) {
  .toast { bottom: 84px !important; right: 14px !important; }
}

.module-container { width: 100%; }
.module-card .card-header { font-weight: 400; }
.module-toolbar { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 54px; margin-bottom: 12px; gap: 16px; }
.module-toolbar .table-search { position: static; margin-left: auto; }
.module-filter-form { margin-bottom: 24px; padding: 0; }
.module-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.module-form-grid .form-group.full, .module-form-grid .full { grid-column: 1 / -1; }
.sweepstakes-edit-row { display: flex; flex-wrap: wrap; margin: 0 -7.5px; }
.sweepstakes-col { min-width: 0; padding: 0 7.5px; }
.sweepstakes-col-12 { flex: 0 0 100%; max-width: 100%; }
.sweepstakes-col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.sweepstakes-col-6 { flex: 0 0 50%; max-width: 50%; }
.sweepstakes-col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.sweepstakes-edit-form .form-group { margin-bottom: 16px; }
.sweepstakes-edit-form .form-group label { font-weight: 700; }
.date-time-picker-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr); gap: 12px; align-items: center; }
.date-time-picker-input { min-width: 0; }
.date-time-quick-select { min-width: 0; }
.field-help { display: block; margin-top: 6px; color: #6c757d; font-size: 13px; }
.sweepstakes-close { margin: 0 0 16px; }
.sweepstakes-close label { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: #212529; font-weight: 700; cursor: pointer; }
.sweepstakes-close input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); }
.module-filter-form .form-actions { justify-content: flex-end; margin-top: 0; }
.module-filter-form .form-group { margin-bottom: 12px; }
.module-results-empty { padding: 44px 12px 18px; color: #6c757d; text-align: center; }
.module-note { color: #6c757d; }
.module-subtitle { margin: 0 0 18px; font-size: 20px; font-weight: 400; }
.module-table-wrap { overflow-x: auto; }
.module-table { min-width: 680px; table-layout: auto; }
.module-table th, .module-table td { white-space: nowrap; }
.module-table td:last-child { white-space: normal; }
.module-table .btn { margin: 0 2px 2px 0; padding: 5px 9px; font-size: 14px; line-height: 20px; }
.module-inline-search { position: static; display: flex; align-items: center; width: min(520px, 100%); }
.module-inline-search select { min-width: 150px; }
.module-inline-search input { flex: 1; width: 1%; }
.module-sort-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: 12px; margin: 0 0 16px; }
.module-sort-row .btn { min-width: 100px; }
.sweepstakes-auto-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 12px; padding: 12px 14px; color: #40506b; border: 1px solid #cbd8f2; border-radius: 12px; background: linear-gradient(135deg, #f1f5ff, #eefbf6); box-shadow: 0 7px 15px rgba(50,75,125,.07); }
.sweepstakes-auto-link > div { display: grid; gap: 3px; min-width: 0; }
.sweepstakes-auto-link strong { color: #4351bb; font-size: 12px; }
.sweepstakes-auto-link strong i { margin-right: 6px; color: #2eb77b; }
.sweepstakes-auto-link span { color: #77849a; font-size: 11px; line-height: 1.4; }
.sweepstakes-auto-link > a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: #5b50d4; font-size: 11px; font-weight: 800; white-space: nowrap; }
.sweepstakes-auto-link > a:hover { color: #3126a6; }
.sweepstakes-auto-link.is-local { border-color: #efd18b; background: linear-gradient(135deg, #fff9df, #fff4d7); }
.sweepstakes-auto-link.is-local strong { color: #9a6d16; }
.sweepstakes-auto-link.is-local strong i { color: #d4962f; }
.sweepstakes-auto-link.is-local > a { color: #9a6d16; }
.sweepstakes-type-cell { display: grid; justify-items: start; gap: 4px; }
.sweepstakes-source-badge { color: #2eaa76; font-size: 9px; font-weight: 800; }
.sweepstakes-source-badge i { margin-right: 3px; }
.sweepstakes-day-navigation { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 14px; background: rgba(0,123,255,.04); border: 1px solid var(--border); border-radius: 4px; }
.sweepstakes-day-navigation label { display: flex; flex: 1 1 280px; flex-direction: column; gap: 6px; min-width: 220px; color: #495057; font-size: 14px; font-weight: 700; }
.sweepstakes-day-navigation select { width: 100%; height: 38px; padding: 6px 12px; color: #495057; background: #fff; border: 1px solid #ced4da; border-radius: 4px; }
.sweepstakes-day-navigation .btn { white-space: nowrap; }
.sweepstakes-day-count { margin-left: auto; padding-bottom: 8px; color: #6c757d; font-size: 14px; white-space: nowrap; }
.pagination-copy { margin-top: 22px; color: #495057; }
.pagination-copy select { min-width: 100px; height: 32px; margin-left: 8px; padding: 2px 8px; border: 1px solid #ced4da; border-radius: 4px; }
.module-toggle-line { margin-bottom: 14px; }
.badge-secondary { background: #6c757d; }
.alert { display: block; padding: 12px 20px; border: 1px solid transparent; border-radius: 4px; }
.alert-warning { color: #856404; background: #fff3cd; border-color: #ffeeba; }
.alert-info { color: #0c5460; background: #d1ecf1; border-color: #bee5eb; }
.bonus-card .alert-warning, .winners-redirect-card .alert-warning { color: #1f2d3d; background: #ffc107; border-color: #edb100; }
.bonus-card .alert-info, .winners-redirect-card .alert-info { color: #fff; background: #17a2b8; border-color: #148ea1; }
.winners-redirect-card .winners-toggle-btn { width: 100%; font-weight: 600; padding: 8px 16px; margin-bottom: 20px; font-size: 16px; }
.winners-redirect-card .winners-redirect-form { margin-bottom: 20px; }
.winners-redirect-card .winners-redirect-form .form-group { margin-bottom: 16px; }
.winners-redirect-card .winners-redirect-form label { display: block; font-weight: 700; margin-bottom: 8px; color: #212529; font-size: 16px; }
.winners-redirect-card .winners-redirect-form select { width: 100%; height: 38px; border: 1px solid #ced4da; border-radius: 4px; padding: 6px 12px; font-size: 16px; background-color: #fff; color: #495057; }
.winners-redirect-card .winners-redirect-form .btn-primary { width: 100%; font-weight: 600; padding: 8px 16px; background-color: #007bff; border-color: #007bff; font-size: 16px; }
.winners-redirect-card .module-table { width: 100%; margin-top: 10px; }
.winners-redirect-card .module-table th, .winners-redirect-card .module-table td { padding: 12px; vertical-align: middle; }
.winners-redirect-card .module-table th:last-child, .winners-redirect-card .module-table td:last-child { width: 60px; text-align: center; }
.bonus-status-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 4px; background: #f8f9fa; }
.bonus-status-bar > div { display: flex; flex-direction: column; gap: 2px; }
.bonus-status-bar span { color: #6c757d; }
.bonus-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.bonus-stats > div { display: flex; min-height: 82px; flex-direction: column; justify-content: center; gap: 5px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.bonus-stats small { color: #6c757d; font-size: 14px; }
.bonus-stats strong { color: #212529; font-size: 21px; font-weight: 500; }
.bonus-stats .bonus-status-active { color: #28a745; }
.bonus-stats .bonus-status-paused { color: #dc3545; }
.bonus-card .module-edit-form { margin-bottom: 4px; }
.bonus-nav-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 18px; padding: 5px; border: 1px solid #d8e0f0; border-radius: 14px; background: linear-gradient(135deg, #f8fbff, #eef3ff); box-shadow: 0 8px 18px rgba(53, 77, 137, .07); }
.bonus-nav-tabs .btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; }
.bonus-nav-tabs .btn-secondary { color: #52617e; border-color: #ced8ed; background: #fff; box-shadow: none; }
.bonus-nav-tabs .btn-secondary:hover { color: #344a9b; border-color: #aebced; background: #f4f7ff; }
.bonus-settings-drawer { margin: 17px 0 8px; overflow: hidden; border: 1px solid #d6def0; border-radius: 18px; background: linear-gradient(145deg, #f8fbff, #edf2ff); box-shadow: 0 12px 28px rgba(53, 77, 137, .09); }
.bonus-settings-drawer > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; color: #1d2c51; cursor: pointer; list-style: none; outline: 0; transition: background .2s ease; }
.bonus-settings-drawer > summary::-webkit-details-marker { display: none; }
.bonus-settings-drawer > summary:hover { background: rgba(112, 98, 239, .06); }
.bonus-settings-drawer > summary:focus-visible { box-shadow: inset 0 0 0 3px rgba(91, 75, 231, .2); }
.bonus-settings-drawer > summary::after { display: none; }
.bonus-settings-summary-copy { display: flex; align-items: center; gap: 11px; min-width: 0; }
.bonus-settings-summary-copy > i { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; color: #fff; border-radius: 12px; background: linear-gradient(135deg, #6f65ed, #3d65dc); box-shadow: 0 6px 13px rgba(61, 101, 220, .25); font-size: 15px; }
.bonus-settings-summary-copy > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.bonus-settings-summary-copy strong { color: #1c2f63; font-size: 15px; }
.bonus-settings-summary-copy small { overflow: hidden; color: #70809f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bonus-settings-summary-state { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 7px; padding: 7px 10px; color: #5064b9; border: 1px solid #c8d3f2; border-radius: 99px; background: #fff; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.bonus-settings-summary-state i { font-size: 10px; transition: transform .2s ease; }
.bonus-settings-drawer[open] > summary .bonus-settings-summary-state i { transform: rotate(180deg); }
.bonus-settings-drawer-body { padding: 0 18px 9px; border-top: 1px solid #d8e0f3; }
.bonus-settings-drawer-body > .form-grid:first-child { padding-top: 14px; }
.bonus-settings-drawer .bonus-deposit-drawer { margin-right: 0; margin-left: 0; }
.bonus-card .bonus-actions { justify-content: flex-end; margin-top: 14px; }
.bonus-card .bonus-actions .btn-primary { min-width: 190px; }
.bonus-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.bonus-deposit-drawer { margin: 12px 0 8px; overflow: hidden; border: 1px solid #d6def0; border-radius: 16px; background: linear-gradient(145deg, #f8fbff, #eef3ff); box-shadow: 0 10px 24px rgba(53, 77, 137, .08); }
.bonus-deposit-drawer > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px; color: #1e2d54; cursor: pointer; list-style: none; outline: 0; transition: background .2s ease; }
.bonus-deposit-drawer > summary::-webkit-details-marker { display: none; }
.bonus-deposit-drawer > summary::after { width: 28px; height: 28px; display: grid; flex: 0 0 28px; place-items: center; color: #5067c9; border: 1px solid #c8d3f2; border-radius: 9px; background: #fff; content: '\f078'; font-family: 'Font Awesome 5 Free'; font-size: 11px; font-weight: 900; transition: transform .2s ease; }
.bonus-deposit-drawer[open] > summary::after { transform: rotate(180deg); }
.bonus-deposit-drawer > summary:hover { background: rgba(112, 98, 239, .06); }
.bonus-deposit-drawer > summary:focus-visible { box-shadow: inset 0 0 0 3px rgba(91, 75, 231, .22); }
.bonus-deposit-summary-copy { display: flex; align-items: center; gap: 11px; min-width: 0; }
.bonus-deposit-summary-copy > i { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: #fff; border-radius: 11px; background: linear-gradient(135deg, #6f65ed, #3d65dc); box-shadow: 0 6px 13px rgba(61, 101, 220, .25); font-size: 15px; }
.bonus-deposit-summary-copy > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.bonus-deposit-summary-copy strong { color: #1c2f63; font-size: 14px; }
.bonus-deposit-summary-copy small { overflow: hidden; color: #70809f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bonus-deposit-summary-value { display: flex; align-items: baseline; flex: 0 0 auto; gap: 5px; padding: 6px 10px; color: #4162c6; border: 1px solid #c9d5f5; border-radius: 99px; background: #fff; }
.bonus-deposit-summary-value b { font-size: 13px; }
.bonus-deposit-summary-value small { color: #7180a0; font-size: 10px; font-weight: 700; }
.bonus-deposit-drawer-body { padding: 0 17px 8px; border-top: 1px solid #d8e0f3; }
.bonus-deposit-control-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0 13px; }
.bonus-deposit-control-row > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.bonus-deposit-control-row > div strong { color: #25345d; font-size: 13px; }
.bonus-deposit-control-row > div small { color: #71809a; font-size: 11px; line-height: 1.4; }
.bonus-deposit-toggle { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 8px; min-height: 44px; padding: 7px 11px 7px 8px; border: 1px solid #c8d2ed; border-radius: 999px; color: #30416d; background: #fff; box-shadow: 0 6px 14px rgba(41, 61, 110, .1); cursor: pointer; font-size: 12px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.bonus-deposit-toggle:hover { transform: translateY(-1px); box-shadow: 0 9px 17px rgba(41, 61, 110, .16); }
.bonus-deposit-toggle:focus-visible { outline: 3px solid rgba(91, 75, 231, .25); outline-offset: 2px; }
.bonus-deposit-toggle.is-active { color: #fff; border-color: #3968dc; background: linear-gradient(135deg, #4f73e6, #3549c5); }
.bonus-deposit-toggle.is-inactive { color: #4e5f82; border-color: #cbd5ef; background: #f7f9ff; }
.bonus-deposit-toggle-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .22); font-size: 12px; }
.bonus-deposit-toggle.is-inactive .bonus-deposit-toggle-icon { color: #6476ac; background: #e4eafd; }
.bonus-deposit-toggle-state { padding-left: 7px; border-left: 1px solid rgba(255, 255, 255, .35); font-size: 9px; letter-spacing: .08em; }
.bonus-deposit-toggle.is-inactive .bonus-deposit-toggle-state { border-color: #d4dcf1; color: #8794b0; }
.bonus-deposit-checkbox { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bonus-deposit-fields { padding-top: 2px; }
.bonus-deposit-drawer .module-note { margin: 0 0 8px; line-height: 1.45; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-deposit-drawer { border-color: var(--admin-border); background: linear-gradient(145deg, var(--admin-surface-soft), var(--admin-surface)); box-shadow: 0 12px 26px rgba(0, 0, 0, .16); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-deposit-drawer > summary { color: var(--admin-text); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-deposit-drawer > summary::after { color: #b6b0ff; border-color: #354268; background: #172139; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-deposit-drawer > summary:hover { background: rgba(112, 98, 239, .1); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-deposit-summary-copy strong { color: #eef2fb; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-deposit-summary-copy small { color: #8e9bb0; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-deposit-summary-value { color: #b7b1ff; border-color: #37466e; background: #172139; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-deposit-summary-value small { color: #95a2bb; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-deposit-drawer-body { border-color: var(--admin-border); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-deposit-control-row > div strong { color: var(--admin-text); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-deposit-control-row > div small { color: var(--admin-muted); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-deposit-toggle.is-inactive { color: #bac6db; border-color: #3a496b; background: #18233a; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-deposit-toggle.is-inactive .bonus-deposit-toggle-icon { color: #bac5e8; background: #28365d; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-deposit-toggle.is-inactive .bonus-deposit-toggle-state { border-color: #3a496b; color: #8998b8; }
.bonus-sequence-panel { margin: 14px 0 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: #f8f9fa; }
.bonus-sequence-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.bonus-sequence-heading > div { display: flex; flex-direction: column; gap: 3px; }
.bonus-sequence-heading strong { color: #212529; font-size: 15px; }
.bonus-sequence-heading strong i { margin-right: 6px; color: #6e64ef; }
.bonus-sequence-heading small { color: #6c757d; font-size: 11px; }
.bonus-sequence-heading > span { flex: 0 0 auto; padding: 5px 8px; color: #3854ae; border-radius: 99px; background: #e9edff; font-size: 10px; font-weight: 800; }
.bonus-sequence-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; max-height: 220px; margin: 11px 0 0; padding: 0 4px 0 0; overflow: auto; list-style: none; counter-reset: bonus-sequence; }
.bonus-sequence-list li { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 6px 7px; border: 1px solid #e1e5ed; border-radius: 6px; background: #fff; }
.bonus-sequence-list li b { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; color: #fff; border-radius: 50%; background: #6e64ef; font-size: 9px; }
.bonus-sequence-list li span { overflow: hidden; color: #34425f; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bonus-sequence-list .bonus-sequence-empty { grid-column: 1 / -1; justify-content: center; color: #6c757d; font-weight: 600; }
.bonus-card .bonus-sequence-panel + .form-grid { margin-top: 2px; }
.bonus-simulation { display: flex; flex-direction: column; gap: 3px; margin: 0 0 20px; padding: 12px 16px; color: #155724; border: 1px solid #c3e6cb; border-radius: 4px; background: #d4edda; }
.bonus-simulation[hidden] { display: none; }
.bonus-simulation small { color: #52765b; }
.bonus-simulation-error { color: #721c24; border-color: #f5c6cb; background: #f8d7da; }
.bonus-history-title { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.bonus-card .module-table { min-width: 980px; }
.bonus-card .module-table code { color: #e83e8c; font-size: 87.5%; }
body.admin-dark-mode .bonus-sequence-panel { border-color: #334155; background: #111827; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-nav-tabs { border-color: var(--admin-border); background: linear-gradient(135deg, var(--admin-surface-soft), var(--admin-surface)); box-shadow: 0 10px 22px rgba(0, 0, 0, .14); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-nav-tabs .btn-secondary { color: #bcc8dd; border-color: #354360; background: #172139; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-nav-tabs .btn-secondary:hover { color: #eef2fb; border-color: #6976bc; background: #202c4b; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-settings-drawer { border-color: var(--admin-border); background: linear-gradient(145deg, var(--admin-surface-soft), var(--admin-surface)); box-shadow: 0 14px 30px rgba(0, 0, 0, .18); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-settings-drawer > summary { color: var(--admin-text); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-settings-drawer > summary:hover { background: rgba(112, 98, 239, .1); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-settings-summary-copy strong { color: #eef2fb; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-settings-summary-copy small { color: #8e9bb0; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-settings-summary-state { color: #beb8ff; border-color: #37466e; background: #172139; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .bonus-settings-drawer-body { border-color: var(--admin-border); }
body.admin-dark-mode .bonus-sequence-heading strong { color: #f1f5f9; }
body.admin-dark-mode .bonus-sequence-heading small { color: #94a3b8; }
body.admin-dark-mode .bonus-sequence-heading > span { color: #cbd5e1; background: #26345e; }
body.admin-dark-mode .bonus-sequence-list li { border-color: #334155; background: #172033; }
body.admin-dark-mode .bonus-sequence-list li span { color: #e2e8f0; }
.chart-placeholder { position: relative; display: grid; place-items: center; height: 300px; margin: 24px 0 30px; color: #adb5bd; border: 1px solid #edf0f2; background: linear-gradient(to bottom, transparent 24%, rgba(0,123,255,.06) 25%, transparent 26%, transparent 49%, rgba(0,123,255,.06) 50%, transparent 51%, transparent 74%, rgba(0,123,255,.06) 75%, transparent 76%), linear-gradient(90deg, transparent 24%, rgba(0,123,255,.04) 25%, transparent 26%, transparent 49%, rgba(0,123,255,.04) 50%, transparent 51%, transparent 74%, rgba(0,123,255,.04) 75%, transparent 76%); }
.chart-placeholder.second { margin-bottom: 0; }
.chart-grid { position: absolute; inset: 20px; border-bottom: 2px solid rgba(0,123,255,.25); border-left: 2px solid rgba(0,123,255,.25); }
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat-grid > div { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 4px; background: #f8f9fa; }
.stat-grid strong { color: #6c757d; font-weight: 400; }
.stat-grid span { font-size: 22px; }
.qr-layout { display: grid; grid-template-columns: 500px minmax(260px, 1fr); align-items: start; gap: 28px; }
.qr-preview-group > label { display: inline-block; margin-bottom: 8px; }
.qr-preview { display: grid; place-items: center; width: 500px; height: 500px; max-width: 100%; border: 1px solid var(--border); background: #fff; }
.qr-preview canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.qr-placeholder { color: #6c757d; }
.affiliate-tree { margin: 24px 0 0; padding: 0; list-style: none; columns: 3 220px; column-gap: 24px; }
.affiliate-tree li { break-inside: avoid; padding: 8px 10px; border-bottom: 1px solid #edf0f2; }
.affiliate-tree li i { width: 18px; color: var(--blue); }
.affiliate-tree li small { display: block; margin: 3px 0 0 28px; color: #6c757d; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 0; padding: 8px; color: #495057; border: 1px solid var(--border); border-bottom: 0; background: #f8f9fa; }
.editor-toolbar button { min-height: 32px; padding: 4px 10px; color: #495057; background: #fff; border: 1px solid #ced4da; cursor: pointer; }
.editor-toolbar button + button { margin-left: -1px; }
.rules-editor { min-height: 480px; border-radius: 0 0 4px 4px; font-family: "Source Sans Pro", sans-serif; line-height: 1.5; }
.config-section { grid-column: 1 / -1; margin-bottom: 20px; }
.config-section h3 { margin: 0 0 14px; font-size: 18px; font-weight: 400; }
.config-toggle { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; cursor: pointer; }
.config-switch-grid, .config-file-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.config-file-grid { margin: 10px 0 20px; }
.config-switch-field > label:first-child { display: block; margin-bottom: 8px; }
.custom-switch { position: relative; display: inline-block; width: 36px; height: 20px; cursor: pointer; }
.custom-switch input { position: absolute; opacity: 0; pointer-events: none; }
.custom-switch span { position: absolute; inset: 0; border-radius: 20px; background: #adb5bd; transition: background .15s ease-in-out; }
.custom-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s ease-in-out; }
.custom-switch input:checked + span { background: var(--blue); }
.custom-switch input:checked + span::after { transform: translateX(16px); }
.config-file-field { position: relative; }
.config-file-field > label:first-child { display: block; margin-bottom: 8px; }
.config-file-field input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.config-image-preview { margin: 0 0 10px; overflow: hidden; border: 1px solid #cdd8ea; border-radius: 12px; background: #eef3fb; box-shadow: 0 8px 20px rgba(27, 47, 93, .08); }
.config-image-preview img { display: block; width: 100%; height: 190px; padding: 10px; object-fit: contain; background: linear-gradient(145deg, #ffffff, #f5f8ff); }
.config-image-preview figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px 11px; color: #52627c; font-size: 11px; line-height: 1.35; }
.config-image-empty { min-height: 42px; margin: 0 0 10px; padding: 10px; color: #6c757d; background: #f8f9fa; border: 1px dashed #ced4da; border-radius: 3px; }
.report-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.report-summary-grid > div { position: relative; min-height: 82px; padding: 16px 18px 13px; overflow: hidden; border: 1px solid #dbe3f0; border-left: 4px solid #5b4be7; border-radius: 12px; background: linear-gradient(145deg, #ffffff, #f5f7ff); box-shadow: 0 7px 18px rgba(38, 49, 92, .08); }
.report-summary-grid > div::after { position: absolute; right: -18px; bottom: -26px; width: 80px; height: 80px; border-radius: 50%; background: rgba(91, 75, 231, .08); content: ""; }
.report-summary-grid small, .report-summary-grid strong { display: block; }
.report-summary-grid small { margin-bottom: 6px; color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.report-summary-grid strong { position: relative; z-index: 1; color: #172554; font-size: 22px; font-weight: 900; }
.cashier-report-empty { margin: 22px 0 4px; padding: 28px 20px; color: #64748b; border: 1px dashed #b9c5dc; border-radius: 12px; background: linear-gradient(145deg, #f8faff, #eef2ff); text-align: center; }
.cashier-report-empty i { display: block; margin-bottom: 8px; color: #7065e8; font-size: 26px; }
.report-print { margin: 0 0 16px 8px; }
.custom-file-control { display: block; height: 38px; padding: 6px 12px; color: #495057; border: 1px solid #ced4da; border-radius: 4px; background: #fff; cursor: pointer; }
.switch-line { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch-line input { accent-color: var(--blue); }
.form-check-inline { align-self: end; padding-bottom: 16px; }
.form-check-inline input { margin-right: 8px; }
.autobingo-checks { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 2px 0 12px; }
.autobingo-checks label { margin: 0; cursor: pointer; }
.autobingo-checks input { margin-right: 7px; accent-color: var(--blue); }
.autobingo-help { margin: 16px 0 20px; padding: 10px 12px; border-left: 3px solid #17a2b8; background: #f8f9fa; }
.autobingo-format-guide { margin: 18px 0; padding: 16px 18px; border: 1px solid #d8e1ed; border-left: 4px solid #7065f0; border-radius: 12px; background: #f8faff; }
.autobingo-format-guide > strong, .autobingo-format-guide > span { display: block; }
.autobingo-format-guide > strong { color: #3647b8; font-size: 15px; }
.autobingo-format-guide > strong i { margin-right: 6px; }
.autobingo-format-guide > span { margin-top: 5px; color: #6c757d; font-size: 13px; }
.autobingo-format-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.autobingo-format-chips span { padding: 10px 11px; color: #465267; border: 1px solid #dbe4f0; border-radius: 9px; background: #fff; font-size: 12px; }
.autobingo-format-chips b { display: block; margin-bottom: 3px; color: #283a93; font-size: 12px; }

/* Player experience */
.player-mode { background: #f4f7fb; }
.player-mode .main-header, .player-mode .main-sidebar, .player-mode .main-footer, .player-mode .control-sidebar, .player-mode #sidebar-overlay { display: none !important; }
.player-mode .content-wrapper { min-height: 100vh; margin-left: 0; background: #f4f7fb; }
.player-mode .content { padding: 0; }
.player-app { min-height: 100vh; color: #18243d; background: #f4f7fb; font-family: var(--font); }
.player-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 0 clamp(20px, 5vw, 72px); background: rgba(255,255,255,.94); border-bottom: 1px solid #e8edf5; box-shadow: 0 4px 18px rgba(20,32,58,.04); }
.player-brand { display: inline-flex; align-items: center; gap: 12px; color: #18243d; }
.player-brand:hover { color: #18243d; }
.player-brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; border-radius: 14px; background: linear-gradient(135deg, #7065f0, #988dff); box-shadow: 0 8px 18px rgba(112,101,240,.25); font-size: 19px; }
.player-brand-logo { display: block; width: 100%; height: 100%; padding: 7px; object-fit: contain; border-radius: inherit; }
.player-brand strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.6px; line-height: 22px; }
.player-brand strong span { color: #6e64ef; }
.player-brand small { display: block; margin-top: 3px; color: #8b96a9; font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.player-top-actions { display: flex; align-items: center; gap: 14px; }
.player-connection { color: #7c889d; font-size: 13px; }
.player-connection i { margin-right: 6px; color: #2fc78b; font-size: 8px; vertical-align: 2px; }
.player-icon-button { display: grid; place-items: center; width: 38px; height: 38px; color: #728096; border: 1px solid #e6ebf3; border-radius: 12px; background: #fff; cursor: pointer; transition: color .18s, border-color .18s, transform .18s; }
.player-icon-button:hover { color: #6e64ef; border-color: #cfcaff; transform: translateY(-1px); }
.player-voice-button { display: inline-flex; width: auto; min-width: 38px; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; }
.player-voice-button-label { font-size: 10px; font-weight: 900; white-space: nowrap; }
.player-voice-button.is-enabled { color: #159b68; border-color: #a9e5c9; background: #f2fff8; }
.player-voice-button.is-enabled:hover { color: #087c4e; border-color: #6fd3a5; }
.player-voice-button.needs-unlock { animation: player-voice-pulse 1.8s ease-in-out infinite; }
.player-content { max-width: 1260px; margin: 0 auto; padding: 32px clamp(20px, 5vw, 72px) 22px; }
.player-hero { position: relative; display: flex; justify-content: space-between; gap: 28px; min-height: 244px; padding: 38px 42px; overflow: hidden; color: #fff; border-radius: 28px; background: linear-gradient(115deg, #1c2747 0%, #273a68 62%, #5364c1 100%); box-shadow: 0 20px 40px rgba(34,49,90,.16); }
.player-hero::before, .player-hero::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; pointer-events: none; }
.player-hero::before { width: 360px; height: 360px; right: 12%; top: -235px; }
.player-hero::after { width: 500px; height: 500px; right: -70px; bottom: -420px; }
.player-hero-copy, .player-hero-draw { position: relative; z-index: 1; }
.player-eyebrow, .player-kicker { display: block; color: #7d74fb; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.player-hero .player-eyebrow { color: #a9f4d1; }
.player-eyebrow i { margin-right: 6px; }
.player-hero h1 { margin: 13px 0 10px; font-size: clamp(30px, 4vw, 45px); font-weight: 500; letter-spacing: -1.5px; line-height: 1.05; }
.player-hero h1 em { color: #a9f4d1; font-style: normal; font-weight: 700; }
.player-hero p { max-width: 450px; margin: 0; color: rgba(255,255,255,.72); font-size: 16px; }
.player-hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; color: rgba(255,255,255,.65); font-size: 12px; }
.player-hero-meta i { margin-right: 5px; color: #a9f4d1; }
.player-hero-draw { display: flex; flex: 0 0 184px; flex-direction: column; align-items: center; justify-content: center; align-self: center; min-height: 170px; padding: 20px; text-align: center; border: 1px solid rgba(255,255,255,.15); border-radius: 22px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.player-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 99px; background: rgba(255,255,255,.11); color: rgba(255,255,255,.8); font-size: 11px; font-weight: 700; }
.player-status i { font-size: 7px; }
.player-status.is-live { color: #b8f7da; background: rgba(47,199,139,.16); }
.player-status.is-live i { color: #65e6ae; }
.player-status.is-waiting i { color: #ffd27b; }
.player-hero-draw-number { margin-top: 10px; font-size: 49px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.player-hero-draw-number small { color: rgba(255,255,255,.45); font-size: 19px; font-weight: 500; letter-spacing: 0; }
.player-hero-draw > strong { color: rgba(255,255,255,.72); font-size: 12px; font-weight: 500; }
.player-draw-time { margin-top: 12px; color: rgba(255,255,255,.58); font-size: 12px; }
.player-draw-time i { margin-right: 5px; }
.player-toolbar { display: flex; align-items: center; gap: 16px; min-height: 88px; margin: 18px 0; padding: 16px 20px; border: 1px solid #e7edf5; border-radius: 18px; background: #fff; box-shadow: 0 7px 18px rgba(20,32,58,.035); }
.player-room-select { display: flex; align-items: center; gap: 12px; min-width: 220px; color: #8691a4; font-size: 12px; font-weight: 600; }
.player-room-select > span { white-space: nowrap; }
.player-room-select i { margin-right: 4px; color: #746bf1; }
.player-room-select select { min-width: 124px; height: 40px; padding: 6px 28px 6px 12px; color: #283653; border: 1px solid #e4eaf3; border-radius: 10px; background: #f8faff; outline: none; cursor: pointer; }
.player-prize, .player-draw-id { display: flex; flex-direction: column; gap: 1px; min-width: 150px; padding-left: 22px; border-left: 1px solid #edf0f5; }
.player-prize span, .player-draw-id span { color: #929caf; font-size: 11px; }
.player-prize strong { color: #2bb57f; font-size: 20px; }
.player-draw-id { margin-left: auto; }
.player-draw-id strong { color: #253452; font-size: 17px; }
.player-more-draws { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; color: #fff; border-radius: 10px; background: linear-gradient(135deg, #756af0, #5665df); box-shadow: 0 6px 12px rgba(85,87,202,.16); font-size: 12px; font-weight: 700; white-space: nowrap; }
.player-more-draws:hover { color: #fff; filter: brightness(1.05); transform: translateY(-1px); }
.player-grid { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(300px, .82fr); gap: 20px; align-items: start; }
.player-main-column, .player-side-column { min-width: 0; }
.player-panel { border: 1px solid #e7edf5; border-radius: 20px; background: #fff; box-shadow: 0 7px 18px rgba(20,32,58,.035); }
.player-board-panel { padding: 24px 26px 20px; }
.player-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.player-panel-heading h2, .player-next-row h2 { margin: 3px 0 0; color: #233251; font-size: 22px; font-weight: 600; letter-spacing: -.4px; }
.player-counter { padding: 7px 10px; color: #748198; border: 1px solid #ebeff5; border-radius: 9px; font-size: 11px; }
.player-counter b { color: #6e64ef; font-size: 14px; }
.player-number-bands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 27px 0 9px; }
.player-number-bands span { color: #98a4b8; font-size: 11px; font-weight: 700; text-align: center; }
.player-number-board { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 4px; }
.player-ball { display: grid; place-items: center; aspect-ratio: 1; min-width: 0; color: transparent; border: 1px solid #edf1f6; border-radius: 9px; background: #edf1f6; box-shadow: inset 0 1px 2px rgba(42,55,82,.04); font-size: 12px; font-weight: 700; opacity: .42; transition: color .15s, background .15s, opacity .15s, transform .15s, box-shadow .15s; }
.player-ball.is-called { color: #fff; border-color: transparent; box-shadow: 0 5px 10px rgba(88,104,185,.16); transform: translateY(-1px); }
.player-ball.ball-band-0.is-called { background: #766bf0; opacity: 1; }
.player-ball.ball-band-1.is-called { background: #4a9eea; opacity: 1; }
.player-ball.ball-band-2.is-called { background: #35bd88; opacity: 1; }
.player-ball.ball-b.is-called { background: #766bf0; }
.player-ball.ball-i.is-called { background: #4a9eea; }
.player-ball.ball-n.is-called { background: #ed9a57; }
.player-ball.ball-g.is-called { background: #35bd88; }
.player-ball.ball-o.is-called { background: #e66f8d; }
.player-board-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 21px; color: #8c97aa; font-size: 11px; }
.player-legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #e9eef5; }
.player-legend-dot.called { background: #766bf0; }
.player-board-note { margin-left: auto; color: #9aa5b6; }
.player-board-note i { margin-right: 4px; color: #7f75ef; }
.player-next-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 27px 3px 13px; }
.player-link-button { padding: 4px 0; color: #6e64ef; border: 0; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.player-link-button i { margin-left: 4px; font-size: 10px; }
.player-draw-list { margin: 0; padding: 0; overflow: hidden; border: 1px solid #e7edf5; border-radius: 18px; background: #fff; list-style: none; box-shadow: 0 7px 18px rgba(20,32,58,.035); }
.player-draw-row { display: flex; align-items: center; gap: 11px; min-height: 67px; padding: 10px 16px; border-bottom: 1px solid #eff2f6; }
.player-draw-row:last-child { border-bottom: 0; }
.player-draw-row.is-current { background: #fbfbff; }
.player-draw-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #746bf1; border-radius: 10px; background: #f0efff; font-size: 13px; }
.player-draw-row > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.player-draw-row strong { color: #32405d; font-size: 13px; font-weight: 600; }
.player-draw-row small { margin-top: 2px; color: #a0a9b8; font-size: 11px; }
.player-draw-row b { color: #2bb57f; font-size: 13px; font-weight: 700; }
.player-draw-prizes { display: grid; flex: 0 0 210px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.player-draw-prizes .hub-draw-prize-chip { gap: 2px; }
.player-draw-prizes .hub-draw-prize-chip small { color: #708098; font-size: 9px; }
.player-draw-prizes .hub-draw-prize-chip strong { color: #15936b; font-size: 10px; white-space: nowrap; }
.player-draw-buy { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 7px 11px; border: 0; border-radius: 10px; background: linear-gradient(135deg,#6c5ce7,#5147d9); color: #fff; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; box-shadow: 0 7px 15px rgba(91,78,220,.2); transition: transform .18s ease,box-shadow .18s ease,opacity .18s ease; }
.player-draw-buy:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(91,78,220,.28); }
.player-draw-buy:disabled { opacity: .55; cursor: wait; transform: none; }
.player-empty-row { padding: 22px 16px; color: #94a0b2; font-size: 13px; text-align: center; }
.player-ticket-panel { padding: 24px 24px 21px; }
.player-ticket-empty { display: flex; min-height: 310px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.player-ticket-empty > i { margin-bottom: 13px; color: #766bf0; font-size: 34px; }
.player-ticket-empty h2 { margin: 7px 0; color: #273653; font-size: 20px; }
.player-ticket-empty p { max-width: 250px; margin: 0 0 18px; color: #8b97aa; font-size: 12px; line-height: 1.5; }
.player-ticket-empty .player-primary-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0 18px; }
.player-hero-bottom { margin-top: 28px; }
.player-more-button { display: grid; place-items: center; width: 32px; height: 32px; color: #8a96a9; border: 1px solid #e7edf5; border-radius: 9px; background: #fff; cursor: pointer; }
.player-more-button:hover { color: #6e64ef; border-color: #cbc7ff; }
.player-ticket-head, .player-ticket-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.player-ticket-head { margin: 26px 0 8px; color: #8a96aa; font-size: 12px; font-weight: 700; text-align: center; }
.player-ticket-list { display: grid; gap: 14px; }
.player-purchased-ticket { min-width: 0; padding: 12px; border: 1px solid #e7edf5; border-radius: 14px; background: linear-gradient(145deg, #fff, #fbfcff); }
.player-purchased-ticket-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.player-purchased-ticket-heading > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.player-purchased-ticket-heading strong { overflow: hidden; color: #35425d; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.player-ticket-index { color: #766bf0; font-size: 10px; font-weight: 800; letter-spacing: .35px; text-transform: uppercase; }
.player-purchased-ticket .player-ticket-head { margin-top: 13px; }
.player-ticket-cell { display: grid; place-items: center; aspect-ratio: 1; min-width: 0; padding: 2px; color: #33415d; border: 1px solid #e8edf4; border-radius: 10px; background: #f9fbfd; cursor: pointer; font-size: 15px; font-weight: 700; transition: color .15s, background .15s, border-color .15s, transform .15s; }
.player-ticket-cell:hover { border-color: #bdb8ff; transform: translateY(-1px); }
.player-ticket-cell.is-marked { color: #fff; border-color: #6e64ef; background: linear-gradient(135deg, #7065f0, #9388ff); box-shadow: 0 5px 12px rgba(112,101,240,.18); }
.player-ticket-cell.is-free { color: #278e69; border-color: #bdebd7; background: #e9fbf3; font-size: 10px; text-transform: uppercase; }
.player-ticket-cell.is-free i { margin-bottom: 1px; font-size: 9px; }
.player-ticket-cell.is-free span { font-size: 8px; letter-spacing: .4px; }
.player-ticket-status { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding: 10px 12px; color: #5c6b84; border-radius: 11px; background: #f7f8ff; font-size: 12px; }
.player-ticket-status > i { color: #766bf0; }
.player-ticket-status span { display: flex; flex: 1; flex-direction: column; }
.player-ticket-status small { margin-top: 2px; color: #a0a9ba; font-size: 10px; }
.player-ticket-actions { display: flex; gap: 8px; margin-top: 15px; }
.player-primary-button, .player-secondary-button { min-height: 39px; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 700; transition: filter .15s, transform .15s; }
.player-primary-button:hover, .player-secondary-button:hover { filter: brightness(.96); transform: translateY(-1px); }
.player-primary-button { flex: 1; color: #fff; border: 1px solid #6e64ef; background: #6e64ef; }
.player-primary-button i, .player-secondary-button i { margin-right: 4px; }
.player-secondary-button { width: 74px; color: #68758b; border: 1px solid #e5eaf2; background: #fff; }
.player-secondary-button.is-active { color: #278e69; border-color: #bdebd7; background: #e9fbf3; }
.player-help-panel { display: flex; gap: 12px; margin-top: 16px; padding: 17px; color: #63718a; background: #fffef9; }
.player-help-icon { display: grid; flex: 0 0 35px; place-items: center; width: 35px; height: 35px; color: #de9a36; border-radius: 11px; background: #fff2d6; }
.player-help-panel strong { color: #42516b; font-size: 13px; }
.player-help-panel p { margin: 4px 0 0; color: #8b96a8; font-size: 11px; line-height: 1.45; }
.player-footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 26px; padding: 18px 2px 0; color: #a1abba; border-top: 1px solid #e5ebf3; font-size: 11px; }
.player-footer i { margin-right: 4px; color: #38ba86; }
.player-footer a { color: #7b72ed; }

/* Hub-inspired draw home */
.hub-mode { background: #323743; }
.hub-mode .content-wrapper { background: #323743; }
.hub-app { min-height: 100vh; color: #fff; background: #323743; font-family: "Nunito Sans", var(--font); }
.hub-topbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 clamp(16px, 3.5vw, 46px); color: #777d87; background: #fff; box-shadow: 1px 0 7px rgba(0,0,0,.05); }
.hub-logo { display: inline-flex; align-items: center; gap: 9px; color: #263346; font-size: 20px; font-weight: 800; }
.hub-logo:hover { color: #263346; }
.hub-logo-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; border-radius: 50%; background: #2530ba; font-size: 15px; }
.hub-logo-image { display: block; width: 100%; height: 100%; padding: 5px; object-fit: contain; border-radius: inherit; }
.hub-logo strong span { color: #f00000; }
.hub-top-links { display: flex; align-items: center; gap: 6px; }
.hub-top-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 13px; color: #777d87; border-radius: 4px; font-size: 13px; }
.hub-top-links a:hover { color: #263346; background: #f1f3f7; }
.hub-top-links a:first-child { margin-right: 10px; }
.hub-top-links a:first-child i:last-child { margin-left: 3px; font-size: 9px; }
.hub-top-links a:nth-child(2) { color: #6e81c9; border: 1px solid #b9c2e7; }
.hub-top-links .hub-register-link { color: #fff; background: #6d79ca; }
.hub-top-links .hub-register-link:hover { color: #fff; background: #5866b9; }
.hub-account-profile { display: flex; align-items: center; gap: 8px; }
.hub-account-avatar { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; border-radius: 50%; background: #2530ba; font-size: 11px; font-weight: 900; }
.hub-account-copy { display: flex; flex-direction: column; min-width: 0; }
.hub-account-copy strong { max-width: 150px; overflow: hidden; color: #263346; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.hub-account-copy small { max-width: 150px; overflow: hidden; color: #9299a5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.hub-account-signout { min-height: 32px; padding: 5px 10px; color: #6e81c9; border: 1px solid #b9c2e7; border-radius: 4px; background: #fff; cursor: pointer; font-size: 11px; font-weight: 700; }
.hub-account-signout:hover { color: #263346; background: #f1f3f7; }
.hub-nav { position: relative; z-index: 2; min-height: 50px; background: #20222a; }
.hub-nav-inner { display: flex; align-items: stretch; max-width: 1440px; min-height: 50px; margin: 0 auto; padding: 0 clamp(14px, 3.5vw, 46px); }
.hub-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 23px; color: #87909e; font-size: 14px; }
.hub-nav a:hover, .hub-nav a.is-active { color: #fff; background: #ff5157; }
.hub-nav a i:last-child { margin-left: 2px; font-size: 9px; }
.hub-theme-toggle { display: inline-flex; align-items: center; gap: 7px; margin-right: 8px; padding: 0 10px 0 0; color: #b1b5bf; cursor: pointer; font-size: 13px; }
.hub-theme-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.hub-theme-toggle span { position: relative; display: block; width: 29px; height: 19px; border: 1px solid #6c7482; border-radius: 99px; background: #353945; }
.hub-theme-toggle input:focus-visible + span { outline: 3px solid #1d4ed8; outline-offset: 3px; }
.hub-theme-toggle span::after { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; content: ""; border-radius: 50%; background: #6f7a8c; transition: transform .2s, background .2s; }
.hub-theme-toggle input:checked + span::after { transform: translateX(10px); background: #ffcc43; }
.hub-nav-status { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #7d8795; font-size: 11px; }
.hub-nav-status i { color: #31cd82; font-size: 7px; }
.hub-content { position: relative; min-height: calc(100vh - 112px); overflow: hidden; padding: 16px clamp(14px, 3.5vw, 46px) 24px; background: radial-gradient(circle at 18% 12%, rgba(255,255,255,.7) 0 1px, transparent 2px), radial-gradient(circle at 82% 28%, rgba(255,255,255,.65) 0 1px, transparent 2px), linear-gradient(175deg, #b7ddf4 0%, #77b2ea 35%, #d4e9f5 72%, #8ec0e6 100%); background-size: 270px 220px, 340px 260px, auto; }
.hub-content::before, .hub-content::after { position: absolute; content: ""; border-radius: 50%; background: rgba(255,255,255,.56); filter: blur(12px); pointer-events: none; }
.hub-content::before { width: 380px; height: 120px; left: -80px; top: 118px; box-shadow: 120px 22px 0 rgba(255,255,255,.45), 230px -10px 0 rgba(255,255,255,.35); }
.hub-content::after { width: 420px; height: 110px; right: -100px; bottom: 80px; box-shadow: -140px 30px 0 rgba(255,255,255,.4), -280px -4px 0 rgba(255,255,255,.35); }
.hub-layout, .hub-bottom-grid, .hub-footer { position: relative; z-index: 1; max-width: 1390px; margin: 0 auto; }
.hub-layout { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(400px, .92fr); gap: 42px; align-items: start; }
.hub-main-column, .hub-side-column { min-width: 0; }
.hub-countdown-card { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 200px; padding: 20px; overflow: hidden; border: 5px solid #fff; border-radius: 16px; background: #080d9c; box-shadow: 0 10px 0 rgba(4,26,122,.16); }
.hub-live-label { color: #fff; font-size: 14px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.hub-live-label i { margin-right: 6px; color: #ffe500; }
.hub-countdown { display: flex; align-items: center; gap: clamp(8px, 2vw, 17px); margin: 10px 0 6px; color: #fff500; font-size: clamp(60px, 9vw, 116px); font-weight: 900; letter-spacing: 2px; line-height: .95; }
.hub-countdown span { display: grid; place-items: center; min-width: 1.12em; padding: 7px 8px 2px; border: 4px solid #fff; border-radius: 14px; background: #050c91; text-shadow: 2px 3px 0 rgba(0,0,0,.09); }
.hub-countdown b { color: #fff500; font-size: .65em; }
.hub-countdown-card small { color: rgba(255,255,255,.82); font-size: 12px; }
.hub-info-card { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 17px; padding: 11px 0; color: #09208e; border: 4px solid #fff; border-radius: 13px; background: #fff; box-shadow: 0 7px 0 rgba(4,26,122,.12); text-align: center; }
.hub-info-card > div { display: flex; flex-direction: column; gap: 2px; padding: 0 13px; border-right: 2px solid #1526a6; }
.hub-info-card > div:last-child { border-right: 0; }
.hub-info-card small { color: #112d99; font-size: 14px; font-weight: 900; }
.hub-info-card strong { color: #1f34a6; font-size: clamp(18px, 2.2vw, 29px); font-weight: 900; white-space: nowrap; }
.hub-info-card > div:first-child strong { color: #ed2024; }
.hub-prizes { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.hub-prize-bar { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 5px 16px; color: #fff500; border-radius: 12px; background: #07139a; box-shadow: 0 6px 0 rgba(4,26,122,.15); font-size: clamp(20px, 2.2vw, 30px); font-weight: 900; }
.hub-prize-bar span { display: inline-flex; align-items: center; gap: 9px; }
.hub-prize-bar span i { color: #fff; font-size: .7em; }
.hub-prize-bar strong { color: #fff500; font-weight: 900; }
.hub-accumulated { min-height: 58px; color: #fff; background: linear-gradient(90deg, #ff2232, #f3080c); }
.hub-accumulated strong { color: #fff; }
.hub-accumulated span b { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: 4px; color: #1935bd; border-radius: 50%; background: #ffd94e; font-size: .86em; }
.hub-accumulated span small { display: inline-block; margin-left: 4px; color: rgba(255,255,255,.82); font-size: .34em; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hub-accumulated.is-disabled { color: #d9d9d9; background: linear-gradient(90deg, #5d5d5d, #303030); filter: saturate(.35); }
.hub-accumulated.is-disabled strong { color: #eee; }
.hub-accumulated.is-disabled span b { color: #444; background: #bcbcbc; }
.hub-accumulated.is-complete { background: linear-gradient(90deg, #16835a, #0d5c42); }
.hub-side-column { display: flex; flex-direction: column; gap: 17px; }
.hub-donation-card { padding: 8px 10px 11px; border: 4px solid #fff; border-radius: 14px; background: #fff; box-shadow: 0 7px 0 rgba(4,26,122,.13); }
.hub-amounts { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
.hub-amount-button { min-height: 32px; color: #172145; border: 2px solid #283cc5; border-radius: 4px; background: #fff51a; cursor: pointer; font-size: 15px; font-weight: 900; }
.hub-amount-button:hover, .hub-amount-button.is-selected { color: #fff; background: #283cc5; }
.hub-donation-row { display: grid; grid-template-columns: 42px 60px 42px minmax(90px, 1fr); gap: 7px; margin-top: 7px; }
.hub-donation-row > button:not(.hub-donate-button), .hub-donation-row output { display: grid; place-items: center; min-height: 40px; border: 1px solid #e6e9ee; background: #fff; color: #1d2b4d; font-size: 19px; font-weight: 800; }
.hub-donation-row > button:not(.hub-donate-button):first-child, .hub-donation-row > button:not(.hub-donate-button):nth-child(3) { color: #fff; border-color: #142ec2; background: #142ec2; }
.hub-donation-row output { font-size: 15px; }
.hub-donation-row > strong { display: grid; place-items: center; color: #334054; border: 1px solid #e2e5e9; background: #fff; font-size: 15px; }
.hub-quantity-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; padding: 7px 10px; color: #245247; border: 1px solid #b9e8d3; border-radius: 7px; background: #effcf6; font-size: 12px; font-weight: 800; }
.hub-quantity-total strong { color: #047857; font-size: 17px; font-weight: 900; }
.hub-donate-button { min-height: 42px; color: #fff; border: 1px solid #0aaf2a; border-radius: 5px; background: #0ddc1c; box-shadow: inset 0 -2px 0 rgba(0,0,0,.14); cursor: pointer; font-size: 20px; font-weight: 900; }
.hub-donate-button:hover { background: #08be18; }
.hub-donate-button i { margin-right: 5px; font-size: 16px; }
.hub-donation-note { display: block; margin: 7px 0 0; color: #8a929e; font-size: 10px; text-align: center; }
.hub-donation-note i { margin-right: 4px; color: #293fc1; }
.hub-donation-card-locked { display: grid; place-items: center; min-height: 155px; padding: 20px; }
.hub-donation-locked { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #65718a; text-align: center; }
.hub-donation-locked > i { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; border-radius: 50%; background: #293fc1; font-size: 16px; }
.hub-donation-locked strong { color: #172b91; font-size: 16px; }
.hub-donation-locked span { max-width: 270px; font-size: 11px; line-height: 1.45; }
.hub-donation-locked > div { display: flex; gap: 8px; margin-top: 5px; }
.hub-donation-login, .hub-donation-register { display: inline-flex; align-items: center; justify-content: center; min-width: 82px; min-height: 31px; padding: 5px 12px; border-radius: 5px; font-size: 12px; font-weight: 800; text-decoration: none; }
.hub-donation-login { color: #293fc1; border: 1px solid #293fc1; background: #fff; }
.hub-donation-register { color: #fff; border: 1px solid #293fc1; background: #293fc1; }
.hub-promo { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 210px; padding: 24px 28px; overflow: hidden; color: #fff; border: 4px solid #fff; border-radius: 14px; background: radial-gradient(circle at 50% 55%, #f7c75c 0 5%, transparent 6%), radial-gradient(circle at 30% 35%, #f3b642 0 1%, transparent 2%), linear-gradient(135deg, #17272e, #0c775e 55%, #f0b72f); box-shadow: 0 7px 0 rgba(4,26,122,.13); }
.hub-promo::before { position: absolute; inset: -100px; content: ""; opacity: .18; background-image: radial-gradient(circle, #fff 0 2px, transparent 3px); background-size: 27px 27px; transform: rotate(14deg); }
.hub-promo > * { position: relative; z-index: 1; }
.hub-promo-burst { display: grid; place-items: center; width: 54px; height: 54px; color: #fff; border: 3px solid #fff; border-radius: 50%; background: #e91d2f; font-size: 24px; transform: rotate(-12deg); }
.hub-promo > div { flex: 1; padding: 0 13px; text-align: center; }
.hub-promo > div > span { color: #ffdc5b; font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.hub-promo > div strong { display: block; margin: 3px 0; color: #fff; font-size: clamp(19px, 2.7vw, 31px); font-weight: 900; line-height: 1.02; text-shadow: 2px 2px 0 rgba(0,0,0,.18); }
.hub-promo > div small { color: rgba(255,255,255,.8); font-size: 11px; }
.hub-promo-ball { display: grid; place-items: center; width: 48px; height: 48px; color: #fff; border: 4px solid #fff; border-radius: 50%; background: #e5ad31; box-shadow: 0 3px 0 rgba(0,0,0,.25); font-size: 9px; font-weight: 900; line-height: 1; transform: rotate(-14deg); }
.hub-promo-ball b { font-size: 14px; }
.hub-promo-ball.n { background: #bb4cac; transform: rotate(12deg); }
.hub-promo-configured { min-height: 210px; padding: 0; background: #121212; }
.hub-promo-configured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hub-promo-configured::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.12) 72%, rgba(0,0,0,.42)); }
.hub-promo-overlay { position: relative; z-index: 2; display: flex; width: 100%; flex-direction: column; align-items: center; justify-content: center; min-height: 210px; padding: 20px; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,.65); }
.hub-promo-overlay span { color: #ffdc5b; font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.hub-promo-overlay strong { margin: 4px 0; color: #fff; font-size: clamp(21px, 2.7vw, 31px); font-weight: 900; text-transform: uppercase; }
.hub-promo-overlay small { color: rgba(255,255,255,.88); font-size: 11px; }
.hub-history-card { padding: 17px 19px 11px; border: 4px solid #fff; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 7px 0 rgba(4,26,122,.13); }
.hub-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #1c2e90; font-size: 15px; font-weight: 900; }
.hub-card-title a { color: #4658ba; font-size: 11px; }
.hub-history-card ul { margin: 9px 0 0; padding: 0; list-style: none; }
.hub-history-card li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; color: #708098; border-top: 1px solid #e8edf3; font-size: 12px; }
.hub-history-card li i { margin-right: 5px; color: #4354bf; }
.hub-history-card li strong { color: #20a26b; }
.hub-history-card li.hub-history-draw-row { align-items: stretch; flex-direction: column; gap: 6px; }
.hub-history-draw-date { font-size: 11px; }
.hub-history-prizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-empty { justify-content: center !important; color: #99a4b4 !important; }
.hub-bottom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.hub-bottom-card { display: flex; align-items: flex-start; gap: 12px; min-height: 83px; padding: 15px; border: 3px solid #fff; border-radius: 13px; background: rgba(255,255,255,.88); box-shadow: 0 5px 0 rgba(4,26,122,.09); }
.hub-whatsapp-icon { display: inline-flex; width: 1.05em; height: 1.05em; flex: 0 0 auto; vertical-align: -0.15em; color: #25d366; }
.hub-whatsapp-icon svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hub-whatsapp-icon circle { fill: currentColor; }
.hub-whatsapp-icon path { fill: #fff; }
.hub-bottom-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; color: #3045bf; border-radius: 9px; background: #e6eaff; }
.hub-bottom-icon.green { color: #149866; background: #dcf7ea; }
.hub-bottom-icon.gold { color: #bc7c12; background: #fff0c9; }
.hub-bottom-card strong { color: #2e3b74; font-size: 13px; }
.hub-bottom-card p { margin: 3px 0 0; color: #7d899d; font-size: 11px; line-height: 1.35; }
.hub-footer { display: flex; justify-content: space-between; gap: 14px; padding: 18px 2px 0; color: rgba(255,255,255,.78); font-size: 11px; }
.hub-footer i { margin-right: 4px; color: #8bf0bf; }
.hub-footer a { color: #fff; }
.hub-light-mode .hub-content { background: linear-gradient(175deg, #d9f0fc 0%, #a9d8f6 40%, #f2f8fc 100%); }

/* =========================================================
   Modern Executive Casino Dark Mode for Public Hub
   ========================================================= */
body.hub-dark-mode, body.hub-dark-mode .content-wrapper { background: #080d1a !important; color: #f8fafc; }
body.hub-dark-mode .hub-app { color: #f8fafc; background: #080d1a; }
body.hub-dark-mode .hub-topbar { color: #94a3b8; background: rgba(13, 19, 34, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid #1e293b; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45); }
body.hub-dark-mode .hub-logo, body.hub-dark-mode .hub-logo:hover { color: #ffffff; }
body.hub-dark-mode .hub-logo-mark { color: #ffffff; background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 0 16px rgba(37, 99, 235, 0.4); }
body.hub-dark-mode .hub-logo strong span { color: #38bdf8; }
body.hub-dark-mode .hub-top-links a { color: #cbd5e1; }
body.hub-dark-mode .hub-top-links a:hover { color: #ffffff; background: #1e293b; }
body.hub-dark-mode .hub-top-links a:nth-child(2) { color: #38bdf8; border-color: #0284c7; }
body.hub-dark-mode .hub-top-links .hub-register-link { color: #ffffff; background: linear-gradient(135deg, #2563eb, #1d4ed8); }
body.hub-dark-mode .hub-top-links .hub-register-link:hover { color: #ffffff; background: #1d4ed8; }
body.hub-dark-mode .hub-account-avatar { color: #ffffff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 0 10px rgba(59, 130, 246, 0.3); }
body.hub-dark-mode .hub-account-copy strong { color: #ffffff; }
body.hub-dark-mode .hub-account-copy small { color: #94a3b8; }
body.hub-dark-mode .hub-account-signout { color: #cbd5e1; border-color: #334155; background: #1e293b; }
body.hub-dark-mode .hub-account-signout:hover { color: #ef4444; border-color: #ef4444; background: #2b1116; }
body.hub-dark-mode .hub-nav { background: #0c1222; border-bottom: 1px solid #1e293b; }
body.hub-dark-mode .hub-nav a { color: #94a3b8; }
body.hub-dark-mode .hub-nav a:hover, body.hub-dark-mode .hub-nav a.is-active { color: #ffffff; background: linear-gradient(135deg, #2563eb, #1d4ed8); }
body.hub-dark-mode .hub-theme-toggle { color: #cbd5e1; }
body.hub-dark-mode .hub-theme-toggle span { border-color: #475569; background: #1e293b; }
body.hub-dark-mode .hub-theme-toggle span::after { background: #94a3b8; }
body.hub-dark-mode .hub-theme-toggle input:checked + span::after { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
body.hub-dark-mode .hub-theme-toggle input:focus-visible + span { outline-color: #fbbf24; }
body.hub-dark-mode .hub-nav-status { color: #94a3b8; }
body.hub-dark-mode .hub-content { background: radial-gradient(ellipse at 50% 0%, #172554 0%, #0c1222 45%, #070a14 100%) !important; }
body.hub-dark-mode .hub-content::before, body.hub-dark-mode .hub-content::after { background: rgba(59, 130, 246, 0.05); filter: blur(24px); }
body.hub-dark-mode .hub-countdown-card { border: 2px solid rgba(59, 130, 246, 0.4) !important; background: linear-gradient(145deg, #111a33 0%, #0c1224 100%) !important; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(37, 99, 235, 0.15) !important; border-radius: 16px; }
body.hub-dark-mode .hub-countdown { color: #fbbf24 !important; }
body.hub-dark-mode .hub-countdown span { border: 2px solid rgba(59, 130, 246, 0.35) !important; background: #060911 !important; text-shadow: 0 0 20px rgba(251, 191, 36, 0.45) !important; border-radius: 12px; }
body.hub-dark-mode .hub-countdown b { color: #fbbf24 !important; text-shadow: 0 0 16px rgba(251, 191, 36, 0.5) !important; }
body.hub-dark-mode .hub-countdown-card small { color: #94a3b8 !important; font-weight: 500; }
body.hub-dark-mode .hub-info-card { color: #f8fafc !important; border: 1px solid #1e293b !important; background: #111827 !important; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important; border-radius: 12px; }
body.hub-dark-mode .hub-info-card > div { border-color: #1e293b !important; }
body.hub-dark-mode .hub-info-card small { color: #94a3b8 !important; }
body.hub-dark-mode .hub-info-card strong { color: #38bdf8 !important; }
body.hub-dark-mode .hub-info-card > div:first-child strong { color: #f59e0b !important; }
body.hub-dark-mode .hub-prize-bar { color: #ffffff !important; background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%) !important; border: 1px solid #334155 !important; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35) !important; border-radius: 12px; }
body.hub-dark-mode .hub-prize-bar:nth-child(1) { background: linear-gradient(90deg, #1e3a8a 0%, #0f172a 100%) !important; border-color: rgba(59, 130, 246, 0.4) !important; }
body.hub-dark-mode .hub-prize-bar:nth-child(2) { background: linear-gradient(90deg, #065f46 0%, #064e3b 100%) !important; border-color: rgba(16, 185, 129, 0.4) !important; }
body.hub-dark-mode .hub-prize-bar:nth-child(3) { background: linear-gradient(90deg, #4c1d95 0%, #2e1065 100%) !important; border-color: rgba(168, 85, 247, 0.4) !important; }
body.hub-dark-mode .hub-prize-bar span i { color: #ffffff !important; opacity: 0.9; }
body.hub-dark-mode .hub-prize-bar strong { color: #facc15 !important; text-shadow: 0 0 12px rgba(250, 204, 21, 0.35) !important; font-weight: 900; }
body.hub-dark-mode .hub-accumulated { color: #ffffff !important; background: linear-gradient(90deg, #991b1b 0%, #580a0a 100%) !important; border: 1px solid rgba(239, 68, 68, 0.5) !important; box-shadow: 0 8px 24px rgba(185, 28, 28, 0.35) !important; }
body.hub-dark-mode .hub-accumulated strong { color: #fef08a !important; text-shadow: 0 0 16px rgba(254, 240, 138, 0.45) !important; }
body.hub-dark-mode .hub-accumulated span b { color: #0f172a !important; background: linear-gradient(135deg, #fbbf24, #f59e0b) !important; box-shadow: 0 0 12px rgba(251, 191, 36, 0.5) !important; }
body.hub-dark-mode .hub-accumulated span small { color: #cbd5e1 !important; }
body.hub-dark-mode .hub-accumulated.is-disabled { color: #64748b !important; background: linear-gradient(90deg, #1e293b, #0f172a) !important; border-color: #334155 !important; box-shadow: none !important; filter: none !important; }
body.hub-dark-mode .hub-accumulated.is-disabled strong { color: #64748b !important; text-shadow: none !important; }
body.hub-dark-mode .hub-accumulated.is-disabled span b { color: #475569 !important; background: #334155 !important; box-shadow: none !important; }
body.hub-dark-mode .hub-accumulated.is-complete { background: linear-gradient(90deg, #059669, #022c22) !important; border-color: #10b981 !important; }

/* Side Column Cards: NO WHITE CARDS! Sleek obsidian glass */
body.hub-dark-mode .hub-donation-card, body.hub-dark-mode .hub-history-card { border: 1px solid #1e293b !important; background: #111827 !important; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important; border-radius: 14px; }
body.hub-dark-mode .hub-amount-button { color: #f8fafc !important; border: 1px solid #334155 !important; background: #1e293b !important; border-radius: 6px; }
body.hub-dark-mode .hub-amount-button:hover { color: #ffffff !important; background: #2563eb !important; border-color: #3b82f6 !important; }
body.hub-dark-mode .hub-amount-button.is-selected { color: #0f172a !important; background: #fbbf24 !important; border-color: #f59e0b !important; font-weight: 900; box-shadow: 0 0 10px rgba(251, 191, 36, 0.4) !important; }
body.hub-dark-mode .hub-donation-row > button:not(.hub-donate-button), body.hub-dark-mode .hub-donation-row output, body.hub-dark-mode .hub-donation-row > strong { color: #f8fafc !important; border: 1px solid #334155 !important; background: #1e293b !important; }
body.hub-dark-mode .hub-quantity-total { color: #d1fae5; border-color: rgba(52,211,153,.3); background: rgba(6,78,59,.3); }
body.hub-dark-mode .hub-quantity-total strong { color: #6ee7b7; }
body.hub-dark-mode .hub-donation-row > button:not(.hub-donate-button):first-child, body.hub-dark-mode .hub-donation-row > button:not(.hub-donate-button):nth-child(3) { color: #ffffff !important; border-color: #3b82f6 !important; background: #2563eb !important; }
body.hub-dark-mode .hub-donation-row > button:not(.hub-donate-button):first-child:hover, body.hub-dark-mode .hub-donation-row > button:not(.hub-donate-button):nth-child(3):hover { background: #1d4ed8 !important; }
body.hub-dark-mode .hub-donate-button { color: #ffffff !important; border: 1px solid #10b981 !important; background: linear-gradient(135deg, #10b981, #059669) !important; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important; }
body.hub-dark-mode .hub-donate-button:hover { background: linear-gradient(135deg, #34d399, #10b981) !important; }
body.hub-dark-mode .hub-ticket-button { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important; border: 1px solid rgba(59, 130, 246, 0.4) !important; box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important; }
body.hub-dark-mode .hub-ticket-button:hover { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important; }
body.hub-dark-mode .hub-donation-note { color: #94a3b8 !important; }
body.hub-dark-mode .hub-donation-note i { color: #38bdf8 !important; }
body.hub-dark-mode .hub-donation-locked { color: #94a3b8 !important; }
body.hub-dark-mode .hub-donation-locked strong { color: #ffffff !important; }
body.hub-dark-mode .hub-donation-locked > i { color: #ffffff !important; background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; }
body.hub-dark-mode .hub-donation-login { color: #ffffff !important; border: 1px solid #334155 !important; background: #1e293b !important; }
body.hub-dark-mode .hub-donation-login:hover { background: #334155 !important; }
body.hub-dark-mode .hub-donation-register { color: #ffffff !important; border: 1px solid #3b82f6 !important; background: #2563eb !important; }
body.hub-dark-mode .hub-donation-register:hover { background: #1d4ed8 !important; }
body.hub-dark-mode .hub-promo { border: 1px solid #1e293b !important; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important; }
body.hub-dark-mode .hub-promo-configured { background: #111827 !important; }
body.hub-dark-mode .hub-promo-configured::after { background: linear-gradient(90deg, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.3) 72%, rgba(17, 24, 39, 0.8)) !important; }
body.hub-dark-mode .hub-card-title { color: #ffffff !important; }
body.hub-dark-mode .hub-card-title a { color: #38bdf8 !important; }
body.hub-dark-mode .hub-card-title a:hover { color: #7dd3fc !important; }
body.hub-dark-mode .hub-history-card li { color: #cbd5e1 !important; border-color: #1e293b !important; }
body.hub-dark-mode .hub-history-card li i { color: #38bdf8 !important; }
body.hub-dark-mode .hub-history-card li strong { color: #10b981 !important; }
body.hub-dark-mode .hub-empty { color: #64748b !important; }
body.hub-dark-mode .hub-schedule-link { color: #ffffff !important; background: linear-gradient(90deg, #111827 0%, #1e293b 100%) !important; border: 1px solid #334155 !important; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important; border-radius: 12px; }
body.hub-dark-mode .hub-schedule-link:hover { border-color: #3b82f6 !important; background: linear-gradient(90deg, #1e293b 0%, #2563eb 100%) !important; }
body.hub-dark-mode .hub-bottom-card { border: 1px solid #1e293b !important; background: #111827 !important; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important; border-radius: 14px; }
body.hub-dark-mode .hub-bottom-icon { color: #38bdf8 !important; background: #1e293b !important; }
body.hub-dark-mode .hub-bottom-icon.green { color: #34d399 !important; background: #064e3b !important; }
body.hub-dark-mode .hub-bottom-icon.gold { color: #fbbf24 !important; background: #451a03 !important; }
body.hub-dark-mode .hub-bottom-card strong { color: #ffffff !important; }
body.hub-dark-mode .hub-bottom-card p { color: #94a3b8 !important; }
body.hub-dark-mode .hub-footer { color: #64748b !important; border-top: 1px solid #1e293b !important; }
body.hub-dark-mode .hub-footer i { color: #10b981 !important; }
body.hub-dark-mode .hub-footer a { color: #94a3b8 !important; }
body.hub-dark-mode .hub-footer a:hover { color: #ffffff !important; }

/* Floating wallet dark mode badge */
body.hub-dark-mode .hub-wallet-float { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important; border: 1px solid rgba(59, 130, 246, 0.4) !important; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(37, 99, 235, 0.25) !important; color: #ffffff !important; }
body.hub-dark-mode .hub-wallet-float-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important; color: #ffffff !important; }
body.hub-dark-mode .hub-wallet-float strong { color: #fbbf24 !important; }

/* Cool neon palette for Hub dark mode: remove the legacy brown/gold accents. */
body.hub-dark-mode .hub-theme-toggle input:checked + span::after,
body.hub-dark-mode .hub-live-label i,
body.hub-dark-mode .hub-countdown,
body.hub-dark-mode .hub-countdown b,
body.hub-dark-mode .hub-prize-bar strong,
body.hub-dark-mode .hub-wallet-float strong {
  color: #67e8f9 !important;
}
body.hub-dark-mode .hub-theme-toggle input:checked + span::after {
  background: #67e8f9 !important;
  box-shadow: 0 0 10px rgba(103, 232, 249, .7) !important;
}
body.hub-dark-mode .hub-countdown span {
  text-shadow: 0 0 20px rgba(103, 232, 249, .42) !important;
}
body.hub-dark-mode .hub-countdown b {
  text-shadow: 0 0 16px rgba(103, 232, 249, .55) !important;
}
body.hub-dark-mode .hub-info-card > div:first-child strong {
  color: #a78bfa !important;
}
body.hub-dark-mode .hub-prize-bar strong {
  text-shadow: 0 0 12px rgba(103, 232, 249, .35) !important;
}
body.hub-dark-mode .hub-accumulated {
  background: linear-gradient(90deg, #312e81 0%, #1e1b4b 100%) !important;
  border-color: rgba(129, 140, 248, .55) !important;
  box-shadow: 0 8px 24px rgba(79, 70, 229, .3) !important;
}
body.hub-dark-mode .hub-accumulated strong {
  color: #e0e7ff !important;
  text-shadow: 0 0 16px rgba(165, 180, 252, .4) !important;
}
body.hub-dark-mode .hub-accumulated span b {
  color: #082f49 !important;
  background: linear-gradient(135deg, #67e8f9, #3b82f6) !important;
  box-shadow: 0 0 14px rgba(103, 232, 249, .45) !important;
}
body.hub-dark-mode .hub-amount-button.is-selected {
  color: #082f49 !important;
  background: #67e8f9 !important;
  border-color: #22d3ee !important;
  box-shadow: 0 0 12px rgba(103, 232, 249, .42) !important;
}
body.hub-dark-mode .hub-bottom-icon.gold {
  color: #c4b5fd !important;
  background: #312e81 !important;
}
body.hub-dark-mode .hub-promo {
  background: radial-gradient(circle at 50% 55%, rgba(103, 232, 249, .24) 0 5%, transparent 6%), linear-gradient(135deg, #111827, #172554 55%, #312e81) !important;
}
body.hub-dark-mode .hub-promo-burst {
  background: #4f46e5 !important;
}
body.hub-dark-mode .hub-promo > div > span,
body.hub-dark-mode .hub-promo-overlay span {
  color: #67e8f9 !important;
}
body.hub-dark-mode .hub-promo-ball {
  background: linear-gradient(135deg, #4f46e5, #06b6d4) !important;
}

/* Language Switcher */
.hub-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-right: 10px;
}
.hub-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hub-lang-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}
.hub-lang-btn.is-active {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 1px 6px rgba(37, 99, 235, 0.4);
}
.hub-lang-flag {
  font-size: 13px;
  line-height: 1;
}

/* Descarrego Modern Executive Automation Bar & Buttons */
.descarrego-automation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  transition: all 0.2s ease;
}
.descarrego-automation-bar.is-movimentado {
  background: linear-gradient(135deg, #2b0b10 0%, #1a0508 100%);
  border: 1px solid rgba(220, 53, 69, 0.4);
  border-left: 5px solid #ef4444;
  color: #fff;
}
.descarrego-automation-bar.is-pouco-mov {
  background: linear-gradient(135deg, #092816 0%, #04170d 100%);
  border: 1px solid rgba(40, 167, 69, 0.4);
  border-left: 5px solid #10b981;
  color: #fff;
}
.descarrego-bar-content {
  flex: 1;
  min-width: 280px;
}
.descarrego-bar-content,
.descarrego-bar-header,
.descarrego-bar-desc,
.descarrego-bar-actions {
  max-width: 100%;
  min-width: 0;
}
.descarrego-bar-header > *,
.descarrego-bar-desc {
  overflow-wrap: anywhere;
}
.descarrego-bar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.descarrego-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}
.descarrego-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.descarrego-status-badge.badge-danger {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
}
.descarrego-status-badge.badge-success {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.4);
}
.descarrego-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  animation: descarregoPulse 1.8s infinite;
}
@keyframes descarregoPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #fff; }
  100% { transform: scale(0.9); opacity: 0.8; }
}
.descarrego-bar-desc {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}
.descarrego-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.descarrego-btn-tickets {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.35) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.descarrego-btn-tickets:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.5) !important;
  border-color: rgba(56, 189, 248, 0.7) !important;
}
.descarrego-btn-config {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.descarrego-btn-config:hover {
  background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Admin Login Shell & Form */
body.admin-login-mode {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 50% 20%, #172554 0%, #0c1222 55%, #060911 100%) !important;
  color: #f8fafc;
  display: grid;
  place-items: center;
  font-family: var(--font, system-ui, sans-serif);
}
body.admin-login-mode .main-header,
body.admin-login-mode .main-sidebar,
body.admin-login-mode .main-footer,
body.admin-login-mode .control-sidebar,
body.admin-login-mode #sidebar-overlay {
  display: none !important;
}
body.admin-login-mode .content-wrapper {
  margin-left: 0 !important;
  transition: none !important;
  background: transparent !important;
  display: grid;
  place-items: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px;
}
.admin-login-shell {
  width: 100%;
  max-width: 440px;
  margin: auto;
}
.admin-login-card {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 32px rgba(37, 99, 235, 0.2);
  backdrop-filter: blur(16px);
}
.admin-login-header {
  text-align: center;
  margin-bottom: 24px;
}
.admin-login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.admin-brand-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}
.admin-login-brand h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}
.admin-login-brand span {
  font-size: 13px;
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.admin-login-subtitle {
  color: #94a3b8;
  font-size: 13px;
  margin: 0;
}
.admin-login-form .form-group {
  margin-bottom: 18px;
}
.admin-login-form label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.admin-login-form .form-control {
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  border-radius: 8px;
  height: 44px;
  padding: 8px 14px;
  font-size: 14px;
  transition: all 0.2s;
}
body.admin-login-mode .admin-login-form .form-control,
body.admin-login-mode .admin-login-form .form-control:-webkit-autofill,
body.admin-login-mode .admin-login-form .form-control:-webkit-autofill:hover,
body.admin-login-mode .admin-login-form .form-control:-webkit-autofill:focus {
  background-color: #0f172a !important;
  -webkit-box-shadow: 0 0 0 1000px #0f172a inset !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
}
.admin-login-form .form-control:focus {
  background: #0f172a;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  color: #ffffff;
}
.admin-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.admin-password-wrapper input {
  padding-right: 44px;
  width: 100%;
}
.btn-toggle-admin-password {
  position: absolute;
  right: 6px;
  background: transparent;
  border: 0;
  color: #94a3b8;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
}
.btn-toggle-admin-password:hover {
  color: #ffffff;
}
.admin-session-note {
  margin: 0 0 20px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 9px;
  color: #aab7cb;
  font-size: 12px;
  line-height: 1.45;
}
.admin-login-error {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: #fca5a5;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.admin-login-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-submit-btn {
  height: 44px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.2s;
}
.admin-submit-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}
.admin-back-link {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.admin-back-link:hover {
  color: #ffffff;
  text-decoration: underline;
}
.admin-forgot-link {
  display: block;
  margin: -6px 0 16px;
  color: #93c5fd;
  font-size: 13px;
  text-align: right;
  text-decoration: none;
}
.admin-forgot-link:hover { color: #dbeafe; text-decoration: underline; }
.admin-recovery-card { width: 100%; }
.admin-recovery-status {
  display: none;
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 9px;
  color: #dbeafe;
  background: rgba(30, 41, 59, .72);
  font-size: 13px;
  line-height: 1.5;
}
.admin-recovery-status.is-success,
.admin-recovery-status.is-error { display: block; }
.admin-recovery-status.is-success { color: #bbf7d0; border-color: rgba(34, 197, 94, .45); background: rgba(22, 101, 52, .2); }
.admin-recovery-status.is-error { color: #fecaca; border-color: rgba(248, 113, 113, .5); background: rgba(127, 29, 29, .24); }
.admin-recovery-status { overflow-wrap: anywhere; }
.admin-recovery-card .form-control { font-size: 16px; }
.admin-recovery-button-link { display: grid; place-items: center; text-decoration: none; }
.admin-recovery-button-link:hover { color: #fff; }
.admin-forgot-link:focus-visible,
.admin-recovery-button-link:focus-visible { outline: 3px solid #7dd3fc; outline-offset: 3px; }

/* Scannable 500x500 QR Preview styles */
.qr-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
  max-width: 532px;
  margin-left: auto;
  margin-right: auto;
}
.qr-preview canvas {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.qr-badge-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.qr-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  margin-bottom: 16px;
}
.qr-preset-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.qr-preset-chip:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Participant login and registration, kept separate from the admin chrome */
.public-auth-mode { background: #0d1220; }
.public-auth-mode .main-header, .public-auth-mode .main-sidebar, .public-auth-mode .main-footer, .public-auth-mode .control-sidebar, .public-auth-mode #sidebar-overlay { display: none !important; }
.public-auth-mode .content-wrapper { min-height: 100vh; margin-left: 0; background: #0d1220; }
.public-auth-mode .content { padding: 0; }
.public-auth-shell { min-height: 100vh; color: #1d2942; background: radial-gradient(circle at 82% 12%, rgba(116,105,239,.3), transparent 28%), linear-gradient(135deg, #0d1220, #1c2850 55%, #5968c6); font-family: var(--font); }
.public-auth-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 0 clamp(20px, 6vw, 82px); background: rgba(8,11,22,.8); border-bottom: 1px solid rgba(255,255,255,.12); }
.public-auth-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 21px; font-weight: 800; }
.public-auth-brand:hover { color: #fff; }
.public-auth-brand .hub-logo-mark { width: 38px; height: 38px; background: linear-gradient(135deg, #7065f0, #988dff); }
.public-auth-brand strong span { color: #a9f4d1; }
.public-auth-back { color: rgba(255,255,255,.8); font-size: 13px; }
.public-auth-back:hover { color: #fff; }
.public-auth-main { display: grid; place-items: center; min-height: calc(100vh - 78px); padding: 35px 20px; }
.public-auth-card { width: min(430px, 100%); padding: 33px 35px 29px; border: 1px solid rgba(255,255,255,.24); border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: 0 22px 55px rgba(4,8,26,.35); }
.public-auth-kicker { color: #7167ee; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.public-auth-kicker i { margin-right: 5px; }
.public-auth-card h1 { margin: 10px 0 5px; color: #1d2942; font-size: 29px; font-weight: 600; }
.public-auth-card > p { margin: 0 0 20px; color: #7f8aa0; font-size: 14px; }
.public-auth-form .form-group { margin-bottom: 15px; }
.public-auth-form .form-group label { color: #35425d; font-size: 13px; font-weight: 700; }
.public-auth-form .form-control { height: 44px; border-color: #e1e6f0; border-radius: 10px; background: #fbfcff; }
.public-auth-form .form-control:focus { border-color: #8c84f3; box-shadow: 0 0 0 .2rem rgba(112,101,240,.17); }
.public-auth-alert { margin: 0 0 16px; padding: 10px 12px; color: #8b2f3b; border: 1px solid #f2c5cc; border-radius: 9px; background: #fff0f2; font-size: 13px; }
.public-auth-submit { display: block; width: 100%; min-height: 45px; margin-top: 20px; color: #fff; border: 1px solid #6e64ef; border-radius: 10px; background: linear-gradient(135deg, #7065f0, #9186ff); box-shadow: 0 9px 18px rgba(112,101,240,.22); cursor: pointer; font-size: 14px; font-weight: 800; }
.public-auth-submit:hover { filter: brightness(.95); }
.public-auth-submit i { margin-left: 5px; }
.public-auth-switch { margin-top: 19px; color: #7f8aa0; text-align: center; font-size: 13px; }
.public-auth-switch a, .public-auth-legal a { color: #665de0; font-weight: 700; }
.public-auth-legal { display: block; margin-top: 21px; color: #a0a9b8; text-align: center; font-size: 11px; }
.public-auth-top-actions { display: flex; align-items: center; gap: 14px; }
.public-auth-card .admin-password-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
.public-auth-card .admin-password-wrapper input { padding-right: 44px; width: 100%; }
.public-auth-card .btn-toggle-auth-password { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: #7f8aa0; padding: 6px 10px; cursor: pointer; font-size: 15px; line-height: 1; border-radius: 4px; transition: color .15s ease-in-out; }
.public-auth-card .btn-toggle-auth-password:hover { color: #7065f0; }
.public-auth-email-note { display: flex; align-items: center; gap: 6px; margin: 8px 0 4px; color: #059669; font-size: 12px; font-weight: 500; }
body.hub-dark-mode.public-auth-mode .public-auth-card { background: rgba(18, 26, 47, 0.96); border-color: rgba(255, 255, 255, 0.15); box-shadow: 0 22px 55px rgba(0, 0, 0, 0.6); }
body.hub-dark-mode.public-auth-mode .public-auth-card h1 { color: #f1f5f9; }
body.hub-dark-mode.public-auth-mode .public-auth-card > p { color: #94a3b8; }
body.hub-dark-mode.public-auth-mode .public-auth-form .form-group label { color: #cbd5e1; }
body.hub-dark-mode.public-auth-mode .public-auth-form .form-control { background: #0f172a; border-color: #334155; color: #f8fafc; }
body.hub-dark-mode.public-auth-mode .public-auth-form .form-control:focus { border-color: #7065f0; box-shadow: 0 0 0 0.2rem rgba(112, 101, 240, 0.25); }
body.hub-dark-mode.public-auth-mode .public-auth-card .btn-toggle-auth-password { color: #94a3b8; }
body.hub-dark-mode.public-auth-mode .public-auth-card .btn-toggle-auth-password:hover { color: #ffffff; }
body.hub-dark-mode.public-auth-mode .public-auth-switch { color: #94a3b8; }
body.hub-dark-mode.public-auth-mode .public-auth-switch a { color: #a5b4fc; }
body.hub-dark-mode.public-auth-mode .public-auth-email-note { color: #34d399; }
body.hub-dark-mode.public-auth-mode .public-auth-submit { background: linear-gradient(135deg, #1d4ed8, #2563eb) !important; border-color: #3b82f6 !important; box-shadow: 0 9px 20px rgba(37, 99, 235, 0.4) !important; color: #ffffff !important; }
body.hub-dark-mode.public-auth-mode .public-auth-submit:hover { background: linear-gradient(135deg, #2563eb, #3b82f6) !important; }

@media (max-width: 950px) {
  .hub-layout { grid-template-columns: 1fr; gap: 18px; }
  .hub-side-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); align-items: start; }
  .hub-donation-card { grid-column: 1 / -1; }
  .hub-history-card { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .hub-topbar { min-height: 58px; gap: 8px; padding: 0 10px; }
  .hub-logo { min-width: 0; flex: 1 1 auto; gap: 6px; font-size: 16px; white-space: nowrap; }
  .hub-logo strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hub-top-links { flex: 0 0 auto; min-width: 0; gap: 3px; }
  .hub-responsible-link { display: none !important; }
  .hub-top-links a:first-child { display: none; }
  .hub-top-links a { min-height: 32px; padding: 4px 8px; font-size: 11px; }
  .hub-lang-switcher { gap: 2px; padding: 2px; }
  .hub-lang-btn { min-width: 29px; padding: 4px 5px; font-size: 9px; }
  .hub-account-copy small { display: none; }
  .hub-account-copy { display: none; }
  .hub-account-profile { gap: 4px; }
  .hub-account-copy strong { max-width: 92px; }
  .hub-account-signout { width: 30px; min-height: 30px; padding: 4px; font-size: 0; }
  .hub-account-signout i { margin: 0; font-size: 11px; }
  .hub-logo { font-size: 16px; }
  .hub-logo-mark { width: 30px; height: 30px; }
  .hub-nav-inner { padding: 0 8px; }
  .hub-nav a { padding: 0 12px; font-size: 12px; }
  .hub-theme-toggle { margin-right: 0; padding-right: 6px; font-size: 10px; }
  .hub-theme-toggle span { width: 25px; height: 17px; }
  .hub-theme-toggle span::after { width: 11px; height: 11px; }
  .hub-theme-toggle input:checked + span::after { transform: translateX(8px); }
  .hub-nav-status { display: none; }
  .hub-content { padding: 10px 8px 17px; }
  .hub-countdown-card { min-height: 148px; padding: 12px 8px; border-width: 3px; border-radius: 11px; }
  .hub-live-label { font-size: 11px; }
  .hub-countdown { gap: 5px; font-size: 49px; }
  .hub-countdown span { padding: 5px 4px 1px; border-width: 3px; border-radius: 9px; }
  .hub-countdown-card small { font-size: 10px; }
  .hub-info-card { margin-top: 9px; padding: 8px 0; border-width: 3px; border-radius: 9px; }
  .hub-info-card > div { padding: 0 4px; border-right-width: 1px; }
  .hub-info-card small { font-size: 9px; }
  .hub-info-card strong { font-size: 14px; }
  .hub-prizes { gap: 5px; margin-top: 9px; }
  .hub-prize-bar { min-height: 40px; padding: 4px 10px; border-radius: 8px; font-size: 18px; }
  .hub-accumulated { min-height: 45px; }
  .hub-accumulated span b { width: 33px; height: 33px; }
  .hub-side-column { display: flex; }
  .hub-donation-card { padding: 6px; border-width: 3px; border-radius: 10px; }
  .hub-amounts { gap: 4px; }
  .hub-amount-button { min-height: 29px; border-width: 1px; font-size: 12px; }
  .hub-donation-row { grid-template-columns: 34px 46px 34px minmax(70px, 1fr); gap: 4px; }
  .hub-donation-row > button:not(.hub-donate-button), .hub-donation-row output { min-height: 35px; font-size: 16px; }
  .hub-donation-row > strong { font-size: 12px; }
  .hub-donate-button { grid-column: 1 / -1; min-height: 39px; font-size: 17px; }
  .hub-promo { min-height: 145px; padding: 15px 10px; border-width: 3px; }
  .hub-promo-burst { width: 36px; height: 36px; font-size: 15px; }
  .hub-promo-ball { width: 35px; height: 35px; border-width: 2px; font-size: 7px; }
  .hub-promo-ball b { font-size: 10px; }
  .hub-promo > div { padding: 0 6px; }
  .hub-promo > div strong { font-size: 19px; }
  .hub-promo > div small { font-size: 9px; }
  .hub-bottom-grid { grid-template-columns: 1fr; margin-top: 12px; }
  .hub-bottom-card { min-height: 68px; padding: 11px; border-width: 2px; }
  .hub-footer { flex-wrap: wrap; gap: 6px 12px; padding-top: 12px; }
}

/* Participant wallet: requests are recorded first and settled by an admin. */
.hub-wallet-card { padding: 15px; color: #1b2d4d; border: 4px solid #fff; border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 7px 0 rgba(4,26,122,.13); }
.hub-wallet-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hub-wallet-heading > div { display: flex; flex-direction: column; gap: 4px; }
.hub-wallet-heading span { color: #283fc1; font-size: 11px; font-weight: 900; letter-spacing: 1px; }
.hub-wallet-heading span i { margin-right: 4px; }
.hub-wallet-heading small { color: #7a879a; font-size: 11px; }
.hub-wallet-heading > strong { color: #1b36a5; font-size: 24px; font-weight: 900; white-space: nowrap; }
.hub-wallet-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.hub-wallet-metrics span { display: flex; flex-direction: column; gap: 3px; padding: 8px 9px; border: 1px solid #e3e8f0; border-radius: 8px; background: #f8faff; }
.hub-wallet-metrics small { color: #8290a5; font-size: 10px; }
.hub-wallet-metrics b { color: #32477e; font-size: 12px; }
.hub-wallet-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 11px; }
.hub-wallet-actions button { min-height: 37px; color: #fff; border: 1px solid #293fc1; border-radius: 7px; background: #293fc1; cursor: pointer; font-size: 12px; font-weight: 800; }
.hub-wallet-actions button:last-child { color: #293fc1; background: #fff; }
.hub-wallet-actions button:hover { filter: brightness(.96); transform: translateY(-1px); }
.hub-wallet-actions i { margin-right: 4px; }
.hub-wallet-error { margin: 10px 0 0; padding: 8px 9px; color: #9a3e46; border: 1px solid #f1c7cc; border-radius: 7px; background: #fff3f4; font-size: 10px; line-height: 1.35; }
.hub-wallet-panels { margin-top: 11px; padding: 11px; border: 1px solid #dae1ed; border-radius: 9px; background: #f8faff; }
.hub-wallet-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hub-wallet-panel-title strong { color: #1e3189; font-size: 13px; }
.hub-wallet-panel-title button { width: 25px; height: 25px; color: #63718b; border: 1px solid #d9dfeb; border-radius: 50%; background: #fff; cursor: pointer; font-size: 17px; line-height: 1; }
.hub-wallet-panel p { margin: 7px 0 10px; color: #7c899c; font-size: 10px; line-height: 1.4; }
.hub-wallet-panel form { display: flex; flex-direction: column; gap: 8px; }
.hub-wallet-panel label { display: flex; flex-direction: column; gap: 4px; color: #40506e; font-size: 10px; font-weight: 800; }
.hub-wallet-panel input { min-height: 35px; padding: 7px 9px; color: #1d2d4f; border: 1px solid #d6deeb; border-radius: 6px; background: #fff; font: inherit; font-size: 12px; }
.hub-wallet-panel input:focus { outline: 0; border-color: #7180ec; box-shadow: 0 0 0 3px rgba(41,63,193,.12); }
.hub-wallet-panel form > small { color: #8490a2; font-size: 10px; }
.hub-wallet-submit { min-height: 36px; margin-top: 2px; color: #fff; border: 1px solid #1e9e68; border-radius: 6px; background: #20b878; cursor: pointer; font-size: 11px; font-weight: 800; }
.hub-wallet-submit:hover { background: #179c65; }
.hub-wallet-history { margin-top: 12px; }
.hub-wallet-history > div { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
.hub-wallet-history > div strong { color: #293b75; font-size: 11px; }
.hub-wallet-history > div span { color: #98a2b1; font-size: 9px; }
.hub-wallet-history ul { margin: 5px 0 0; padding: 0; list-style: none; }
.hub-wallet-history li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; color: #748198; border-top: 1px solid #e7ebf1; font-size: 10px; }
.hub-wallet-history li span { display: flex; align-items: center; gap: 5px; }
.hub-wallet-history li span i { color: #334ac3; }
.hub-wallet-history li span small { color: #a0aabb; }
.hub-wallet-history .wallet-status { font-size: 9px; }
.hub-wallet-tickets { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e7ebf1; }
.hub-wallet-tickets-header { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; margin-bottom: 8px; }
.hub-wallet-tickets-header strong { color: #293b75; font-size: 11px; font-weight: 800; display: flex; align-items: center; gap: 5px; }
.hub-wallet-tickets-header strong i { color: #293fc1; }
.hub-wallet-tickets-header span { color: #107244; font-size: 9px; font-weight: 800; background: #dcf7e8; padding: 2px 7px; border-radius: 999px; }
.hub-wallet-tickets-list { display: flex; flex-direction: column; gap: 7px; padding-right: 2px; }
.hub-wallet-ticket-group { overflow: hidden; border: 1px solid #dbe4f0; border-radius: 8px; background: #fff; }
.hub-wallet-ticket-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; color: #263b79; cursor: pointer; list-style: none; }
.hub-wallet-ticket-group > summary::-webkit-details-marker { display: none; }
.hub-wallet-ticket-group > summary::after { content: '⌄'; color: #64748b; font-size: 13px; font-weight: 900; transition: transform .2s ease; }
.hub-wallet-ticket-group[open] > summary::after { transform: rotate(180deg); }
.hub-wallet-ticket-group > summary > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.hub-wallet-ticket-group > summary strong { font-size: 11px; }
.hub-wallet-ticket-group > summary small { color: #6b7a90; font-size: 9px; font-weight: 700; }
.hub-wallet-ticket-group > summary small i { margin-right: 3px; color: #3b82f6; }
.hub-wallet-ticket-group > summary b { flex: 0 0 auto; padding: 3px 7px; color: #107244; border-radius: 999px; background: #dcf7e8; font-size: 9px; white-space: nowrap; }
.hub-wallet-ticket-group-list { display: flex; flex-direction: column; gap: 7px; padding: 0 7px 7px; border-top: 1px solid #edf1f6; }
.hub-wallet-ticket-item { padding: 8px 9px; background: #f8fafd; border: 1px solid #dbe4f0; border-radius: 8px; display: flex; flex-direction: column; gap: 4px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.hub-wallet-ticket-item.has-won-prize { border: 2px solid #f59e0b; background: linear-gradient(135deg, #fffdfa, #fef9ed); box-shadow: 0 0 12px rgba(245, 158, 11, 0.25); }
.hub-wallet-ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hub-wallet-ticket-code { font-family: monospace; font-weight: 800; font-size: 11px; color: #1f36a5; display: flex; align-items: center; gap: 4px; }
.hub-wallet-ticket-draw { font-size: 10px; font-weight: 700; color: #5a6a85; display: inline-flex; align-items: center; gap: 4px; }
.hub-wallet-ticket-time-tag { font-size: 9px; font-weight: 800; color: #1d4ed8; background: #eff6ff; padding: 1px 5px; border-radius: 4px; border: 1px solid #bfdbfe; display: inline-flex; align-items: center; gap: 3px; }
.hub-wallet-ticket-time-tag i { font-size: 8px; color: #2563eb; }
.hub-wallet-ticket-draw-time { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; color: #1e40af; }
.hub-wallet-ticket-draw-time i { color: #3b82f6; font-size: 9px; }
.hub-wallet-ticket-draw-time strong { color: #1d4ed8; font-weight: 800; }
.hub-wallet-ticket-status { font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 999px; }
.hub-wallet-ticket-status.is-paid { background: #dcf7e8; color: #107244; }
.hub-wallet-ticket-status.is-winner { background: linear-gradient(135deg, #fef08a, #fde047); color: #854d0e; font-weight: 900; box-shadow: 0 1px 3px rgba(133, 77, 14, 0.2); }
.hub-wallet-ticket-prize { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; padding: 6px 9px; background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fcd34d; border-radius: 6px; }
.hub-wallet-ticket-prize i { font-size: 16px; color: #d97706; }
.hub-wallet-ticket-prize > div { display: flex; flex-direction: column; gap: 1px; }
.hub-wallet-ticket-prize strong { font-size: 10px; font-weight: 900; color: #b45309; text-transform: uppercase; letter-spacing: 0.3px; }
.hub-wallet-ticket-prize span { font-size: 11px; font-weight: 800; color: #92400e; }
.hub-wallet-ticket-meta { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #6b7a90; }
.hub-wallet-ticket-meta strong { color: #107244; font-weight: 800; }
.hub-wallet-ticket-numbers { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 3px; }
.hub-wallet-ticket-numbers span { display: inline-grid; place-items: center; width: 19px; height: 17px; font-size: 9px; font-weight: 800; background: #fff; color: #1e36a3; border: 1px solid #cbd8ec; border-radius: 3px; }
.hub-wallet-empty-tickets { padding: 10px 8px; text-align: center; color: #8895aa; font-size: 10px; background: #f8fafc; border-radius: 7px; border: 1px dashed #d5deea; }
.hub-wallet-wins-summary { margin-top: 12px; padding: 9px 10px; border-top: 1px solid #e7ebf1; }
.hub-wallet-wins-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.hub-wallet-wins-heading strong { color: #b45309; font-size: 11px; font-weight: 900; }
.hub-wallet-wins-heading strong i { margin-right: 4px; color: #d97706; }
.hub-wallet-wins-heading span { color: #92400e; background: #fef3c7; border-radius: 999px; padding: 2px 7px; font-size: 9px; font-weight: 800; }
.hub-wallet-wins-summary ul { margin: 0; padding: 0; list-style: none; }
.hub-wallet-wins-summary li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #f1e4c4; }
.hub-wallet-wins-summary li > span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hub-wallet-wins-summary li > span > i { color: #d97706; font-size: 12px; }
.hub-wallet-wins-summary li > span > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hub-wallet-wins-summary li strong { color: #5f3707; font-size: 10px; }
.hub-wallet-wins-summary li small { color: #92734d; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-wallet-wins-summary li small.hub-wallet-prize-codes { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.hub-wallet-wins-summary li small.hub-wallet-prize-time { font-size: 10px; line-height: 1.3; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.hub-wallet-wins-summary li b { color: #107244; font-size: 11px; white-space: nowrap; }
.hub-wallet-wins-more { display: block; margin-top: 4px; color: #92734d; font-size: 9px; text-align: right; }
.hub-wallet-card-locked { min-height: 184px; display: grid; place-items: center; }
.hub-wallet-locked { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #65718a; text-align: center; }
.hub-wallet-icon { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; border-radius: 50%; background: #293fc1; font-size: 16px; }
.hub-wallet-locked strong { color: #172b91; font-size: 15px; }
.hub-wallet-locked p { max-width: 260px; margin: 0; font-size: 10px; line-height: 1.4; }
.hub-wallet-locked > div { display: flex; gap: 8px; margin-top: 3px; }
.wallet-status { display: inline-block; padding: 3px 6px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.wallet-status-pending { color: #96610b; background: #fff0c6; }
.wallet-status-approved { color: #107244; background: #dcf7e8; }
.wallet-status-rejected, .wallet-status-cancelled { color: #a43b45; background: #ffe4e6; }
.wallet-admin-note { margin: 15px 0 10px; }
.wallet-admin-note i { margin-right: 5px; color: #293fc1; }
.wallet-admin-loading { margin-top: 15px; }
.wallet-admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 15px 0 10px; }
.wallet-admin-heading > div { display: flex; flex-direction: column; gap: 3px; }
.wallet-admin-heading strong { color: #243b86; font-size: 14px; }
.wallet-admin-heading small { color: #7d8ba2; font-size: 11px; }
.wallet-admin-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.wallet-admin-table { min-width: 800px; }
.wallet-admin-table td small { display: block; margin-top: 3px; color: #8d99aa; font-size: 9px; }
.wallet-admin-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.wallet-reviewed { color: #758399; font-size: 11px; }

body.hub-dark-mode .hub-wallet-card { color: #f8fafc; border: 1px solid rgba(59, 130, 246, 0.35); background: linear-gradient(145deg, #0d172e, #091020); box-shadow: 0 10px 28px rgba(0,0,0,.6), 0 0 20px rgba(37,99,235,.15); }
body.hub-dark-mode .hub-wallet-heading span { color: #38bdf8; }
body.hub-dark-mode .hub-wallet-heading small { color: #94a3b8; }
body.hub-dark-mode .hub-wallet-heading > strong { color: #ffffff; }
body.hub-dark-mode .hub-wallet-metrics span { border: 1px solid #1e293b; background: #0c1527; }
body.hub-dark-mode .hub-wallet-metrics small { color: #94a3b8; }
body.hub-dark-mode .hub-wallet-metrics b { color: #38bdf8; }
body.hub-dark-mode .hub-wallet-actions button { color: #ffffff; border: 1px solid #2563eb; background: linear-gradient(135deg, #2563eb, #1d4ed8); }
body.hub-dark-mode .hub-wallet-actions button:last-child { color: #94a3b8; border: 1px solid #334155; background: #1e293b; }
body.hub-dark-mode .hub-wallet-actions button:last-child:hover { color: #ffffff; background: #334155; }
body.hub-dark-mode .hub-wallet-error { color: #fca5a5; border-color: #991b1b; background: #201115; }
body.hub-dark-mode .hub-wallet-panels { border-color: #1e293b; background: #0c1527; }
body.hub-dark-mode .hub-wallet-panel-title strong { color: #38bdf8; }
body.hub-dark-mode .hub-wallet-panel-title button { color: #94a3b8; border-color: #334155; background: #17223b; }
body.hub-dark-mode .hub-wallet-panel p, body.hub-dark-mode .hub-wallet-panel form > small { color: #94a3b8; }
body.hub-dark-mode .hub-wallet-panel label { color: #cbd5e1; }
body.hub-dark-mode .hub-wallet-panel input { color: #ffffff; border: 1px solid #334155; background: #080f1e; }
body.hub-dark-mode .hub-wallet-submit { color: #ffffff; border: 1px solid #2563eb; background: linear-gradient(135deg, #2563eb, #1d4ed8); }
body.hub-dark-mode .hub-wallet-history > div strong { color: #38bdf8; }
body.hub-dark-mode .hub-wallet-history > div span { color: #94a3b8; }
body.hub-dark-mode .hub-wallet-history li { color: #cbd5e1; border-color: #1e293b; }
body.hub-dark-mode .hub-wallet-history li span i { color: #38bdf8; }
body.hub-dark-mode .hub-wallet-history li span small { color: #94a3b8; }
body.hub-dark-mode .hub-wallet-tickets { border-top-color: #1e293b; }
body.hub-dark-mode .hub-wallet-tickets-header strong { color: #38bdf8; }
body.hub-dark-mode .hub-wallet-tickets-header strong i { color: #38bdf8; }
body.hub-dark-mode .hub-wallet-tickets-header span { color: #34d399; background: #064e3b; }
body.hub-dark-mode .hub-wallet-ticket-group { border-color: #1e293b; background: #080f1e; }
body.hub-dark-mode .hub-wallet-ticket-group > summary { color: #bfdbfe; }
body.hub-dark-mode .hub-wallet-ticket-group > summary::after { color: #94a3b8; }
body.hub-dark-mode .hub-wallet-ticket-group > summary small { color: #94a3b8; }
body.hub-dark-mode .hub-wallet-ticket-group > summary small i { color: #60a5fa; }
body.hub-dark-mode .hub-wallet-ticket-group > summary b { color: #34d399; background: #064e3b; }
body.hub-dark-mode .hub-wallet-ticket-group-list { border-color: #1e293b; }
body.hub-dark-mode .hub-wallet-ticket-item { background: #0c1527; border-color: #1e293b; }
body.hub-dark-mode .hub-wallet-ticket-item.has-won-prize { border-color: #38bdf8; background: linear-gradient(135deg, #0e1e3e, #0c1527); box-shadow: 0 0 14px rgba(56, 189, 248, 0.3); }
body.hub-dark-mode .hub-wallet-ticket-prize { background: linear-gradient(135deg, #0f2b1d, #064e3b); border-color: #10b981; }
body.hub-dark-mode .hub-wallet-ticket-prize i { color: #34d399; }
body.hub-dark-mode .hub-wallet-ticket-prize strong { color: #34d399; }
body.hub-dark-mode .hub-wallet-ticket-prize span { color: #a7f3d0; }
body.hub-dark-mode .hub-wallet-ticket-status.is-winner { background: linear-gradient(135deg, #10b981, #059669); color: #ffffff; }
body.hub-dark-mode .hub-wallet-ticket-code { color: #38bdf8; }
body.hub-dark-mode .hub-wallet-ticket-draw { color: #cbd5e1; }
body.hub-dark-mode .hub-wallet-ticket-time-tag { color: #93c5fd; background: #172554; border-color: #1e3a8a; }
body.hub-dark-mode .hub-wallet-ticket-time-tag i { color: #60a5fa; }
body.hub-dark-mode .hub-wallet-ticket-draw-time { color: #93c5fd; }
body.hub-dark-mode .hub-wallet-ticket-draw-time i { color: #60a5fa; }
body.hub-dark-mode .hub-wallet-ticket-draw-time strong { color: #bfdbfe; }
body.hub-dark-mode .hub-wallet-ticket-meta { color: #94a3b8; }
body.hub-dark-mode .hub-wallet-ticket-meta strong { color: #34d399; }
body.hub-dark-mode .hub-wallet-ticket-numbers span { background: #080f1e; color: #38bdf8; border-color: #1e293b; }
body.hub-dark-mode .hub-wallet-empty-tickets { color: #94a3b8; background: #0c1527; border-color: #1e293b; }
body.hub-dark-mode .hub-wallet-wins-summary { border-color: #1e293b; }
body.hub-dark-mode .hub-wallet-wins-heading strong { color: #38bdf8; }
body.hub-dark-mode .hub-wallet-wins-heading strong i { color: #38bdf8; }
body.hub-dark-mode .hub-wallet-wins-heading span { color: #ffffff; background: #2563eb; }
body.hub-dark-mode .hub-wallet-wins-summary li { border-color: #1e293b; }
body.hub-dark-mode .hub-wallet-wins-summary li strong { color: #ffffff; }
body.hub-dark-mode .hub-wallet-wins-summary li small, body.hub-dark-mode .hub-wallet-wins-more { color: #94a3b8; }
body.hub-dark-mode .hub-wallet-wins-summary li b { color: #34d399; }
body.hub-dark-mode .hub-wallet-icon { color: #ffffff; background: linear-gradient(135deg, #2563eb, #1d4ed8); }
body.hub-dark-mode .hub-wallet-locked strong { color: #ffffff; }
body.hub-dark-mode .hub-wallet-locked p { color: #94a3b8; }
body.hub-dark-mode .wallet-admin-heading strong { color: #ffffff; }
body.hub-dark-mode .wallet-admin-heading small, body.hub-dark-mode .wallet-reviewed { color: #94a3b8; }

@media (max-width: 650px) {
  .hub-wallet-card { padding: 11px; border-width: 3px; border-radius: 10px; }
  .hub-wallet-heading > strong { font-size: 20px; }
  .hub-wallet-metrics { gap: 5px; }
  .hub-wallet-metrics span { padding: 7px; }
  .wallet-admin-heading { align-items: flex-start; flex-direction: column; }
}

/* Pending deposits can be opened from the wallet and paid within a ten-minute window. */
.wallet-transaction-row { padding: 0 !important; }
.wallet-pending-open { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; padding: 6px 0; color: inherit; border: 0; background: transparent; text-align: left; cursor: pointer; font: inherit; }
.wallet-pending-open:hover { color: #293fc1; }
.wallet-pending-open > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.wallet-pending-open > span > span { display: flex; align-items: center; gap: 5px; }
.wallet-pending-open .wallet-pending-hint { color: #b27812; font-size: 9px; }
.wallet-pending-open:focus-visible, [data-wallet-pending-close]:focus-visible, [data-wallet-copy]:focus-visible { outline: 3px solid rgba(41,63,193,.24); outline-offset: 2px; }
.hub-wallet-payment-panel { margin-top: 11px; padding: 11px; color: #33435f; border: 1px solid #d6dfed; border-radius: 9px; background: #f8faff; }
.hub-wallet-payment-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin: 9px 0; }
.hub-wallet-payment-summary span { display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: 7px; background: #fff; font-size: 10px; }
.hub-wallet-payment-summary small, .hub-wallet-payment-summary span { color: #7d899d; }
.hub-wallet-payment-summary strong { color: #1f36a5; font-size: 14px; }
.hub-wallet-payment-summary [data-wallet-payment-countdown] { color: #b27812; }
.hub-wallet-payment-summary [data-wallet-payment-countdown].is-expired { color: #b13f49; font-size: 11px; }
.hub-wallet-payment-key { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; align-items: center; margin: 7px 0; padding: 8px; border: 1px dashed #d4dce9; border-radius: 7px; background: #fff; }
.hub-wallet-payment-key small { grid-column: 1 / -1; color: #7c899d; font-size: 9px; }
.hub-wallet-payment-key strong { overflow-wrap: anywhere; color: #22366c; font-size: 12px; }
.hub-wallet-payment-key button { padding: 4px 7px; color: #293fc1; border: 1px solid #cbd5e8; border-radius: 5px; background: #fff; cursor: pointer; font-size: 10px; font-weight: 800; }
.hub-wallet-payment-info, .hub-wallet-payment-note { margin: 8px 0; color: #7c899c; font-size: 10px; line-height: 1.4; }
.hub-wallet-payment-info i { margin-right: 4px; color: #293fc1; }
.hub-wallet-payment-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.hub-wallet-payment-actions .hub-wallet-submit { flex: 1 1 150px; margin: 0; }
.hub-wallet-payment-close { min-height: 36px; padding: 0 12px; color: #6c7890; border: 1px solid #d2dbe8; border-radius: 6px; background: #fff; cursor: pointer; font-size: 11px; font-weight: 800; }
.hub-wallet-payment-close:hover { background: #f0f3f8; }

/* The hub stays compact and keeps the configured banner in its natural ratio. */
.hub-content, body.hub-dark-mode .hub-content { background-image: linear-gradient(145deg, #d9f0fc 0%, #a9d8f6 40%, #f2f8fc 100%); }
body.hub-dark-mode .hub-content { background-image: radial-gradient(ellipse at 50% 0%, #111e3b 0%, #080e1d 55%, #050914 100%) !important; }
.hub-content::before, .hub-content::after, .hub-promo::before, .hub-promo-configured::before { display: none !important; background-image: none !important; box-shadow: none !important; }
.hub-nav-note { display: inline-flex; align-items: center; gap: 5px; min-width: 0; margin-left: auto; color: #7b8798; font-size: 10px; }
.hub-nav-note i { color: #7c8bec; }
.hub-nav-status { margin-left: 13px; }
.hub-history-card .hub-empty { padding: 5px 0; font-size: 10px; }
.hub-side-column { gap: 11px; }
.hub-content { padding-top: 11px; padding-bottom: 15px; }
.hub-info-card { margin-top: 11px; }
.hub-prizes { gap: 6px; margin-top: 10px; }
.hub-bottom-grid { margin-top: 14px; }
.hub-footer { padding-top: 11px; }

body.hub-dark-mode .wallet-pending-open:hover { color: #38bdf8; }
body.hub-dark-mode .wallet-pending-open .wallet-pending-hint { color: #60a5fa; }
body.hub-dark-mode .hub-wallet-payment-panel { color: #e2e8f0; border-color: rgba(59, 130, 246, 0.3); background: #0c1527; }
body.hub-dark-mode .hub-wallet-payment-summary span, body.hub-dark-mode .hub-wallet-payment-key { background: #080f1e; }
body.hub-dark-mode .hub-wallet-payment-summary span { color: #94a3b8; }
body.hub-dark-mode .hub-wallet-payment-summary strong { color: #ffffff; }
body.hub-dark-mode .hub-wallet-payment-summary [data-wallet-payment-countdown] { color: #38bdf8; }
body.hub-dark-mode .hub-wallet-payment-summary [data-wallet-payment-countdown].is-expired { color: #f87171; }
body.hub-dark-mode .hub-wallet-payment-key { border-color: #1e293b; }
body.hub-dark-mode .hub-wallet-payment-key small, body.hub-dark-mode .hub-wallet-payment-info, body.hub-dark-mode .hub-wallet-payment-note { color: #94a3b8; }
body.hub-dark-mode .hub-wallet-payment-key strong { color: #38bdf8; }
body.hub-dark-mode .hub-wallet-payment-key button, body.hub-dark-mode .hub-wallet-payment-close { color: #38bdf8; border-color: #1e3a8a; background: #111c33; }
body.hub-dark-mode .hub-wallet-payment-close:hover { background: #1e293b; color: #ffffff; }
body.hub-dark-mode .hub-nav-note { color: #94a3b8; }
body.hub-dark-mode .hub-nav-note i { color: #38bdf8; }

@media (min-width: 951px) {
  .hub-layout { grid-template-columns: minmax(0, 1.12fr) minmax(440px, .88fr); gap: 18px; }
}

@media (max-width: 650px) {
  .bonus-sequence-list { grid-template-columns: 1fr; max-height: 260px; }
  .hub-nav-note { display: none; }
  .hub-nav-status { margin-left: auto; }
  .hub-wallet-payment-summary { gap: 5px; }
  .hub-wallet-payment-panel { padding: 9px; }
}

/* Configured banners keep their natural aspect ratio and show no overlay copy. */
.hub-promo.hub-promo-configured { display: block; width: 100%; min-height: 0; height: auto; padding: 0; overflow: visible; background: #121212; }
.hub-promo.hub-promo-configured::after { display: none; }
.hub-promo.hub-promo-configured img { position: static; display: block; width: 100%; height: auto !important; min-height: 0; max-width: 100%; max-height: none; object-fit: contain; }
.hub-promo.hub-promo-configured .hub-promo-overlay { display: none; }
body.hub-dark-mode .hub-promo.hub-promo-configured { background: #0c1527; border-color: rgba(59, 130, 246, 0.3); }
.config-image-hint { display: block; margin-top: 4px; color: #b36b10; font-size: 10px; }

/* Keep the Hub background clean; the repeated dots were visually distracting. */
.hub-content { background: linear-gradient(175deg, #d9f0fc 0%, #a9d8f6 40%, #f2f8fc 100%); }
.hub-content::before, .hub-content::after { display: none; }
body.hub-dark-mode .hub-content { background: radial-gradient(ellipse at 50% 0%, #111e3b 0%, #080e1d 55%, #050914 100%) !important; }

@media (min-width: 951px) {
  /* Give the configured banner more visual presence while preserving its ratio. */
  .hub-layout { grid-template-columns: minmax(0, 1.12fr) minmax(440px, .88fr); gap: 18px; }
}

@media (max-width: 991.98px) {
  .player-content { padding-top: 22px; }
  .player-hero { padding: 32px; }
  .player-grid { grid-template-columns: 1fr; }
  .player-side-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .72fr); gap: 16px; align-items: start; }
  .player-help-panel { margin-top: 0; height: 100%; }
}
@media (max-width: 650px) {
  .player-topbar { min-height: 68px; padding: 0 16px; }
  .player-brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 16px; }
  .player-brand strong { font-size: 19px; }
  .player-connection { display: none; }
  .player-top-actions { gap: 8px; }
  .player-icon-button { width: 34px; height: 34px; border-radius: 10px; }
  .player-voice-button { width: 34px; min-width: 34px; padding: 0; }
  .player-voice-button-label { display: none; }
  .player-content { padding: 16px 12px 18px; }
  .player-hero { display: grid; grid-template-columns: 1fr 124px; gap: 12px; min-height: 0; padding: 24px 20px; border-radius: 21px; }
  .player-hero h1 { margin-top: 10px; font-size: 29px; letter-spacing: -1px; }
  .player-hero p { font-size: 13px; }
  .player-hero-meta { display: block; margin-top: 14px; font-size: 10px; }
  .player-hero-meta span { display: block; margin-top: 4px; }
  .player-hero-draw { min-height: 142px; padding: 12px 8px; border-radius: 16px; }
  .player-hero-draw-number { font-size: 35px; }
  .player-hero-draw-number small { font-size: 14px; }
  .player-hero-draw > strong, .player-draw-time { font-size: 10px; }
  .player-status { padding: 5px 7px; font-size: 9px; }
  .player-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0; margin: 12px 0; padding: 14px; border-radius: 15px; }
  .player-room-select { display: block; min-width: 0; }
  .player-room-select > span { display: block; margin-bottom: 5px; }
  .player-room-select select { width: 100%; min-width: 0; height: 36px; }
  .player-prize, .player-draw-id { min-width: 0; padding-left: 14px; }
  .player-draw-id { margin-left: 0; }
  .player-prize strong { font-size: 18px; }
  .player-board-panel, .player-ticket-panel { padding: 18px 14px 15px; border-radius: 16px; }
  .player-panel-heading h2, .player-next-row h2 { font-size: 19px; }
  .player-counter { padding: 5px 7px; font-size: 10px; }
  .player-counter b { font-size: 12px; }
  .player-number-bands, .player-number-board { gap: 4px; }
  .player-number-bands { margin-top: 20px; }
  .player-ball { border-radius: 5px; font-size: 8px; }
  .player-board-legend { gap: 8px; margin-top: 15px; font-size: 9px; }
  .player-board-note { width: 100%; margin-left: 0; }
  .player-side-column { display: block; }
  .player-help-panel { margin-top: 12px; }
  .player-next-row { margin-top: 20px; }
  .player-draw-row { min-height: 59px; padding: 8px 11px; }
  .player-draw-row strong { font-size: 12px; }
  .player-ticket-head { margin-top: 19px; }
  .player-purchased-ticket { padding: 10px; }
  .player-ticket-cell { border-radius: 8px; font-size: 13px; }
  .player-footer { flex-wrap: wrap; gap: 6px 12px; }
}

@media (max-width: 430px) {
  .player-topbar { min-height: 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 12px; }
  .player-brand { min-width: 0; width: 100%; }
  .player-brand small { display: none; }
  .player-top-actions { width: 100%; justify-content: space-between; gap: 4px; }
  .player-top-actions .hub-lang-switcher { gap: 2px; margin: 0; padding: 2px; }
  .player-top-actions .hub-lang-btn { min-width: 36px; min-height: 44px; padding: 4px 5px; }
  .player-icon-button { width: 44px; height: 44px; }
  .player-voice-button { width: 44px; min-width: 44px; padding: 0; }
}

@media (max-width: 991.98px) {
  .module-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bonus-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-layout { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .sweepstakes-col-12, .sweepstakes-col-8, .sweepstakes-col-6, .sweepstakes-col-2 { flex-basis: 100%; max-width: 100%; }
  .date-time-picker-row { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .module-toolbar { align-items: stretch; flex-direction: column; }
  .module-toolbar .table-search, .module-inline-search { width: 100%; }
  .module-sort-row { grid-template-columns: 1fr; }
  .module-form-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .bonus-status-bar, .bonus-actions { align-items: stretch; flex-direction: column; }
  .bonus-status-bar .btn, .bonus-actions .btn { width: 100%; }
  .bonus-stats { grid-template-columns: 1fr; }
  .bonus-deposit-drawer > summary { align-items: flex-start; padding: 13px; }
  .bonus-deposit-summary-value { display: none; }
  .bonus-deposit-drawer-body { padding-right: 13px; padding-left: 13px; }
  .bonus-deposit-control-row { align-items: stretch; flex-direction: column; gap: 12px; }
  .bonus-deposit-toggle { justify-content: center; width: 100%; }
  .bonus-nav-tabs { gap: 6px; padding: 4px; }
  .bonus-nav-tabs .btn { flex: 1 1 100%; justify-content: center; }
  .bonus-settings-drawer > summary { align-items: flex-start; padding: 13px; }
  .bonus-settings-summary-state { padding: 6px 8px; font-size: 9px; }
  .bonus-settings-drawer-body { padding-right: 13px; padding-left: 13px; }
  .qr-preview { width: 100%; height: auto; aspect-ratio: 1; }
  .qr-preview canvas { width: 100%; height: 100%; }
  .config-switch-grid, .config-file-grid { grid-template-columns: 1fr; }
  .report-summary-grid { grid-template-columns: 1fr 1fr; }
}

@media print {
  .main-header, .main-sidebar, .main-footer, .control-sidebar, .sidebar-overlay, .module-form, .report-print { display: none !important; }
  .content-wrapper { margin: 0 !important; min-height: 0 !important; }
  .content { padding: 0 !important; }
  .card { box-shadow: none !important; border: 0 !important; }
  .module-table-wrap { overflow: visible !important; }
  .module-table { min-width: 0 !important; font-size: 11px; }
}

@media (max-width: 575.98px) {
  .form-grid.two, .form-grid.three, .form-grid.four { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .btn { width: 100%; }
}
@media (max-width: 575.98px) {
  .suggestions-link { display: none; }
  .content-header { display: block; min-height: 101.34px; padding: 15px 15.5px; }
  .breadcrumb { margin-top: 2px; }
  .card-body { padding: 20px; }
  .toolbar { display: block; height: 69.4px; min-height: 69.4px; }
  .new-user { display: block; width: 100%; }
  .table-search { position: static; width: 100%; margin-top: 5.2px; }
  .table-search input { flex: 1; width: 1%; }
  .pagination-row select { width: 100%; }
  .footer-company { display: none; }
  table { width: 789.25px; min-width: 789.25px; }
  col.col-type { width: 132.609px; } col.col-user { width: 146.547px; } col.col-manager { width: 98.578px; } col.col-room { width: 84.328px; } col.col-balance { width: 88.625px; } col.col-limit { width: 69.969px; } col.col-status { width: 86.594px; } col.col-actions { width: 81px; }
}

/* Premium administration skin */
:root {
  --admin-bg: #f3f6fb;
  --admin-surface: #ffffff;
  --admin-surface-soft: #f8faff;
  --admin-text: #1d2738;
  --admin-muted: #77849a;
  --admin-border: #e4eaf3;
  --admin-sidebar: #121827;
  --admin-sidebar-soft: #1a2234;
  --admin-sidebar-text: #aeb8ca;
  --admin-primary: #6d5ce7;
  --admin-primary-deep: #4c3fb8;
  --admin-gold: #e4b85c;
  --admin-shadow: 0 16px 40px rgba(35, 52, 91, .08);
  --sidebar-width: 272px;
  --sidebar-collapsed: 76px;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) {
  color: var(--admin-text);
  background: var(--admin-bg);
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-header {
  position: sticky;
  top: 0;
  height: 68px;
  padding: 10px 20px;
  color: var(--admin-text);
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(219, 226, 238, .9);
  box-shadow: 0 8px 24px rgba(31, 46, 80, .05);
  backdrop-filter: blur(18px);
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-header .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  color: #78849a;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-header .nav-link:hover {
  color: var(--admin-primary);
  background: #f2f0ff;
  transform: translateY(-1px);
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .menu-toggle {
  width: 46px;
  padding: 8px 14px;
  font-size: 18px;
}

.theme-toggle {
  gap: 8px;
  margin-right: 2px;
  padding: 8px 12px !important;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.theme-toggle i { color: var(--admin-gold); font-size: 15px; }

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  overflow-y: auto;
  overflow-x: hidden;
  color: var(--admin-sidebar-text);
  background: linear-gradient(180deg, #171e30 0%, var(--admin-sidebar) 48%, #0c111c 100%);
  border-right: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 16px 0 38px rgba(11, 18, 34, .16);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .15) transparent;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-sidebar::after {
  position: absolute;
  right: -80px;
  bottom: 18%;
  width: 180px;
  height: 180px;
  content: "";
  border-radius: 50%;
  background: rgba(109, 92, 231, .12);
  filter: blur(35px);
  pointer-events: none;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .brand-link {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 11px;
  width: var(--sidebar-width);
  height: 68px;
  padding: 12px 20px;
  background: #171e30;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand-mark {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #17120a;
  border: 1px solid rgba(255, 232, 168, .7);
  border-radius: 13px;
  background: linear-gradient(135deg, #f5d887, #c99b3f);
  box-shadow: 0 7px 18px rgba(228, 184, 92, .22), inset 0 1px 0 rgba(255, 255, 255, .65);
  font-size: 17px;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  line-height: 1;
}

.brand-text strong {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.brand-text strong span { color: #f4c962; }

.brand-text small {
  color: #8e9ab0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .sidebar { position: relative; z-index: 1; padding: 15px 13px 45px; }

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .user-panel {
  margin: 0 2px 15px;
  padding: 12px 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .avatar {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(245, 216, 135, .75);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .user-info a { color: #eef2fb; font-size: 13px; font-weight: 700; }

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .sidebar-search {
  height: 42px;
  margin: 0 2px 17px;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .sidebar-search input,
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .sidebar-search button {
  color: #eef2fb;
  background: rgba(255, 255, 255, .065);
  border-color: rgba(255, 255, 255, .11);
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .sidebar-search input { border-radius: 11px 0 0 11px; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .sidebar-search button { border-radius: 0 11px 11px 0; }

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .side-nav { margin-top: 0; }

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .side-nav .nav-link {
  height: 44px;
  margin: 0 0 4px;
  padding: 10px 13px;
  color: #aeb8ca;
  border: 1px solid transparent;
  border-radius: 12px;
  line-height: 22px;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .side-nav .nav-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .08);
  transform: translateX(2px);
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .side-nav .nav-link.active {
  color: #fff;
  border-color: rgba(182, 169, 255, .38);
  background: linear-gradient(110deg, rgba(109, 92, 231, .98), rgba(76, 63, 184, .9));
  box-shadow: 0 8px 18px rgba(75, 61, 181, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .side-nav .nav-icon { color: #b9c4d7; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .side-nav .active .nav-icon { color: #fff; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .nav-treeview { padding: 3px 0 5px 14px; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .nav-treeview .nav-link { height: 37px; margin-bottom: 2px; padding: 7px 12px; color: #8f9bb0; font-size: 14px; }

body.sidebar-collapse:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-sidebar { width: var(--sidebar-collapsed); }
body.sidebar-collapse:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .brand-link { width: var(--sidebar-collapsed); justify-content: center; padding: 12px 8px; }

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content-wrapper {
  min-height: calc(100vh - 68px);
  background: radial-gradient(circle at 92% 0%, rgba(109, 92, 231, .07), transparent 24%), var(--admin-bg);
}

/* A stale cambista session must never place an admin page underneath the
   fixed sidebar. Public terminal routes opt into the full-width layout via
   their own body classes; every other route keeps the admin offset. */
html[data-cambista-mode="true"] body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-header,
html[data-cambista-mode="true"] body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content-wrapper,
html[data-cambista-mode="true"] body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-footer {
  margin-left: var(--sidebar-width);
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content-wrapper,
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content,
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .module-container,
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .module-card,
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .module-card .card-body {
  min-width: 0;
  max-width: 100%;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content-header {
  min-height: 92px;
  padding: 27px 28px 18px;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content-header h1 {
  color: var(--admin-text);
  font-size: 31px;
  font-weight: 750;
  letter-spacing: -.8px;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .breadcrumb { color: var(--admin-muted); font-size: 13px; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .breadcrumb a { color: var(--admin-primary); font-weight: 700; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content { padding: 0 28px 32px; }

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .card {
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .card-header {
  min-height: 64px;
  padding: 19px 24px;
  color: var(--admin-text);
  border-bottom: 1px solid var(--admin-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), var(--admin-surface-soft));
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.2px;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .card-body { padding: 24px; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .module-card .card-header { font-weight: 750; }

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: auto;
  min-height: 48px;
  margin-bottom: 22px;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .table-search {
  position: static;
  display: flex;
  margin-left: auto;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .table-search input,
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .table-search button {
  height: 40px;
  color: var(--admin-text);
  background: var(--admin-surface-soft);
  border-color: var(--admin-border);
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .table-search input { width: 250px; border-radius: 10px 0 0 10px; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .table-search button { width: 42px; border-radius: 0 10px 10px 0; }

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .btn {
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 11px;
  box-shadow: 0 6px 14px rgba(30, 45, 78, .08);
  font-size: 14px;
  font-weight: 750;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .btn-primary { border-color: var(--admin-primary); background: linear-gradient(135deg, #7868f4, var(--admin-primary-deep)); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .btn-success { border-color: #20a873; background: linear-gradient(135deg, #35c98b, #159461); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .btn-danger { border-color: #df5364; background: linear-gradient(135deg, #ef6e7b, #ce3e52); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .btn-secondary { border-color: #77849a; background: linear-gradient(135deg, #8491a4, #667387); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .btn-info { border-color: #239ab1; background: linear-gradient(135deg, #38bbcf, #188ca4); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .btn-warning { border-color: #d39e31; background: linear-gradient(135deg, #f4cf65, #d9a83b); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .btn:hover { filter: none; transform: translateY(-1px); box-shadow: 0 9px 18px rgba(30, 45, 78, .14); }

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) table {
  min-width: 789px;
  overflow: hidden;
  color: var(--admin-text);
  border: 1px solid var(--admin-border);
  border-radius: 13px;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) th {
  height: 52px;
  color: var(--admin-muted);
  border-color: var(--admin-border);
  background: var(--admin-surface-soft);
  font-size: 11px;
  letter-spacing: .65px;
  text-transform: uppercase;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) td {
  height: 62px;
  padding: 14px 12px;
  color: var(--admin-text);
  border-color: var(--admin-border);
  vertical-align: middle;
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) tbody tr { height: 62px; transition: background .18s ease; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) tbody tr:nth-child(odd) { background: transparent; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) tbody tr:hover { background: rgba(109, 92, 231, .06); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .actions .btn { min-width: 40px; padding: 8px 10px; border-radius: 10px; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .badge { padding: 5px 8px; border-radius: 99px; font-size: 11px; letter-spacing: .15px; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .pagination-row { padding-top: 20px; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .pagination-row select { height: 40px; color: var(--admin-text); background: var(--admin-surface-soft); border-color: var(--admin-border); border-radius: 10px; }

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode):not(.admin-login-mode) .form-group label,
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode):not(.admin-login-mode) .form-checks label { color: var(--admin-text); font-size: 13px; font-weight: 700; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode):not(.admin-login-mode) .form-control { height: 43px; color: var(--admin-text); background: var(--admin-surface-soft); border-color: var(--admin-border); border-radius: 11px; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) textarea.form-control { height: auto; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode):not(.admin-login-mode) .form-control:focus { border-color: #9a8eff; box-shadow: 0 0 0 .2rem rgba(109, 92, 231, .16); }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .module-table-wrap { border: 1px solid var(--admin-border); border-radius: 13px; }

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-footer {
  min-height: 66px;
  padding: 22px 28px;
  color: var(--admin-muted);
  background: var(--admin-surface);
  border-top: 1px solid var(--admin-border);
}

body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) {
  --admin-bg: #080b12;
  --admin-surface: #101521;
  --admin-surface-soft: #151c2b;
  --admin-text: #eef2fb;
  --admin-muted: #8b98ad;
  --admin-border: #273145;
  --admin-sidebar: #05070c;
  --admin-sidebar-soft: #0c111c;
  --admin-sidebar-text: #aeb8ca;
  --admin-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-header {
  background: rgba(10, 14, 23, .9);
  border-bottom-color: #222b3d;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .2);
}

body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-header .nav-link { color: #97a3b8; }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-header .nav-link:hover { color: #f1d17d; background: rgba(228, 184, 92, .1); }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-sidebar { background: linear-gradient(180deg, #0b0e16 0%, #05070c 100%); border-right-color: rgba(228, 184, 92, .12); }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .brand-link { background: #0b0e16; }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content-wrapper { background: radial-gradient(circle at 92% 0%, rgba(109, 92, 231, .1), transparent 25%), var(--admin-bg); }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .card-header { background: linear-gradient(180deg, #141b29, var(--admin-surface)); }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) tbody tr:hover { background: rgba(109, 92, 231, .12); }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-footer { background: #0c111b; }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .autobingo-format-guide { border-color: var(--admin-border); background: #111827; }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .autobingo-format-guide > strong { color: #b8b0ff; }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .autobingo-format-guide > span { color: var(--admin-muted); }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .autobingo-format-chips span { color: var(--admin-sidebar-text); border-color: var(--admin-border); background: var(--admin-surface-soft); }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .autobingo-format-chips b { color: #d5d0ff; }

@media (max-width: 991.98px) {
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-sidebar { width: var(--sidebar-width); margin-left: calc(var(--sidebar-width) * -1); }
  body.sidebar-open:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-sidebar { margin-left: 0; }
  body.sidebar-collapse:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-sidebar { width: var(--sidebar-width); }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .brand-link { width: var(--sidebar-width); }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-header { height: 62px; padding: 8px 12px; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content-wrapper { min-height: calc(100vh - 62px); }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content-header { min-height: 82px; padding: 21px 18px 15px; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content { padding: 0 18px 24px; }
  .autobingo-format-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .theme-toggle span { display: none; }
  .theme-toggle { width: 42px; padding: 8px !important; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content-header { display: block; min-height: 105px; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content-header h1 { font-size: 26px; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content { padding: 0 12px 20px; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .card-body { padding: 16px; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .card-header { min-height: 56px; padding: 16px; font-size: 17px; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .toolbar { align-items: stretch; flex-direction: column; gap: 10px; margin-bottom: 16px; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .table-search { width: 100%; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .table-search input { flex: 1; width: 1%; }
}

/* Sweepstakes day navigation: clear states, keyboard focus and a more polished control group. */
.sweepstakes-day-navigation { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto auto; align-items: end; gap: 10px; margin: 0 0 16px; padding: 13px; border: 1px solid #d8e0ec; border-radius: 14px; background: linear-gradient(135deg, #f8fbff, #eef3fb); box-shadow: 0 8px 18px rgba(34,54,93,.07); }
.sweepstakes-day-navigation label { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: #65728a; font-size: 11px; font-weight: 800; letter-spacing: .2px; }
.sweepstakes-day-navigation label span { padding-left: 2px; }
.sweepstakes-day-navigation select { width: 100%; height: 43px; padding: 7px 36px 7px 13px; color: #263653; border: 1px solid #cfd9e8; border-radius: 10px; outline: 0; background: #fff; cursor: pointer; font-size: 13px; font-weight: 700; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.sweepstakes-day-navigation select:hover { border-color: #a49bff; transform: translateY(-1px); }
.sweepstakes-day-navigation select:focus { border-color: #7568ef; box-shadow: 0 0 0 4px rgba(117,104,239,.14); }
.sweepstakes-day-navigation .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 7px 13px; color: #fff; border: 1px solid #7065e6; border-radius: 10px; background: linear-gradient(135deg, #7c70f1, #5e52d4); box-shadow: 0 5px 10px rgba(94,82,212,.2); cursor: pointer; font-size: 12px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.sweepstakes-day-navigation .btn:hover:not(:disabled) { filter: brightness(1.04); transform: translateY(-2px); box-shadow: 0 8px 15px rgba(94,82,212,.28); }
.sweepstakes-day-navigation .btn:active:not(:disabled) { transform: translateY(0); box-shadow: 0 3px 7px rgba(94,82,212,.2); }
.sweepstakes-day-navigation .btn:focus-visible, .sweepstakes-day-navigation select:focus-visible { outline: 3px solid rgba(117,104,239,.24); outline-offset: 2px; }
.sweepstakes-day-navigation .btn:disabled { color: #9ba6b8; border-color: #d4dce8; background: #e5eaf2; box-shadow: none; cursor: not-allowed; transform: none; }
.sweepstakes-day-navigation .btn i { font-size: 10px; }
.sweepstakes-day-navigation .btn:first-child i { margin-right: 5px; }
.sweepstakes-day-navigation .btn:last-child i { margin-left: 5px; }
.sweepstakes-day-count { align-self: center; margin: 0 3px; padding: 0 2px; color: #7d899d; font-size: 11px; font-weight: 700; white-space: nowrap; }

body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .sweepstakes-day-navigation { border-color: #29354b; background: linear-gradient(135deg, #141d2d, #0f1624); box-shadow: 0 10px 22px rgba(0,0,0,.2); }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .sweepstakes-day-navigation label { color: #aab5c8; }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .sweepstakes-day-navigation select { color: #edf2fb; border-color: #33415a; background: #151e2f; }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .sweepstakes-day-navigation select:hover { border-color: #8f85ff; }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .sweepstakes-day-navigation .btn:disabled { color: #647187; border-color: #2c374b; background: #1b2433; }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .sweepstakes-day-count { color: #8e9bb0; }

@media (max-width: 850px) {
  .sweepstakes-day-navigation { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .sweepstakes-day-navigation label { grid-column: 1 / -1; }
  .sweepstakes-day-count { justify-self: center; grid-column: 1 / -1; order: 3; }
  .sweepstakes-day-navigation .btn { width: 100%; }
}

@media (max-width: 575.98px) {
  .sweepstakes-day-navigation { gap: 8px; padding: 10px; border-radius: 11px; }
  .sweepstakes-day-navigation select, .sweepstakes-day-navigation .btn { min-height: 40px; height: 40px; font-size: 11px; }
  .sweepstakes-day-count { font-size: 10px; }
}

/* Live draw animation: the balls appear only while a real round is running. */
.hub-ball-animation { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 43px; gap: 10px; margin: -2px 0 2px; }
.hub-ball-trail { display: flex; align-items: center; gap: 5px; }
.hub-ball-trail span { display: grid; place-items: center; width: 27px; height: 27px; color: #fff; border: 2px solid rgba(255,255,255,.82); border-radius: 50%; background: linear-gradient(135deg, #ec404d, #b7152d); box-shadow: 0 4px 9px rgba(0,0,0,.2); font-size: 8px; font-weight: 900; animation: hub-ball-bounce 1.45s ease-in-out infinite; }
.hub-ball-trail span:nth-child(2) { background: linear-gradient(135deg, #f0bd47, #c47c18); animation-delay: .16s; }
.hub-ball-trail span:nth-child(3) { background: linear-gradient(135deg, #49a8eb, #2463bf); animation-delay: .32s; }
.hub-live-ball { display: flex; align-items: center; justify-content: center; width: 55px; height: 55px; flex-direction: column; color: #283fc1; border: 3px solid #fff; border-radius: 50%; background: radial-gradient(circle at 32% 25%, #fff 0 8%, transparent 9%), linear-gradient(145deg, #fff967, #f5c813); box-shadow: 0 0 0 3px rgba(255,239,85,.22), 0 7px 13px rgba(0,0,0,.22); animation: hub-ball-pulse 1.5s ease-in-out infinite; }
.hub-live-ball small { color: rgba(40,63,193,.8); font-size: 7px; font-weight: 800; line-height: 1; }
.hub-live-ball strong { color: #1e2e9e; font-size: 13px; font-weight: 900; line-height: 1.2; }
.hub-ball-count { color: rgba(255,255,255,.84); font-size: 9px; font-weight: 800; white-space: nowrap; }
.hub-ball-count i { margin-right: 3px; color: #ffe500; }
@keyframes hub-ball-bounce { 0%, 100% { transform: translateY(2px) rotate(-7deg); } 50% { transform: translateY(-5px) rotate(7deg); } }
@keyframes hub-ball-pulse { 0%, 100% { transform: scale(.96) rotate(-3deg); } 50% { transform: scale(1.05) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) {
  .hub-ball-trail span, .hub-live-ball { animation: none; }
}

.hub-main-column > .hub-bottom-grid { width: 100%; margin-top: 13px; }
body.hub-dark-mode .hub-ball-trail span { border-color: #f4d58b; }
body.hub-dark-mode .hub-live-ball { border-color: #e7c471; box-shadow: 0 0 0 3px rgba(236,190,85,.2), 0 7px 13px rgba(0,0,0,.5); }
body.hub-dark-mode .hub-ball-count { color: #cdbb97; }

/* Live round panels: participant data is rendered only after the server marks a draw as running. */
.hub-live-round { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; padding: 17px 19px; color: #29395b; border: 3px solid #fff; border-radius: 14px; background: rgba(255,255,255,.93); box-shadow: 0 7px 0 rgba(4,26,122,.11); }
.hub-live-round-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.hub-live-kicker { color: #18a66d; font-size: 10px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.hub-live-kicker i { margin-right: 5px; }
.hub-live-round h2 { margin: 3px 0 2px; color: #1d2e91; font-size: 20px; }
.hub-live-round p { margin: 0; color: #77849a; font-size: 11px; line-height: 1.4; }
.hub-live-open { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 8px 10px; color: #fff; border-radius: 8px; background: #263fc0; font-size: 11px; font-weight: 800; }
.hub-live-open-only { display: flex; width: 100%; justify-content: center; margin-top: 14px; }
.hub-live-open:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }
.hub-live-round-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; color: #53627d; border: 1px solid #e3eaf2; border-radius: 9px; background: #f7faff; font-size: 11px; }
.hub-live-round-strip strong { color: #293fc1; }
.hub-live-round-strip span { white-space: nowrap; }
.hub-live-participant-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.hub-live-participant-list li { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px 8px; border: 1px solid #e9eef5; border-radius: 8px; background: #fff; }
.hub-live-participant-list li strong { overflow: hidden; color: #344360; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hub-live-participant-list li small { margin-left: auto; color: #8895a8; font-size: 9px; white-space: nowrap; }
.hub-live-avatar { display: grid; flex: 0 0 25px; place-items: center; width: 25px; height: 25px; color: #fff; border-radius: 50%; background: linear-gradient(135deg, #7569ed, #4a9fe9); font-size: 10px; }
.hub-live-empty { grid-column: 1 / -1; justify-content: center; color: #8996a8 !important; font-size: 11px; }
.hub-live-empty i { color: #7180ce; }

.player-live-round { display: flex; min-height: calc(100vh - 116px); flex-direction: column; gap: 22px; margin-bottom: 20px; padding: 32px 34px; border: 1px solid #dfe7f2; border-radius: 24px; background: linear-gradient(135deg, #fff, #f8fbff); box-shadow: 0 14px 34px rgba(20,32,58,.08); }
.player-live-round-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.player-live-round-heading h2 { margin: 5px 0 4px; color: #223252; font-size: clamp(28px, 3vw, 40px); }
.player-live-round-heading h2 i { margin-right: 7px; color: #2db980; font-size: 20px; }
.player-live-round-heading p { margin: 0; color: #8793a7; font-size: 12px; }
.player-live-round-meta { display: flex; gap: 8px; }
.player-live-round-meta span { display: flex; min-width: 82px; flex-direction: column; gap: 2px; padding: 8px 10px; color: #7d8aa0; border: 1px solid #e1e8f1; border-radius: 10px; background: #fff; font-size: 10px; text-align: center; }
.player-live-round-meta strong { color: #6e64ef; font-size: 18px; }
.player-prize-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.player-prize-stages span { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; color: #8d98aa; border: 1px solid #e1e7f0; border-radius: 11px; background: #fff; font-size: 11px; }
.player-prize-stages span i { color: #a9b2c1; }
.player-prize-stages span.is-current { color: #fff; border-color: #6f65ea; background: linear-gradient(135deg, #756af0, #4d61dc); box-shadow: 0 7px 14px rgba(86,83,209,.18); }
.player-prize-stages span.is-current i { color: #fff36b; }
.player-prize-stages span.is-complete { color: #23835f; border-color: #bcebd8; background: #ecfbf5; }
.player-prize-stages span.is-complete i { color: #2bb47f; }
.player-live-winners { display: flex; flex-wrap: wrap; gap: 7px; }
.player-live-winners span { padding: 7px 9px; color: #536078; border: 1px solid #e0e7f0; border-radius: 9px; background: #fff; font-size: 10px; }
.player-live-winners i { margin-right: 4px; color: #e2ad35; }
.player-live-winners strong { color: #34415d; }
.player-live-round-status { display: flex; min-height: 320px; flex: 1; align-items: center; justify-content: space-around; gap: 24px; padding: 24px 28px; color: #8290a4; border: 1px solid #e4eaf2; border-radius: 18px; background: #fff; font-size: 12px; }
.player-live-call-stage { position: relative; display: block; flex: 0 0 430px; width: 430px; height: 270px; overflow: hidden; border-radius: 24px; background: radial-gradient(circle at 42% 48%, rgba(117,105,239,.17), transparent 60%); }
.player-live-floating-number { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex-direction: column; color: #2435ac; border: 3px solid #fff; border-radius: 50%; background: radial-gradient(circle at 30% 24%, #fff 0 9%, transparent 10%), linear-gradient(145deg, #fff77d, #efbf25); box-shadow: inset -7px -8px 13px rgba(77,61,15,.12), 0 8px 18px rgba(38,52,125,.2); animation: player-live-ball-float 2.2s ease-in-out infinite, player-live-ball-glow 1.8s ease-in-out infinite; }
.player-live-floating-number small { font-size: 8px; font-weight: 900; line-height: 1; opacity: .72; }
.player-live-floating-number strong { font-size: 18px; font-weight: 1000; line-height: 1.05; }
.player-live-floating-0 { top: 42px; left: 126px; z-index: 5; width: 150px; height: 150px; color: #202c83; border-width: 5px; }
.player-live-floating-0 small { font-size: 10px; }
.player-live-floating-0 strong { font-size: 54px; }
.player-live-floating-1 { top: 22px; right: 34px; width: 92px; height: 92px; color: #143a85; background: radial-gradient(circle at 30% 24%, #fff 0 9%, transparent 10%), linear-gradient(145deg, #f4fbff, #56a9ee); animation-delay: .18s; }
.player-live-floating-1 strong { font-size: 29px; }
.player-live-floating-2 { right: 65px; bottom: 24px; width: 70px; height: 70px; color: #484848; background: radial-gradient(circle at 30% 24%, #fff 0 9%, transparent 10%), linear-gradient(145deg, #fff, #aeb5bf); animation-delay: .36s; }
.player-live-floating-2 strong { font-size: 15px; }
.player-live-floating-3 { bottom: 30px; left: 38px; width: 58px; height: 58px; color: #8c2027; background: radial-gradient(circle at 30% 24%, #fff 0 9%, transparent 10%), linear-gradient(145deg, #fff, #ef5b64); animation-delay: .54s; }
.player-live-floating-3 small { display: none; }
.player-live-floating-3 strong { font-size: 13px; }
.player-live-floating-number.is-waiting { left: 126px; color: #7c889c; background: linear-gradient(145deg, #fff, #e5eaf2); }
.player-live-order { position: absolute; right: 8px; bottom: 4px; color: #7b8799; font-size: 9px; font-weight: 900; letter-spacing: .35px; }
.player-live-order strong { color: #2c3fc0; font-size: 14px; }
.player-live-ball { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 69px; height: 69px; flex-direction: column; color: #2535b5; border: 3px solid #fff; border-radius: 50%; background: radial-gradient(circle at 32% 25%, #fff 0 8%, transparent 9%), linear-gradient(145deg, #fff566, #f3c629); box-shadow: 0 0 0 3px rgba(117,104,239,.12), 0 6px 14px rgba(48,68,150,.12); animation: hub-ball-pulse 1.5s ease-in-out infinite; }
.player-live-ball-floating { width: 76px; height: 76px; border-color: #fff; box-shadow: 0 0 0 4px rgba(117,104,239,.12), 0 8px 18px rgba(48,68,150,.18); animation: player-live-ball-float 2.2s ease-in-out infinite, player-live-ball-glow 1.8s ease-in-out infinite; }
.player-live-ball-floating::after { position: absolute; inset: -7px; border: 1px dashed rgba(116,105,239,.4); border-radius: 50%; content: ''; animation: player-live-orbit 4s linear infinite; }
.player-live-ball small { color: #5e6cc4; font-size: 7px; font-weight: 800; letter-spacing: .35px; }
.player-live-ball strong { font-size: 18px; font-weight: 900; line-height: 1; }
.player-live-ball em { margin-top: 3px; color: #5968bd; font-size: 7px; font-style: normal; font-weight: 900; }
.player-live-orbit { position: absolute; display: block; width: 9px; height: 9px; border-radius: 50%; background: #ed9a57; box-shadow: 0 0 9px rgba(237,154,87,.6); animation: player-live-orbit-float 2.1s ease-in-out infinite; }
.player-live-orbit-a { top: 7px; right: 4px; }
.player-live-orbit-b { bottom: 10px; left: 2px; width: 6px; height: 6px; background: #35bd88; animation-delay: .7s; }
.player-live-count-card { display: flex; min-width: 104px; flex-direction: column; gap: 3px; padding: 8px 10px; border-left: 1px solid #edf0f5; }
.player-live-count-card small { color: #8b97aa; font-size: 8px; font-weight: 900; letter-spacing: .35px; }
.player-live-count-card strong { color: #2b3fc0; font-size: 25px; line-height: 1; }
.player-live-count-card strong span { color: #9aa5b7; font-size: 12px; font-weight: 600; }
.player-live-progress { height: 5px; overflow: hidden; margin-top: 3px; border-radius: 99px; background: #edf0f7; }
.player-live-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #756bf0, #37bd8a); transition: width .45s ease; }
.player-live-count-card b { color: #9aa5b7; font-size: 8px; font-weight: 600; }
.player-live-ball-trail { display: flex; align-items: center; gap: 6px; }
.player-live-ball-trail span { display: grid; place-items: center; width: 30px; height: 30px; color: #fff; border-radius: 50%; background: linear-gradient(135deg, #746af0, #a39aff); box-shadow: 0 4px 8px rgba(82,77,188,.16); font-size: 9px; font-weight: 900; animation: hub-ball-bounce 1.4s ease-in-out infinite; }
.player-live-ball-trail span.is-empty { opacity: .35; }
.player-live-ball-trail span:nth-child(2) { background: linear-gradient(135deg, #4a9fe9, #2b71c3); animation-delay: .12s; }
.player-live-ball-trail span:nth-child(3) { background: linear-gradient(135deg, #ed9a57, #c56a2b); animation-delay: .24s; }
.player-live-ball-trail span:nth-child(4) { background: linear-gradient(135deg, #35bd88, #21845f); animation-delay: .36s; }
.player-live-ball-trail span:nth-child(5) { background: linear-gradient(135deg, #e66f8d, #bd3c62); animation-delay: .48s; }
.player-live-round-status > span { margin-left: auto; white-space: nowrap; }
.player-live-round-status > span i { margin-right: 4px; color: #6e64ef; }
.player-live-sync { color: #2cae7d; font-weight: 800; }
.player-live-sync i { animation: player-sync-spin 2.2s linear infinite; }
.player-ball.is-latest { animation: player-number-hit .9s cubic-bezier(.2,.8,.2,1); }
.player-live-participants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.player-live-participant { min-width: 0; padding: 13px; border: 1px solid #e2e9f2; border-radius: 14px; background: #fff; }
.player-live-participant-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.player-live-participant-heading > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.player-live-participant-heading strong { overflow: hidden; color: #33425e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.player-live-participant-heading small { color: #8d9aad; font-size: 10px; }
.player-live-participant-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.player-live-card { min-width: 0; padding: 8px; border: 1px solid #e6ecf4; border-radius: 10px; background: #fbfcff; }
.player-live-card-compact { padding: 9px 10px; }
.player-live-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 5px; }
.player-live-card-heading strong { overflow: hidden; color: #5d6b84; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.player-live-card-heading span { color: #2cae7d; font-size: 8px; white-space: nowrap; }
.player-live-card-letters, .player-live-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.player-live-card-letters { margin-bottom: 3px; color: #8a96a9; font-size: 8px; font-weight: 800; text-align: center; }
.player-live-card-numbers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.player-live-card-numbers span { display: grid; place-items: center; min-height: 28px; color: #43516b; border: 1px solid #e6ebf3; border-radius: 5px; background: #fff; font-size: 10px; font-weight: 800; }
.player-live-card-numbers span.is-called { color: #fff; border-color: #35b874; background: linear-gradient(145deg, #53ca7c, #269d60); box-shadow: 0 3px 8px rgba(38,157,96,.22); }
.player-live-card-cell { display: grid; place-items: center; aspect-ratio: 1; min-width: 0; color: #43516b; border: 1px solid #e6ebf3; border-radius: 4px; background: #fff; font-size: 9px; font-weight: 800; }
.player-live-card-cell.is-called { color: #fff; border-color: #35b874; background: linear-gradient(145deg, #53ca7c, #269d60); box-shadow: 0 3px 8px rgba(38,157,96,.22); }
.player-live-card-cell.is-free { color: #2b9c70; background: #eafaf2; }
.player-live-card-cell.is-free i { font-size: 7px; }
.player-live-card-empty, .player-live-empty { display: flex; align-items: center; justify-content: center; min-height: 74px; flex-direction: column; gap: 4px; color: #8c99ab; border: 1px dashed #d9e1ec; border-radius: 10px; background: #fbfcff; text-align: center; }
.player-live-card-empty i, .player-live-empty > i { color: #7b72ed; font-size: 17px; }
.player-live-card-empty span, .player-live-empty strong { color: #64728a; font-size: 11px; }
.player-live-card-empty small, .player-live-empty span { max-width: 360px; padding: 0 8px; color: #99a5b6; font-size: 10px; line-height: 1.35; }
.player-live-empty { grid-column: 1 / -1; min-height: 112px; }

body.hub-dark-mode .hub-live-round { color: #f8fafc; border: 1px solid rgba(59, 130, 246, 0.35); background: linear-gradient(145deg, #0d172e, #091020); box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 20px rgba(37,99,235,.15); }
body.hub-dark-mode .hub-live-kicker { color: #38bdf8; }
body.hub-dark-mode .hub-live-round h2 { color: #ffffff; }
body.hub-dark-mode .hub-live-round p { color: #94a3b8; }
body.hub-dark-mode .hub-live-open { color: #ffffff; border: 1px solid #2563eb; background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 6px 16px rgba(37,99,235,0.4); }
body.hub-dark-mode .player-live-card-numbers span.is-called,
body.hub-dark-mode .player-live-card-cell.is-called { color: #ffffff; border-color: #34d399; background: linear-gradient(145deg, #10b981, #059669); box-shadow: 0 3px 9px rgba(16,185,129,.35); }
body.hub-dark-mode .hub-live-round-strip { color: #94a3b8; border-color: #1e293b; background: #0c1527; }
body.hub-dark-mode .hub-live-round-strip strong { color: #38bdf8; }
body.hub-dark-mode .hub-live-participant-list li { border-color: #1e293b; background: #0c1527; }
body.hub-dark-mode .hub-live-participant-list li strong { color: #f1f5f9; }
body.hub-dark-mode .hub-live-participant-list li small { color: #94a3b8; }
body.hub-dark-mode .hub-live-avatar { color: #ffffff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
body.hub-dark-mode .player-prize-stages span { color: #94a3b8; border-color: #1e293b; background: #0c1527; }
body.hub-dark-mode .player-prize-stages span.is-current { color: #ffffff; border-color: #38bdf8; background: linear-gradient(135deg, #0284c7, #1d4ed8); box-shadow: 0 0 12px rgba(56,189,248,.4); }
body.hub-dark-mode .player-prize-stages span.is-complete { color: #34d399; border-color: #059669; background: #062b1e; }

.hub-ticket-button { display: flex; width: 100%; align-items: center; justify-content: center; gap: 7px; min-height: 38px; margin-top: 8px; color: #fff; border: 0; border-radius: 8px; background: linear-gradient(135deg, #293fc1, #5a62ed); box-shadow: 0 5px 0 rgba(28,43,150,.16); font-size: 12px; font-weight: 900; cursor: pointer; transition: transform .2s ease, filter .2s ease; }
.hub-ticket-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.hub-ticket-button:disabled { cursor: wait; opacity: .65; transform: none; }
body.hub-dark-mode .hub-ticket-button { color: #ffffff; border: 1px solid #2563eb; background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 5px 14px rgba(37,99,235,.4); }

.live-control-warning { margin: 0 0 18px; }
.live-timing-config-help { margin: 0 0 18px; }
.live-control-toolbar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 18px; }
.live-control-toolbar label { display: flex; flex-direction: column; gap: 6px; color: #8995a9; font-size: 11px; font-weight: 800; }
.live-control-toolbar select, .live-control-toolbar input { min-height: 42px; padding: 0 12px; color: #dce5f6; border: 1px solid #293750; border-radius: 9px; outline: none; background: #131d2e; font: inherit; }
.live-control-toolbar select:focus, .live-control-toolbar input:focus { border-color: #7469ed; box-shadow: 0 0 0 3px rgba(116,105,237,.15); }
.live-control-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.live-control-summary > div { display: flex; min-height: 76px; justify-content: center; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid #293750; border-radius: 10px; background: #111a2a; }
.live-control-summary small { color: #8290a6; font-size: 10px; }
.live-control-summary strong { color: #e9c56e; font-size: 18px; }
.live-control-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.live-control-actions .btn { border-radius: 8px; }
.live-control-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; color: #8491a7; font-size: 11px; }
.live-control-grid { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 6px; padding: 14px; border: 1px solid #293750; border-radius: 12px; background: #0c1422; }
.live-control-ball { display: grid; place-items: center; min-height: 31px; color: #9aa8bf; border: 1px solid #2b3a55; border-radius: 50%; background: #141f32; font-size: 10px; font-weight: 800; }
.live-control-ball.is-called { color: #1b1409; border-color: #e7bd5f; background: linear-gradient(145deg, #ffe09a, #bd8630); box-shadow: 0 0 10px rgba(225,178,80,.24); }
.live-control-result { margin-top: 16px; padding-top: 15px; border-top: 1px solid #293750; }
.live-control-result h3 { margin: 0 0 10px; color: #eef3ff; font-size: 15px; }
.live-stage-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.live-stage-result { min-height: 82px; padding: 10px; border: 1px solid #293750; border-radius: 10px; background: #101a2a; }
.live-stage-result.is-current { border-color: #e7bd5f; box-shadow: 0 0 0 3px rgba(231,189,95,.1); }
.live-stage-result h4 { margin: 0 0 8px; color: #e9c56e; font-size: 12px; text-transform: uppercase; }
.live-stage-waiting { color: #77869d; font-size: 10px; }
.live-stage-result .live-control-winner { align-items: flex-start; flex-direction: column; gap: 2px; padding: 6px 0; border-top: 1px solid #26344c; }
.live-stage-result .live-control-winner:first-of-type { border-top: 0; }
.live-stage-result .live-control-winner i { font-size: 13px; }
.live-stage-result .live-control-winner strong { font-size: 11px; }
.live-stage-result .live-control-winner span { font-size: 9px; }
.live-control-empty { color: #8592a8; font-size: 12px; }
.live-control-winner { display: flex; align-items: center; gap: 10px; color: #f1cd77; }
.live-control-winner i { font-size: 22px; }
.live-control-winner strong { font-size: 16px; }
.live-control-winner span { color: #a5b1c6; font-size: 11px; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .module-card .live-control-toolbar .btn-secondary { align-self: end; min-height: 42px; }
@media (max-width: 720px) {
  .live-control-toolbar { grid-template-columns: 1fr; }
  .live-control-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-control-meta { flex-direction: column; }
  .live-control-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .live-stage-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .hub-live-round-heading, .player-live-round-heading { flex-direction: column; }
  .hub-live-open { align-self: flex-start; }
  .player-live-round-meta { width: 100%; }
  .player-live-round-meta span { flex: 1; }
  .player-live-round { min-height: 0; }
  .player-live-round-status { min-height: 0; flex-wrap: wrap; }
  .player-live-call-stage { flex-basis: 250px; width: 250px; height: 156px; margin: 0 auto; }
  .player-live-floating-0 { top: 22px; left: 70px; width: 92px; height: 92px; }
  .player-live-floating-0 strong { font-size: 34px; }
  .player-live-floating-1 { top: 13px; right: 18px; width: 61px; height: 61px; }
  .player-live-floating-1 strong { font-size: 18px; }
  .player-live-floating-2 { right: 39px; bottom: 15px; width: 46px; height: 46px; }
  .player-live-floating-3 { bottom: 17px; left: 21px; width: 39px; height: 39px; }
  .player-live-floating-number.is-waiting { left: 70px; }
  .player-live-round-status > span { width: 100%; margin-left: 0; }
  .player-live-participants { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hub-live-participant-list { grid-template-columns: 1fr; }
  .hub-live-round { padding: 14px; }
  .player-live-round { padding: 18px 14px; }
  .player-live-round-heading h2 { font-size: 20px; }
  .player-live-round-status { gap: 9px; }
  .player-live-call-stage { flex-basis: 220px; width: 220px; height: 132px; }
  .player-live-floating-0 { top: 17px; left: 61px; width: 82px; height: 82px; }
  .player-live-floating-1 { right: 11px; }
  .player-live-floating-2 { right: 29px; }
  .player-live-floating-number.is-waiting { left: 61px; }
  .player-live-ball strong { font-size: 16px; }
  .player-live-count-card { min-width: 86px; padding-left: 6px; }
  .player-live-count-card strong { font-size: 21px; }
  .player-live-ball-trail { gap: 4px; }
  .player-live-ball-trail span { width: 26px; height: 26px; }
  .player-live-participant-cards { grid-template-columns: 1fr; }
  .player-prize-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .player-live-ball, .player-live-floating-number, .player-live-ball-trail span, .player-live-orbit, .player-live-sync i, .player-ball.is-latest { animation: none; }
}

@keyframes player-live-ball-float {
  0%, 100% { transform: translateY(3px) rotate(-5deg) scale(.98); }
  50% { transform: translateY(-7px) rotate(5deg) scale(1.05); }
}
@keyframes player-live-ball-glow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(117,104,239,.12), 0 8px 18px rgba(48,68,150,.18); }
  50% { box-shadow: 0 0 0 9px rgba(117,104,239,.04), 0 10px 27px rgba(48,68,150,.26); }
}
@keyframes player-live-orbit { to { transform: rotate(360deg); } }
@keyframes player-live-orbit-float { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-5px); } }
@keyframes player-sync-spin { to { transform: rotate(360deg); } }
@keyframes player-number-hit {
  0% { transform: scale(.65) translateY(7px); opacity: .25; }
  65% { transform: scale(1.18) translateY(-3px); opacity: 1; }
  100% { transform: scale(1) translateY(-1px); opacity: 1; }
}

/* Live game layout: mirrors the reference game's order and information density. */
.player-app.is-live-page { background: #f4f7fb; }
.player-app.is-live-page .player-content { max-width: 1360px; padding-top: 18px; }
.player-app.is-live-page > .player-content > .player-toolbar,
.player-app.is-live-page > .player-content > .player-grid,
.player-app.is-live-page > .player-content > .player-hero-bottom { display: none; }
.player-live-reference { color: #1e2c48; }
.player-reference-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.player-reference-heading h1 { margin: 5px 0 2px; color: #223252; font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.8px; }
.player-reference-heading h1 i { margin-right: 8px; color: #36b77e; font-size: .72em; }
.player-reference-heading p { margin: 0; color: #8895a9; font-size: 12px; }
.player-reference-live-meta { display: flex; gap: 8px; }
.player-reference-live-meta span { display: flex; min-width: 82px; align-items: center; justify-content: center; gap: 3px; padding: 9px 10px; color: #8491a5; border: 1px solid #e0e7f1; border-radius: 11px; background: #fff; font-size: 10px; text-align: center; }
.player-reference-live-meta strong { color: #6f63ec; font-size: 18px; }
.player-reference-layout { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(330px, .92fr); gap: 16px; align-items: start; }
.player-reference-main, .player-reference-side { min-width: 0; }
.player-reference-prizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.player-reference-prize { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid #e0e7f0; border-radius: 12px; background: #fff; box-shadow: 0 7px 16px rgba(32,48,81,.055); }
.player-reference-prize.is-current { border-color: #6e64ef; box-shadow: 0 0 0 3px rgba(110,100,239,.1), 0 8px 18px rgba(32,48,81,.07); }
.player-reference-prize[data-player-prize-stage] { cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.player-reference-prize[data-player-prize-stage]:hover { border-color: #8a80f4; transform: translateY(-2px); }
.player-reference-prize[data-player-prize-stage]:focus-visible { outline: 3px solid rgba(47,155,214,.35); outline-offset: 2px; }
.player-reference-prize.is-selected { border-color: #2f9bd6; box-shadow: 0 0 0 3px rgba(47,155,214,.14), 0 10px 22px rgba(47,111,167,.14); }
.player-reference-prize.is-selected .player-reference-prize-title > i { color: #2f9bd6; }
.player-reference-prize.is-complete { border-color: #b8e9d4; background: #effcf6; }
.player-reference-prize-title { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; gap: 6px; overflow: visible; color: #57647c; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.player-reference-prize-title > i { color: #9aa5b7; }
.player-reference-prize.is-current .player-reference-prize-title > i { color: #6e64ef; }
.player-reference-prize.is-complete .player-reference-prize-title > i { color: #2bb47f; }
.player-reference-prize > strong { flex: 0 0 auto; color: #263b66; font-size: 17px; white-space: nowrap; }
.player-reference-prize.is-complete > strong { color: #21845f; }
.player-reference-prize.is-accumulated { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; gap: 3px 8px; }
.player-reference-prize.is-accumulated .player-reference-prize-title { grid-column: 1 / -1; width: 100%; }
.player-reference-prize.is-accumulated .player-reference-accumulated-status { grid-column: 1 / -1; }
.player-reference-prize.is-accumulated > strong { grid-column: 2; grid-row: 2; margin-left: 0; }
.player-reference-accumulated-mark { display: inline-grid; min-width: 25px; height: 25px; flex: 0 0 25px; place-items: center; color: #243a68; border-radius: 50%; background: linear-gradient(145deg, #ffe795, #e5b54e); font-size: 9px; }
.player-reference-accumulated-mark i { display: block; color: #fff; font-size: 6px; line-height: 1; }
.player-reference-info-balls { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 10px; margin-top: 11px; }
.player-reference-info-list { display: grid; grid-template-rows: repeat(4, minmax(47px, 1fr)); overflow: hidden; border: 1px solid #e0e7f0; border-radius: 13px; background: #fff; box-shadow: 0 7px 16px rgba(32,48,81,.045); }
.player-reference-info-item { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 7px 10px; border-bottom: 1px solid #edf1f6; }
.player-reference-info-item:last-child { border-bottom: 0; }
.player-reference-info-item span { color: #95a0b1; font-size: 9px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }
.player-reference-info-item strong { overflow: hidden; margin-top: 2px; color: #263c69; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.player-reference-ball-wall { position: relative; min-height: 228px; overflow: hidden; border: 1px solid #e0e7f0; border-radius: 13px; background: radial-gradient(circle at 35% 45%, rgba(112,102,239,.1), transparent 48%), #fff; box-shadow: 0 7px 16px rgba(32,48,81,.045); }
.player-reference-recent-ball { position: absolute; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; flex-direction: column; color: #25367f; border: 4px solid #fff; border-radius: 50%; background: radial-gradient(circle at 30% 24%, #fff 0 9%, transparent 10%), linear-gradient(145deg, #fff36d, #f0bc24); box-shadow: 0 0 0 4px rgba(111,101,239,.1), 0 9px 17px rgba(38,52,125,.16); animation: player-live-ball-float 2.2s ease-in-out infinite, player-live-ball-glow 1.8s ease-in-out infinite; }
.player-reference-recent-ball small { font-size: 8px; font-weight: 900; opacity: .75; }
.player-reference-recent-ball strong { font-size: 22px; line-height: 1; }
.player-reference-recent-ball.is-empty { color: #a5afbd; background: linear-gradient(145deg, #fff, #e8edf3); animation: none; }
.player-reference-recent-ball.is-last { box-shadow: 0 0 0 7px rgba(239,76,93,.16), 0 0 30px rgba(239,76,93,.38), 0 12px 24px rgba(38,52,125,.2); }
.player-reference-last-badge { position: absolute; top: 16px; left: 50%; z-index: 8; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; color: #fff; border: 1px solid rgba(255,255,255,.42); border-radius: 99px; background: linear-gradient(135deg, #f04f61, #c52d50); box-shadow: 0 7px 15px rgba(197,45,80,.24); font-size: 9px; font-weight: 1000; letter-spacing: .08em; text-transform: uppercase; transform: translateX(-50%); }
.player-reference-last-badge i { font-size: 8px; }
.player-reference-recent-0 { top: 68px; left: 35%; z-index: 4; width: 112px; height: 112px; border-width: 5px; }
.player-reference-recent-0 strong { font-size: 40px; }
.player-reference-recent-1 { top: 27px; right: 12%; z-index: 3; width: 76px; height: 76px; color: #16437f; background: radial-gradient(circle at 30% 24%, #fff 0 9%, transparent 10%), linear-gradient(145deg, #f0faff, #5da9e8); animation-delay: .16s; }
.player-reference-recent-2 { right: 17%; bottom: 20px; z-index: 2; width: 66px; height: 66px; color: #535353; background: radial-gradient(circle at 30% 24%, #fff 0 9%, transparent 10%), linear-gradient(145deg, #fff, #b9c1c9); animation-delay: .32s; }
.player-reference-recent-3 { bottom: 19px; left: 10%; z-index: 1; width: 58px; height: 58px; color: #982e38; background: radial-gradient(circle at 30% 24%, #fff 0 9%, transparent 10%), linear-gradient(145deg, #fff, #ef6872); animation-delay: .48s; }
.player-reference-recent-3 small { display: none; }
.player-reference-order { position: absolute; right: 12px; bottom: 9px; color: #8895a8; font-size: 9px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; }
.player-reference-order strong { color: #3448bf; font-size: 14px; }
.player-reference-number-panel { margin-top: 11px; padding: 16px 14px 13px; border: 1px solid #e0e7f0; border-radius: 13px; background: #fff; box-shadow: 0 7px 16px rgba(32,48,81,.045); }
.player-reference-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.player-reference-panel-heading h2 { margin: 3px 0 0; color: #24365b; font-size: 20px; }
.player-reference-panel-heading > span { color: #909bad; font-size: 10px; }
.player-reference-panel-heading > span strong { color: #6e64ef; font-size: 17px; }
.player-reference-number-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 6px; padding: 9px; border-radius: 9px; background: #f6f8fb; }
.player-reference-number-group { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; min-width: 0; }
.player-reference-number { display: grid; min-width: 0; min-height: 30px; place-items: center; color: transparent; border: 1px solid #edf1f5; border-radius: 7px; background: #e9eef4; box-shadow: inset 0 1px 2px rgba(42,55,82,.04); font-size: 10px; font-weight: 900; opacity: .72; transition: color .2s, background .2s, transform .2s, box-shadow .2s; }
.player-reference-number.is-called { color: #fff; border-color: transparent; background: linear-gradient(145deg, #51c975, #2b9e63); box-shadow: 0 4px 9px rgba(43,158,99,.2); opacity: 1; transform: translateY(-1px); }
.player-reference-number.is-latest { background: linear-gradient(145deg, #ff747b, #e9364c); box-shadow: 0 0 0 3px rgba(239,76,93,.14), 0 6px 12px rgba(220,52,71,.23); animation: player-number-hit .9s cubic-bezier(.2,.8,.2,1); }
.player-reference-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 11px; color: #909bad; font-size: 10px; }
.player-reference-legend span { display: inline-flex; align-items: center; gap: 5px; }
.player-reference-legend span i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e9eef4; }
.player-reference-legend span i.is-called { background: #3eb86e; }
.player-reference-legend small { margin-left: auto; color: #2eaf7b; font-size: 10px; font-weight: 800; }
.player-reference-legend small i { margin-right: 4px; animation: player-sync-spin 2.2s linear infinite; }
.player-reference-winners { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.player-reference-winners span { padding: 7px 9px; color: #4e5d78; border: 1px solid #e2e9f1; border-radius: 9px; background: #fff; font-size: 10px; }
.player-reference-winners i { margin-right: 4px; color: #e4ab32; }
.player-reference-winners strong { margin-right: 3px; color: #2d3d5c; }
.player-reference-accumulated-status { flex-basis: 100%; color: #2a9d67; font-size: 8px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.player-reference-prize.is-disabled { opacity: .48; filter: grayscale(.35); }
.player-reference-prize.is-disabled .player-reference-accumulated-status { color: #d46868; }
.player-winner-gift { position: fixed; z-index: 160; inset: 0; display: grid; place-items: center; padding: 24px; pointer-events: none; background: rgba(5, 5, 5, .72); backdrop-filter: blur(8px); animation: player-winner-gift-in .45s ease both; }
.player-winner-gift-card { position: relative; width: min(720px, 100%); max-height: min(82vh, 720px); overflow: auto; padding: 34px; color: #f6e4ad; border: 2px solid #e2b750; border-radius: 26px; background: radial-gradient(circle at 50% 0, rgba(238, 198, 96, .22), transparent 42%), linear-gradient(145deg, #21170a, #090909 58%, #1d1307); box-shadow: 0 0 0 6px rgba(224, 176, 72, .12), 0 28px 80px rgba(0, 0, 0, .72), inset 0 0 42px rgba(233, 181, 68, .08); text-align: center; }
.player-winner-gift-card::before, .player-winner-gift-card::after { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ffe18a; box-shadow: 0 0 18px #ffd45e; content: ''; animation: player-winner-sparkle 1.4s ease-in-out infinite; }
.player-winner-gift-card::before { top: 18px; left: 13%; }
.player-winner-gift-card::after { right: 14%; bottom: 22px; animation-delay: .5s; }
.player-winner-gift-kicker { color: #f7c95e; font-size: 11px; font-weight: 1000; letter-spacing: .16em; text-transform: uppercase; }
.player-winner-gift-kicker i { margin-right: 6px; }
.player-winner-gift-card h2 { margin: 10px 0 22px; color: #fff1bd; font-size: clamp(28px, 5vw, 48px); line-height: 1; }
.player-winner-gift-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; }
.player-winner-gift-list article { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid rgba(229, 186, 88, .42); border-radius: 15px; background: rgba(255, 221, 125, .08); }
.player-winner-gift-list article > i { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; color: #171006; border-radius: 50%; background: linear-gradient(145deg, #fff0a1, #d99d2c); box-shadow: 0 0 18px rgba(255, 210, 92, .34); }
.player-winner-gift-list article div { display: grid; min-width: 0; gap: 3px; }
.player-winner-gift-list strong { color: #f7c95e; font-size: 11px; text-transform: uppercase; }
.player-winner-gift-list span { overflow: hidden; color: #fff5d6; font-size: 16px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.player-winner-gift-list small { color: #cdbb97; font-size: 9px; white-space: normal; overflow-wrap: anywhere; }
.player-winner-gift-list .winner-gift-amount { display: block; margin-top: 8px; color: #ffe184; font-size: clamp(28px, 4vw, 48px); font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
body.admin-dark-mode .summary-sales-table-wrap,
body.admin-dark-mode .sales-ticket-details { background: #111827 !important; border-color: #374151 !important; color: #e5e7eb; }
body.admin-dark-mode .summary-sales-table-wrap .module-table th { background: var(--sales-header) !important; color: var(--sales-muted) !important; }
body.admin-dark-mode .sales-ticket-details .module-table td { background: #111827 !important; color: #e5e7eb !important; border-color: #374151 !important; }
body.admin-dark-mode .summary-sales-table-wrap strong,
body.admin-dark-mode .summary-sales-table-wrap summary,
body.admin-dark-mode .sales-ticket-details summary { color: #f1f5f9 !important; }
.summary-sales-table-wrap {
  --sales-surface: #fff; --sales-alt: #f8faff; --sales-hover: #edf4ff; --sales-ink: #183353;
  --sales-muted: #526781; --sales-border: #d7e3f1; --sales-header: #edf3fb; --sales-accent: #235ea6;
  --sales-green: #096443; --sales-green-surface: #e6f5ee; --sales-code-bg: #edf4fc;
  width: 100%; overflow-x: auto; border: 1px solid var(--sales-border); border-radius: 12px; background: var(--sales-surface);
  scrollbar-width: thin; scrollbar-color: #8aa6c8 var(--sales-alt);
}
body.admin-dark-mode .summary-sales-table-wrap {
  --sales-surface: #101c2d; --sales-alt: #15253b; --sales-hover: #1c3453; --sales-ink: #f1f6ff;
  --sales-muted: #b7c8df; --sales-border: #324963; --sales-header: #1b304d; --sales-accent: #a5d5ff;
  --sales-green: #7ee6b7; --sales-green-surface: #153d32; --sales-code-bg: #1d344f;
}
.summary-sales-table-wrap .module-table { min-width: 860px !important; width: 100%; margin: 0; table-layout: fixed; }
body.cashier-reference-mode .summary-sales-table-wrap .module-table th {
  padding: 14px 12px; height: auto; background: var(--sales-header); color: var(--sales-muted);
  font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .025em; text-transform: none;
}
.summary-sales-table-wrap .module-table td {
  height: auto; padding: 16px 12px; background: var(--sales-surface); color: var(--sales-ink);
  font-size: 14px; line-height: 1.45; vertical-align: middle; border-color: var(--sales-border);
  transition: background-color .18s ease-out;
}
.summary-sales-table-wrap .module-table tr:nth-child(even) td { background: var(--sales-alt); }
.summary-sales-table-wrap .module-table tbody tr:hover td,
.summary-sales-table-wrap .module-table tbody tr:focus-within td { background: var(--sales-hover) !important; }
.summary-sales-table-wrap .module-table tbody tr:last-child td { background: var(--sales-header) !important; border-top: 2px solid var(--sales-border); }
.summary-sales-table-wrap .module-table th:first-child { padding-left: 12px; }
.sales-summary-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; font-size: 20px; font-weight: 700; }
.sales-summary-description { margin: 0 0 14px; color: #526781; font-size: 14px; line-height: 1.5; max-width: 72ch; }
body.admin-dark-mode .sales-summary-description { color: #b7c8df; }
.sales-player { display: flex; align-items: flex-start; gap: 10px; }
.sales-player-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; color: #fff; background: #235ea6; }
.sales-player-icon.is-discharge { background: #6942ac; }
.sales-player-name { display: block; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; color: var(--sales-ink); }
.sales-secondary { display: block; margin-top: 5px; color: var(--sales-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.sales-row-number { color: var(--sales-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.sales-count, .sales-amount { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; }
.sales-count { color: var(--sales-accent); }
.sales-amount { color: var(--sales-green); white-space: nowrap; }
.sales-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1.35; }
.sales-status.is-paid { color: var(--sales-green); background: var(--sales-green-surface); }
.sales-status.is-discharge { color: var(--sales-accent); background: var(--sales-code-bg); }
.sales-status.is-winner { color: #6a4508; background: #ffedba; }
.sales-card-codes { display: flex; flex-wrap: wrap; gap: 5px; max-height: 86px; overflow-y: auto; padding: 2px; scrollbar-width: thin; scrollbar-color: #8aa6c8 var(--sales-alt); }
.sales-card-code { padding: 4px 6px; color: var(--sales-accent); background: var(--sales-code-bg); border-radius: 4px; font: 600 12px/1.35 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.sales-numbers-details > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 8px; color: var(--sales-accent); border: 1px solid var(--sales-border); border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
.sales-numbers-details > summary:hover { background: var(--sales-code-bg); }
.sales-numbers-panel { margin-top: 10px; padding: 10px; max-height: 260px; overflow-y: auto; background: var(--sales-alt); border-radius: 6px; }
.sales-numbers-card + .sales-numbers-card { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--sales-border); }
.sales-numbers-title { display: block; margin-bottom: 5px; font-size: 12px; overflow-wrap: anywhere; }
.sales-total-label { font-size: 14px; }
.summary-sales-table-wrap:focus-visible, .sales-card-codes:focus-visible, .sales-numbers-details > summary:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
.summary-sales-table-wrap ::selection { color: #fff; background: #235ea6; }
.sales-movement-alert { display: flex; gap: 14px; margin-bottom: 16px; padding: 16px 18px; border-radius: 10px; font-size: 14px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .summary-sales-table-wrap .module-table td { transition: none; } }
.summary-sales-table-wrap .module-table th,
.summary-sales-table-wrap .module-table td { white-space: normal !important; }
.summary-sales-table-wrap .module-table th:nth-child(1),
.summary-sales-table-wrap .module-table td:nth-child(1) { width: 4%; }
.summary-sales-table-wrap .module-table th:nth-child(2),
.summary-sales-table-wrap .module-table td:nth-child(2) { width: 23%; }
.summary-sales-table-wrap .module-table th:nth-child(3),
.summary-sales-table-wrap .module-table td:nth-child(3) { width: 12%; }
.summary-sales-table-wrap .module-table th:nth-child(4),
.summary-sales-table-wrap .module-table td:nth-child(4) { width: 14%; }
.summary-sales-table-wrap .module-table th:nth-child(5),
.summary-sales-table-wrap .module-table td:nth-child(5) { width: 22%; }
.summary-sales-table-wrap .module-table th:nth-child(6),
.summary-sales-table-wrap .module-table td:nth-child(6) { width: 13%; }
.summary-sales-table-wrap .module-table th:nth-child(7),
.summary-sales-table-wrap .module-table td:nth-child(7) { width: 12%; }
body.admin-dark-mode .sales-ticket-details details > div { background: #172033 !important; border-color: #374151 !important; }
body.admin-dark-mode .sales-ticket-details details > div > div { border-color: #475569 !important; }
.player-winner-gift-card > p { margin: 22px 0 0; color: #cdbb97; font-size: 11px; font-weight: 800; }
.player-prize-announcement { position: fixed; z-index: 160; inset: 0; display: grid; place-items: center; padding: 20px; pointer-events: none; background: rgba(5, 5, 5, .8); backdrop-filter: blur(11px); animation: player-prize-announcement-in .42s cubic-bezier(.2,.85,.25,1) both; }
.player-prize-announcement-card { position: relative; width: min(700px, 100%); max-height: min(88vh, 760px); overflow: auto; padding: clamp(30px, 6vw, 62px) clamp(20px, 6vw, 58px); color: #f6e4ad; border: 2px solid #f0c860; border-radius: 30px; background: radial-gradient(circle at 50% 0, rgba(255, 221, 111, .3), transparent 43%), linear-gradient(145deg, #291b08, #090909 60%, #211506); box-shadow: 0 0 0 7px rgba(224, 176, 72, .14), 0 30px 90px rgba(0, 0, 0, .78), inset 0 0 55px rgba(233, 181, 68, .1); text-align: center; }
.player-prize-announcement-card::before, .player-prize-announcement-card::after { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #ffe18a; box-shadow: 0 0 22px #ffd45e; content: ''; animation: player-winner-sparkle 1.2s ease-in-out infinite; }
.player-prize-announcement-card::before { top: 22px; left: 12%; }
.player-prize-announcement-card::after { right: 12%; bottom: 24px; animation-delay: .45s; }
.player-prize-confetti { color: #ffe28b; font-size: clamp(24px, 5vw, 44px); letter-spacing: .24em; text-shadow: 0 0 20px rgba(255, 211, 93, .7); animation: player-prize-confetti-pulse 1.4s ease-in-out infinite; }
.player-prize-announcement-kicker { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; color: #f7c95e; font-size: 12px; font-weight: 1000; letter-spacing: .18em; text-transform: uppercase; }
.player-prize-announcement-kicker i { font-size: 15px; }
.player-prize-announcement-card h2 { margin: 13px 0 4px; color: #fff1bd; font-size: clamp(42px, 10vw, 92px); line-height: .95; text-transform: uppercase; }
.player-prize-announcement-value { display: block; color: #fff; font-size: clamp(38px, 8vw, 76px); font-weight: 1000; line-height: 1.05; text-shadow: 0 3px 0 #ae7720, 0 0 24px rgba(255, 215, 100, .35); }
.player-prize-announcement-label { margin: 20px 0 8px; color: #d8c18d; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.player-prize-announcement-winners { display: grid; gap: 9px; max-width: 520px; margin: 0 auto; text-align: left; }
.player-prize-announcement-winner { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; column-gap: 11px; padding: 10px 13px; border: 1px solid rgba(229, 186, 88, .5); border-radius: 15px; background: rgba(255, 221, 125, .1); }
.player-prize-announcement-avatar { display: grid; width: 42px; height: 42px; grid-row: span 2; place-items: center; color: #211506; border-radius: 50%; background: linear-gradient(145deg, #fff0a1, #d99d2c); box-shadow: 0 0 18px rgba(255, 210, 92, .34); font-size: 17px; }
.player-prize-announcement-winner strong { overflow: hidden; color: #fff5d6; font-size: clamp(16px, 3vw, 24px); text-overflow: ellipsis; white-space: nowrap; }
.player-prize-announcement-winner small { color: #cdbb97; font-size: 10px; white-space: normal; overflow-wrap: anywhere; }
.official-winner-card-codes { display: inline-block; max-width: min(320px, 65vw); white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.player-prize-announcement-note { display: block; margin-top: 19px; color: #cdbb97; font-size: 11px; font-weight: 800; }
.player-reference-side { display: grid; gap: 11px; }
.player-reference-card { min-width: 0; padding: 15px; border: 1px solid #e0e7f0; border-radius: 13px; background: #fff; box-shadow: 0 7px 16px rgba(32,48,81,.045); }
.player-reference-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.player-reference-card-heading h2 { margin: 3px 0 0; color: #25375a; font-size: 18px; }
.player-reference-card-heading > strong { color: #6e64ef; font-size: 22px; }
.player-reference-ticket-status { padding: 5px 8px; color: #2a9d67; border-radius: 99px; background: #eafaf2; font-size: 9px; font-weight: 900; }
.player-reference-ranking ul { display: grid; max-height: 255px; margin: 0; padding: 0; overflow-y: auto; border-top: 1px solid #edf1f5; list-style: none; }
.player-reference-ranking li { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 42px; border-bottom: 1px solid #edf1f5; }
.player-reference-ranking li:last-child { border-bottom: 0; }
.player-reference-ranking li strong { overflow: hidden; color: #34425f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.player-reference-ranking li small { color: #9aa5b5; font-size: 9px; text-align: right; }
.player-reference-participant-count { display: grid; width: 25px; height: 25px; place-items: center; color: #fff; border-radius: 50%; background: linear-gradient(135deg, #7569ed, #4a9fe9); font-size: 9px; font-weight: 900; }
.player-reference-empty { display: flex !important; min-height: 110px; grid-template-columns: 1fr !important; align-items: center; justify-items: center; text-align: center; }
.player-reference-empty i, .player-reference-empty-card i { color: #7469ef; font-size: 18px; }
.player-reference-empty span, .player-reference-empty-card span { color: #697791; font-size: 11px; font-weight: 700; }
.player-reference-empty small { max-width: 260px; color: #9aa5b5 !important; font-size: 9px !important; }
.player-reference-nearest-cards { margin-top: 4px; border-top: 1px solid #edf1f5; }
.player-reference-participant-directory { margin-top: 10px; border-top: 1px solid #edf1f5; }
.player-reference-directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0 8px; }
.player-reference-directory-heading > div { display: grid; gap: 2px; min-width: 0; }
.player-reference-directory-heading strong { color: #34425f; font-size: 11px; }
.player-reference-directory-heading small { color: #9aa5b5; font-size: 9px; }
.player-reference-directory-heading > span { flex: 0 0 auto; padding: 4px 7px; color: #6e64ef; border-radius: 99px; background: #f0efff; font-size: 9px; font-weight: 900; }
.player-reference-participant-directory > ul { max-height: 300px; }
.player-reference-nearest-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0 8px; }
.player-reference-nearest-heading > div { display: grid; gap: 2px; min-width: 0; }
.player-reference-nearest-heading strong { color: #34425f; font-size: 11px; }
.player-reference-nearest-heading small { color: #9aa5b5; font-size: 9px; line-height: 1.35; }
.player-reference-nearest-heading > span { flex: 0 0 auto; padding: 4px 7px; color: #6e64ef; border-radius: 99px; background: #f0efff; font-size: 9px; font-weight: 900; }
.player-reference-nearest-list { display: grid; max-height: 560px; margin: 0; padding: 0 5px 0 0; overflow-y: auto; list-style: none; }
.player-reference-nearest-item { padding: 10px 0; border-bottom: 1px solid #edf1f5; }
.player-reference-ranking .player-reference-nearest-item { display: block; min-height: 0; grid-template-columns: none; gap: 0; }
.player-reference-nearest-item:last-child { border-bottom: 0; }
.player-reference-nearest-top { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.player-reference-nearest-top > div { display: grid; min-width: 0; gap: 2px; }
.player-reference-nearest-top strong { overflow: hidden; color: #34425f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.player-reference-nearest-top small { overflow: hidden; color: #9aa5b5; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.player-reference-nearest-rank { display: grid; width: 23px; height: 23px; place-items: center; color: #fff; border-radius: 50%; background: linear-gradient(135deg, #7569ed, #4a9fe9); font-size: 9px; font-weight: 900; }
.player-reference-nearest-stage { padding: 4px 6px; color: #fff; border-radius: 99px; background: #6e64ef; font-size: 8px; font-style: normal; font-weight: 900; }
.player-reference-nearest-stage.is-kina { background: #2eaf7b; }
.player-reference-nearest-stage.is-keno { background: #e5a52c; }
.player-reference-nearest-stage.is-a-caminho { color: #5b6474; background: #edf1f6; }
.player-reference-nearest-card { margin: 8px 0 0 32px; padding: 5px; border: 1px solid #e6ecf4; border-radius: 8px; background: #fbfcff; }
.player-reference-nearest-card-head { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin-bottom: 3px; color: #8793a7; font-size: 7px; font-weight: 900; letter-spacing: .08em; text-align: center; }
.player-reference-nearest-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.player-reference-nearest-cell { display: grid; min-width: 0; min-height: 22px; place-items: center; color: #43516b; border: 1px solid #e6ebf3; border-radius: 4px; background: #fff; font-size: 8px; font-weight: 800; }
.player-reference-nearest-cell.is-called { color: #fff; border-color: #35b874; background: linear-gradient(145deg, #53ca7c, #269d60); box-shadow: 0 3px 8px rgba(38, 157, 96, .22); }
.player-reference-nearest-cell.is-free { color: #2b9c70; background: #eafaf2; }
.player-reference-nearest-cell.is-free i { font-size: 6px; }
.player-reference-card-needs { display: grid; gap: 4px; margin: 8px 0 0 32px; }
.player-reference-card-need { display: grid; grid-template-columns: 42px auto minmax(0, 1fr); align-items: baseline; gap: 5px; min-width: 0; }
.player-reference-card-need > span { color: #6e64ef; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.player-reference-card-need strong { color: #34425f; font-size: 8px; white-space: nowrap; }
.player-reference-card-need small { overflow: hidden; color: #8290a4; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.player-reference-card-need small::before { content: '· '; color: #b8c2d0; }
.player-reference-card-need small:only-child::before { content: ''; }
.player-reference-nearest-cards + .player-reference-published-cards { margin-top: 8px; }
.player-reference-published-cards { display: grid; max-height: 330px; margin-top: 11px; padding-top: 10px; overflow-y: auto; border-top: 1px solid #edf1f5; }
.player-reference-published-cards .player-live-participant { padding: 9px; border: 0; border-radius: 9px; background: #f8faff; }
.player-reference-published-cards .player-live-participant + .player-live-participant { border-top: 1px solid #e8edf4; border-radius: 0; }
.player-reference-published-cards .player-live-participant-heading { margin-bottom: 7px; }
.player-reference-published-cards .player-live-participant-cards { grid-template-columns: 1fr; gap: 6px; }
.player-reference-published-cards .player-live-card { padding: 6px; }
.player-reference-published-cards .player-live-card-cell { min-height: 22px; font-size: 8px; }
.player-reference-published-cards .player-live-card-heading strong { font-size: 8px; }
.player-reference-published-cards .player-live-card-heading span { font-size: 7px; }
.player-reference-own-ticket-list { display: grid; max-height: 520px; gap: 10px; overflow-y: auto; }
.player-reference-own-ticket-list .player-reference-empty-card { display: flex; min-height: 145px; align-items: center; justify-content: center; gap: 8px; flex-direction: column; text-align: center; }
.player-reference-own-ticket-list .player-primary-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0 16px; }
.player-own-tickets-float { position: fixed; left: 18px; bottom: 18px; z-index: 140; width: min(365px, calc(100vw - 36px)); pointer-events: none; }
.player-own-tickets-float-trigger { position: relative; display: flex; width: 100%; min-height: 62px; align-items: center; gap: 10px; padding: 8px 14px 8px 9px; color: #fff; border: 3px solid #fff; border-radius: 999px; background: linear-gradient(135deg, #2b3fc4, #6659eb 62%, #8f80ff); box-shadow: 0 8px 0 rgba(28,43,145,.16), 0 13px 30px rgba(45,60,188,.26); cursor: pointer; pointer-events: auto; text-align: left; transition: transform .18s ease, filter .18s ease; }
.player-own-tickets-float-trigger::after { position: absolute; left: 27px; bottom: -9px; width: 15px; height: 15px; content: ""; border-right: 3px solid #fff; border-bottom: 3px solid #fff; background: #514bdd; transform: rotate(45deg); }
.player-own-tickets-float-trigger:hover { filter: brightness(1.05); transform: translateY(-2px); }
.player-own-tickets-float-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; color: #2d3fc1; border: 2px solid #fff; border-radius: 50%; background: #fff; font-size: 18px; }
.player-own-tickets-float-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.player-own-tickets-float-copy strong { color: #fff; font-size: 14px; line-height: 1; }
.player-own-tickets-float-copy small { overflow: hidden; color: rgba(255,255,255,.84); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.player-own-tickets-float-chevron { margin-left: auto; color: #fff; font-size: 13px; transition: transform .2s ease; }
.player-own-tickets-float.is-open .player-own-tickets-float-chevron { transform: rotate(180deg); }
.player-own-tickets-float-panel { max-height: min(690px, calc(100vh - 112px)); margin-bottom: 12px; padding: 10px; overflow: auto; border: 3px solid #fff; border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 10px 0 rgba(28,43,145,.15), 0 18px 42px rgba(17,35,112,.24); pointer-events: auto; }
.player-own-tickets-float-panel[hidden] { display: none; }
.player-own-tickets-float-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 10px; color: #293da9; font-size: 13px; font-weight: 900; }
.player-own-tickets-float-heading button { display: grid; width: 27px; height: 27px; place-items: center; color: #65718a; border: 1px solid #d5ddeb; border-radius: 50%; background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
body.hub-dark-mode .player-own-tickets-float-trigger { border: 1px solid rgba(59, 130, 246, 0.45) !important; background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%) !important; box-shadow: 0 8px 24px rgba(0,0,0,.6), 0 0 16px rgba(37,99,235,.25) !important; color: #ffffff !important; }
body.hub-dark-mode .player-own-tickets-float-trigger::after { border-color: rgba(59, 130, 246, 0.5); background: #2563eb; }
body.hub-dark-mode .player-own-tickets-float-icon { color: #ffffff !important; border: 1px solid rgba(59, 130, 246, 0.5) !important; background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; }
body.hub-dark-mode .player-own-tickets-float-panel { border: 1px solid rgba(59, 130, 246, 0.35) !important; background: #0b1324 !important; box-shadow: 0 12px 36px rgba(0,0,0,.7) !important; }
body.hub-dark-mode .player-own-tickets-float-heading { color: #38bdf8 !important; }
body.hub-dark-mode .player-own-tickets-float-heading button { color: #94a3b8 !important; border-color: #334155 !important; background: #17223b !important; }
body.hub-dark-mode .player-own-tickets-float-heading button:hover { color: #ffffff !important; background: #2563eb !important; }
.player-test-bot-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 13px; color: #5f4a07; border: 1px solid #f0d070; border-radius: 12px; background: linear-gradient(135deg, #fff8d9, #fff0b6); box-shadow: 0 7px 15px rgba(181,142,35,.08); }
.player-test-bot-banner > i { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; color: #fff; border-radius: 9px; background: linear-gradient(135deg, #f0bb3f, #d48b20); }
.player-test-bot-banner div { display: grid; gap: 2px; }
.player-test-bot-banner strong { font-size: 11px; }
.player-test-bot-banner span { color: #866f2d; font-size: 10px; }
.player-test-bot-label { display: inline-flex; align-items: center; gap: 3px; color: #b87916; font-size: 8px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.player-live-participant.is-test-bot { border-color: #f0d070; background: linear-gradient(135deg, #fffdf2, #fff8db); }
.player-live-participant.is-test-bot .player-live-avatar { color: #fff; background: linear-gradient(135deg, #e9b546, #c9841e); }
.player-test-bot-sample { display: block; margin-top: 4px; color: #ae7a1f; font-size: 9px; font-weight: 800; text-align: center; }

body.hub-dark-mode .player-app.is-live-page { color: #f8fafc; background: #060b17; }
body.hub-dark-mode .player-app.is-live-page .player-reference-heading h1,
body.hub-dark-mode .player-app.is-live-page .player-reference-panel-heading h2,
body.hub-dark-mode .player-app.is-live-page .player-reference-card-heading h2 { color: #ffffff; }
body.hub-dark-mode .player-app.is-live-page .player-reference-prize,
body.hub-dark-mode .player-app.is-live-page .player-reference-info-list,
body.hub-dark-mode .player-app.is-live-page .player-reference-ball-wall,
body.hub-dark-mode .player-app.is-live-page .player-reference-number-panel,
body.hub-dark-mode .player-app.is-live-page .player-reference-card,
body.hub-dark-mode .player-app.is-live-page .player-reference-live-meta span { border-color: rgba(59, 130, 246, 0.3); background: #0c1527; box-shadow: 0 7px 0 rgba(0,0,0,.45); }
body.hub-dark-mode .player-app.is-live-page .player-reference-prize.is-selected { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.25), 0 10px 22px rgba(0,0,0,.55); }
body.hub-dark-mode .player-app.is-live-page .player-reference-prize.is-selected .player-reference-prize-title > i { color: #38bdf8; }
body.hub-dark-mode .player-app.is-live-page .player-reference-prize > strong,
body.hub-dark-mode .player-app.is-live-page .player-reference-info-item strong,
body.hub-dark-mode .player-app.is-live-page .player-reference-ranking li strong { color: #38bdf8; }
body.hub-dark-mode .player-app.is-live-page .player-reference-nearest-cards { border-color: #1e293b; }
body.hub-dark-mode .player-app.is-live-page .player-reference-participant-directory { border-color: #1e293b; }
body.hub-dark-mode .player-app.is-live-page .player-reference-nearest-heading strong,
body.hub-dark-mode .player-app.is-live-page .player-reference-nearest-top strong,
body.hub-dark-mode .player-app.is-live-page .player-reference-directory-heading strong,
body.hub-dark-mode .player-app.is-live-page .player-reference-card-need strong { color: #38bdf8; }
body.hub-dark-mode .player-app.is-live-page .player-reference-nearest-item { border-color: #1e293b; }
body.hub-dark-mode .player-app.is-live-page .player-reference-card-need small,
body.hub-dark-mode .player-app.is-live-page .player-reference-nearest-top small,
body.hub-dark-mode .player-app.is-live-page .player-reference-nearest-heading small { color: #94a3b8; }
body.hub-dark-mode .player-app.is-live-page .player-reference-nearest-heading > span { color: #38bdf8; background: #172554; }
body.hub-dark-mode .player-app.is-live-page .player-reference-nearest-stage.is-a-caminho { color: #93c5fd; background: #1e3a8a; }
body.hub-dark-mode .player-app.is-live-page .player-reference-nearest-card { border-color: #1e293b; background: #0d182e; }
body.hub-dark-mode .player-app.is-live-page .player-reference-nearest-card-head { color: #94a3b8; }
body.hub-dark-mode .player-app.is-live-page .player-reference-nearest-cell { color: #f1f5f9; border-color: #1e293b; background: #0f1c36; }
body.hub-dark-mode .player-app.is-live-page .player-reference-nearest-cell.is-called { color: #fff; border-color: #34d399; background: linear-gradient(145deg, #10b981, #059669); }
body.hub-dark-mode .player-app.is-live-page .player-reference-nearest-cell.is-free { color: #38bdf8; border-color: #2563eb; background: #0c2045; }
body.hub-dark-mode .player-app.is-live-page .player-reference-number-grid { background: #080f1e; border: 1px solid #1e293b; }
body.hub-dark-mode .player-app.is-live-page .player-reference-number { border-color: #1e293b; background: #0e172a; color: #f1f5f9; }
body.hub-dark-mode .player-app.is-live-page .player-reference-published-cards .player-live-participant { background: #0c1527; }
body.hub-dark-mode .player-app.is-live-page .player-test-bot-banner { color: #93c5fd; border-color: #1e3a8a; background: linear-gradient(135deg, #0f1c36, #091020); }
body.hub-dark-mode .player-app.is-live-page .player-test-bot-banner span { color: #60a5fa; }
body.hub-dark-mode .player-app.is-live-page .player-live-participant.is-test-bot { border-color: #1e3a8a; background: linear-gradient(135deg, #0f1c36, #091020); }
body.hub-dark-mode .player-app.is-live-page .player-test-bot-sample { color: #38bdf8; }

/* The public player shares the hub theme switch, including when there is no live round. */
body.hub-dark-mode .player-app { color: #f8fafc; background: #060b17; }
body.hub-dark-mode .player-app .player-topbar { color: #cbd5e1; border-color: #1e293b; background: rgba(10, 16, 32, .96); box-shadow: 0 5px 20px rgba(0,0,0,.5); }
body.hub-dark-mode .player-voice-button.is-enabled { color: #34d399; border-color: #10b981; background: #064e3b; }
body.hub-dark-mode .player-voice-button.is-enabled:hover { color: #a7f3d0; border-color: #34d399; }
body.hub-dark-mode .player-reference-last-badge { border-color: #f87171; background: linear-gradient(135deg, #dc2626, #991b1b); }
body.hub-dark-mode .player-app .player-brand,
body.hub-dark-mode .player-app .player-brand:hover { color: #ffffff; }
body.hub-dark-mode .player-app .player-brand-mark { color: #ffffff; background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 8px 18px rgba(37,99,235,.3); }
body.hub-dark-mode .player-app .player-brand small { color: #94a3b8; }
body.hub-dark-mode .player-app .player-connection { color: #94a3b8; }
body.hub-dark-mode .player-app .player-icon-button { color: #38bdf8; border-color: #1e293b; background: #0e172a; }
body.hub-dark-mode .player-app .player-icon-button:hover { color: #ffffff; border-color: #38bdf8; background: #1e293b; }
body.hub-dark-mode .player-app:not(.is-live-page) .player-panel,
body.hub-dark-mode .player-app:not(.is-live-page) .player-toolbar,
body.hub-dark-mode .player-app:not(.is-live-page) .player-draw-row,
body.hub-dark-mode .player-app:not(.is-live-page) .player-help-panel { color: #f8fafc; border-color: rgba(59, 130, 246, 0.3); background: #0c1527; box-shadow: 0 7px 0 rgba(0,0,0,.6), 0 0 24px rgba(37,99,235,.08); }
body.hub-dark-mode .player-app:not(.is-live-page) .player-panel-heading h2,
body.hub-dark-mode .player-app:not(.is-live-page) .player-next-row h2,
body.hub-dark-mode .player-app:not(.is-live-page) .player-help-panel strong { color: #ffffff; }
body.hub-dark-mode .player-app:not(.is-live-page) .player-panel p,
body.hub-dark-mode .player-app:not(.is-live-page) .player-help-panel p,
body.hub-dark-mode .player-app:not(.is-live-page) .player-draw-row small { color: #94a3b8; }
body.hub-dark-mode .player-app .player-draw-prizes .hub-draw-prize-chip small { color: #a6b8d0; }
body.hub-dark-mode .player-app .player-draw-prizes .hub-draw-prize-chip strong { color: #34d399; }
body.hub-dark-mode .player-app .player-footer { color: #64748b; border-color: #1e293b; }
body.hub-dark-mode .player-app .player-footer i { color: #38bdf8; }
body.hub-dark-mode .player-app .player-footer a { color: #38bdf8; }

@media (max-width: 980px) {
  .player-reference-layout { grid-template-columns: 1fr; }
  .player-reference-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 720px) {
  .player-app.is-live-page .player-content { padding: 14px 12px 18px; }
  .player-own-tickets-float { left: 12px; bottom: 12px; width: min(345px, calc(100vw - 24px)); }
  .player-own-tickets-float-panel { max-height: calc(100vh - 104px); }
  .player-reference-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .player-reference-live-meta { width: 100%; }
  .player-reference-live-meta span { flex: 1; min-width: 0; }
  .player-reference-prizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-reference-info-balls { grid-template-columns: 1fr; }
  .player-reference-info-list { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr; }
  .player-reference-info-item { min-height: 64px; border-right: 1px solid #edf1f6; border-bottom: 0; }
  .player-reference-info-item:last-child { border-right: 0; }
  .player-reference-ball-wall { min-height: 250px; }
  .player-reference-last-badge { top: 12px; padding: 5px 8px; font-size: 8px; }
  .player-reference-recent-0 { top: 67px; width: 132px; height: 132px; }
  .player-reference-recent-0 strong { font-size: 46px; }
  .player-reference-recent-1 { top: 32px; right: 10%; width: 86px; height: 86px; }
  .player-reference-recent-1 strong { font-size: 27px; }
  .player-reference-recent-2 { right: 14%; bottom: 25px; width: 76px; height: 76px; }
  .player-reference-recent-3 { bottom: 24px; left: 9%; width: 68px; height: 68px; }
  .player-reference-side { grid-template-columns: 1fr; }
  .player-reference-number-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .player-reference-heading h1 { font-size: 24px; }
  .player-reference-heading p { font-size: 11px; }
  .player-reference-prize { min-height: 62px; padding: 8px; }
  .player-reference-prize-title { gap: 4px; font-size: 9px; }
  .player-reference-prize > strong { font-size: 13px; }
  .player-reference-info-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-reference-info-item:nth-child(2) { border-right: 0; }
  .player-reference-info-item:nth-child(3), .player-reference-info-item:nth-child(4) { border-top: 1px solid #edf1f6; }
  .player-reference-number-group { gap: 2px; }
  .player-reference-number { min-height: 25px; border-radius: 5px; font-size: 8px; }
  .player-reference-panel-heading h2 { font-size: 18px; }
  .player-reference-legend small { width: 100%; margin-left: 0; }
}

@media (min-width: 851px) {
  .player-reference-layout { grid-template-columns: minmax(0, 1.58fr) minmax(360px, .92fr); gap: 20px; }
  .player-reference-prizes { gap: 11px; }
  .player-reference-prize { min-height: 86px; padding: 13px 15px; }
  .player-reference-prize-title { gap: 8px; font-size: 13px; }
  .player-reference-prize > strong { font-size: 20px; }
  .player-reference-accumulated-mark { min-width: 30px; height: 30px; flex-basis: 30px; font-size: 10px; }
  .player-reference-info-balls { grid-template-columns: 164px minmax(0, 1fr); gap: 12px; margin-top: 14px; }
  .player-reference-info-list { grid-template-rows: repeat(4, minmax(57px, 1fr)); }
  .player-reference-info-item { padding: 9px 12px; }
  .player-reference-info-item span { font-size: 10px; }
  .player-reference-info-item strong { font-size: 17px; }
  .player-reference-ball-wall { min-height: 328px; }
  .player-reference-recent-0 { top: 93px; left: 31%; width: 168px; height: 168px; }
  .player-reference-recent-0 strong { font-size: 60px; }
  .player-reference-recent-1 { top: 27px; right: 10%; width: 112px; height: 112px; }
  .player-reference-recent-1 strong { font-size: 32px; }
  .player-reference-recent-2 { right: 14%; bottom: 28px; width: 94px; height: 94px; }
  .player-reference-recent-2 strong { font-size: 21px; }
  .player-reference-recent-3 { bottom: 26px; left: 8%; width: 82px; height: 82px; }
  .player-reference-recent-3 strong { font-size: 18px; }
  .player-reference-recent-3 strong { font-size: 16px; }
  .player-reference-number-panel { margin-top: 14px; padding: 20px 18px 16px; }
  .player-reference-panel-heading h2 { font-size: 24px; }
  .player-reference-number-grid { gap: 10px 8px; padding: 11px; }
  .player-reference-number-group { gap: 5px; }
  .player-reference-number { min-height: 38px; border-radius: 8px; font-size: 12px; }
  .player-reference-nearest-cell { min-height: 30px; font-size: 10px; }
  .player-reference-card-need { grid-template-columns: 52px auto minmax(0, 1fr); }
  .player-reference-card-need > span,
  .player-reference-card-need strong,
  .player-reference-card-need small { font-size: 9px; }
}

@media (max-width: 600px) {
  .player-winner-gift { padding: 12px; }
  .player-winner-gift-card { padding: 25px 16px; }
  .player-winner-gift-list { grid-template-columns: 1fr; }
  .player-prize-announcement { padding: 12px; }
  .player-prize-announcement-card { padding: 30px 16px; border-radius: 24px; }
  .player-prize-announcement-card h2 { font-size: clamp(38px, 16vw, 68px); }
  .player-prize-announcement-value { font-size: clamp(36px, 14vw, 62px); }
  .player-prize-announcement-winner { padding: 9px 10px; }
}

@keyframes player-winner-gift-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes player-winner-sparkle { 0%, 100% { transform: scale(.65); opacity: .35; } 50% { transform: scale(1.35); opacity: 1; } }
@keyframes player-prize-announcement-in { from { opacity: 0; transform: scale(.78) translateY(24px); } 60% { opacity: 1; transform: scale(1.025) translateY(-2px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes player-prize-confetti-pulse { 0%, 100% { opacity: .65; transform: translateY(0) scale(.94); } 50% { opacity: 1; transform: translateY(-4px) scale(1.05); } }
@keyframes player-voice-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(21,155,104,.18); } 50% { box-shadow: 0 0 0 6px rgba(21,155,104,0); } }

/* Daily schedule exposed from the Admin draw calendar */
.hub-daily-draws { margin-top: 22px; padding: 21px 22px 9px; border: 4px solid rgba(255,255,255,.92); border-radius: 14px; background: rgba(255,255,255,.93); box-shadow: 0 7px 0 rgba(4,26,122,.12); }
.hub-daily-draws-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.hub-daily-draws-heading h2 { margin: 5px 0 3px; color: #1d2e82; font-size: clamp(20px, 2.2vw, 29px); line-height: 1.05; }
.hub-daily-draws-heading p { margin: 0; color: #7d899d; font-size: 12px; }
.hub-daily-draws-heading > a { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 34px; padding: 7px 11px; color: #3949b9; border: 1px solid #bfc8f1; border-radius: 6px; background: #f5f6ff; font-size: 11px; font-weight: 800; }
.hub-daily-draws-heading > a:hover { color: #fff; background: #3949b9; }
.hub-daily-draw-list { margin: 0; padding: 0; list-style: none; }
.hub-daily-draw-row { display: grid; grid-template-columns: minmax(100px, .65fr) minmax(180px, 1.7fr) minmax(110px, .8fr) auto; align-items: center; gap: 16px; min-height: 72px; padding: 11px 0; color: #243453; }
.hub-daily-draw-row + .hub-daily-draw-row { border-top: 1px solid #e7ebf3; }
.hub-daily-draw-time, .hub-daily-draw-details, .hub-daily-draw-prize { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hub-daily-draw-time strong { color: #263cb7; font-size: 22px; line-height: 1; }
.hub-daily-draw-date { color: #7d899d; font-size: 10px; font-weight: 800; line-height: 1; }
.hub-daily-draw-time span, .hub-daily-draw-details span, .hub-daily-draw-prize small { overflow: hidden; color: #8792a5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hub-daily-draw-details strong { overflow: hidden; color: #263453; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.hub-daily-draw-prize { text-align: right; }
.hub-daily-draw-prize strong { color: #0b9d66; font-size: 16px; }
.hub-daily-draw-prizes { min-width: 0; }
.hub-draw-prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; min-width: 0; }
.hub-draw-prize-chip { display: grid; align-content: start; gap: 3px; min-width: 0; text-align: center; }
.hub-draw-prize-chip small { overflow: hidden; color: #75849a; font-size: 9px; font-weight: 700; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.hub-draw-prize-chip strong { color: #15936b; font-size: 11px; line-height: 1.15; white-space: nowrap; }
.hub-draw-prize-chip.is-bingo { min-height: 34px; align-content: center; gap: 3px; padding: 4px 3px; border: 1px solid #087f5b; border-radius: 6px; background: #087f5b; }
.hub-draw-prize-chip.is-bingo small { color: #e8fff5; font-size: 9px; font-weight: 900; }
.hub-draw-prize-chip.is-bingo strong { color: #ffffff; font-size: 14px; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
body.hub-mode .hub-history-card .hub-draw-prize-chip.is-bingo strong,
body.hub-mode:not(.hub-dark-mode) .hub-history-card .hub-draw-prize-chip.is-bingo strong { color: #fff !important; }
body.hub-mode .hub-history-card .hub-draw-prize-chip.is-bingo small { color: #e8fff5 !important; }
.player-draw-prizes .hub-draw-prize-chip.is-bingo { min-height: 30px; }
.player-draw-prizes .hub-draw-prize-chip.is-bingo small { color: #e8fff5; font-size: 8px; }
.player-draw-prizes .hub-draw-prize-chip.is-bingo strong { color: #ffffff; font-size: 10px; }
.hub-open-tv-link { color: #1474c8 !important; border-color: #acd2f2 !important; background: #edf7ff !important; }
.hub-open-tv-link:hover { color: #fff !important; background: #176cbb !important; }
.hub-daily-draw-action { display: flex; justify-content: flex-end; min-width: 108px; }
.hub-daily-draw-buy, .hub-daily-draw-open { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 108px; min-height: 35px; padding: 6px 12px; color: #fff; border: 1px solid #5d55df; border-radius: 6px; background: linear-gradient(135deg, #6f63ed, #8b80ff); cursor: pointer; font-size: 11px; font-weight: 800; text-decoration: none; }
.hub-daily-draw-buy:hover, .hub-daily-draw-open:hover { color: #fff; filter: brightness(.95); transform: translateY(-1px); }
.hub-daily-draw-row.is-live { margin: 0 -10px; padding-right: 10px; padding-left: 10px; border: 1px solid #bcead7; border-radius: 9px; background: #effcf6; }
.hub-daily-draw-row.is-live + .hub-daily-draw-row { border-top: 0; }
.hub-daily-draw-row.is-live .hub-daily-draw-time strong { color: #0a9b61; }
.hub-daily-draw-row.is-stale { margin: 0 -10px; padding-right: 10px; padding-left: 10px; border: 1px solid #e7c979; border-radius: 9px; background: #fff9e9; }
.hub-daily-draw-row.is-stale .hub-daily-draw-time strong,
.hub-daily-draw-row.is-stale .hub-daily-draw-details strong,
.hub-daily-draw-row.is-stale .hub-daily-draw-prize strong,
.hub-daily-draw-row.is-stale .hub-daily-draw-prizes strong { color: #80530a; }
.hub-daily-draw-row.is-stale .hub-draw-prize-chip.is-bingo small,
.hub-daily-draw-row.is-stale .hub-draw-prize-chip.is-bingo strong { color: #ffffff; }
.hub-daily-draw-buy.is-paused,
.hub-daily-draw-buy.is-paused:hover { color: #465267; border-color: #cbd3df; background: #e8edf4; cursor: not-allowed; filter: none; transform: none; }
.hub-daily-draw-row.is-closed { opacity: .62; }
.hub-daily-draw-closed { color: #8d96a6; font-size: 11px; font-weight: 800; }
.hub-daily-draw-empty { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 80px; color: #8d98aa; font-size: 12px; }
.hub-daily-draw-empty i { color: #7887dc; font-size: 18px; }
.hub-daily-draw-warning { justify-content: flex-start; min-height: 0; margin: 0 0 8px; padding: 10px 12px; color: #704b09; border: 1px solid #ead08d; border-radius: 8px; background: #fff9e9; line-height: 1.5; }
.hub-daily-draw-warning i { flex: 0 0 auto; color: #986710; }
.hub-upcoming-draw:disabled { cursor: not-allowed; opacity: .65; }
body.hub-dark-mode .hub-daily-draws { border: 1px solid rgba(59, 130, 246, 0.35); background: linear-gradient(145deg, #0d172e, #091020); box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 20px rgba(37,99,235,.12); }
body.hub-dark-mode .hub-daily-draws-heading h2 { color: #ffffff; }
body.hub-dark-mode .hub-daily-draws-heading p, body.hub-dark-mode .hub-daily-draw-date, body.hub-dark-mode .hub-daily-draw-time span, body.hub-dark-mode .hub-daily-draw-details span, body.hub-dark-mode .hub-daily-draw-prize small { color: #94a3b8; }
body.hub-dark-mode .hub-daily-draws-heading > a { color: #38bdf8; border: 1px solid rgba(59, 130, 246, 0.4); background: #0f1c36; }
body.hub-dark-mode .hub-daily-draws-heading > a:hover { color: #ffffff; background: #1d4ed8; border-color: #3b82f6; }
body.hub-dark-mode .hub-daily-draw-row + .hub-daily-draw-row { border-color: #1e293b; }
body.hub-dark-mode .hub-daily-draw-time strong { color: #38bdf8; }
body.hub-dark-mode .hub-daily-draw-details strong { color: #f1f5f9; }
body.hub-dark-mode .hub-daily-draw-prize strong { color: #34d399; }
body.hub-dark-mode .hub-draw-prize-chip small { color: #a6b8d0; }
body.hub-dark-mode .hub-draw-prize-chip strong { color: #34d399; }
body.hub-dark-mode .hub-draw-prize-chip.is-bingo small { color: #e8fff5; }
body.hub-dark-mode .hub-draw-prize-chip.is-bingo strong { color: #fff; }
body.hub-dark-mode .hub-open-tv-link { color: #8acbff !important; border-color: #315d88 !important; background: #102c4a !important; }
body.hub-dark-mode .hub-open-tv-link:hover { color: #fff !important; background: #1d4ed8 !important; }
body.hub-dark-mode .hub-daily-draw-row.is-live { border-color: rgba(16, 185, 129, 0.4); background: rgba(6, 78, 59, 0.25); }
body.hub-dark-mode .hub-daily-draw-row.is-live .hub-daily-draw-time strong { color: #34d399; }
body.hub-dark-mode .hub-daily-draw-row.is-stale { border-color: rgba(234, 179, 8, .42); background: rgba(120, 81, 9, .18); }
body.hub-dark-mode .hub-daily-draw-row.is-stale .hub-daily-draw-time strong,
body.hub-dark-mode .hub-daily-draw-row.is-stale .hub-daily-draw-details strong,
body.hub-dark-mode .hub-daily-draw-row.is-stale .hub-daily-draw-prize strong,
body.hub-dark-mode .hub-daily-draw-row.is-stale .hub-daily-draw-prizes strong { color: #facc15; }
body.hub-dark-mode .hub-daily-draw-row.is-stale .hub-draw-prize-chip.is-bingo small,
body.hub-dark-mode .hub-daily-draw-row.is-stale .hub-draw-prize-chip.is-bingo strong { color: #ffffff; }
body.hub-dark-mode .player-app .player-draw-prizes .hub-draw-prize-chip.is-bingo { background: #087f5b; }
body.hub-dark-mode .player-app .player-draw-prizes .hub-draw-prize-chip.is-bingo small { color: #e8fff5; }
body.hub-dark-mode .player-app .player-draw-prizes .hub-draw-prize-chip.is-bingo strong { color: #ffffff; }
body.hub-dark-mode .hub-daily-draw-buy.is-paused,
body.hub-dark-mode .hub-daily-draw-buy.is-paused:hover { color: #cbd5e1; border-color: #475569; background: #26354b; }
body.hub-dark-mode .hub-daily-draw-warning { color: #fde68a; border-color: rgba(234, 179, 8, .4); background: rgba(120, 81, 9, .18); }
body.hub-dark-mode .hub-daily-draw-warning i { color: #facc15; }
body.hub-dark-mode .hub-daily-draw-closed { color: #64748b; }

@media (max-width: 760px) {
  .hub-daily-draws { padding: 16px 13px 6px; }
  .hub-daily-draws-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hub-daily-draws-heading > a { align-self: stretch; justify-content: center; }
  .hub-daily-draw-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 13px 0; }
  .hub-daily-draw-prize { align-items: flex-end; }
  .hub-daily-draw-prizes { grid-column: 1 / -1; grid-row: 2; }
  .hub-daily-draw-action { grid-column: 1 / -1; grid-row: 3; justify-content: stretch; }
  .hub-daily-draw-buy, .hub-daily-draw-open { width: 100%; }
}

/* Keep the public Hub focused, while the full Admin schedule lives on its own page. */
.hub-schedule-link { display: flex; align-items: center; gap: 11px; margin-top: 14px; padding: 12px 14px; color: #3046b7; border: 2px solid #c6cff4; border-radius: 10px; background: rgba(255,255,255,.82); box-shadow: 0 5px 0 rgba(4,26,122,.08); font-size: 12px; text-decoration: none; }
.hub-schedule-link > i:first-child { color: #7064ed; font-size: 17px; }
.hub-schedule-link > span { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.hub-schedule-link strong { font-size: 13px; }
.hub-schedule-link small { color: #7e8aa2; font-size: 10px; }
.hub-schedule-link > i:last-child { color: #7064ed; }
.hub-schedule-link:hover { color: #fff; border-color: #7064ed; background: linear-gradient(135deg, #6f63ed, #8b80ff); transform: translateY(-1px); }
.hub-schedule-link:hover > i:first-child, .hub-schedule-link:hover > i:last-child, .hub-schedule-link:hover small { color: #fff; }
.hub-draws-page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1390px; margin: 0 auto 18px; padding: 20px 22px; border: 4px solid rgba(255,255,255,.92); border-radius: 14px; background: rgba(255,255,255,.93); box-shadow: 0 7px 0 rgba(4,26,122,.12); }
.hub-draws-page-header h1 { margin: 5px 0 4px; color: #1d2e82; font-size: clamp(24px, 3vw, 36px); line-height: 1; }
.hub-draws-page-header p { margin: 0; color: #7d899d; font-size: 12px; }
.hub-draws-page-header > a { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 38px; padding: 8px 13px; color: #3949b9; border: 1px solid #bfc8f1; border-radius: 7px; background: #f5f6ff; font-size: 11px; font-weight: 800; text-decoration: none; }
.hub-draws-page-header > a:hover { color: #fff; background: #3949b9; }
body.hub-dark-mode .hub-schedule-link { color: #38bdf8; border: 1px solid rgba(59, 130, 246, 0.35); background: #0d172e; box-shadow: 0 5px 0 rgba(0,0,0,.4); }
body.hub-dark-mode .hub-schedule-link > i:first-child, body.hub-dark-mode .hub-schedule-link > i:last-child { color: #38bdf8; }
body.hub-dark-mode .hub-schedule-link small { color: #94a3b8; }
body.hub-dark-mode .hub-schedule-link:hover { color: #ffffff; background: linear-gradient(135deg, #1d4ed8, #2563eb); border-color: #3b82f6; }
body.hub-dark-mode .hub-schedule-link:hover > i:first-child, body.hub-dark-mode .hub-schedule-link:hover > i:last-child, body.hub-dark-mode .hub-schedule-link:hover small { color: #ffffff; }
body.hub-dark-mode .hub-draws-page-header { border: 1px solid rgba(59, 130, 246, 0.35); background: linear-gradient(145deg, #0d172e, #091020); box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 20px rgba(37,99,235,.12); }
body.hub-dark-mode .hub-draws-page-header h1 { color: #ffffff; }
body.hub-dark-mode .hub-draws-page-header p { color: #94a3b8; }
body.hub-dark-mode .hub-draws-page-header > a { color: #38bdf8; border: 1px solid rgba(59, 130, 246, 0.4); background: #0f1c36; }
body.hub-dark-mode .hub-draws-page-header > a:hover { color: #ffffff; background: #1d4ed8; border-color: #3b82f6; }

@media (max-width: 720px) {
  /* Flatten both Hub columns so the mobile reading order can follow the task flow. */
  .hub-layout { display: flex; flex-direction: column; gap: 12px; }
  .hub-main-column, .hub-side-column { display: contents; }
  .hub-wallet-card { order: -10; }
  .hub-donation-card { order: -9; }
  .hub-countdown-card { order: -8; }
  .hub-live-round { order: -7; }
  .hub-info-card { order: -6; }
  .hub-prizes { order: -5; }
  .hub-schedule-link { order: -4; }
  .hub-promo { order: -3; }
  .hub-bottom-grid { order: 0; }
  .hub-history-card { order: 1; }
  .hub-schedule-link { margin-top: 0; }
  .hub-draws-page-header { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 12px; padding: 16px 13px; }
  .hub-draws-page-header > a { width: 100%; justify-content: center; }
}

/* Quick wallet bubble: keeps the purchase/deposit actions available without stealing Hub space. */
.hub-wallet-float { position: fixed; left: 16px; bottom: 16px; z-index: 120; width: min(350px, calc(100vw - 32px)); pointer-events: none; }
.hub-wallet-float-trigger { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 8px 13px 8px 9px; color: #fff; border: 0; border-radius: 999px; background: linear-gradient(135deg, #293fc1, #6659eb 62%, #8f80ff); box-shadow: 0 8px 0 rgba(4,26,122,.18), 0 12px 28px rgba(41,63,193,.25); cursor: pointer; pointer-events: auto; text-align: left; }
.hub-wallet-float-trigger::after { display: none; }
.hub-wallet-float-trigger:hover { filter: brightness(1.05); transform: translateY(-2px); }
.hub-wallet-float-icon { display: grid; place-items: center; flex: 0 0 auto; width: 39px; height: 39px; color: #293fc1; border: 2px solid #fff; border-radius: 50%; background: #fff; font-size: 17px; }
.hub-wallet-float-copy { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.hub-wallet-float-copy strong { color: #fff; font-size: 14px; line-height: 1; }
.hub-wallet-float-copy small { overflow: hidden; color: rgba(255,255,255,.82); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.hub-wallet-float-chevron { margin-left: auto; color: #fff; font-size: 12px; transition: transform .2s ease; }
.hub-wallet-float.is-open .hub-wallet-float-chevron { transform: rotate(180deg); }
.hub-wallet-float-panel { max-height: min(720px, calc(100vh - 100px)); margin-bottom: 12px; padding: 9px; overflow: auto; border: 3px solid #fff; border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 10px 0 rgba(4,26,122,.16), 0 18px 40px rgba(10,32,105,.22); pointer-events: auto; }
.hub-wallet-float-panel[hidden] { display: none; }
.hub-wallet-float-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 8px; color: #263aa7; font-size: 12px; font-weight: 900; }
.hub-wallet-float-heading button { display: grid; place-items: center; width: 25px; height: 25px; color: #65718a; border: 1px solid #d5ddeb; border-radius: 50%; background: #fff; cursor: pointer; font-size: 17px; line-height: 1; }
.hub-wallet-float-quick-actions { display: grid; grid-template-columns: 1fr; gap: 7px; margin: 0 4px 5px; }
.hub-wallet-float-buy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 37px; color: #fff; border: 1px solid #293fc1; border-radius: 7px; background: #293fc1; cursor: pointer; font-size: 11px; font-weight: 800; text-decoration: none; }
.hub-wallet-float-buy:hover { color: #fff; filter: brightness(.96); transform: translateY(-1px); }
.hub-wallet-float-panel > .hub-wallet-card { padding: 12px 8px 5px; border: 0; border-radius: 10px; background: transparent; box-shadow: none; }
.hub-wallet-float-panel > .hub-wallet-card-locked { min-height: 0; }
body.hub-dark-mode .hub-wallet-float-trigger { border: 1px solid rgba(59, 130, 246, 0.45) !important; background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%) !important; box-shadow: 0 8px 24px rgba(0,0,0,.6), 0 0 16px rgba(37,99,235,.25) !important; color: #ffffff !important; }
body.hub-dark-mode .hub-wallet-float-icon { color: #ffffff !important; border: 1px solid rgba(59, 130, 246, 0.5) !important; background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; }
body.hub-dark-mode .hub-wallet-float-panel { border: 1px solid rgba(59, 130, 246, 0.35) !important; background: #0b1324 !important; box-shadow: 0 12px 36px rgba(0,0,0,.7) !important; }
body.hub-dark-mode .hub-wallet-float-heading { color: #38bdf8 !important; }
body.hub-dark-mode .hub-wallet-float-heading button { color: #94a3b8 !important; border-color: #334155 !important; background: #17223b !important; }
body.hub-dark-mode .hub-wallet-float-heading button:hover { color: #ffffff !important; background: #2563eb !important; }
body.hub-dark-mode .hub-wallet-float-buy { color: #ffffff !important; border: 1px solid #2563eb !important; background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; }
body.hub-dark-mode .hub-wallet-float-buy:hover { color: #ffffff !important; background: linear-gradient(135deg, #3b82f6, #2563eb) !important; }

@media (max-width: 720px) {
  .hub-layout { width: 100%; align-items: stretch; }
  .hub-main-column, .hub-side-column { width: 100%; max-width: none; }
  .hub-main-column > *, .hub-side-column > * { width: 100%; max-width: none; box-sizing: border-box; }
  .hub-wallet-float { left: 10px; bottom: 10px; width: min(320px, calc(100vw - 20px)); }
  .hub-wallet-float-panel { max-height: calc(100vh - 92px); }
}

/* Make the target draw and purchase action explicit at a glance. */
.hub-donation-draw { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; margin-bottom: 8px; padding: 9px 10px; border: 1px solid #d9e0f0; border-radius: 9px; background: linear-gradient(135deg, #f6f8ff, #eef2ff); }
.hub-donation-draw span { grid-column: 1 / -1; color: #6978a0; font-size: 10px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }
.hub-donation-draw span i { margin-right: 4px; color: #293fc1; }
.hub-donation-draw strong { color: #253b9f; font-size: 13px; }
.hub-donation-draw small { align-self: center; color: #4a5a82; font-size: 11px; font-weight: 800; white-space: nowrap; }
.hub-donation-draw-trigger { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hub-donation-draw-trigger:hover { border-color: #9eacf0; box-shadow: 0 3px 8px rgba(41,63,193,.12); }
.hub-donation-draw-trigger > span { display: flex; align-items: center; gap: 4px; }
.hub-donation-draw-trigger > span small { margin-left: auto; color: #6978a0; font-size: 9px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.hub-next-draw-chevron { grid-column: 2; grid-row: 2; align-self: center; color: #3046b7; font-size: 11px; }
.hub-upcoming-draws { display: grid; gap: 6px; margin: -2px 0 10px; padding: 9px; border: 1px solid #d9e0f0; border-radius: 9px; background: #fff; }
.hub-upcoming-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 2px 3px; }
.hub-upcoming-heading strong { color: #253b9f; font-size: 11px; }
.hub-upcoming-heading small { color: #7b88a5; font-size: 9px; }
.hub-upcoming-draw { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; width: 100%; padding: 7px 8px; color: #263a91; border: 1px solid #e2e7f5; border-radius: 7px; background: #f7f9ff; font: inherit; text-align: left; cursor: pointer; }
.hub-upcoming-draw:hover { border-color: #a7b2ed; background: #eef2ff; }
.hub-upcoming-draw span { display: grid; gap: 2px; }
.hub-upcoming-draw .hub-upcoming-prizes { margin-top: 4px; }
.hub-upcoming-prizes .hub-draw-prize-chip { gap: 1px; }
.hub-upcoming-prizes .hub-draw-prize-chip small { font-size: 8px; }
.hub-upcoming-prizes .hub-draw-prize-chip strong { font-size: 9px; }
.hub-upcoming-prizes .hub-draw-prize-chip.is-bingo { min-height: 27px; padding: 3px 2px; }
.hub-upcoming-prizes .hub-draw-prize-chip.is-bingo small { font-size: 8px; }
.hub-upcoming-prizes .hub-draw-prize-chip.is-bingo strong { font-size: 10px; }
.hub-upcoming-draw span strong { font-size: 11px; }
.hub-upcoming-draw span small { color: #6d7c9e; font-size: 9px; }
.hub-upcoming-draw b { color: #159447; font-size: 10px; white-space: nowrap; }
.hub-upcoming-draw > i { color: #5265ca; font-size: 10px; }
.hub-upcoming-empty { margin: 0; color: #6d7c9e; font-size: 10px; }
.hub-bottom-card[href] { color: inherit; text-decoration: none; }
.hub-ticket-button { min-height: 54px; padding: 7px 13px; border: 1px solid #5048d5; border-radius: 10px; background: linear-gradient(135deg, #3d42ca 0%, #6b5bea 55%, #8e7cff 100%); box-shadow: 0 6px 0 rgba(39,48,166,.2), 0 8px 18px rgba(63,70,199,.18); text-align: left; }
.hub-ticket-button > i:first-child { flex: 0 0 auto; width: 23px; color: #f7dd75; font-size: 16px; text-align: center; }
.hub-ticket-button > span { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.hub-ticket-button strong { color: #fff; font-size: 12px; font-weight: 900; line-height: 1.1; }
.hub-ticket-button small { overflow: hidden; color: rgba(255,255,255,.78); font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.hub-ticket-button > i:last-child { margin-left: auto; color: #fff; font-size: 12px; }
.hub-ticket-button:hover { border-color: #7b70ff; box-shadow: 0 7px 0 rgba(39,48,166,.2), 0 10px 22px rgba(63,70,199,.24); filter: brightness(1.05); transform: translateY(-2px); }
.hub-ticket-button:disabled { box-shadow: 0 5px 0 rgba(39,48,166,.12); }
.hub-donation-locked-next { display: block; max-width: 100%; color: #536596; font-size: 10px; font-weight: 800; line-height: 1.35; text-align: center; }
.hub-donation-locked-next i { margin-right: 4px; color: #293fc1; }
body.hub-dark-mode .hub-donation-draw { border: 1px solid rgba(59, 130, 246, 0.35); background: linear-gradient(135deg, #0d172e, #091020); }
body.hub-dark-mode .hub-donation-draw span { color: #94a3b8; }
body.hub-dark-mode .hub-donation-draw span i { color: #38bdf8; }
body.hub-dark-mode .hub-donation-draw strong { color: #38bdf8; }
body.hub-dark-mode .hub-donation-draw small { color: #64748b; }
body.hub-dark-mode .hub-donation-draw-trigger > span small { color: #94a3b8; }
body.hub-dark-mode .hub-next-draw-chevron { color: #38bdf8; }
body.hub-dark-mode .hub-upcoming-draws { border: 1px solid #1e293b; background: #0c1527; }
body.hub-dark-mode .hub-upcoming-heading strong { color: #ffffff; }
body.hub-dark-mode .hub-upcoming-heading small, body.hub-dark-mode .hub-upcoming-draw span small, body.hub-dark-mode .hub-upcoming-empty { color: #94a3b8; }
body.hub-dark-mode .hub-upcoming-draw { color: #38bdf8; border: 1px solid #1e293b; background: #0f1c36; }
body.hub-dark-mode .hub-upcoming-draw:hover { border-color: #3b82f6; background: #172a50; }
body.hub-dark-mode .hub-ticket-button { border: 1px solid #2563eb; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); box-shadow: 0 6px 18px rgba(37,99,235,.4); }
body.hub-dark-mode .hub-ticket-button > i:first-child, body.hub-dark-mode .hub-ticket-button > i:last-child { color: #ffffff; }
body.hub-dark-mode .hub-ticket-button strong { color: #ffffff; }
body.hub-dark-mode .hub-ticket-button small { color: rgba(255,255,255,.8); }
body.hub-dark-mode .hub-donation-locked-next { color: #94a3b8; }
body.hub-dark-mode .hub-donation-locked-next i { color: #38bdf8; }
.hub-donate-button { border-color: #05a936; border-radius: 10px; background: linear-gradient(135deg, #15da35, #08b92d 62%, #079321); box-shadow: 0 5px 0 rgba(0,112,30,.18), 0 7px 14px rgba(13,185,43,.16); transition: transform .2s ease, filter .2s ease, box-shadow .2s ease; }
.hub-donate-button:hover { background: linear-gradient(135deg, #22e645, #0bc733 62%, #0aa425); box-shadow: 0 6px 0 rgba(0,112,30,.18), 0 9px 18px rgba(13,185,43,.22); filter: none; transform: translateY(-2px); }
body.hub-dark-mode .hub-donate-button { color: #ffffff; border: 1px solid #10b981; background: linear-gradient(135deg, #10b981, #059669 62%, #047857); box-shadow: 0 5px 14px rgba(16,185,129,.35); }
body.hub-dark-mode .hub-donate-button:hover { background: linear-gradient(135deg, #34d399, #10b981 62%, #059669); }

@media (max-width: 720px) {
  .hub-donation-draw { margin-bottom: 7px; padding: 8px 9px; }
  .hub-donation-draw small { font-size: 10px; }
  .hub-ticket-button { min-height: 58px; padding-right: 11px; padding-left: 10px; }
  .hub-ticket-button strong { font-size: 11px; }
  .hub-ticket-button small { font-size: 8px; }
}

/* Hub navigation: rounded segmented controls with clearer touch targets. */
.hub-nav { background: linear-gradient(135deg, #151b32, #202743); }
.hub-nav-inner { align-items: center; gap: 8px; min-height: 58px; }
.hub-nav a { min-height: 40px; margin: 6px 0; padding: 0 17px; color: #c7cfea; border: 1px solid rgba(190,201,255,.18); border-radius: 11px; background: rgba(255,255,255,.06); box-shadow: 0 3px 0 rgba(0,0,0,.18); font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.hub-nav a:hover { color: #fff; background: rgba(126,113,255,.25); box-shadow: 0 5px 12px rgba(0,0,0,.16); transform: translateY(-1px); }
.hub-nav a.is-active { color: #fff; border-color: #8d83ff; background: linear-gradient(135deg, #685be8, #9184ff); box-shadow: 0 5px 0 rgba(47,39,144,.28), 0 7px 15px rgba(96,83,232,.24); }
.hub-nav a.is-active:hover { background: linear-gradient(135deg, #7569f2, #9a8eff); }
.hub-theme-toggle { min-height: 40px; margin: 6px 0 6px 0; padding: 0 12px; color: #dbe1ff; border: 1px solid rgba(190,201,255,.18); border-radius: 11px; background: rgba(255,255,255,.06); box-shadow: 0 3px 0 rgba(0,0,0,.18); font-size: 12px; font-weight: 800; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.hub-theme-toggle:hover { background: rgba(126,113,255,.2); box-shadow: 0 5px 12px rgba(0,0,0,.16); transform: translateY(-1px); }
.hub-theme-toggle span { width: 30px; height: 18px; border-color: #7e8bb8; background: #252c48; }
.hub-theme-toggle span::after { width: 12px; height: 12px; background: #96a1c7; }
.hub-theme-toggle input:checked + span::after { background: #ffe08a; }
.hub-nav a i:first-child { color: #b9b4ff; }
.hub-nav a.is-active i:first-child { color: #fff; }
body.hub-dark-mode .hub-nav { background: #080f1e; border-bottom: 1px solid #1e293b; }
body.hub-dark-mode .hub-nav a { color: #94a3b8; border: 1px solid #1e293b; background: rgba(30, 41, 59, 0.4); }
body.hub-dark-mode .hub-nav a:hover { color: #ffffff; border-color: #38bdf8; background: rgba(56, 189, 248, 0.12); }
body.hub-dark-mode .hub-nav a.is-active { color: #ffffff; border-color: #3b82f6; background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 4px 14px rgba(37,99,235,.35); }
body.hub-dark-mode .hub-nav a.is-active i:first-child { color: #ffffff; }
body.hub-dark-mode .hub-theme-toggle { color: #cbd5e1; border: 1px solid #1e293b; background: rgba(30, 41, 59, 0.4); }
body.hub-dark-mode .hub-theme-toggle:hover { background: rgba(56, 189, 248, 0.12); border-color: #38bdf8; }
body.hub-dark-mode .hub-theme-toggle span { border-color: #334155; background: #0f172a; }
body.hub-dark-mode .hub-nav a i:first-child { color: #38bdf8; }

/* The public Hub light theme uses the original blue navigation.  Keep the
   neutral administration background from leaking into this route. */
body.hub-mode:not(.hub-dark-mode), body.hub-mode:not(.hub-dark-mode) .content-wrapper { background: #d9f0fc; }
body.hub-mode:not(.hub-dark-mode) .hub-nav { background: linear-gradient(135deg, #151b32, #202743); }
body.hub-mode:not(.hub-dark-mode) .hub-nav a { color: #c7cfea; }
body.hub-mode:not(.hub-dark-mode) .hub-nav a:hover { color: #fff; background: rgba(126,113,255,.25); }
body.hub-mode:not(.hub-dark-mode) .hub-nav a.is-active { color: #fff; background: linear-gradient(135deg, #685be8, #9184ff); }

@media (max-width: 650px) {
  .hub-nav-inner { gap: 6px; min-height: 54px; padding: 0 8px; }
  .hub-theme-toggle { flex: 0 0 auto; gap: 6px; min-height: 38px; margin: 8px 0; padding: 0 8px; font-size: 10px; }
  .hub-theme-toggle span { width: 27px; height: 17px; }
  .hub-theme-toggle span::after { width: 11px; height: 11px; }
  .hub-theme-toggle input:checked + span::after { transform: translateX(9px); }
  .hub-nav a { min-height: 38px; margin: 8px 0; padding: 0 11px; border-radius: 10px; font-size: 11px; }
  .hub-nav a i:last-child { margin-left: 0; }
}

/* Schedule usability: keep historical rows collapsed and make winners reachable. */
.hub-daily-draw-closed-group { margin-top: 14px; padding-top: 10px; border-top: 1px solid #dfe5f0; }
.hub-daily-draw-closed-group details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 8px 11px; color: #62708a; border: 1px solid #d7deeb; border-radius: 9px; background: #f7f9fd; cursor: pointer; font-size: 11px; font-weight: 900; list-style: none; }
.hub-daily-draw-closed-group details > summary::-webkit-details-marker { display: none; }
.hub-daily-draw-closed-group details > summary > span { display: inline-flex; align-items: center; gap: 7px; }
.hub-daily-draw-closed-group details > summary > span i { color: #8793a8; }
.hub-daily-draw-closed-group details > summary > b { display: inline-flex; align-items: center; gap: 7px; color: #8793a8; font-size: 10px; }
.hub-daily-draw-closed-group details > summary > b i { transition: transform .2s ease; }
.hub-daily-draw-closed-group details[open] > summary { color: #3e4fb0; border-color: #bfc9ef; background: #f0f3ff; }
.hub-daily-draw-closed-group details[open] > summary > b i { transform: rotate(180deg); }
.hub-daily-draw-closed-list { margin: 8px 0 0; padding: 0 11px; border: 1px solid #e4e9f1; border-radius: 9px; background: rgba(247,249,253,.72); }
.hub-daily-draw-closed-list .hub-daily-draw-row.is-closed { opacity: .74; }
.hub-daily-draw-winners { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 108px; min-height: 35px; padding: 6px 12px; color: #52619d; border: 1px solid #c9d1ec; border-radius: 6px; background: #fff; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; font-family: inherit; }
.hub-daily-draw-winners:hover { color: #fff; border-color: #7064ed; background: #7064ed; transform: translateY(-1px); }
.hub-daily-draw-winners i { color: #d49b29; }
body.hub-dark-mode .hub-daily-draw-closed-group { border-color: #1e293b; }
body.hub-dark-mode .hub-daily-draw-closed-group details > summary { color: #94a3b8; border-color: #1e293b; background: #0c1527; }
body.hub-dark-mode .hub-daily-draw-closed-group details > summary > span i { color: #38bdf8; }
body.hub-dark-mode .hub-daily-draw-closed-group details > summary > b { color: #94a3b8; }
body.hub-dark-mode .hub-daily-draw-closed-group details[open] > summary { color: #38bdf8; border-color: #2563eb; background: #0f1c36; }
body.hub-dark-mode .hub-daily-draw-closed-list { border-color: #1e293b; background: rgba(13,21,39,.72); }
body.hub-dark-mode .hub-daily-draw-winners { color: #38bdf8; border-color: #1e293b; background: #0c1527; }
body.hub-dark-mode .hub-daily-draw-winners:hover { color: #ffffff; background: #2563eb; border-color: #3b82f6; }

@media (max-width: 760px) {
  .hub-daily-draw-closed-list { padding: 0 9px; }
  .hub-daily-draw-winners { width: 100%; }
}

/* Quick purchase gift opened from a scheduled draw. */
.hub-purchase-gift-backdrop { position: fixed; inset: 0; z-index: 180; display: flex; align-items: flex-end; justify-content: center; padding: 24px; background: rgba(20,28,78,.38); backdrop-filter: blur(5px); }
.hub-purchase-gift { position: relative; width: min(500px, 100%); max-height: calc(100vh - 48px); padding: 22px; overflow: auto; border: 3px solid #fff; border-radius: 24px; background: linear-gradient(145deg, #fff, #f6f7ff 72%, #e9edff); box-shadow: 0 12px 0 rgba(4,26,122,.14), 0 24px 55px rgba(26,42,128,.28); animation: hub-purchase-gift-in .24s ease-out both; }
.hub-purchase-gift::before { position: absolute; inset: 8px; content: ""; border: 1px solid rgba(112,100,237,.18); border-radius: 18px; pointer-events: none; }
.hub-purchase-gift-close { position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center; width: 31px; height: 31px; color: #68749a; border: 1px solid #d4dbef; border-radius: 50%; background: rgba(255,255,255,.82); cursor: pointer; font-size: 22px; line-height: 1; }
.hub-purchase-gift-close:hover { color: #fff; border-color: #7064ed; background: #7064ed; transform: rotate(5deg); }
.hub-purchase-gift-heading { position: relative; display: flex; align-items: center; gap: 13px; padding-right: 35px; }
.hub-purchase-gift-icon { display: grid; place-items: center; flex: 0 0 auto; width: 55px; height: 55px; color: #fff; border: 3px solid #fff; border-radius: 18px; background: linear-gradient(135deg, #6c5de9, #9a8cff); box-shadow: 0 6px 0 rgba(64,51,178,.18), 0 10px 20px rgba(101,88,234,.2); font-size: 23px; }
.hub-purchase-gift-heading > div { min-width: 0; }
.hub-purchase-gift-heading > div > span { color: #7064ed; font-size: 10px; font-weight: 900; letter-spacing: 1.1px; text-transform: uppercase; }
.hub-purchase-gift-heading h2 { margin: 2px 0 3px; color: #24398f; font-size: 25px; line-height: 1; }
.hub-purchase-gift-heading p { margin: 0; color: #77839b; font-size: 11px; }
.hub-purchase-gift-draw { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; margin: 18px 0 9px; padding: 10px 12px; border: 1px solid #cdd5f1; border-radius: 12px; background: linear-gradient(135deg, #f0f2ff, #e9edff); }
.hub-purchase-gift-draw span { grid-column: 1 / -1; color: #6573a2; font-size: 10px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }
.hub-purchase-gift-draw span i { margin-right: 5px; color: #7064ed; }
.hub-purchase-gift-draw strong { color: #293eaa; font-size: 15px; }
.hub-purchase-gift-draw small { align-self: center; color: #50618e; font-size: 11px; font-weight: 800; white-space: nowrap; }
.hub-purchase-gift-card { position: relative; padding: 10px; border: 1px solid #dfe4f5; border-radius: 14px; background: rgba(255,255,255,.72); box-shadow: 0 5px 0 rgba(39,52,151,.08); }
.hub-purchase-gift-card.hub-donation-card-locked { min-height: 170px; padding: 20px; }
.hub-purchase-gift-sparkle { position: absolute; z-index: 1; color: #e1ae3b; font-size: 19px; animation: hub-purchase-gift-sparkle 1.7s ease-in-out infinite; pointer-events: none; }
.hub-purchase-gift-sparkle.sparkle-one { top: 19px; right: 67px; }
.hub-purchase-gift-sparkle.sparkle-two { bottom: 22px; left: 20px; animation-delay: .45s; }
body.hub-dark-mode .hub-purchase-gift-backdrop { background: rgba(0,0,0,.66); }
body.hub-dark-mode .hub-purchase-gift { border: 1px solid rgba(59, 130, 246, 0.4) !important; background: linear-gradient(145deg, #0d172e, #091020) !important; box-shadow: 0 16px 48px rgba(0,0,0,.7); }
body.hub-dark-mode .hub-purchase-gift::before { border-color: rgba(59, 130, 246, 0.25); }
body.hub-dark-mode .hub-purchase-gift-close { color: #94a3b8; border-color: #1e293b; background: #0c1527; }
body.hub-dark-mode .hub-purchase-gift-close:hover { color: #ffffff; border-color: #38bdf8; background: #1d4ed8; }
body.hub-dark-mode .hub-purchase-gift-icon { color: #ffffff; border: 2px solid #38bdf8; background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 6px 16px rgba(37,99,235,.4); }
body.hub-dark-mode .hub-purchase-gift-heading > div > span { color: #38bdf8; }
body.hub-dark-mode .hub-purchase-gift-heading h2 { color: #ffffff; }
body.hub-dark-mode .hub-purchase-gift-heading p { color: #94a3b8; }
body.hub-dark-mode .hub-purchase-gift-draw { border-color: #1e293b; background: #0f1c36; }
body.hub-dark-mode .hub-purchase-gift-draw span { color: #94a3b8; }
body.hub-dark-mode .hub-purchase-gift-draw span i { color: #38bdf8; }
body.hub-dark-mode .hub-purchase-gift-draw strong { color: #38bdf8; }
body.hub-dark-mode .hub-purchase-gift-draw small { color: #94a3b8; }
body.hub-dark-mode .hub-purchase-gift-card { border-color: #1e293b; background: #0c1527; box-shadow: 0 5px 0 rgba(0,0,0,.45); }

@keyframes hub-purchase-gift-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes hub-purchase-gift-sparkle { 0%, 100% { opacity: .45; transform: scale(.72) rotate(-8deg); } 50% { opacity: 1; transform: scale(1.25) rotate(8deg); } }

@media (max-width: 600px) {
  .hub-purchase-gift-backdrop { align-items: flex-end; padding: 10px; }
  .hub-purchase-gift { max-height: calc(100vh - 20px); padding: 17px 13px 14px; border-radius: 20px; }
  .hub-purchase-gift-heading { gap: 10px; }
  .hub-purchase-gift-icon { width: 46px; height: 46px; border-radius: 14px; font-size: 19px; }
  .hub-purchase-gift-heading h2 { font-size: 21px; }
  .hub-purchase-gift-heading p { font-size: 10px; }
  .hub-purchase-gift-draw { margin-top: 14px; padding: 9px 10px; }
  .hub-purchase-gift-draw small { font-size: 10px; }
  .hub-purchase-gift-card { padding: 7px; }
}

/* Mobile purchase flow: keep the action hierarchy clear on narrow screens.
   The purchase CTA is first and the optional prize support action is secondary
   so a phone tap cannot accidentally choose the wrong operation. */
.hub-purchase-gift-card { display: flex; flex-direction: column; gap: 10px; }
.hub-purchase-gift-card .hub-ticket-button { order: 1; width: 100%; min-height: 56px; }
.hub-purchase-gift-card .hub-donation-row { order: 2; margin-top: 0; }
.hub-purchase-gift-card .hub-quantity-total { order: 3; }
.hub-purchase-gift-card .hub-donation-note { order: 4; }
.hub-purchase-gift-card .hub-donate-button { color: #fff; border-color: #8d79c8; background: linear-gradient(135deg, #6656c8, #8a70e3); box-shadow: none; font-size: 12px; }
.hub-purchase-gift-card .hub-donate-button:hover { background: linear-gradient(135deg, #7665db, #997ff1); }
.hub-purchase-confirmation-backdrop { align-items: center; }
.hub-purchase-confirmation { padding: 32px 24px 25px; text-align: center; }
.hub-purchase-confirmation-icon { position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 12px; color: #fff; border: 4px solid #fff; border-radius: 50%; background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 7px 0 rgba(5,150,105,.16), 0 12px 26px rgba(5,150,105,.25); font-size: 31px; }
.hub-purchase-confirmation-kicker { display: block; color: #059669; font-size: 10px; font-weight: 900; letter-spacing: 1.3px; text-transform: uppercase; }
.hub-purchase-confirmation h2 { margin: 5px 0 6px; color: #24398f; font-size: 28px; line-height: 1.1; }
.hub-purchase-confirmation-message { margin: 0 0 15px; color: #65718a; font-size: 13px; }
.hub-purchase-confirmation-summary { display: grid; gap: 5px; margin: 0 auto 15px; padding: 14px; border: 1px solid #bdebd9; border-radius: 13px; background: #effcf6; }
.hub-purchase-confirmation-summary strong { color: #047857; font-size: 18px; }
.hub-purchase-confirmation-summary span { color: #4f6471; font-size: 12px; font-weight: 700; }
.hub-purchase-confirmation-summary b { color: #0f766e; font-size: 14px; }
.hub-purchase-confirmation-note { margin: 0 auto 18px; color: #66758a; font-size: 11px; line-height: 1.5; }
.hub-purchase-confirmation-note i { margin-right: 4px; color: #7064ed; }
.hub-purchase-confirmation-note strong { color: #3346a7; }
.hub-purchase-confirmation-close { width: 100%; justify-content: center; min-height: 45px; }
body.hub-dark-mode .hub-purchase-confirmation-kicker { color: #34d399; }
body.hub-dark-mode .hub-purchase-confirmation h2 { color: #fff; }
body.hub-dark-mode .hub-purchase-confirmation-message,
body.hub-dark-mode .hub-purchase-confirmation-note { color: #94a3b8; }
body.hub-dark-mode .hub-purchase-confirmation-summary { border-color: rgba(52,211,153,.35); background: rgba(6,78,59,.28); }
body.hub-dark-mode .hub-purchase-confirmation-summary strong { color: #6ee7b7; }
body.hub-dark-mode .hub-purchase-confirmation-summary span { color: #cbd5e1; }
body.hub-dark-mode .hub-purchase-confirmation-summary b { color: #5eead4; }
body.hub-dark-mode .hub-purchase-confirmation-note strong { color: #93c5fd; }

@media (max-width: 600px) {
  .hub-purchase-gift { width: min(460px, calc(100vw - 18px)); padding: 16px 12px 13px; border-width: 2px; border-radius: 18px; }
  .hub-purchase-gift-heading h2 { font-size: 22px; }
  .hub-purchase-gift-draw { margin: 12px 0 0; }
  .hub-purchase-gift-card { gap: 9px; padding: 8px; border-radius: 12px; }
  .hub-purchase-gift-card .hub-amounts { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .hub-purchase-gift-card .hub-amount-button { min-height: 34px; font-size: 12px; }
  .hub-purchase-gift-card .hub-ticket-button { min-height: 57px; padding: 8px 10px; border-radius: 11px; }
  .hub-purchase-gift-card .hub-ticket-button strong { font-size: 12px; }
  .hub-purchase-gift-card .hub-ticket-button small { font-size: 9px; }
  .hub-purchase-gift-card .hub-donation-row { grid-template-columns: 36px 48px 36px minmax(64px, 1fr); gap: 5px; }
  .hub-purchase-gift-card .hub-donation-row > button:not(.hub-donate-button),
  .hub-purchase-gift-card .hub-donation-row output { min-height: 38px; }
  .hub-purchase-gift-card .hub-donation-row > strong { font-size: 12px; }
  .hub-purchase-gift-card .hub-donate-button { grid-column: 1 / -1; min-height: 38px; }
}

/* Agenda cards remain legible and easy to tap on the mobile Hub. */
@media (max-width: 600px) {
  .hub-daily-draws { margin-top: 14px; padding: 14px 11px 5px; border-width: 2px; border-radius: 16px; box-shadow: 0 5px 0 rgba(4,26,122,.1); }
  .hub-daily-draws-heading { gap: 7px; margin-bottom: 8px; }
  .hub-daily-draws-heading h2 { font-size: 20px; }
  .hub-daily-draws-heading p { font-size: 10px; line-height: 1.4; }
  .hub-daily-draws-heading > a { min-height: 38px; border-radius: 9px; }
  .hub-daily-draw-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; margin: 7px 0; padding: 12px 10px; border: 1px solid #dbe2ef; border-radius: 12px; background: rgba(248,250,255,.9); }
  .hub-daily-draw-row + .hub-daily-draw-row { border-top: 1px solid #dbe2ef; }
  .hub-daily-draw-time strong { font-size: 22px; }
  .hub-daily-draw-details strong { font-size: 12px; }
  .hub-daily-draw-prize strong { font-size: 15px; }
  .hub-daily-draw-action { margin-top: 2px; }
  .hub-daily-draw-buy, .hub-daily-draw-open { min-height: 41px; border-radius: 9px; font-size: 12px; }
  body.hub-dark-mode .hub-daily-draw-row { border-color: #46371f; background: linear-gradient(135deg, #15110b, #0d0b08); }
  body.hub-dark-mode .hub-daily-draw-row + .hub-daily-draw-row { border-top-color: #46371f; }
}

/* Celebration gift modal for draw winners in the public hub */
.hub-winners-gift-backdrop {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(10px);
  animation: player-winner-gift-in 0.35s ease both;
  overflow-y: auto;
}
.hub-winners-gift-card {
  position: relative;
  width: min(740px, 100%);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  padding: 36px 26px 26px;
  color: #f6e4ad;
  border: 2px solid #e2b750;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 0, rgba(238, 198, 96, 0.24), transparent 44%), linear-gradient(145deg, #21170a, #090909 58%, #1d1307);
  box-shadow: 0 0 0 6px rgba(224, 176, 72, 0.14), 0 28px 80px rgba(0, 0, 0, 0.78), inset 0 0 42px rgba(233, 181, 68, 0.08);
  text-align: center;
  pointer-events: auto;
}
.hub-winners-gift-card::before, .hub-winners-gift-card::after {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffe18a;
  box-shadow: 0 0 18px #ffd45e;
  content: '';
  animation: player-winner-sparkle 1.4s ease-in-out infinite;
}
.hub-winners-gift-card::before { top: 18px; left: 13%; }
.hub-winners-gift-card::after { right: 14%; bottom: 22px; animation-delay: 0.5s; }
.hub-winners-gift-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ffd875;
  border: 1px solid rgba(229, 186, 88, 0.5);
  border-radius: 50%;
  background: rgba(26, 17, 7, 0.88);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: all 0.2s ease;
}
.hub-winners-gift-close:hover {
  color: #171006;
  border-color: #ffd875;
  background: #ffd875;
  transform: rotate(90deg) scale(1.05);
}
.hub-winners-gift-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe699, #d49a1d);
  color: #1a1005;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 0 25px rgba(247, 201, 94, 0.45);
  animation: hub-gift-bounce 1.6s ease-in-out infinite alternate;
}
@keyframes hub-gift-bounce {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.06); }
}
.hub-winners-gift-kicker {
  color: #f7c95e;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hub-winners-gift-kicker i {
  margin-right: 6px;
}
.hub-winners-gift-card h2 {
  margin: 8px 0 14px;
  color: #fff1bd;
  font-size: clamp(24px, 4.5vw, 38px);
  line-height: 1.1;
}
.hub-winners-gift-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin: 0 auto 20px;
  padding: 6px 18px;
  border: 1px solid rgba(229, 186, 88, 0.35);
  border-radius: 20px;
  background: rgba(255, 221, 125, 0.08);
  font-size: 12px;
  color: #fff3cb;
}
.hub-winners-gift-meta strong {
  color: #ffd45e;
}
.hub-winners-gift-meta i {
  color: #ffd45e;
  margin-right: 4px;
}
.hub-winners-gift-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.hub-winners-gift-btn-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 34px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #ffd700, #e0a800);
  color: #1a1005;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(224, 168, 0, 0.38);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.hub-winners-gift-btn-close:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.hub-winners-gift-close:focus-visible,
.hub-winners-gift-btn-close:focus-visible {
  outline: 3px solid #fff1bd;
  outline-offset: 3px;
}
.hub-player-prize-result .hub-winners-gift-card {
  width: min(620px, 100%);
}
.hub-player-prize-result .player-winner-gift-list article {
  min-width: 0;
}
.hub-player-prize-result .player-winner-gift-list small {
  color: #b8d8f5;
}
.hub-player-prize-result {
  background: rgba(5, 15, 35, .78);
}
.hub-player-prize-result .hub-winners-gift-card {
  width: min(680px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 32px clamp(18px, 4vw, 36px) 28px;
  color: #18345d;
  border: 1px solid #c9dafa;
  border-radius: 20px;
  background: linear-gradient(180deg, #f9fbff, #edf4ff);
  box-shadow: 0 28px 72px rgba(1, 12, 33, .42);
  scrollbar-color: #a7c6ef #edf4ff;
}
.hub-player-prize-result .hub-winners-gift-card::before,
.hub-player-prize-result .hub-winners-gift-card::after {
  display: none;
}
.hub-player-prize-result .hub-winners-gift-close {
  color: #315889;
  border-color: #c9dafa;
  background: #fff;
}
.hub-player-prize-result .hub-winners-gift-close:hover {
  color: #fff;
  border-color: #285fc4;
  background: #285fc4;
}
.hub-player-prize-result .hub-winners-gift-icon {
  color: #fff;
  background: linear-gradient(145deg, #3176df, #174caa);
  box-shadow: 0 10px 22px rgba(35, 94, 188, .25);
}
.hub-player-prize-result .hub-winners-gift-card h2 {
  margin: 8px 0 16px;
  color: #143f85;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -.025em;
}
.hub-player-prize-result .hub-winners-gift-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 0 auto 16px;
  padding: 12px 16px;
  color: #425f84;
  border-color: #d7e4f7;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}
.hub-player-prize-result .hub-winners-gift-meta > span {
  min-width: 0;
  line-height: 1.5;
}
.hub-player-prize-result .hub-winners-gift-meta > span:last-child {
  text-align: right;
}
.hub-player-prize-result .hub-winners-gift-meta strong {
  color: #0a806d;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hub-player-prize-result .hub-winners-gift-meta i {
  color: #2870d4;
}
.hub-player-prize-result .player-winner-gift-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  width: 100%;
}
.hub-winners-gift-sparkle {
  position: absolute;
  z-index: 1;
  color: #ffd875;
  font-size: 20px;
  animation: hub-purchase-gift-sparkle 1.7s ease-in-out infinite;
  pointer-events: none;
}
.hub-winners-gift-sparkle.sparkle-one {
  top: 18px;
  left: 24px;
}
.hub-winners-gift-sparkle.sparkle-two {
  bottom: 20px;
  right: 28px;
  animation-delay: 0.5s;
}
.hub-winners-empty {
  padding: 28px 16px;
  color: #d8c69d;
  font-size: 14px;
}
.hub-winners-empty i {
  font-size: 36px;
  color: #f7c95e;
  margin-bottom: 10px;
  display: block;
}

@media (max-width: 600px) {
  .hub-winners-gift-backdrop { padding: 12px; }
  .hub-winners-gift-card { padding: 28px 16px 20px; }
  .hub-winners-gift-card .player-winner-gift-list { grid-template-columns: 1fr; }
  .hub-player-prize-result .hub-winners-gift-card {
    max-height: calc(100dvh - 24px);
    padding: 30px 16px 20px;
    border-radius: 18px;
  }
  .hub-player-prize-result .hub-winners-gift-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .hub-player-prize-result .hub-winners-gift-meta > span:last-child { text-align: left; }
}

.hub-player-prize-result .player-winner-gift-list article {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 18px;
  color: #15385f;
  border: 1px solid #d5e2f3;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}
.hub-player-prize-result .player-winner-gift-list article > i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #205eb9;
  border: 1px solid #c7dbf7;
  border-radius: 50%;
  background: #eaf2ff;
  font-size: 16px;
}
.hub-player-prize-result .player-winner-gift-list article > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 3px 16px;
  min-width: 0;
}
.hub-player-prize-result .player-winner-gift-list article strong {
  grid-column: 1;
  color: #416d9f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.hub-player-prize-result .player-winner-gift-list article span {
  grid-column: 1;
  min-width: 0;
  color: #173c70;
  font-size: 15px;
  font-weight: 800;
}
.hub-player-prize-result .player-winner-gift-list article small {
  grid-column: 1;
  color: #5d7595;
  white-space: normal;
  text-align: left;
}
.hub-player-prize-result .player-winner-gift-list .winner-gift-amount {
  grid-column: 2;
  grid-row: 1 / 4;
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  color: #087d70;
  border: 0;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  white-space: nowrap;
  overflow-wrap: normal;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hub-player-prize-result .hub-winners-gift-btn-close {
  color: #fff;
  border: 1px solid #174da8;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f75db, #174da8);
  box-shadow: 0 8px 20px rgba(24, 86, 167, .24);
}
.hub-player-prize-result .hub-winners-gift-btn-close:hover {
  filter: brightness(1.12);
}
.hub-player-prize-result .hub-winners-gift-close:focus-visible,
.hub-player-prize-result .hub-winners-gift-btn-close:focus-visible {
  outline-color: #1849a4;
}
.hub-player-prize-result .hub-winners-empty {
  color: #415d80;
}
.hub-player-prize-result .hub-winners-empty i {
  color: #2870d4;
}
.hub-player-prize-result.is-no-prize .hub-winners-gift-icon {
  color: #315889;
  background: #e3edfb;
  box-shadow: none;
}
.hub-player-prize-result.is-no-prize .hub-winners-empty {
  width: 100%;
  margin-bottom: 8px;
  padding: 20px 16px;
  border: 1px solid #d7e4f7;
  border-radius: 12px;
  background: #fff;
}
.hub-player-prize-result.is-no-prize .hub-winners-empty p {
  margin: 4px 0;
}
@media (max-width: 600px) {
  .hub-player-prize-result .player-winner-gift-list { grid-template-columns: minmax(0, 1fr); }
  .hub-player-prize-result .player-winner-gift-list article { padding: 14px 12px; }
  .hub-player-prize-result .player-winner-gift-list article > div { grid-template-columns: minmax(0, 1fr); }
  .hub-player-prize-result .player-winner-gift-list .winner-gift-amount { grid-column: 1; grid-row: auto; margin-top: 6px; font-size: clamp(24px, 7vw, 32px); text-align: left; }
}

/* Keep the admin ticket list readable without mounting thousands of rows. */
.ticket-list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: #64748b;
  font-size: 13px;
}
.ticket-list-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ticket-list-pagination-actions strong {
  color: #334155;
  font-size: 13px;
}
@media (max-width: 600px) {
  .ticket-list-pagination,
  .ticket-list-pagination-actions { width: 100%; justify-content: center; }
}

/* Public Hub TV skin. The existing markup and data attributes stay intact so
   the purchase, wallet, schedule and support controls keep their behavior and
   position while the presentation follows the broadcast screen. */
body.hub-mode,
body.hub-mode .content-wrapper {
  color: #f8fbff !important;
  background: #071326 url('/public/reference/sky.jpg') center / cover fixed !important;
}
body.hub-mode #hub-shell {
  min-height: 100vh;
  color: #f8fbff !important;
  background: radial-gradient(circle at 50% 0%, rgba(38, 103, 199, .52), transparent 42%), linear-gradient(180deg, rgba(3, 14, 34, .84), rgba(4, 12, 27, .97)) !important;
}
body.hub-mode .hub-topbar {
  color: #f8fbff !important;
  background: rgba(5, 12, 25, .94) !important;
  border-bottom: 1px solid rgba(106, 164, 236, .25) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .3) !important;
  backdrop-filter: blur(14px);
}
body.hub-mode .hub-logo,
body.hub-mode .hub-logo:hover,
body.hub-mode .hub-logo strong,
body.hub-mode .hub-account-copy strong {
  color: #fff !important;
}
body.hub-mode .hub-logo-mark {
  color: #071326 !important;
  background: linear-gradient(145deg, #ffe36f, #c9962d) !important;
  box-shadow: 0 0 18px rgba(255, 214, 74, .28) !important;
}
body.hub-mode .hub-top-links a,
body.hub-mode .hub-account-copy small { color: #afc5e8 !important; }
body.hub-mode .hub-top-links a:hover { color: #fff !important; background: rgba(40, 113, 214, .22) !important; }
body.hub-mode .hub-account-avatar {
  color: #fff !important;
  background: linear-gradient(145deg, #2584e8, #12428d) !important;
}
body.hub-mode .hub-account-signout {
  color: #dbeafe !important;
  border-color: #31527f !important;
  background: rgba(19, 44, 82, .72) !important;
}
body.hub-mode .hub-account-signout:hover { color: #fff !important; border-color: #5da9ff !important; background: #173d72 !important; }
body.hub-mode .hub-nav {
  background: rgba(4, 14, 31, .94) !important;
  border-bottom: 1px solid rgba(106, 164, 236, .2) !important;
}
body.hub-mode .hub-nav a,
body.hub-mode .hub-theme-toggle {
  color: #c5d8f5 !important;
  border-color: rgba(103, 161, 230, .28) !important;
  background: rgba(20, 48, 88, .7) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .22) !important;
}
body.hub-mode .hub-nav a:hover,
body.hub-mode .hub-theme-toggle:hover {
  color: #fff !important;
  border-color: #4b9af0 !important;
  background: rgba(30, 91, 171, .82) !important;
}
body.hub-mode .hub-nav a.is-active {
  color: #fff !important;
  border-color: #55a8ff !important;
  background: linear-gradient(135deg, #1f68c5, #123e82) !important;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .3), 0 8px 18px rgba(12, 71, 151, .3) !important;
}
body.hub-mode .hub-theme-toggle { color: #bcd1f1 !important; }
body.hub-mode .hub-theme-toggle span { border-color: #41648f !important; background: #0c1c36 !important; }
body.hub-mode .hub-theme-toggle span::after { background: #8fb3e4 !important; }
body.hub-mode .hub-theme-toggle input:checked + span::after { background: #ffda55 !important; box-shadow: 0 0 8px rgba(255, 218, 85, .55) !important; }
body.hub-mode .hub-content {
  background: transparent !important;
}
body.hub-mode .hub-countdown-card {
  border: 2px solid rgba(67, 145, 236, .7) !important;
  border-radius: 15px !important;
  background: linear-gradient(145deg, #0d254c, #07172f) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}
body.hub-mode .hub-countdown span {
  color: #ffe600 !important;
  border: 2px solid #3d99ef !important;
  border-radius: 10px !important;
  background: #030d20 !important;
  text-shadow: 0 0 20px rgba(255, 230, 0, .25) !important;
}
body.hub-mode .hub-countdown b,
body.hub-mode .hub-live-label { color: #ffe600 !important; }
body.hub-mode .hub-countdown-card small { color: #9fc0e9 !important; }
body.hub-mode .hub-info-card {
  color: #f8fbff !important;
  border: 1px solid #31527f !important;
  border-radius: 12px !important;
  background: #0c1a31 !important;
  box-shadow: 0 9px 22px rgba(0, 0, 0, .27) !important;
}
body.hub-mode .hub-info-card > div { border-color: #294665 !important; }
body.hub-mode .hub-info-card small { color: #8faed5 !important; }
body.hub-mode .hub-info-card strong { color: #62b3ff !important; }
body.hub-mode .hub-info-card > div:first-child strong { color: #ffd65a !important; }
body.hub-mode .hub-prize-bar {
  color: #fff !important;
  border: 1px solid rgba(106, 164, 236, .38) !important;
  border-radius: 11px !important;
  box-shadow: 0 7px 17px rgba(0, 0, 0, .3) !important;
}
body.hub-mode .hub-prize-bar:nth-child(1) { background: linear-gradient(90deg, #173c77, #0c1c36) !important; }
body.hub-mode .hub-prize-bar:nth-child(2) { background: linear-gradient(90deg, #075b50, #073a3a) !important; }
body.hub-mode .hub-prize-bar:nth-child(3) { background: linear-gradient(90deg, #4c2b8a, #241b50) !important; }
body.hub-mode .hub-prize-bar span { color: #f4f8ff !important; }
body.hub-mode .hub-prize-bar span i { color: #f7cf59 !important; }
body.hub-mode .hub-prize-bar strong { color: #ffe36a !important; text-shadow: 0 0 12px rgba(255, 220, 98, .2) !important; }
body.hub-mode .hub-accumulated {
  color: #fff !important;
  border-color: rgba(245, 188, 75, .65) !important;
  background: linear-gradient(90deg, #71331d, #3e1b18) !important;
}
body.hub-mode .hub-accumulated strong { color: #ffe58a !important; }
body.hub-mode .hub-accumulated span b {
  color: #182a4a !important;
  background: linear-gradient(145deg, #ffe36a, #dc9c2d) !important;
  box-shadow: 0 0 12px rgba(255, 212, 81, .28) !important;
}
body.hub-mode .hub-accumulated span small { color: #c2d2ea !important; }
body.hub-mode .hub-donation-card,
body.hub-mode .hub-history-card,
body.hub-mode .hub-bottom-card {
  color: #edf5ff !important;
  border: 1px solid #294666 !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #101e35, #0a1427) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .34) !important;
}
body.hub-mode .hub-donation-draw {
  color: #e9f3ff !important;
  border-color: #294666 !important;
  background: #0b1930 !important;
}
body.hub-mode .hub-donation-draw span,
body.hub-mode .hub-donation-draw strong { color: #f4f8ff !important; }
body.hub-mode .hub-donation-draw small,
body.hub-mode .hub-donation-note { color: #8faed5 !important; }
body.hub-mode .hub-amount-button {
  color: #d8e8ff !important;
  border-color: #31557f !important;
  background: #142b4b !important;
}
body.hub-mode .hub-amount-button:hover { color: #071326 !important; background: #74baff !important; }
body.hub-mode .hub-amount-button.is-selected { color: #17233b !important; border-color: #f2c64f !important; background: #f6d261 !important; box-shadow: 0 0 12px rgba(246, 210, 97, .28) !important; }
body.hub-mode .hub-donation-row > button:not(.hub-donate-button),
body.hub-mode .hub-donation-row output,
body.hub-mode .hub-donation-row > strong {
  color: #edf5ff !important;
  border-color: #31557f !important;
  background: #142b4b !important;
}
body.hub-mode .hub-donation-row > button:not(.hub-donate-button):first-child,
body.hub-mode .hub-donation-row > button:not(.hub-donate-button):nth-child(3) {
  color: #fff !important;
  border-color: #357fd0 !important;
  background: #1f68c5 !important;
}
body.hub-mode .hub-donate-button {
  color: #18233a !important;
  border-color: #e2b94f !important;
  background: linear-gradient(135deg, #ffe07a, #c58b29) !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .3) !important;
}
body.hub-mode .hub-ticket-button {
  border-color: #3b8be1 !important;
  background: linear-gradient(135deg, #287ed6, #15478e) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3) !important;
}
body.hub-mode .hub-ticket-button strong,
body.hub-mode .hub-ticket-button small { color: #fff !important; }
body.hub-mode .hub-ticket-button > i { color: #ffd65a !important; }
body.hub-mode .hub-history-card .hub-card-title { color: #f1f6ff !important; }
body.hub-mode .hub-history-card .hub-card-title a { color: #67b7ff !important; }
body.hub-mode .hub-history-card li { color: #9db4d4 !important; border-color: #213b5b !important; }
body.hub-mode .hub-history-card li i { color: #62b3ff !important; }
body.hub-mode .hub-history-card li strong { color: #68d5a7 !important; }
body.hub-mode .hub-bottom-icon { color: #79baff !important; background: #17345b !important; }
body.hub-mode .hub-bottom-icon.green { color: #5be1ad !important; background: #103f3b !important; }
body.hub-mode .hub-bottom-icon.gold { color: #f4ca62 !important; background: #493719 !important; }
body.hub-mode .hub-bottom-card strong { color: #e7f0ff !important; }
body.hub-mode .hub-bottom-card p { color: #9ab1d2 !important; }
body.hub-mode .hub-footer { color: #91a9ca !important; }
body.hub-mode .hub-footer a { color: #d9eaff !important; }

/* Financeiro > Caixa follows the compact report presentation used by
   /cashiers/search while retaining the application's filters and live data. */
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode),
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content-wrapper {
  color: #343a40 !important;
  background: #fff !important;
}
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-header {
  color: #343a40 !important;
  background: #fff !important;
  border-bottom-color: #e2e5e9 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06) !important;
}
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-header .nav-link {
  color: #66717d !important;
}
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-header .nav-link:hover {
  color: #1769aa !important;
  background: #f0f6fb !important;
}
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-sidebar {
  color: #d5d9de !important;
  background: #343a40 !important;
  border-right: 0 !important;
  box-shadow: none !important;
}
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .brand-link {
  background: #343a40 !important;
  border-bottom-color: rgba(255,255,255,.1) !important;
}
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .brand-text strong { color: #fff !important; }
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .brand-text small { color: #c8ced5 !important; }
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .user-panel {
  border-color: rgba(255,255,255,.13) !important;
  background: rgba(255,255,255,.06) !important;
}
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .user-info a,
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .side-nav .nav-link {
  color: #d6dbe1 !important;
}
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .side-nav .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.1) !important;
}
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .side-nav .nav-icon { color: #c7ced7 !important; }
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .sidebar-search input,
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .sidebar-search button {
  color: #fff !important;
  background: #3e454d !important;
  border-color: #5d6670 !important;
}
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content-header {
  min-height: 78px !important;
  padding: 24px 28px 12px !important;
}
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content-header h1 {
  color: #343a40 !important;
  font-size: 28px !important;
  font-weight: 600 !important;
}
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .breadcrumb,
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .breadcrumb a {
  color: #6c757d !important;
}
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .breadcrumb a { color: #007bff !important; }
body.cashier-reference-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content { padding: 0 28px 32px !important; }
body.cashier-reference-mode .cashier-reference-card {
  border: 1px solid #dee2e6 !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.06) !important;
}
body.cashier-reference-mode .cashier-reference-card .card-header {
  min-height: 54px !important;
  padding: 16px 20px !important;
  color: #343a40 !important;
  border-bottom: 1px solid #dee2e6 !important;
  background: #fff !important;
  font-size: 19px !important;
}
body.cashier-reference-mode .cashier-reference-card .card-body { padding: 20px !important; }
body.cashier-reference-mode .cashier-reference-card .form-group label { color: #343a40 !important; }
body.cashier-reference-mode .cashier-reference-card .form-control {
  color: #495057 !important;
  border-color: #ced4da !important;
  background: #fff !important;
  border-radius: 4px !important;
}
body.cashier-reference-mode .cashier-reference-card .btn {
  border-radius: 4px !important;
  box-shadow: none !important;
}
body.cashier-reference-mode .cashier-reference-card .btn-primary {
  border-color: #007bff !important;
  background: #007bff !important;
}
body.cashier-reference-mode .cashier-report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e1e4e8;
}
body.cashier-reference-mode .cashier-report-toolbar > div { display: flex; gap: 8px; }
body.cashier-reference-mode .cashier-report-toolbar .btn-danger {
  border-color: #dc3545 !important;
  background: #dc3545 !important;
}
body.cashier-reference-mode .cashier-report-toolbar .btn-info {
  border-color: #007bff !important;
  background: #007bff !important;
}
body.cashier-reference-mode .cashier-report-toolbar h2 {
  margin: 0;
  color: #343a40;
  font-size: 18px;
  font-weight: 600;
}
body.cashier-reference-mode .cashier-summary-table-wrap { overflow-x: auto; }
body.cashier-reference-mode .cashier-summary-table {
  width: 100%;
  min-width: 680px !important;
  color: #343a40 !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 4px !important;
}
body.cashier-reference-mode .cashier-summary-table th {
  height: 48px !important;
  color: #343a40 !important;
  border-color: #dee2e6 !important;
  background: #f4f4f4 !important;
  font-size: 12px !important;
}
body.cashier-reference-mode .cashier-summary-table td {
  height: 52px !important;
  padding: 11px 12px !important;
  color: #343a40 !important;
  border-color: #dee2e6 !important;
  background: #fff !important;
}
body.cashier-reference-mode .cashier-summary-table tbody tr:nth-child(even) td { background: #f8f8f8 !important; }
body.cashier-reference-mode .cashier-summary-table tbody tr.is-total td {
  color: #111 !important;
  background: #d7d7d7 !important;
  font-weight: 700;
}
body.cashier-reference-mode .cashier-summary-foot {
  display: flex;
  justify-content: flex-end;
  gap: 26px;
  margin: 9px 2px 20px;
  color: #6c757d;
  font-size: 13px;
}
body.cashier-reference-mode .cashier-summary-foot strong { margin-left: 5px; color: #343a40; }
body.cashier-reference-mode .cashier-stat-cards { display: none !important; }
body.cashier-reference-mode .cashier-reference-card .module-subtitle {
  margin: 22px 0 12px;
  color: #343a40 !important;
  font-size: 19px;
  font-weight: 600;
}
body.cashier-reference-mode .cashier-manager-section { margin: 0 0 22px; }
body.cashier-reference-mode .cashier-manager-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  color: #fff;
  background: #087ff0;
  font-size: 16px;
}
body.cashier-reference-mode .cashier-manager-heading strong { font-weight: 700; }
body.cashier-reference-mode .cashier-discharge-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px 8px;
  color: #155724;
  border-radius: 12px;
  background: #d4edda;
  font-size: 10px;
  font-weight: 700;
}
body.cashier-reference-mode .cashier-manager-section .module-table {
  width: 100%;
  min-width: 789px !important;
  color: #343a40 !important;
  border: 1px solid #dee2e6 !important;
  border-top: 0 !important;
  border-radius: 0 0 4px 4px !important;
}
body.cashier-reference-mode .cashier-manager-section .module-table th {
  height: 46px !important;
  padding: 10px 11px !important;
  color: #343a40 !important;
  border-color: #dee2e6 !important;
  background: #fff !important;
  font-size: 12px !important;
}
body.cashier-reference-mode .cashier-manager-section .module-table td {
  height: 47px !important;
  padding: 10px 11px !important;
  color: #343a40 !important;
  border-color: #dee2e6 !important;
  background: #fff !important;
}
body.cashier-reference-mode .cashier-manager-section .module-table tbody tr:nth-child(even) td { background: #f6f6f6 !important; }
body.cashier-reference-mode .cashier-manager-section .module-table tbody tr:last-child td {
  color: #111 !important;
  background: #d7d7d7 !important;
  font-weight: 700;
}
body.cashier-reference-mode .cashier-person { display: inline-flex; align-items: center; gap: 7px; }
body.cashier-reference-mode .cashier-person-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #147be8;
  font-size: 10px;
}
body.cashier-reference-mode .cashier-quantity { color: #fff !important; background: #147be8 !important; }
body.cashier-reference-mode .cashier-net-badge { color: #fff !important; background: #6c757d !important; }
body.cashier-reference-mode .cashier-reference-card > .card-body > .module-subtitle.mt-4 { margin-top: 28px !important; }
@media (max-width: 760px) {
  body.cashier-reference-mode .cashier-report-toolbar { align-items: stretch; flex-direction: column-reverse; }
  body.cashier-reference-mode .cashier-report-toolbar > div,
  body.cashier-reference-mode .cashier-report-toolbar .btn { width: 100%; }
  body.cashier-reference-mode .cashier-report-toolbar > div { display: grid; grid-template-columns: 1fr 1fr; }
  body.cashier-reference-mode .cashier-report-toolbar h2 { font-size: 16px; }
  body.cashier-reference-mode .cashier-summary-foot { justify-content: space-between; gap: 8px; }
}
/* Polished finance forms and manager-grouped cashier reports. */
.lanc-create-card .lanc-form-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 15px 17px;
  border: 1px solid rgba(120, 104, 244, .25);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(120, 104, 244, .14), rgba(31, 41, 55, .45));
}
.lanc-create-card .lanc-form-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #7c6cf4, #5042ce);
  box-shadow: 0 8px 18px rgba(80, 66, 206, .35);
}
.lanc-create-card .lanc-form-intro strong { color: var(--admin-text, #f8fafc); font-size: 15px; }
.lanc-create-card .lanc-form-intro p { margin: 3px 0 0; color: var(--admin-muted, #9aa9bd); font-size: 12px; }
.lanc-create-card .lanc-form-toolbar { margin-bottom: 12px !important; }
.lanc-create-card .form-actions .btn { min-width: 190px; }
.lanc-create-card .lanc-collection-feedback { margin-top: 14px; padding: 12px 14px; border: 1px solid #dc3545; border-radius: 8px; color: #842029; background: #f8d7da; font-size: 14px; line-height: 1.45; }
.lanc-create-card .lanc-collection-feedback.is-warning { border-color: #e5a000; color: #755000; background: #fff3cd; }
.cashier-person > div { display: grid; gap: 2px; }
.cashier-role { color: #64748b; font-size: 10px; font-weight: 700; text-transform: capitalize; }
body.cashier-reference-mode .cashier-role { color: #6c757d; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .btn {
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 7px 16px rgba(15, 23, 42, .18);
}
.autobingo-days-field > label small { color: #8ea0b8; font-size: 11px; font-weight: 500; }
.autobingo-days-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.autobingo-day-option { position: relative; cursor: pointer; margin: 0; }
.autobingo-day-option input { position: absolute; opacity: 0; pointer-events: none; }
.autobingo-day-option span { display: block; padding: 9px 5px; border: 1px solid #334155; border-radius: 9px; color: #aebdd0; font-size: 11px; font-weight: 700; text-align: center; transition: .16s ease; }
.autobingo-day-option input:checked + span { border-color: #7868f4; color: #fff; background: linear-gradient(135deg, #7868f4, #5042ce); box-shadow: 0 5px 12px rgba(80,66,206,.28); }
.autobingo-day-option span:hover { border-color: #7868f4; }
@media (max-width: 700px) { .autobingo-days-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Public Hub polish and compact-screen fixes. Keep every control reachable on
   phones and small WebViews without allowing the header or purchase row to
   squeeze its labels into unreadable columns. */
.hub-topbar { gap: 16px; }
.hub-logo { flex: 0 1 auto; }
.hub-top-links { min-width: 0; }
.hub-nav-inner { overflow-x: auto; scrollbar-width: none; }
.hub-nav-inner::-webkit-scrollbar { display: none; }
.hub-nav a, .hub-theme-toggle { flex: 0 0 auto; }
.hub-layout { align-items: stretch; }
.hub-countdown-card, .hub-donation-card, .hub-promo, .hub-history-card, .hub-wallet-card { transition: transform .2s ease, box-shadow .2s ease; }
.hub-countdown-card:hover, .hub-donation-card:hover, .hub-promo:hover, .hub-history-card:hover { transform: translateY(-2px); }
.hub-wallet-float { left: auto; right: 16px; }
.public-auth-topbar { gap: 18px; }
.public-auth-top-actions { min-width: 0; }
.public-auth-submit:disabled { cursor: wait; opacity: .68; transform: none; }

@media (max-width: 720px) {
  .hub-topbar { min-height: 68px; padding: 0 12px; }
  .hub-logo { min-width: 0; font-size: 16px; white-space: nowrap; }
  .hub-logo strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hub-responsible-link { display: none !important; }
  .hub-account-copy { display: none; }
  .hub-account-profile { gap: 5px; }
  .hub-nav-inner { gap: 7px; padding: 0 10px; }
  .hub-nav-status, .hub-nav-note { display: none; }
  .hub-content { padding: 12px 10px 76px; }
  .hub-layout { gap: 14px; }
  .hub-wallet-float { left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); width: auto; max-width: 320px; margin-left: auto; box-sizing: border-box; }
  .public-auth-topbar { min-height: 70px; padding: 0 16px; }
  .public-auth-brand { min-width: 0; font-size: 18px; }
  .public-auth-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .public-auth-top-actions { gap: 7px; }
  .public-auth-back { padding: 7px 8px; font-size: 11px; white-space: nowrap; }
  .public-auth-main { min-height: calc(100vh - 70px); padding: 22px 14px 30px; }
  .public-auth-card { padding: 27px 22px 24px; border-radius: 18px; }
}

@media (max-width: 480px) {
  .hub-topbar { gap: 8px; padding: 0 9px; }
  .hub-logo { font-size: 15px; }
  .hub-logo-mark { width: 30px; height: 30px; }
  .hub-top-links { gap: 2px; }
  .hub-lang-btn { min-width: 27px; padding-right: 4px; padding-left: 4px; }
  body.hub-mode .hub-top-links .hub-lang-btn {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 4px 6px;
  }
  .hub-account-signout { width: 44px; min-height: 44px; padding: 4px; font-size: 0; }
  .hub-account-signout i { margin: 0; font-size: 11px; }
  .hub-content { padding-right: 8px; padding-left: 8px; }
  .hub-donation-row { grid-template-columns: 34px 44px 34px minmax(0, 1fr); }
  .public-auth-topbar { align-items: center; padding: 0 12px; }
  .public-auth-brand { font-size: 16px; }
  .public-auth-brand .hub-logo-mark { width: 32px; height: 32px; }
  .public-auth-back { font-size: 0; }
  .public-auth-back i { margin: 0; font-size: 14px; }
  .public-auth-card { padding: 24px 18px 21px; }
  .public-auth-card h1 { font-size: 25px; }
}

@media (max-width: 400px) {
  body.hub-mode .hub-topbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    padding: 8px 9px;
  }
  body.hub-mode .hub-logo { flex: 1 1 100%; justify-content: center; }
  body.hub-mode .hub-top-links { width: 100%; justify-content: center; }
}

.config-form .config-switch-grid { gap: 12px; margin-bottom: 20px; }
.config-form .config-switch-field { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border: 1px solid rgba(120,104,244,.22); border-radius: 12px; background: rgba(31,41,55,.36); }
.config-form .config-switch-field > label:first-child { margin: 0; color: var(--admin-text, #e8eef7); font-size: 12px; font-weight: 700; }
.config-form .custom-switch { width: 44px; height: 24px; flex: 0 0 44px; }
.config-form .custom-switch span::after { width: 20px; height: 20px; }
.config-form .custom-switch input:checked + span::after { transform: translateX(20px); }
.config-form .custom-file-control { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 13px; border: 1px solid rgba(120,104,244,.5); border-radius: 9px; color: #fff; background: linear-gradient(135deg, #7868f4, #5042ce); cursor: pointer; font-weight: 700; }
.config-form .custom-file-control:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Keep the participant entry screen on the same blue visual language as the
   Hub. This comes last so the optional ticket theme cannot turn the login
   surface back into the cream administration palette. */
body.public-auth-mode .public-auth-shell {
  color: #f4f8ff !important;
  background: radial-gradient(circle at 15% 8%, rgba(39, 128, 232, .38), transparent 32%), radial-gradient(circle at 88% 90%, rgba(29, 78, 153, .48), transparent 38%), linear-gradient(145deg, #061326 0%, #0b2447 52%, #061326 100%) !important;
}
body.public-auth-mode .public-auth-topbar {
  color: #f4f8ff !important;
  background: rgba(4, 13, 28, .94) !important;
  border-bottom: 1px solid rgba(101, 164, 232, .3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28) !important;
}
body.public-auth-mode .public-auth-brand,
body.public-auth-mode .public-auth-brand:hover,
body.public-auth-mode .public-auth-brand strong { color: #fff !important; }
body.public-auth-mode .public-auth-brand .hub-logo-mark {
  color: #092044 !important;
  background: linear-gradient(145deg, #ffe36f, #c9962d) !important;
  box-shadow: 0 0 18px rgba(255, 214, 74, .24) !important;
}
body.public-auth-mode .public-auth-main { background: transparent !important; }
body.public-auth-mode .public-auth-card {
  color: #f4f8ff !important;
  border: 1px solid rgba(88, 153, 223, .58) !important;
  border-radius: 20px !important;
  background: linear-gradient(150deg, rgba(16, 44, 83, .97), rgba(7, 23, 47, .98)) !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}
body.public-auth-mode .public-auth-kicker { color: #69b5ff !important; }
body.public-auth-mode .public-auth-card h1 { color: #fff !important; }
body.public-auth-mode .public-auth-card > p,
body.public-auth-mode .public-auth-switch { color: #a9c2e3 !important; }
body.public-auth-mode .public-auth-form .form-group label { color: #dbeafe !important; }
body.public-auth-mode .public-auth-form .form-control {
  color: #f8fbff !important;
  border-color: #335b88 !important;
  background: #0a1b35 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2) !important;
}
body.public-auth-mode .public-auth-form .form-control::placeholder { color: #86a3c7 !important; }
body.public-auth-mode .public-auth-form .form-control:focus {
  border-color: #5daeff !important;
  box-shadow: 0 0 0 .2rem rgba(70, 155, 241, .22) !important;
}
body.public-auth-mode .public-auth-card .btn-toggle-auth-password { color: #8fb0d5 !important; }
body.public-auth-mode .public-auth-card .btn-toggle-auth-password:hover { color: #fff !important; }
body.public-auth-mode .public-auth-submit {
  color: #fff !important;
  border-color: #4da4f5 !important;
  background: linear-gradient(135deg, #2189ea, #154b9d) !important;
  box-shadow: 0 10px 20px rgba(10, 87, 174, .34) !important;
}
body.public-auth-mode .public-auth-submit:hover { filter: brightness(1.08); }
body.public-auth-mode .public-auth-switch a,
body.public-auth-mode .public-auth-legal a { color: #70bbff !important; }
body.public-auth-mode .public-auth-alert {
  color: #ffd4dc !important;
  border-color: rgba(244, 114, 132, .5) !important;
  background: rgba(127, 29, 49, .38) !important;
}

/* Final public Hub light theme.  The original light palette mixed the old
   pastel broadcast background with white, low-contrast cards.  Keep the same
   structure and actions, but give the light mode one calm blue surface,
   readable typography and consistent card treatment.  Every rule is scoped so
   the premium dark theme remains independent. */
body.hub-mode:not(.hub-dark-mode),
body.hub-mode:not(.hub-dark-mode) .content-wrapper {
  color: #172b49 !important;
  background: #eef4fb !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-app {
  color: #172b49 !important;
  background: #eef4fb !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-topbar {
  min-height: 68px;
  color: #5f708a !important;
  border-bottom: 1px solid #d9e4f1;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 6px 20px rgba(27, 57, 96, .08);
}
body.hub-mode:not(.hub-dark-mode) .hub-logo,
body.hub-mode:not(.hub-dark-mode) .hub-logo:hover {
  color: #17345c !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-logo-mark {
  color: #fff !important;
  background: linear-gradient(145deg, #2d7eea, #1550a4) !important;
  box-shadow: 0 7px 15px rgba(34, 102, 190, .24);
}
body.hub-mode:not(.hub-dark-mode) .hub-logo strong span { color: #ed6471 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-top-links a { color: #5f708a !important; }
body.hub-mode:not(.hub-dark-mode) .hub-top-links a:hover { color: #17345c !important; background: #edf4fc !important; }
body.hub-mode:not(.hub-dark-mode) .hub-top-links a:nth-child(2),
body.hub-mode:not(.hub-dark-mode) .hub-account-signout {
  color: #1d5db1 !important;
  border-color: #b9d2ef !important;
  background: #f7fbff !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-top-links .hub-register-link {
  color: #fff !important;
  border-color: #2169c5 !important;
  background: linear-gradient(135deg, #2f83e8, #1551a6) !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-account-avatar {
  color: #fff !important;
  background: linear-gradient(145deg, #2d7eea, #1550a4) !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-account-copy strong { color: #17345c !important; }
body.hub-mode:not(.hub-dark-mode) .hub-account-copy small { color: #7b8ca4 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-nav {
  min-height: 52px;
  background: #12335e !important;
  box-shadow: 0 4px 12px rgba(19, 57, 101, .16);
}
body.hub-mode:not(.hub-dark-mode) .hub-nav a { color: #c8d9ee !important; }
body.hub-mode:not(.hub-dark-mode) .hub-nav a:hover,
body.hub-mode:not(.hub-dark-mode) .hub-nav a.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, #2d7eea, #1e5bb0) !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-theme-toggle { color: #dbe9fa !important; }
body.hub-mode:not(.hub-dark-mode) .hub-theme-toggle span {
  border-color: #82a9d5 !important;
  background: #1a4678 !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-theme-toggle span::after { background: #d9eaff !important; }
body.hub-mode:not(.hub-dark-mode) .hub-theme-toggle input:checked + span::after { background: #ffd166 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-nav-status { color: #52657a !important; }
body.hub-mode:not(.hub-dark-mode) .hub-content {
  min-height: calc(100vh - 120px);
  background: linear-gradient(180deg, #eaf3fc 0%, #f7fafd 48%, #edf4fb 100%) !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-content::before,
body.hub-mode:not(.hub-dark-mode) .hub-content::after {
  opacity: .32;
  background: #fff !important;
  filter: blur(28px);
}
body.hub-mode:not(.hub-dark-mode) .hub-countdown-card {
  min-height: 220px;
  border: 1px solid #b6d1ee !important;
  background: linear-gradient(145deg, #0f3b73 0%, #1d66b5 100%) !important;
  box-shadow: 0 14px 28px rgba(22, 72, 132, .2) !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-live-label { color: #eaf4ff !important; }
body.hub-mode:not(.hub-dark-mode) .hub-live-label i,
body.hub-mode:not(.hub-dark-mode) .hub-ball-count i { color: #ffd166 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-countdown { color: #ffe08a !important; }
body.hub-mode:not(.hub-dark-mode) .hub-countdown span {
  border: 2px solid rgba(198, 225, 252, .65) !important;
  background: #092b55 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 16px rgba(2, 25, 54, .24);
  text-shadow: none !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-countdown b { color: #ffd166 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-countdown-card small { color: #c8def4 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-info-card,
body.hub-mode:not(.hub-dark-mode) .hub-live-round,
body.hub-mode:not(.hub-dark-mode) .hub-donation-card,
body.hub-mode:not(.hub-dark-mode) .hub-history-card,
body.hub-mode:not(.hub-dark-mode) .hub-daily-draws,
body.hub-mode:not(.hub-dark-mode) .hub-draws-page-header,
body.hub-mode:not(.hub-dark-mode) .hub-bottom-card {
  border: 1px solid #d4e1ef !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 12px 28px rgba(37, 75, 119, .1) !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-info-card { color: #234f86 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-info-card > div { border-color: #d9e6f3 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-info-card small { color: #607999 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-info-card strong { color: #206cc2 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-info-card > div:first-child strong { color: #d45b63 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-prizes { gap: 9px; }
body.hub-mode:not(.hub-dark-mode) .hub-prize-bar {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .25) !important;
  background: linear-gradient(135deg, #245e9f, #183f72) !important;
  box-shadow: 0 8px 18px rgba(24, 63, 114, .16) !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-prize-bar:nth-child(2) { background: linear-gradient(135deg, #197b70, #116054) !important; }
body.hub-mode:not(.hub-dark-mode) .hub-prize-bar:nth-child(3) { background: linear-gradient(135deg, #7255b6, #4d397f) !important; }
body.hub-mode:not(.hub-dark-mode) .hub-prize-bar strong { color: #ffe08a !important; }
body.hub-mode:not(.hub-dark-mode) .hub-accumulated { background: linear-gradient(135deg, #c86432, #963b2c) !important; }
body.hub-mode:not(.hub-dark-mode) .hub-accumulated strong { color: #fff1b0 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-accumulated span b { color: #6f321a !important; background: #ffd166 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-accumulated span small { color: #ffe6c8 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-card-title,
body.hub-mode:not(.hub-dark-mode) .hub-live-round h2,
body.hub-mode:not(.hub-dark-mode) .hub-daily-draws-heading h2,
body.hub-mode:not(.hub-dark-mode) .hub-draws-page-header h1 { color: #173d70 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-card-title a,
body.hub-mode:not(.hub-dark-mode) .hub-daily-draws-heading > a,
body.hub-mode:not(.hub-dark-mode) .hub-draws-page-header > a { color: #1e63b7 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-donation-card { padding: 14px !important; }
body.hub-mode:not(.hub-dark-mode) .hub-amount-button {
  color: #1c4d85 !important;
  border-color: #a9c8e9 !important;
  background: #f4f8fd !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-amount-button:hover,
body.hub-mode:not(.hub-dark-mode) .hub-amount-button.is-selected {
  color: #fff !important;
  border-color: #226bc2 !important;
  background: #226bc2 !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-donation-row > button:not(.hub-donate-button),
body.hub-mode:not(.hub-dark-mode) .hub-donation-row output,
body.hub-mode:not(.hub-dark-mode) .hub-donation-row > strong {
  border-color: #d3e0ed !important;
  background: #f8fbff !important;
  color: #244a78 !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-donation-row > button:not(.hub-donate-button):first-child,
body.hub-mode:not(.hub-dark-mode) .hub-donation-row > button:not(.hub-donate-button):nth-child(3) {
  color: #fff !important;
  border-color: #226bc2 !important;
  background: #226bc2 !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-donate-button,
body.hub-mode:not(.hub-dark-mode) .hub-ticket-button,
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-buy,
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-open,
body.hub-mode:not(.hub-dark-mode) .hub-live-open {
  color: #fff !important;
  border-color: #1d64bb !important;
  background: linear-gradient(135deg, #2d80e5, #1553a6) !important;
  box-shadow: 0 8px 16px rgba(29, 100, 187, .18);
}
body.hub-mode:not(.hub-dark-mode) .hub-donate-button:hover,
body.hub-mode:not(.hub-dark-mode) .hub-ticket-button:hover,
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-buy:hover,
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-open:hover,
body.hub-mode:not(.hub-dark-mode) .hub-live-open:hover { filter: brightness(1.06); }
body.hub-mode:not(.hub-dark-mode) .hub-donation-note,
body.hub-mode:not(.hub-dark-mode) .hub-daily-draws-heading p,
body.hub-mode:not(.hub-dark-mode) .hub-draws-page-header p,
body.hub-mode:not(.hub-dark-mode) .hub-live-round p { color: #6d819d !important; }
body.hub-mode:not(.hub-dark-mode) .hub-promo {
  border: 1px solid #d4e1ef !important;
  background: linear-gradient(135deg, #174d82, #1d8a76 60%, #d99b3d) !important;
  box-shadow: 0 12px 28px rgba(37, 75, 119, .12) !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-promo-configured { border-color: #d4e1ef !important; }
body.hub-mode:not(.hub-dark-mode) .hub-history-card li { color: #6d819d !important; border-color: #e2ebf4 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-history-card li strong { color: #15936b !important; }
body.hub-mode:not(.hub-dark-mode) .hub-live-round-strip,
body.hub-mode:not(.hub-dark-mode) .hub-live-participant-list li { border-color: #dbe7f3 !important; background: #f7fbff !important; }
body.hub-mode:not(.hub-dark-mode) .hub-live-round-strip { color: #5d7390 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-live-round-strip strong { color: #216bc0 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-live-participant-list li strong { color: #365477 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-row { color: #294665 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-row + .hub-daily-draw-row { border-color: #e2ebf4 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-time strong { color: #216bc0 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-time span,
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-date,
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-details span,
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-prize small { color: #7186a0 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-details strong { color: #274567 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-prize strong { color: #15936b !important; }
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-row.is-live { border-color: #9ed9c3 !important; background: #effaf5 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-row.is-live .hub-daily-draw-time strong { color: #10825d !important; }
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-closed-group { border-color: #dce7f2 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-closed-group details > summary { color: #5d7390 !important; border-color: #d5e2ef !important; background: #f7faff !important; }
body.hub-mode:not(.hub-dark-mode) .hub-daily-draw-closed-group details[open] > summary { color: #205da9 !important; border-color: #acc8e7 !important; background: #edf5ff !important; }
body.hub-mode:not(.hub-dark-mode) .hub-footer { color: #7186a0 !important; border-color: #d7e4f0 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-footer a { color: #216bc0 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-wallet-float-trigger {
  background: linear-gradient(135deg, #1d62b5, #2f83e8 64%, #5f9df0) !important;
  box-shadow: 0 10px 24px rgba(29, 98, 181, .27) !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-wallet-float-panel {
  border-color: #d4e1ef !important;
  background: rgba(255, 255, 255, .99) !important;
  box-shadow: 0 16px 36px rgba(37, 75, 119, .18) !important;
}
body.hub-mode:not(.hub-dark-mode) .hub-wallet-float-heading { color: #205da9 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-bottom-card strong { color: #274567 !important; }
body.hub-mode:not(.hub-dark-mode) .hub-bottom-card p { color: #7186a0 !important; }

@media (max-width: 760px) {
  body.hub-mode:not(.hub-dark-mode) .hub-topbar { min-height: 64px; }
  body.hub-mode:not(.hub-dark-mode) .hub-content { padding-top: 12px; }
  body.hub-mode:not(.hub-dark-mode) .hub-countdown-card { min-height: 178px; }
  body.hub-mode:not(.hub-dark-mode) .hub-daily-draws,
  body.hub-mode:not(.hub-dark-mode) .hub-draws-page-header { border-radius: 14px; }
  body.hub-mode:not(.hub-dark-mode) .hub-live-round-heading { flex-direction: column; }
  body.hub-mode:not(.hub-dark-mode) .hub-live-open { width: 100%; justify-content: center; }
}

/* Winner queue: keep the operational table inside the viewport and present
   each point as a readable card on narrow screens. */
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card {
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card > .card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 16px 22px;
  color: var(--admin-text);
  border-bottom-color: var(--admin-border);
  background: linear-gradient(135deg, var(--admin-surface-soft), var(--admin-surface));
  letter-spacing: .1px;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card > .card-header::before {
  content: '🏆';
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5d77a, #c7902e);
  box-shadow: 0 5px 12px rgba(199, 144, 46, .2);
  font-size: 15px;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card > .card-body { padding: 20px; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-toolbar {
  margin-bottom: 18px !important;
  padding: 10px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: var(--admin-surface-soft);
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-toolbar .btn-group { gap: 6px !important; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-toolbar .btn { box-shadow: none; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-summary { gap: 10px !important; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-stat {
  min-width: 0 !important;
  color: var(--admin-text);
  border-color: var(--admin-border) !important;
  border-radius: 13px !important;
  background: var(--admin-surface-soft) !important;
  box-shadow: 0 6px 16px rgba(30, 45, 78, .06);
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-stat small { color: var(--admin-muted) !important; letter-spacing: .4px; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-stat strong { color: var(--admin-text) !important; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-stat:nth-child(2) strong { color: #2e8bd4 !important; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-stat:nth-child(3) strong { color: #20a873 !important; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-info {
  margin: 0 0 18px;
  border: 1px solid #b8d8e8;
  border-radius: 13px;
  background: linear-gradient(135deg, #eef9ff, #e5f4fb);
  line-height: 1.55;
}
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-info {
  color: #c7d7ec;
  border-color: #294763;
  background: linear-gradient(135deg, #12253a, #101c2c);
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table-wrap {
  width: 100%;
  overflow-x: hidden;
  border: 0;
  border-radius: 14px;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table {
  width: 100%;
  min-width: 0 !important;
  margin-bottom: 0;
  table-layout: fixed;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table th,
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table th { padding: 11px 10px; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table td { height: auto; min-height: 68px; padding: 12px 10px; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table th:nth-child(1),
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table td:nth-child(1) { width: 7%; text-align: center; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table th:nth-child(2),
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table td:nth-child(2) { width: 23%; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table th:nth-child(3),
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table td:nth-child(3) { width: 11%; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table th:nth-child(4),
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table td:nth-child(4) { width: 31%; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table th:nth-child(5),
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table td:nth-child(5) { width: 9%; text-align: center; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table th:nth-child(6),
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table td:nth-child(6) { width: 19%; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .directed-matches-list { max-width: 100% !important; min-width: 0; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .directed-matches-list .badge { max-width: 100%; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card > .card-body { padding: 14px; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-toolbar { align-items: stretch !important; flex-direction: column; gap: 9px !important; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-toolbar > div,
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-toolbar .btn,
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-toolbar .btn-group { width: 100%; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-toolbar .btn-group { display: grid; grid-template-columns: 1fr; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-summary { display: grid !important; grid-template-columns: 1fr; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-stat { min-width: 0 !important; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table-wrap { overflow: visible; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table,
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table tbody,
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table tr,
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table td { display: block; width: 100% !important; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table { border: 0; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table thead { display: none; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table tbody { display: grid; gap: 10px; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table tbody tr {
    display: grid;
    /* The two-column version compressed nested badges into the same visual
       rows in narrow Admin WebViews. Stack each field so the status, value and
       directed matches remain readable at the actual viewport width. */
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'position' 'point' 'prize' 'situation' 'matches' 'percent';
    align-items: start;
    gap: 8px 12px;
    height: auto;
    min-height: 0;
    padding: 12px;
    border: 1px solid var(--admin-border);
    border-radius: 13px;
    background: var(--admin-surface-soft);
    box-shadow: 0 5px 14px rgba(30, 45, 78, .05);
  }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table tbody td { min-width: 0; min-height: 0; padding: 0; border: 0; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table tbody td:nth-child(1) { grid-area: position; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table tbody td:nth-child(2) { grid-area: point; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table tbody td:nth-child(3) { grid-area: prize; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table tbody td:nth-child(4) { grid-area: matches; padding-top: 7px; border-top: 1px solid var(--admin-border); }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table tbody td:nth-child(5) { grid-area: percent; text-align: right; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table tbody td:nth-child(6) { grid-area: situation; text-align: right; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .winner-queue-next-badge { max-width: 100%; margin: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .winner-queue-next-badge + .winner-sequence-position { display: inline-block; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table tbody td:nth-child(6) .badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
}

@media (max-width: 400px) {
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table tbody tr {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'position' 'point' 'prize' 'situation' 'matches' 'percent';
  }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-sequence-card .module-table tbody td:nth-child(6) { text-align: left; }
}

/* Configuration image fields: make an empty slot feel intentional and keep
   the default Bolada Bingo identity visible before a custom file is uploaded. */
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .config-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  margin: 0 0 10px;
  padding: 22px;
  color: var(--admin-muted);
  border: 1px dashed var(--admin-border);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--admin-surface-soft), var(--admin-surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 7px 18px rgba(30, 45, 78, .05);
  text-align: center;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .config-image-empty-banner {
  justify-content: flex-start;
  gap: 14px;
  text-align: left;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .config-image-empty-banner > i {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, #6f61e7, #3e88d5);
  box-shadow: 0 8px 16px rgba(74, 104, 202, .2);
  font-size: 18px;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .config-image-empty-banner > span,
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .config-default-logo-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .config-image-empty-banner strong,
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .config-default-logo-copy strong {
  color: var(--admin-text);
  font-size: 14px;
  font-weight: 800;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .config-image-empty-banner small,
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .config-default-logo-copy small {
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 1.4;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .config-image-empty-logo {
  gap: 13px;
  flex-direction: column;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .config-default-logo-mark {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  color: #211707;
  border: 2px solid rgba(255, 231, 159, .85);
  border-radius: 25px;
  background: radial-gradient(circle at 32% 25%, #fff6c8 0 9%, transparent 10%), linear-gradient(145deg, #ffe39a, #bf8a2e);
  box-shadow: 0 10px 22px rgba(189, 140, 50, .23), inset 0 2px 0 rgba(255, 255, 255, .7);
  font-size: 39px;
  font-weight: 900;
  letter-spacing: -.05em;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .config-default-logo-copy { align-items: center; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .hub-logo-fallback { font-size: 1.05em; font-weight: 900; line-height: 1; }

@media (max-width: 575.98px) {
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .config-image-empty { min-height: 150px; padding: 18px; }
}

body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-notice {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 18px;
  padding: 13px 16px;
  color: var(--admin-text);
  border: 1px solid #b9dfcc;
  border-radius: 14px;
  background: linear-gradient(135deg, #effcf5, #e5f7ef);
  box-shadow: 0 7px 17px rgba(32, 137, 91, .08);
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-notice.is-empty {
  border-color: #e6d9b8;
  background: linear-gradient(135deg, #fffaf0, #fff5dc);
  box-shadow: 0 7px 17px rgba(171, 125, 38, .07);
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(135deg, #21b77a, #16865b);
  box-shadow: 0 7px 14px rgba(30, 154, 102, .2);
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-notice.is-empty .winner-queue-next-icon {
  background: linear-gradient(135deg, #d5a23d, #ad7920);
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-notice > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-notice small {
  color: #20815c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-notice.is-empty small { color: #9a6a18; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-notice strong { color: var(--admin-text); font-size: 16px; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-notice em {
  color: var(--admin-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-order-item {
  display: inline-block;
  margin: 2px 5px 0 0;
  white-space: nowrap;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-order-item strong {
  color: #20815c;
  font-size: 11px;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-order-arrow {
  display: inline-block;
  margin-right: 5px;
  color: #75a78f;
}
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-notice {
  border-color: #275b48;
  background: linear-gradient(135deg, #102b22, #12251f);
  box-shadow: 0 7px 17px rgba(0, 0, 0, .16);
}
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-notice.is-empty {
  border-color: #5b4825;
  background: linear-gradient(135deg, #2a2112, #221b11);
}
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-notice small { color: #6bd3a3; }
body.admin-dark-mode:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-notice.is-empty small { color: #e5bd65; }
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 5px;
  padding: 4px 7px;
  color: #fff;
  border-radius: 999px;
  background: #1d9b69;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-badge + .winner-sequence-position { display: block; }

@media (max-width: 760px) {
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-notice { align-items: flex-start; padding: 12px; }
  body:not(.hub-mode):not(.player-mode):not(.public-auth-mode) .winner-queue-next-notice strong { font-size: 14px; }
}

/* Hub banners share one slot and rotate only when both images are configured. */
.hub-promo.hub-promo-carousel {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: #121212;
}
.hub-promo-carousel .hub-promo-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}
.hub-promo-carousel .hub-promo-slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
}
.hub-promo-carousel .hub-promo-slide img {
  position: absolute !important;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  object-fit: cover;
}
body.hub-dark-mode .hub-promo.hub-promo-carousel {
  background: #0c1527 !important;
  border-color: rgba(59, 130, 246, .3) !important;
}

/* Single configured banners use the same clean slot and crop any blank footer baked into the upload. */
.hub-promo.hub-promo-configured:not(.hub-promo-carousel) {
  position: relative;
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c1527 !important;
}
.hub-promo.hub-promo-configured:not(.hub-promo-carousel) img {
  position: absolute !important;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center top;
}

/* Admin light theme: keep the premium structure without the old cream
   reference palette. The dark theme remains intentionally untouched. */
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode),
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content-wrapper {
  color: #17243a !important;
  background: linear-gradient(180deg, #f8fafd 0%, #f1f5fa 100%) !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-header {
  color: #17243a !important;
  background: rgba(255, 255, 255, .94) !important;
  border-bottom-color: #e1e7ef !important;
  box-shadow: 0 8px 24px rgba(36, 55, 88, .07) !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-header .nav-link {
  color: #68778d !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .main-header .nav-link:hover {
  color: #315bc6 !important;
  background: #f0f4ff !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .content-header h1 {
  color: #17243a !important;
  font-weight: 750 !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .breadcrumb {
  color: #718096 !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .breadcrumb a {
  color: #315bc6 !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .card {
  border: 1px solid #e0e7f0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 14px 34px rgba(35, 55, 91, .08) !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .card-header {
  color: #17243a !important;
  border-bottom-color: #e5eaf1 !important;
  background: #fff !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .table-search input,
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .table-search button {
  color: #26364e !important;
  background: #fff !important;
  border-color: #d8e1ec !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .table-search input::placeholder {
  color: #98a5b6 !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .btn-primary {
  border-color: #3f5fd1 !important;
  background: linear-gradient(135deg, #4f6fe3, #3152bf) !important;
  box-shadow: 0 7px 16px rgba(55, 82, 191, .2) !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .btn-danger {
  border-color: #d9556b !important;
  background: linear-gradient(135deg, #e66b7d, #ca4058) !important;
  box-shadow: 0 7px 16px rgba(202, 64, 88, .15) !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) table {
  color: #17243a !important;
  border-color: #dfe6ef !important;
  border-radius: 13px !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) th {
  color: #65758b !important;
  border-color: #dfe6ef !important;
  background: #f3f6fa !important;
  font-weight: 750 !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) td {
  color: #24344c !important;
  border-color: #e4eaf1 !important;
  background: #fff !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) tbody tr:nth-child(odd) td {
  background: #fbfcfe !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) tbody tr:hover td {
  background: #f3f6ff !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .form-control,
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) select {
  color: #24344c !important;
  border-color: #d8e1ec !important;
  background: #fff !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .form-control:focus,
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) select:focus {
  border-color: #6280e6 !important;
  box-shadow: 0 0 0 .2rem rgba(79, 111, 227, .14) !important;
}
body.cashier-reference-mode:not(.admin-dark-mode):not(.hub-mode):not(.player-mode):not(.public-auth-mode) .pagination-row select {
  color: #24344c !important;
  border-color: #d8e1ec !important;
  background: #fff !important;
}

/* Prize readability: monetary results stay visually primary across the Hub,
   player wallet, result cards and winner announcements. */
.hub-prize-bar strong { font-size: clamp(24px, 2.8vw, 38px); line-height: 1; }
body.hub-mode #hub-shell .hub-prize-bar strong { font-size: clamp(24px, 2.8vw, 38px) !important; line-height: 1 !important; }
.player-prize strong { font-size: clamp(23px, 2.8vw, 30px); line-height: 1; }
.player-reference-prize > strong { font-size: clamp(20px, 2.6vw, 29px); line-height: 1; }
.player-winner-gift-list .winner-gift-amount { font-size: clamp(34px, 6vw, 60px); line-height: 1; }
.player-prize-announcement-value { font-size: clamp(48px, 10vw, 96px); line-height: .98; }
.hub-daily-draw-prize strong { font-size: clamp(18px, 2vw, 22px); line-height: 1; }
.hub-wallet-ticket-prize strong { font-size: clamp(12px, 1.5vw, 16px); line-height: 1; }
.hub-upcoming-draw b { font-size: clamp(14px, 1.5vw, 18px); line-height: 1; }
.winner-sequence-card .module-table td:nth-child(3) > strong { display: inline-block; margin-top: 3px; font-size: clamp(18px, 1.7vw, 25px); line-height: 1; }
.cambista-prize-card strong { font-size: clamp(22px, 3vw, 30px); line-height: 1; }
.cambista-prize-value { font-size: clamp(22px, 3vw, 30px); line-height: 1; }
.live-control-winner strong { font-size: 18px; line-height: 1; }

@media (max-width: 600px) {
  .hub-prize-bar strong { font-size: clamp(22px, 6vw, 30px); }
  body.hub-mode #hub-shell .hub-prize-bar strong { font-size: clamp(22px, 6vw, 32px) !important; }
  .player-prize strong { font-size: 22px; }
  .player-reference-prize > strong { font-size: 18px; }
  .player-winner-gift-list .winner-gift-amount { font-size: clamp(34px, 10vw, 50px); }
  .player-prize-announcement-value { font-size: clamp(44px, 17vw, 76px); }
  .hub-daily-draw-prize strong { font-size: 18px; }
  .hub-wallet-ticket-prize strong { font-size: 13px; }
  .hub-upcoming-draw b { font-size: 16px; }
  .winner-sequence-card .module-table td:nth-child(3) > strong { font-size: 20px; }
  .cambista-prize-card strong, .cambista-prize-value { font-size: 22px; }
  .live-control-winner strong { font-size: 17px; }
}

/* On the long draw list, keep the persistent wallet shortcut clear of the
   centered purchase action on phones and narrow WebViews. The full balance
   and wallet controls remain available after opening the shortcut. */
@media (max-width: 720px) {
  #hub-shell.hub-draws-page-app .hub-wallet-float {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    width: auto;
    max-width: 150px;
    margin-left: auto;
    box-sizing: border-box;
  }
  #hub-shell.hub-draws-page-app .hub-wallet-float-trigger {
    min-height: 52px;
    gap: 8px;
    padding: 6px 8px;
  }
  #hub-shell.hub-draws-page-app .hub-wallet-float-icon {
    width: 34px;
    height: 34px;
  }
  #hub-shell.hub-draws-page-app .hub-wallet-float-copy small {
    max-width: 82px;
  }
  #hub-shell.hub-draws-page-app .hub-wallet-float-chevron {
    display: none;
  }
  #hub-shell.hub-draws-page-app .hub-wallet-float.is-open {
    max-width: 350px;
  }
  #hub-shell.hub-draws-page-app .hub-daily-draws-heading {
    margin-bottom: 6px;
  }
  #hub-shell.hub-draws-page-app .hub-daily-draw-row {
    grid-template-columns: minmax(76px, .72fr) minmax(0, 1.28fr);
    gap: 7px 10px;
  }
  #hub-shell.hub-draws-page-app .hub-daily-draw-time {
    grid-column: 1;
    grid-row: 1;
  }
  #hub-shell.hub-draws-page-app .hub-daily-draw-details {
    grid-column: 2;
    grid-row: 1;
    align-items: flex-end;
    text-align: right;
  }
  #hub-shell.hub-draws-page-app .hub-daily-draw-prizes {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  #hub-shell.hub-draws-page-app .hub-daily-draw-action {
    grid-column: 1 / -1;
    grid-row: 3;
    align-self: center;
    justify-content: flex-end;
    min-width: 0;
    margin-top: 0;
  }
  #hub-shell.hub-draws-page-app .hub-daily-draw-buy,
  #hub-shell.hub-draws-page-app .hub-daily-draw-open,
  #hub-shell.hub-draws-page-app .hub-daily-draw-winners {
    width: auto;
    min-width: 108px;
    min-height: 44px;
  }
}
.user-internet-expense {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--admin-border, var(--border, #d3e1f3));
  border-radius: 12px;
}
.user-internet-expense legend {
  width: auto;
  padding: 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.user-internet-expense-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-weight: 600;
}
.user-internet-expense-toggle input { width: 18px; height: 18px; }
.user-internet-expense .form-grid { margin-bottom: 0; }
.user-internet-expense .module-note { margin-bottom: 0; }
