:root {
  --cu-card: linear-gradient(165deg, color-mix(in srgb, var(--hv-a, #3d7dff) 11%, rgba(10, 16, 30, 0.86)), rgba(6, 9, 16, 0.9));
  --cu-card-solid: rgba(10, 16, 30, 0.9);
  --cu-line: rgba(130, 180, 255, 0.16);
  --cu-line-hi: rgba(140, 205, 255, 0.5);
  --cu-text: #eaf1fb;
  --cu-mute: #93a3b8;
  --cu-soft: rgba(255, 255, 255, 0.045);
  --cu-shadow: 0 18px 44px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --cu-accent: linear-gradient(135deg, #2f6bff, #28c3ff);
  --cu-glow: rgba(60, 150, 255, 0.35);
  --cu-chip: rgba(95, 208, 255, 0.14);
  --cu-chip-text: #7fd4ff;
}

html[data-theme="light"] {
  --cu-card: linear-gradient(165deg, #ffffff, #eef4ff);
  --cu-card-solid: #ffffff;
  --cu-line: rgba(37, 99, 235, 0.16);
  --cu-line-hi: rgba(37, 99, 235, 0.45);
  --cu-text: #0b1d3f;
  --cu-mute: #4a5b74;
  --cu-soft: rgba(37, 99, 235, 0.06);
  --cu-shadow: 0 16px 38px rgba(30, 64, 130, 0.12), inset 0 1px 0 #fff;
  --cu-glow: rgba(37, 99, 235, 0.25);
  --cu-chip: rgba(37, 99, 235, 0.1);
  --cu-chip-text: #1d4ed8;
}

html[data-theme] body .py-5-nav { position: relative; }
html[data-theme] body :is(.py-5-nav, .balance-page:not(:has(.py-5-nav)), .tickets-page:not(:has(.py-5-nav)), .customer-dashboard-enhanced:not(:has(.py-5-nav))) { padding-top: 76px; padding-bottom: 120px; min-height: 0; }
html[data-theme] body :is(.balance-container, .tickets-container, .affiliate-container) { padding-top: 0; padding-bottom: 0; }
html[data-theme] body .py-5-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 560px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(520px 320px at 12% 0%, color-mix(in srgb, var(--hv-a, #3d7dff) 34%, transparent), transparent 70%),
    radial-gradient(480px 300px at 88% 8%, color-mix(in srgb, var(--hv-b, #35c8ff) 24%, transparent), transparent 70%),
    linear-gradient(rgba(120, 170, 255, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(120, 170, 255, 0.05) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 110px, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 110px, transparent 100%);
}
html[data-theme] body .py-5-nav > * { position: relative; z-index: 1; }

html[data-theme] body .customer-dashboard-enhanced,
html[data-theme] body .customer-invoices-enhanced,
html[data-theme] body .balance-container,
html[data-theme] body .tickets-container,
html[data-theme] body .tickets-page > .container,
html[data-theme] body .container.component:has(.sidebar-wrapper) { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
html[data-theme] body .affiliate-container { max-width: none; padding-left: 0; padding-right: 0; }

html[data-theme] body .dashboard-sidebar,
html[data-theme] body .invoices-sidebar,
html[data-theme] body .tickets-sidebar,
html[data-theme] body .balance-sidebar { position: sticky; top: 96px; align-self: start; }

html[data-theme] body .sidebar-wrapper {
  padding: 1.5rem 1.2rem 1.2rem;
  border: 1px solid var(--cu-line);
  border-radius: 26px;
  background: var(--cu-card);
  box-shadow: var(--cu-shadow);
}
html[data-theme] body .sidebar-wrapper:hover { border-color: var(--cu-line); box-shadow: var(--cu-shadow); }
html[data-theme] body .sidebar-header { margin-bottom: 1rem; text-align: center; }
html[data-theme] body .sidebar-avatar {
  display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  font-family: var(--gs-display); font-weight: 800; font-size: 26px; color: #fff; text-transform: uppercase;
  background: var(--cu-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hv-b, #35c8ff) 22%, transparent), 0 10px 28px var(--cu-glow);
}
html[data-theme] body .sidebar-title { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--cu-chip-text); margin-bottom: 6px; }
html[data-theme] body .sidebar-email { font-size: 0.82rem; color: var(--cu-mute); }
html[data-theme] body .sidebar-divider { background: var(--cu-line); margin-top: 1.1rem; }
html[data-theme] body .sidebar-nav { gap: 4px; }
html[data-theme] body .sidebar-nav-link {
  position: relative; padding: 12px 14px; border-radius: 14px; color: var(--cu-mute); font-weight: 600; background: transparent; border: 0; width: 100%;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html[data-theme] body .sidebar-nav-link:hover { color: var(--cu-text); background: var(--cu-soft); transform: translateX(4px); }
html[data-theme] body .sidebar-nav-link.active {
  color: var(--cu-text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--hv-a, #3d7dff) 34%, transparent), color-mix(in srgb, var(--hv-b, #35c8ff) 16%, transparent));
  box-shadow: inset 0 0 0 1px var(--cu-line-hi), 0 8px 24px var(--cu-glow);
}
html[data-theme] body .sidebar-nav-link.active::before { content: ''; position: absolute; left: -1px; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--cu-accent); box-shadow: 0 0 12px var(--cu-glow); }
html[data-theme] body .sidebar-nav-link.active .sidebar-nav-icon { color: var(--cu-chip-text); }

html[data-theme] body .page-title,
html[data-theme] body .balance-title,
html[data-theme] body .affiliate-title,
html[data-theme] body .tickets-title {
  font-family: var(--gs-display); font-weight: 800; letter-spacing: -0.03em; color: var(--cu-text); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; text-transform: none;
}
html[data-theme] body .page-subtitle { color: var(--cu-mute); }
html[data-theme] body .simple-greeting, html[data-theme] body .greeting-text { color: var(--cu-chip-text); border-color: var(--cu-line); }
html[data-theme] body .balance-title-icon, html[data-theme] body .affiliate-title-icon, html[data-theme] body .history-title-icon, html[data-theme] body .table-title-icon, html[data-theme] body .card-label-icon { color: var(--cu-chip-text); }
html[data-theme] body .featured-title, html[data-theme] body .history-title, html[data-theme] body .table-title { color: var(--cu-text); font-family: var(--gs-display); font-weight: 800; letter-spacing: -0.01em; }

html[data-theme] body .metric-card,
html[data-theme] body .featured-section,
html[data-theme] body .action-card,
html[data-theme] body .action-link-card,
html[data-theme] body .invoice-card,
html[data-theme] body .info-card,
html[data-theme] body .balance-info-card,
html[data-theme] body .affiliate-info-card,
html[data-theme] body .history-section,
html[data-theme] body .table-section,
html[data-theme] body .not-enrolled-card,
html[data-theme] body .empty-state,
html[data-theme] body .card.p-4,
html[data-theme] body .ticket-messages-container,
html[data-theme] body .sidebar-wrapper.p-4 {
  border: 1px solid var(--cu-line);
  border-radius: 22px;
  background: var(--cu-card);
  box-shadow: var(--cu-shadow);
  color: var(--cu-text);
}
html[data-theme] body .metric-card, html[data-theme] body .action-card, html[data-theme] body .invoice-card, html[data-theme] body .info-card, html[data-theme] body .balance-info-card, html[data-theme] body .affiliate-info-card {
  position: relative; overflow: hidden; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
html[data-theme] body .metric-card::before, html[data-theme] body .balance-info-card::before, html[data-theme] body .affiliate-info-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--hv-b, #35c8ff), transparent); opacity: 0.55;
}
html[data-theme] body .metric-card:hover, html[data-theme] body .action-card:hover, html[data-theme] body .invoice-card:hover, html[data-theme] body .info-card:hover {
  transform: translateY(-4px); border-color: var(--cu-line-hi); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3), 0 0 36px var(--cu-glow);
}
html[data-theme="light"] body .metric-card:hover, html[data-theme="light"] body .action-card:hover, html[data-theme="light"] body .invoice-card:hover, html[data-theme="light"] body .info-card:hover { box-shadow: 0 20px 44px rgba(30, 64, 130, 0.16), 0 0 30px var(--cu-glow); }

html[data-theme] body .metric-icon,
html[data-theme] body .action-icon,
html[data-theme] body .featured-icon,
html[data-theme] body .info-icon,
html[data-theme] body .action-link-icon,
html[data-theme] body .not-enrolled-icon {
  color: var(--cu-chip-text); background: var(--cu-chip); border: 1px solid var(--cu-line); border-radius: 14px;
}
html[data-theme] body .metric-label, html[data-theme] body .card-label, html[data-theme] body .order-compact-label { color: var(--cu-mute); letter-spacing: 0.1em; }
html[data-theme] body .metric-value, html[data-theme] body .card-value { color: var(--cu-text); font-family: var(--gs-display); font-weight: 800; letter-spacing: -0.02em; }
html[data-theme] body .card-description, html[data-theme] body .empty-text, html[data-theme] body .empty-hint, html[data-theme] body .empty-message, html[data-theme] body .not-enrolled-text, html[data-theme] body .invoice-date, html[data-theme] body .product-variant, html[data-theme] body .info-text { color: var(--cu-mute); }
html[data-theme] body .invoice-id, html[data-theme] body .invoice-product, html[data-theme] body .product-name, html[data-theme] body .invoice-price, html[data-theme] body .order-compact-product, html[data-theme] body .not-enrolled-title, html[data-theme] body .action-text { color: var(--cu-text); }
html[data-theme] body .invoice-header { background: var(--cu-soft); border-bottom: 1px solid var(--cu-line); }
html[data-theme] body .invoice-footer, html[data-theme] body .invoice-body { border-color: var(--cu-line); }
html[data-theme] body .invoice-item { background: var(--cu-soft); border: 1px solid var(--cu-line); border-radius: 14px; color: var(--cu-text); }
html[data-theme] body .invoice-price { font-family: var(--gs-display); font-weight: 800; }

html[data-theme] body .status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; border: 1px solid transparent; background: var(--cu-chip); color: var(--cu-chip-text); }
html[data-theme] body .status-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
html[data-theme] body .status-badge.status-completed { background: rgba(70, 210, 150, 0.14); color: #4fe0a4; border-color: rgba(70, 210, 150, 0.3); }
html[data-theme] body .status-badge.status-pending, html[data-theme] body .status-badge.status-processing { background: rgba(255, 190, 70, 0.14); color: #ffc65a; border-color: rgba(255, 190, 70, 0.3); }
html[data-theme] body .status-badge.status-cancelled, html[data-theme] body .status-badge.status-refunded, html[data-theme] body .status-badge.status-failed, html[data-theme] body .status-badge.status-expired { background: rgba(255, 100, 110, 0.14); color: #ff7b85; border-color: rgba(255, 100, 110, 0.3); }
html[data-theme] body .status-badge.status-partially_completed { background: rgba(95, 208, 255, 0.14); color: #7fd4ff; border-color: rgba(95, 208, 255, 0.3); }
html[data-theme="light"] body .status-badge.status-completed { color: #0e8a5c; }
html[data-theme="light"] body .status-badge.status-pending, html[data-theme="light"] body .status-badge.status-processing { color: #a86a00; }
html[data-theme="light"] body .status-badge.status-cancelled, html[data-theme="light"] body .status-badge.status-refunded, html[data-theme="light"] body .status-badge.status-failed, html[data-theme="light"] body .status-badge.status-expired { color: #c4313d; }
html[data-theme="light"] body .status-badge.status-partially_completed { color: #0b6aa8; }

html[data-theme] body .action-btn,
html[data-theme] body .order-view-compact-btn,
html[data-theme] body .affiliate-action-btn,
html[data-theme] body .topup-btn,
html[data-theme] body .modal-btn-cancel {
  border: 1px solid var(--cu-line); border-radius: 14px; background: var(--cu-soft); color: var(--cu-text); font-weight: 700;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}
html[data-theme] body .action-btn:hover,
html[data-theme] body .order-view-compact-btn:hover,
html[data-theme] body .affiliate-action-btn:hover,
html[data-theme] body .topup-btn:hover {
  transform: translateY(-2px); color: #fff; border-color: transparent; background: var(--cu-accent); box-shadow: 0 12px 28px var(--cu-glow);
}
html[data-theme] body .ticket-send-btn { border: 0; border-radius: 14px; background: var(--cu-accent); color: #fff; font-weight: 700; box-shadow: 0 10px 26px var(--cu-glow); }
html[data-theme] body .ticket-send-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

html[data-theme] body .history-thead, html[data-theme] body .affiliate-thead, html[data-theme] body .table thead { background: var(--cu-soft); }
html[data-theme] body .history-th, html[data-theme] body .affiliate-th, html[data-theme] body .table th { color: var(--cu-mute); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; border-color: var(--cu-line); }
html[data-theme] body .history-td, html[data-theme] body .affiliate-td, html[data-theme] body .table td { color: var(--cu-text); border-color: var(--cu-line); background: transparent; }
html[data-theme] body .history-tr, html[data-theme] body .affiliate-tr, html[data-theme] body .table tbody tr { transition: background 0.2s ease; }
html[data-theme] body .history-tr:hover, html[data-theme] body .affiliate-tr:hover, html[data-theme] body .table tbody tr:hover { background: var(--cu-soft); }
html[data-theme] body .transaction-mobile-card, html[data-theme] body .referred-mobile-card, html[data-theme] body .ticket-mobile-card { border: 1px solid var(--cu-line); border-radius: 16px; background: var(--cu-soft); color: var(--cu-text); }
html[data-theme] body .transaction-detail-label { color: var(--cu-mute); }
html[data-theme] body .transaction-detail-value, html[data-theme] body .referred-email { color: var(--cu-text); }
html[data-theme] body .affiliate-link-container { border: 1px dashed var(--cu-line-hi); border-radius: 16px; background: var(--cu-soft); }
html[data-theme] body .affiliate-link-text { color: var(--cu-chip-text); }

html[data-theme] body .form-control, html[data-theme] body .ticket-textarea {
  border: 1px solid var(--cu-line); border-radius: 14px; background: var(--cu-soft); color: var(--cu-text);
}
html[data-theme] body .form-control:focus, html[data-theme] body .ticket-textarea:focus { border-color: var(--cu-line-hi); box-shadow: 0 0 0 4px var(--cu-glow); background: var(--cu-soft); color: var(--cu-text); }
html[data-theme] body .ticket-input-area { border-color: var(--cu-line) !important; }
html[data-theme] body .ticket-message-content { width: fit-content; max-width: 88%; padding: 12px 16px; border-radius: 16px; background: var(--cu-soft); border: 1px solid var(--cu-line); color: var(--cu-text); }
html[data-theme] body .ticket-avatar-placeholder, html[data-theme] body .ticket-avatar-icon { background: var(--cu-accent) !important; color: #fff; }
html[data-theme] body .ticket-time-ago { color: var(--cu-mute); }
html[data-theme] body .ticket-sender-name { color: var(--cu-text); }

html[data-theme] body .danger-section-subtle { border-top: 1px solid var(--cu-line); }

@media (max-width: 1023px) {
  html[data-theme] body .dashboard-sidebar,
  html[data-theme] body .invoices-sidebar,
  html[data-theme] body .tickets-sidebar,
  html[data-theme] body .balance-sidebar { position: static; }
  html[data-theme] body .customer-dashboard-enhanced,
  html[data-theme] body .customer-invoices-enhanced,
  html[data-theme] body .balance-container,
  html[data-theme] body .tickets-container,
  html[data-theme] body .container.component:has(.sidebar-wrapper) { padding-left: 16px; padding-right: 16px; }
  html[data-theme] body :is(.py-5-nav, .balance-page:not(:has(.py-5-nav)), .tickets-page:not(:has(.py-5-nav)), .customer-dashboard-enhanced:not(:has(.py-5-nav))) { padding-top: 44px; padding-bottom: 88px; }
  html[data-theme] body .sidebar-wrapper { padding: 1rem; border-radius: 22px; }
  html[data-theme] body .sidebar-header { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; text-align: left; margin-bottom: 0.75rem; }
  html[data-theme] body .sidebar-avatar { grid-row: span 2; margin: 0; width: 48px; height: 48px; font-size: 20px; }
  html[data-theme] body .sidebar-title { margin: 0; }
  html[data-theme] body .sidebar-divider { grid-column: 1 / -1; margin-top: 0.9rem; }
  html[data-theme] body .sidebar-nav { display: flex; flex-direction: row; gap: 8px; overflow-x: auto; margin: 0 -4px; padding: 2px 4px 4px; scrollbar-width: none; }
  html[data-theme] body .sidebar-nav::-webkit-scrollbar { display: none; }
  html[data-theme] body .sidebar-nav-item { flex: none; }
  html[data-theme] body .sidebar-nav-link { width: auto; white-space: nowrap; padding: 10px 14px; }
  html[data-theme] body .sidebar-nav-link:hover { transform: none; }
  html[data-theme] body .sidebar-nav-link.active::before { display: none; }
}

html[data-theme] body .text-end .ticket-message-content { margin-left: auto; text-align: left; border-color: var(--cu-line-hi); background: linear-gradient(135deg, color-mix(in srgb, var(--hv-a, #3d7dff) 24%, transparent), color-mix(in srgb, var(--hv-b, #35c8ff) 10%, transparent)); }
html[data-theme] body .action-link-card:hover { transform: translateY(-3px); }

html[data-theme] body :is(.dashboard-wrapper, .invoices-wrapper, .balance-grid, .tickets-grid) > * { min-width: 0; }
@media (max-width: 1023px) {
  html[data-theme] body :is(.dashboard-wrapper, .invoices-wrapper, .balance-grid, .tickets-grid) { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1024px) {
  html[data-theme] body :is(.dashboard-wrapper, .invoices-wrapper, .balance-grid, .tickets-grid) { grid-template-columns: 280px minmax(0, 1fr); }
}

html[data-theme] body .table { --bs-table-bg: transparent; --bs-table-color: var(--cu-text); --bs-table-border-color: var(--cu-line); --bs-table-hover-bg: var(--cu-soft); margin-bottom: 0; }
html[data-theme] body .table > :not(caption) > * > * { background-color: transparent; color: var(--cu-text); border-bottom-color: var(--cu-line); padding: 14px 12px; }
html[data-theme] body .table thead > tr > th { background-color: var(--cu-soft); color: var(--cu-mute); }
html[data-theme] body .table a { color: var(--cu-chip-text); font-weight: 700; text-decoration: none; transition: color 0.2s ease; }
html[data-theme] body .table a:hover { color: var(--cu-text); text-decoration: underline; text-underline-offset: 3px; }
html[data-theme] body .card.p-4 h1, html[data-theme] body .card.p-4 h2, html[data-theme] body .card.p-4 h3, html[data-theme] body .card.p-4 h4, html[data-theme] body .card.p-4 h5 { font-family: var(--gs-display); font-weight: 800; letter-spacing: -0.02em; color: var(--cu-text); }
html[data-theme] body .text-muted { color: var(--cu-mute) !important; }

html[data-theme] body .trk { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; counter-reset: trk; }
html[data-theme] body .trk li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 2px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--cu-mute); }
html[data-theme] body .trk li + li::before { content: ''; position: absolute; top: 11px; right: 50%; width: 100%; height: 3px; border-radius: 3px; background: var(--cu-line); z-index: 0; }
html[data-theme] body .trk li i { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--cu-line-hi); background: var(--cu-card-solid); display: grid; place-items: center; }
html[data-theme] body .trk li.done { color: var(--cu-text); }
html[data-theme] body .trk li.done i { border-color: transparent; background: linear-gradient(135deg, #2f6bff, #28c3ff); box-shadow: 0 0 16px var(--cu-glow); }
html[data-theme] body .trk li.done i::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
html[data-theme] body .trk li.done + li::before, html[data-theme] body .trk li.done::before { background: linear-gradient(90deg, #2f6bff, #28c3ff); }
html[data-theme] body .trk li.now { color: var(--cu-chip-text); }
html[data-theme] body .trk li.now i { border-color: #28c3ff; animation: trkPulse 1.8s ease-in-out infinite; }
html[data-theme] body .trk li.now i::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #28c3ff; }
html[data-theme] body .trk li.fail { color: #ff7b85; }
html[data-theme] body .trk li.fail i { border-color: #ff7b85; }
html[data-theme] body .trk li.fail i::after { content: ' d7'; color: #ff7b85; font-size: 18px; line-height: 1; margin-top: -2px; }
@keyframes trkPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(40, 195, 255, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(40, 195, 255, 0); } }
html[data-theme] body .trk-note { margin: 12px 0 0; font-size: 12.5px; color: var(--cu-mute); text-align: center; }
html[data-theme] body .invoice-track { padding: 18px 24px 4px; }
html[data-theme] body .order-showcase-compact .trk { margin-bottom: 14px; }
@media (prefers-reduced-motion: reduce) { html[data-theme] body .trk li.now i { animation: none; } }

html[data-theme] body .dx-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; padding: 26px 28px; border-radius: 28px; border: 1px solid var(--cu-line-hi); overflow: hidden; background: linear-gradient(120deg, color-mix(in srgb, var(--hv-a, #3d7dff) 34%, rgba(8, 12, 24, 0.9)), color-mix(in srgb, var(--hv-b, #35c8ff) 14%, rgba(8, 12, 24, 0.92))); box-shadow: var(--cu-shadow), 0 0 50px var(--cu-glow); }
html[data-theme="light"] body .dx-hero { background: linear-gradient(120deg, #dbe8ff, #e6f6ff); }
html[data-theme] body .dx-hero::after { content: ''; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(127, 227, 255, 0.35), transparent); pointer-events: none; }
html[data-theme] body .dx-hero-id { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; min-width: 0; }
html[data-theme] body .dx-av { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-family: var(--gs-display); font-weight: 800; font-size: 28px; color: #fff; text-transform: uppercase; background: var(--cu-accent); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12), 0 12px 30px var(--cu-glow); }
html[data-theme] body .dx-hero h2 { margin: 2px 0 2px; font-family: var(--gs-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; color: var(--cu-text); }
html[data-theme] body .dx-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cu-chip-text); }
html[data-theme] body .dx-hero small { display: block; color: var(--cu-mute); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
html[data-theme] body .dx-cta { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; background: var(--cu-accent); color: #fff; font-weight: 800; font-size: 14.5px; text-decoration: none; box-shadow: 0 12px 30px var(--cu-glow); transition: transform 0.2s, filter 0.2s; }
html[data-theme] body .dx-cta:hover { transform: translateY(-2px); filter: brightness(1.1); color: #fff; }

html[data-theme] body .dx-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; margin: 20px 0; align-items: start; }
html[data-theme] body .dx-stack { display: grid; gap: 20px; }
html[data-theme] body .dx-card { padding: 22px; border-radius: 24px; border: 1px solid var(--cu-line); background: var(--cu-card); box-shadow: var(--cu-shadow); color: var(--cu-text); }
html[data-theme] body .dx-watch { margin-bottom: 20px; }
html[data-theme] body .dx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
html[data-theme] body .dx-head h3 { margin: 0; font-family: var(--gs-display); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: var(--cu-text); }
html[data-theme] body .dx-head a, html[data-theme] body .dx-head button { appearance: none; border: 0; background: transparent; padding: 0; font: 700 13px inherit; font-family: inherit; color: var(--cu-chip-text); text-decoration: none; cursor: pointer; }
html[data-theme] body .dx-head a:hover, html[data-theme] body .dx-head button:hover { text-decoration: underline; text-underline-offset: 3px; }
html[data-theme] body .dx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
html[data-theme] body .dx-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; text-decoration: none; color: var(--cu-text); transition: background 0.2s, transform 0.2s; }
html[data-theme] body .dx-row:hover { background: var(--cu-soft); transform: translateX(3px); color: var(--cu-text); }
html[data-theme] body .dx-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--cu-chip); color: var(--cu-chip-text); border: 1px solid var(--cu-line); }
html[data-theme] body .dx-main { min-width: 0; }
html[data-theme] body .dx-main b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme] body .dx-main small { display: block; margin-top: 2px; color: var(--cu-mute); font-size: 12.5px; }
html[data-theme] body .dx-amt { min-width: 70px; text-align: right; font-family: var(--gs-display); font-weight: 800; font-size: 14px; }
html[data-theme] body .dx-empty { margin: 8px 0; color: var(--cu-mute); }
html[data-theme] body .dx-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html[data-theme] body .dx-tile { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 18px; border: 1px solid var(--cu-line); background: var(--cu-soft); color: var(--cu-text); font-weight: 700; font-size: 13.5px; text-decoration: none; transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), border-color 0.2s, box-shadow 0.25s; }
html[data-theme] body .dx-tile i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--cu-chip); color: var(--cu-chip-text); transition: background 0.2s, color 0.2s; }
html[data-theme] body .dx-tile:hover { transform: translateY(-4px); border-color: var(--cu-line-hi); box-shadow: 0 14px 30px var(--cu-glow); color: var(--cu-text); }
html[data-theme] body .dx-tile:hover i { background: var(--cu-accent); color: #fff; }
html[data-theme] body .dx-help p { margin: 0 0 16px; color: var(--cu-mute); font-size: 13.5px; line-height: 1.55; }
html[data-theme] body .dx-help-actions { display: flex; gap: 10px; flex-wrap: wrap; }
html[data-theme] body .dx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 14px; background: var(--cu-accent); color: #fff; font-weight: 800; font-size: 13.5px; text-decoration: none; transition: transform 0.2s, filter 0.2s; }
html[data-theme] body .dx-btn:hover { transform: translateY(-2px); filter: brightness(1.1); color: #fff; }
html[data-theme] body .dx-btn-ghost { width: 46px; padding: 0; background: var(--cu-soft); border: 1px solid var(--cu-line); color: var(--cu-chip-text); font-size: 20px; }
html[data-theme] body .dx-btn-ghost:hover { background: var(--cu-chip); color: var(--cu-text); }
html[data-theme] body .dx-watch-list { display: flex; flex-wrap: wrap; gap: 10px; }
html[data-theme] body .dx-watch-chip { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--cu-line); background: var(--cu-soft); color: var(--cu-text); font-weight: 700; font-size: 13.5px; text-decoration: none; }
html[data-theme] body .dx-watch-chip:hover { border-color: var(--cu-line-hi); color: var(--cu-text); }
html[data-theme] body .dx-watch-dot { width: 8px; height: 8px; border-radius: 50%; background: #ffc65a; box-shadow: 0 0 10px #ffc65a; animation: gsBreath 1.8s ease-in-out infinite; }
html[data-theme] body .dashboard-main .gs-rv { margin: 20px 0; }
@media (max-width: 900px) {
  html[data-theme] body .dx-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  html[data-theme] body .dx-hero { padding: 20px; border-radius: 22px; }
  html[data-theme] body .dx-cta { width: 100%; justify-content: center; }
  html[data-theme] body .dx-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  html[data-theme] body .dx-row .dx-amt { display: none; }
}

/* roomier layout: pages fill the screen, bigger paddings */
html[data-theme] body :is(.py-5-nav, .balance-page:not(:has(.py-5-nav)), .tickets-page:not(:has(.py-5-nav)), .customer-dashboard-enhanced:not(:has(.py-5-nav))) { min-height: calc(100vh - 76px); padding-top: 96px; padding-bottom: 150px; }
html[data-theme] body :is(.dashboard-wrapper, .invoices-wrapper, .balance-grid, .tickets-grid) { gap: 40px; }

html[data-theme] body .sidebar-card, html[data-theme] body .dashboard-sidebar > .sidebar-card { height: 100%; }
html[data-theme] body .sidebar-wrapper { display: flex; flex-direction: column; min-height: min(660px, calc(100vh - 220px)); padding: 32px 22px 24px; }
html[data-theme] body .sidebar-header { margin-bottom: 1.4rem; }
html[data-theme] body .sidebar-avatar { width: 72px; height: 72px; font-size: 30px; margin-bottom: 18px; }
html[data-theme] body .sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 8px; }
html[data-theme] body .sidebar-nav-link { padding: 15px 16px; font-size: 15px; }
html[data-theme] body .sidebar-nav-item:last-child { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--cu-line); }

html[data-theme] body :is(.metric-card) { padding: 26px 24px; }
html[data-theme] body :is(.featured-section, .history-section, .table-section, .info-card, .balance-info-card, .affiliate-info-card, .not-enrolled-card, .dx-card, .card.p-4) { padding: 34px; }
html[data-theme] body .metrics-grid { gap: 20px; margin-bottom: 8px; }
html[data-theme] body :is(.featured-section, .dx-hero, .dx-cols, .history-section, .table-section) { margin-bottom: 28px; }
html[data-theme] body .balance-cards-row, html[data-theme] body .affiliate-cards-row { gap: 24px; }
html[data-theme] body .invoices-list { display: flex; flex-direction: column; gap: 24px; }
html[data-theme] body .invoice-header { padding: 24px 30px; }
html[data-theme] body .invoice-track { padding: 26px 30px 8px; }
html[data-theme] body .invoice-body { padding: 26px 30px; }
html[data-theme] body :is(.history-th, .affiliate-th, .table th) { padding: 18px 16px; }
html[data-theme] body :is(.history-td, .affiliate-td, .table td) { padding: 20px 16px; }
html[data-theme] body :is(.page-header, .balance-header, .affiliate-header, .tickets-header) { margin-bottom: 38px; padding-bottom: 8px; }
html[data-theme] body .topup-buttons { gap: 16px; }
html[data-theme] body .topup-btn { padding: 20px 16px; }
html[data-theme] body .dx-row { padding: 14px 12px; }
html[data-theme] body .dx-tile { padding: 18px; }
html[data-theme] body .ticket-messages-container { min-height: 460px; }

@media (max-width: 1023px) {
  html[data-theme] body :is(.py-5-nav, .balance-page:not(:has(.py-5-nav)), .tickets-page:not(:has(.py-5-nav)), .customer-dashboard-enhanced:not(:has(.py-5-nav))) { min-height: calc(100vh - 64px); padding-top: 52px; padding-bottom: 110px; }
  html[data-theme] body :is(.dashboard-wrapper, .invoices-wrapper, .balance-grid, .tickets-grid) { gap: 28px; }
  html[data-theme] body .sidebar-wrapper { min-height: 0; padding: 18px; display: block; }
  html[data-theme] body .sidebar-nav { flex-direction: row; }
  html[data-theme] body .sidebar-nav-item:last-child { margin-top: 0; padding-top: 0; border-top: 0; }
  html[data-theme] body .sidebar-nav-link { padding: 11px 14px; font-size: 14px; }
  html[data-theme] body .sidebar-avatar { width: 52px; height: 52px; font-size: 22px; margin-bottom: 0; }
  html[data-theme] body :is(.featured-section, .history-section, .table-section, .info-card, .balance-info-card, .affiliate-info-card, .not-enrolled-card, .dx-card, .card.p-4) { padding: 24px; }
  html[data-theme] body .invoice-header { padding: 18px 20px; }
  html[data-theme] body .invoice-track { padding: 20px 20px 4px; }
  html[data-theme] body .invoice-body { padding: 20px; }
}
html[data-theme] body .metric-card { padding: 24px 20px; gap: 14px; }
html[data-theme] body .metric-value { font-size: clamp(1.05rem, 1.55vw, 1.4rem); white-space: nowrap; overflow: visible; text-overflow: clip; }
html[data-theme] body .metric-card { gap: 12px; padding: 22px 18px; }
html[data-theme] body .metric-icon { width: 40px; height: 40px; flex: none; }
html[data-theme] body .metric-value { font-size: clamp(1rem, 1.4vw, 1.25rem); }
html[data-theme] body .metric-details { min-width: 0; }

/* ===== login modal ===== */
html[data-theme] body .modal-backdrop.show { opacity: 0.78; background: #020611; }
html[data-theme="light"] body .modal-backdrop.show { background: #1b2c52; opacity: 0.5; }
html[data-theme] body #customer-login-modal .modal-dialog { max-width: 980px; transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.05), opacity 0.35s ease; }
html[data-theme] body #customer-login-modal.fade .modal-dialog { transform: translateY(30px) scale(0.96); opacity: 0; }
html[data-theme] body #customer-login-modal.show .modal-dialog { transform: none; opacity: 1; }
html[data-theme] body .login-modal-content { position: relative; border-radius: 32px; border: 1px solid var(--cu-line-hi); background: var(--cu-card-solid); overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 80px var(--cu-glow); }
html[data-theme="light"] body .login-modal-content { box-shadow: 0 36px 90px rgba(30, 64, 130, 0.3); }
html[data-theme] body .login-modal-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 520px; }
html[data-theme] body .login-modal-form-section { display: flex; flex-direction: column; justify-content: center; padding: 56px 52px; background: var(--cu-card); }
html[data-theme] body .login-modal-header { margin-bottom: 30px; }
html[data-theme] body .login-modal-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--cu-line-hi); background: var(--cu-chip); color: var(--cu-chip-text); font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; }
html[data-theme] body .login-modal-badge svg { color: inherit; }
html[data-theme] body .login-modal-title { margin: 20px 0 10px; font-family: var(--gs-display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.7rem); letter-spacing: -0.035em; line-height: 1.05; color: var(--cu-text); }
html[data-theme] body .login-modal-subtitle { margin: 0; color: var(--cu-mute); font-size: 15px; line-height: 1.55; }
html[data-theme] body .login-form-group { margin-bottom: 18px; }
html[data-theme] body .login-form-label { display: block; margin-bottom: 4px; font-size: 13.5px; font-weight: 800; color: var(--cu-text); }
html[data-theme] body .login-form-help { margin: 0 0 12px; font-size: 13px; color: var(--cu-mute); }
html[data-theme] body .login-form-input { width: 100%; height: 56px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--cu-line); background: var(--cu-soft); color: var(--cu-text); font: 600 16px inherit; font-family: inherit; outline: 0; transition: border-color 0.2s, box-shadow 0.25s, background 0.2s; }
html[data-theme] body .login-form-input::placeholder { color: var(--cu-mute); opacity: 0.8; }
html[data-theme] body .login-form-input:focus { border-color: var(--cu-line-hi); box-shadow: 0 0 0 5px var(--cu-glow); background: var(--cu-soft); }
html[data-theme] body .login-form-error { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 100, 110, 0.12); color: #ff7b85; font-size: 13.5px; font-weight: 600; }
html[data-theme="light"] body .login-form-error { color: #c4313d; }
html[data-theme] body .login-form-button { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; border: 0; border-radius: 18px; background: linear-gradient(135deg, #2f6bff, #28c3ff); color: #fff; font: 800 16px inherit; font-family: inherit; cursor: pointer; box-shadow: 0 16px 38px rgba(47, 140, 255, 0.45); transition: transform 0.2s, filter 0.2s, box-shadow 0.2s; }
html[data-theme] body .login-form-button::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%); transform: translateX(-130%); animation: gsfGlint 4.5s ease-in-out 1s infinite; }
html[data-theme] body .login-form-button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 20px 46px rgba(47, 140, 255, 0.6); }
html[data-theme] body .login-form-button:disabled { opacity: 0.6; cursor: wait; }
html[data-theme] body .login-otp-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
html[data-theme] body .login-otp-input { width: 100%; height: 62px; text-align: center; border-radius: 16px; border: 1px solid var(--cu-line); background: var(--cu-soft); color: var(--cu-text); font: 800 24px var(--gs-display); outline: 0; transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; }
html[data-theme] body .login-otp-input:focus { border-color: var(--cu-line-hi); box-shadow: 0 0 0 5px var(--cu-glow); transform: translateY(-2px); }

html[data-theme] body .login-modal-close { position: absolute; top: 18px; right: 18px; z-index: 5; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(6, 12, 26, 0.55); color: #fff; cursor: pointer; transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.4, 1), background 0.2s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html[data-theme] body .login-modal-close:hover { transform: rotate(90deg) scale(1.08); background: rgba(6, 12, 26, 0.8); }
html[data-theme="light"] body .login-modal-close { border-color: rgba(255, 255, 255, 0.5); }

html[data-theme] body #customer-login-modal.show .login-modal-form-section > .login-modal-header > *,
html[data-theme] body #customer-login-modal.show .login-modal-body { animation: lgUp 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
html[data-theme] body #customer-login-modal.show .login-modal-header > :nth-child(1) { animation-delay: 0.15s; }
html[data-theme] body #customer-login-modal.show .login-modal-header > :nth-child(2) { animation-delay: 0.22s; }
html[data-theme] body #customer-login-modal.show .login-modal-header > :nth-child(3) { animation-delay: 0.29s; }
html[data-theme] body #customer-login-modal.show .login-modal-body { animation-delay: 0.36s; }
@keyframes lgUp { from { opacity: 0; transform: translateY(16px); } }

/* art panel */
html[data-theme] body .lg-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; background: linear-gradient(150deg, #123a99 0%, #0b1f5c 45%, #061230 100%); isolation: isolate; }
html[data-theme="light"] body .lg-art { background: linear-gradient(150deg, #2563eb 0%, #1d4ed8 50%, #0b2a7a 100%); }
.lg-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(160, 200, 255, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(160, 200, 255, 0.09) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(80% 70% at 60% 30%, #000, transparent); mask-image: radial-gradient(80% 70% at 60% 30%, #000, transparent); }
.lg-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); animation: lgDrift 12s ease-in-out infinite alternate; }
.lg-orb.a { width: 320px; height: 320px; right: -80px; top: -70px; background: rgba(40, 195, 255, 0.55); }
.lg-orb.b { width: 280px; height: 280px; left: -90px; bottom: 40px; background: rgba(80, 120, 255, 0.5); animation-delay: -5s; }
@keyframes lgDrift { to { transform: translate(40px, 30px) scale(1.15); } }
.lg-cards { position: absolute; left: 50%; top: 44%; width: 230px; height: 260px; transform: translate(-50%, -50%); }
.lg-cards span { position: absolute; inset: 0; border-radius: 28px; border: 1px solid rgba(190, 225, 255, 0.45); background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 24px 60px rgba(0, 10, 40, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.lg-cards .c1 { transform: rotate(-14deg) translateX(-34px); animation: lgFloat 6s ease-in-out infinite alternate; }
.lg-cards .c2 { transform: rotate(9deg) translateX(30px); animation: lgFloat 7s ease-in-out -2s infinite alternate-reverse; }
.lg-cards .c3 { display: grid; place-items: center; background: linear-gradient(160deg, rgba(40, 80, 190, 0.85), rgba(10, 25, 80, 0.92)); animation: lgFloat 5s ease-in-out -1s infinite alternate; }
.lg-cards .c3::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%); transform: translateX(-130%); animation: gsfGlint 4.5s ease-in-out infinite; }
.lg-cards .c3 img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 0 40px rgba(60, 170, 255, 0.8); }
@keyframes lgFloat { to { translate: 0 -12px; } }
.lg-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lg-points li { display: flex; align-items: center; gap: 10px; color: rgba(235, 245, 255, 0.92); font-size: 14px; font-weight: 700; }
.lg-points li::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }

@media (max-width: 860px) {
  html[data-theme] body .login-modal-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  html[data-theme] body .lg-art { display: none; }
  html[data-theme] body .login-modal-form-section { padding: 44px 26px 32px; }
  html[data-theme] body .login-modal-content { border-radius: 26px; }
  html[data-theme] body .login-modal-close { background: var(--cu-soft); border-color: var(--cu-line); color: var(--cu-text); top: 14px; right: 14px; }
  html[data-theme] body .login-otp-input { height: 54px; font-size: 21px; }
  html[data-theme] body .login-modal-form-section::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #2f6bff, #28c3ff, #7fe3ff); }
}
@media (prefers-reduced-motion: reduce) { .lg-orb, .lg-cards span, .lg-cards .c3::after, html[data-theme] body .login-form-button::after { animation: none !important; } }