/* ============================================================================
   GDTG UNIFIED DESIGN TOKENS & RESPONSIVE FIXES
   Fixes Light/Dark mode clashes in Admin pages and Client responsive UI.
   ============================================================================ */

/* ----- 1. ADMIN THEME NORMALIZATION (Overrides legacy hardcoded white #ffffff) ----- */
body.admin-shell[data-theme="dark"],
[data-theme="dark"] .main-content,
[data-theme="dark"] .admin-main-content {
    --admin-surface-bg: #0f172a;
    --admin-card-bg: rgba(30, 41, 59, 0.85);
    --admin-card-border: rgba(148, 163, 184, 0.16);
    --admin-input-bg: rgba(15, 23, 42, 0.9);
    --admin-text-main: #f1f5f9;
    --admin-text-muted: #94a3b8;
    --admin-table-head: rgba(15, 23, 42, 0.95);
    --admin-hover-bg: rgba(59, 130, 246, 0.12);
}

body.admin-shell[data-theme="light"],
[data-theme="light"] .main-content,
[data-theme="light"] .admin-main-content {
    --admin-surface-bg: #f8fafc;
    --admin-card-bg: #ffffff;
    --admin-card-border: #e2e8f0;
    --admin-input-bg: #ffffff;
    --admin-text-main: #0f172a;
    --admin-text-muted: #475569;
    --admin-table-head: #f1f5f9;
    --admin-hover-bg: #f1f5f9;
}

/* Override legacy admin-content.css / admin-cccd.css body & sidebar hijacks */
[data-theme="dark"] body,
html[data-theme="dark"] body {
    background: var(--bg-primary, #0a0f1e) !important;
    color: var(--text-primary, #f1f5f9) !important;
}

[data-theme="light"] body,
html[data-theme="light"] body {
    background: var(--bg-primary, #f8fafc) !important;
    color: var(--text-primary, #0f172a) !important;
}

html[data-theme="dark"] .admin-sidebar {
    background: var(--sidebar-bg, linear-gradient(180deg, #0a0f1e 0%, #0f172a 100%)) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .admin-sidebar-header {
    background: rgba(15, 23, 42, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .admin-sidebar-logo-text h3,
html[data-theme="dark"] .sidebar-menu-item {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .sidebar-menu-title,
html[data-theme="dark"] .admin-sidebar-logo-text p {
    color: #94a3b8 !important;
    background: transparent !important;
    border-left-color: rgba(56, 189, 248, 0.45) !important;
}

html[data-theme="dark"] .admin-sidebar-menu {
    background: transparent !important;
}

html[data-theme="dark"] .sidebar-menu-section {
    border-bottom-color: rgba(148, 163, 184, 0.14) !important;
}

html[data-theme="dark"] .sidebar-menu-icon {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .sidebar-menu-item:hover {
    background: rgba(59, 130, 246, 0.14) !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .sidebar-menu-item:hover .sidebar-menu-icon,
html[data-theme="dark"] .sidebar-menu-item.active,
html[data-theme="dark"] .sidebar-menu-item.active .sidebar-menu-icon {
    color: #38bdf8 !important;
}

html[data-theme="dark"] .sidebar-menu-item.active {
    background: rgba(56, 189, 248, 0.16) !important;
}

html[data-theme="dark"] .admin-sidebar-footer {
    background: rgba(15, 23, 42, 0.96) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.16) !important;
}

html[data-theme="dark"] .sidebar-user-profile,
html[data-theme="dark"] .sidebar-user-profile:hover {
    background: rgba(30, 41, 59, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

html[data-theme="dark"] .sidebar-user-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .sidebar-user-role {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .sidebar-logout-btn {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
}

html[data-theme="dark"] .sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.26) !important;
}

html[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(15, 23, 42, 0.97) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .mobile-nav-item {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .mobile-nav-item:hover,
html[data-theme="dark"] .mobile-nav-item.active {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.14) !important;
}

html[data-theme="dark"] .mobile-header {
    background: rgba(15, 23, 42, 0.96) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .sidebar-toggle-btn {
    background: #1e293b !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
    color: #f1f5f9 !important;
}

html[data-theme="light"] .admin-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .admin-sidebar-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .admin-sidebar-logo-text h3,
html[data-theme="light"] .sidebar-menu-item {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

html[data-theme="light"] .sidebar-close-btn {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}

/* Fix hardcoded white inline cards & tables inside Admin Content / CCCD / Log / CardRecharge / CheckAcc / Deposits */
html[data-theme="dark"] .main-content .page-header,
html[data-theme="dark"] .main-content .dashboard-header,
html[data-theme="dark"] .main-content .action-card,
html[data-theme="dark"] .main-content .users-table-container,
html[data-theme="dark"] .main-content .user-card,
html[data-theme="dark"] .main-content .filter-section,
html[data-theme="dark"] .main-content .filter-bar,
html[data-theme="dark"] .main-content .stat-card,
html[data-theme="dark"] .main-content .summary-card,
html[data-theme="dark"] .main-content .summary-section,
html[data-theme="dark"] .main-content .fee-settings-container,
html[data-theme="dark"] .main-content .content-card,
html[data-theme="dark"] .main-content .tabs-container,
html[data-theme="dark"] .main-content .voucher-filter-bar,
html[data-theme="dark"] .main-content .category-card,
html[data-theme="dark"] .main-content .category-item,
html[data-theme="dark"] .main-content .voucher-card,
html[data-theme="dark"] .main-content .voucher-item,
html[data-theme="dark"] .main-content .fee-item,
html[data-theme="dark"] .main-content .setting-item,
html[data-theme="dark"] .main-content .toggle-item,
html[data-theme="dark"] .main-content .deposit-card,
html[data-theme="dark"] .main-content .deposits-table-container,
html[data-theme="dark"] .main-content .view-toggle,
html[data-theme="dark"] .main-content .account-info-box,
html[data-theme="dark"] .main-content .deposit-detail-group,
html[data-theme="dark"] .main-content .transaction-card,
html[data-theme="dark"] .main-content .transaction-detail-group,
html[data-theme="dark"] .main-content .account-info,
html[data-theme="dark"] .main-content .table-container,
html[data-theme="dark"] .main-content .table-wrapper,
html[data-theme="dark"] .main-content .system-content-item,
html[data-theme="dark"] .main-content .shop-card,
html[data-theme="dark"] .main-content .modal-container,
html[data-theme="dark"] .admin-main-content .page-header,
html[data-theme="dark"] .admin-main-content .dashboard-header,
html[data-theme="dark"] .admin-main-content .action-card,
html[data-theme="dark"] .admin-main-content .users-table-container,
html[data-theme="dark"] .admin-main-content .user-card,
html[data-theme="dark"] .admin-main-content .filter-section,
html[data-theme="dark"] .admin-main-content .filter-bar,
html[data-theme="dark"] .admin-main-content .stat-card,
html[data-theme="dark"] .admin-main-content .summary-card,
html[data-theme="dark"] .admin-main-content .fee-settings-container,
html[data-theme="dark"] .admin-main-content .content-card,
html[data-theme="dark"] .admin-main-content .tabs-container,
html[data-theme="dark"] .admin-main-content .voucher-filter-bar,
html[data-theme="dark"] .admin-main-content .category-card,
html[data-theme="dark"] .admin-main-content .category-item,
html[data-theme="dark"] .admin-main-content .voucher-card,
html[data-theme="dark"] .admin-main-content .voucher-item,
html[data-theme="dark"] .admin-main-content .fee-item,
html[data-theme="dark"] .admin-main-content .setting-item,
html[data-theme="dark"] .admin-main-content .toggle-item,
html[data-theme="dark"] .admin-main-content .deposit-card,
html[data-theme="dark"] .admin-main-content .deposits-table-container,
html[data-theme="dark"] .admin-main-content .view-toggle,
html[data-theme="dark"] .admin-main-content .account-info-box,
html[data-theme="dark"] .admin-main-content .deposit-detail-group,
html[data-theme="dark"] .admin-main-content .transaction-card,
html[data-theme="dark"] .admin-main-content .transaction-detail-group,
html[data-theme="dark"] .admin-main-content .account-info,
html[data-theme="dark"] .admin-main-content .table-container,
html[data-theme="dark"] .admin-main-content .table-wrapper,
html[data-theme="dark"] .admin-main-content .system-content-item,
html[data-theme="dark"] .admin-main-content .shop-card,
html[data-theme="dark"] .admin-main-content .modal-container {
    background: rgba(30, 41, 59, 0.88) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .main-content .users-table-header {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .main-content .user-row {
    border-color: rgba(148, 163, 184, 0.12) !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .main-content .user-row:hover {
    background: rgba(51, 65, 85, 0.55) !important;
}

html[data-theme="dark"] .main-content .user-name,
html[data-theme="dark"] .main-content .user-detail-value,
html[data-theme="dark"] .main-content .user-detail-group-value,
html[data-theme="dark"] .main-content .shop-name,
html[data-theme="dark"] .main-content .form-value,
html[data-theme="dark"] .main-content .action-title,
html[data-theme="dark"] .main-content .dashboard-section-title,
html[data-theme="dark"] .main-content .header-user-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .main-content .shop-info,
html[data-theme="dark"] .main-content .user-detail-label,
html[data-theme="dark"] .main-content .user-row-cell,
html[data-theme="dark"] .main-content .action-desc {
    color: #cbd5e1 !important;
}

.page-header .btn,
.page-header .btn-secondary,
.page-header .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

html[data-theme="dark"] #emailSettingsContainer > div {
    background: rgba(30, 41, 59, 0.88) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .main-content .form-input,
html[data-theme="dark"] .main-content .fee-input,
html[data-theme="dark"] .main-content .filter-input,
html[data-theme="dark"] .main-content .filter-select,
html[data-theme="dark"] .main-content .filter-select-inline,
html[data-theme="dark"] .main-content textarea,
html[data-theme="dark"] .main-content select,
html[data-theme="dark"] .admin-main-content .form-input,
html[data-theme="dark"] .admin-main-content .fee-input,
html[data-theme="dark"] .admin-main-content .filter-input,
html[data-theme="dark"] .admin-main-content .filter-select,
html[data-theme="dark"] .admin-main-content .filter-select-inline,
html[data-theme="dark"] .admin-main-content textarea,
html[data-theme="dark"] .admin-main-content select {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .main-content h1,
html[data-theme="dark"] .main-content h2,
html[data-theme="dark"] .main-content h3,
html[data-theme="dark"] .main-content h4,
html[data-theme="dark"] .main-content .page-title,
html[data-theme="dark"] .main-content .page-title span,
html[data-theme="dark"] .main-content .section-title,
html[data-theme="dark"] .main-content .form-label,
html[data-theme="dark"] .main-content .stat-value,
html[data-theme="dark"] .main-content .summary-value,
html[data-theme="dark"] .main-content .category-name,
html[data-theme="dark"] .main-content .voucher-name,
html[data-theme="dark"] .main-content .fee-label,
html[data-theme="dark"] .main-content .setting-label,
html[data-theme="dark"] .main-content .content-title,
html[data-theme="dark"] .main-content .modal-title,
html[data-theme="dark"] .main-content .deposit-id,
html[data-theme="dark"] .main-content .deposit-detail-value,
html[data-theme="dark"] .main-content .deposit-detail-group-value,
html[data-theme="dark"] .main-content .account-info-value,
html[data-theme="dark"] .main-content .transaction-title,
html[data-theme="dark"] .main-content .transaction-detail-value,
html[data-theme="dark"] .main-content .transaction-detail-group-value,
html[data-theme="dark"] .admin-main-content h1,
html[data-theme="dark"] .admin-main-content h2,
html[data-theme="dark"] .admin-main-content h3,
html[data-theme="dark"] .admin-main-content h4,
html[data-theme="dark"] .admin-main-content .page-title,
html[data-theme="dark"] .admin-main-content .page-title span,
html[data-theme="dark"] .admin-main-content .section-title,
html[data-theme="dark"] .admin-main-content .form-label,
html[data-theme="dark"] .admin-main-content .stat-value,
html[data-theme="dark"] .admin-main-content .summary-value {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

html[data-theme="dark"] .main-content .tab-btn:not(.active),
html[data-theme="dark"] .main-content .view-toggle-btn:not(.active),
html[data-theme="dark"] .main-content .pagination-btn:not(.active),
html[data-theme="dark"] .admin-main-content .tab-btn:not(.active),
html[data-theme="dark"] .admin-main-content .view-toggle-btn:not(.active) {
    background: rgba(15, 23, 42, 0.72) !important;
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

html[data-theme="dark"] .main-content .btn-secondary,
html[data-theme="dark"] .admin-main-content .btn-secondary {
    background: rgba(51, 65, 85, 0.9) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
}

html[data-theme="dark"] .main-content .btn-cancel,
html[data-theme="dark"] .admin-main-content .btn-cancel {
    background: rgba(30, 41, 59, 0.9) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
}

html[data-theme="dark"] .main-content .page-header-subtitle,
html[data-theme="dark"] .main-content .fee-description,
html[data-theme="dark"] .main-content .stat-label,
html[data-theme="dark"] .main-content .filter-label,
html[data-theme="dark"] .main-content .summary-label,
html[data-theme="dark"] .main-content .deposit-detail-label,
html[data-theme="dark"] .main-content .deposit-detail-group-label,
html[data-theme="dark"] .main-content .account-info-label,
html[data-theme="dark"] .main-content .transaction-detail-label,
html[data-theme="dark"] .main-content .transaction-detail-group-label,
html[data-theme="dark"] .main-content .voucher-meta,
html[data-theme="dark"] .main-content .category-meta,
html[data-theme="dark"] .main-content .category-description,
html[data-theme="dark"] .main-content .pagination-info,
html[data-theme="dark"] .main-content .form-hint,
html[data-theme="dark"] .main-content .section-description,
html[data-theme="dark"] .admin-main-content .page-header-subtitle,
html[data-theme="dark"] .admin-main-content .fee-description,
html[data-theme="dark"] .admin-main-content .stat-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .main-content table th,
html[data-theme="dark"] .admin-main-content table th {
    background: rgba(15, 23, 42, 0.95) !important;
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
}

html[data-theme="dark"] .main-content table td,
html[data-theme="dark"] .admin-main-content table td {
    color: #e2e8f0 !important;
    border-color: rgba(148, 163, 184, 0.12) !important;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        padding-bottom: 78px !important;
    }
}

/* Light mode full surface & text normalization across ALL Admin pages */
html[data-theme="light"] .main-content,
html[data-theme="light"] .admin-main-content {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .main-content .stat-card,
html[data-theme="light"] .main-content .action-card,
html[data-theme="light"] .main-content .dashboard-header,
html[data-theme="light"] .main-content .filter-section,
html[data-theme="light"] .main-content .filter-bar,
html[data-theme="light"] .main-content .summary-section,
html[data-theme="light"] .main-content .summary-card,
html[data-theme="light"] .main-content .table-container,
html[data-theme="light"] .main-content .table-wrapper,
html[data-theme="light"] .main-content .deposits-table-container,
html[data-theme="light"] .main-content .deposit-card,
html[data-theme="light"] .main-content .order-card,
html[data-theme="light"] .main-content .shop-card,
html[data-theme="light"] .main-content .transaction-card,
html[data-theme="light"] .main-content .user-card,
html[data-theme="light"] .main-content .users-table-container,
html[data-theme="light"] .main-content .content-card,
html[data-theme="light"] .main-content .tabs-container,
html[data-theme="light"] .main-content .fee-settings-container,
html[data-theme="light"] .main-content .page-header,
html[data-theme="light"] .admin-main-content .stat-card,
html[data-theme="light"] .admin-main-content .filter-bar,
html[data-theme="light"] .admin-main-content .table-container,
html[data-theme="light"] .admin-main-content .shop-card,
html[data-theme="light"] .admin-main-content .page-header {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .main-content h1,
html[data-theme="light"] .main-content h2,
html[data-theme="light"] .main-content h3,
html[data-theme="light"] .main-content h4,
html[data-theme="light"] .main-content .stat-value,
html[data-theme="light"] .main-content .summary-value,
html[data-theme="light"] .main-content .shop-name,
html[data-theme="light"] .main-content .user-name,
html[data-theme="light"] .main-content .card-order-id,
html[data-theme="light"] .main-content .card-info-value,
html[data-theme="light"] .main-content .deposit-id,
html[data-theme="light"] .main-content .deposit-detail-value,
html[data-theme="light"] .main-content .transaction-title,
html[data-theme="light"] .main-content .action-title,
html[data-theme="light"] .main-content .dashboard-section-title,
html[data-theme="light"] .main-content .dashboard-header-text h1,
html[data-theme="light"] .main-content .page-title span,
html[data-theme="light"] .admin-main-content h1,
html[data-theme="light"] .admin-main-content h2,
html[data-theme="light"] .admin-main-content h3,
html[data-theme="light"] .admin-main-content .stat-value,
html[data-theme="light"] .admin-main-content .shop-name,
html[data-theme="light"] .admin-main-content .page-title span {
    color: #0f172a !important;
    -webkit-text-fill-color: initial !important;
}

html[data-theme="light"] .main-content table th,
html[data-theme="light"] .main-content .users-table-header,
html[data-theme="light"] .admin-main-content table th {
    background: #f8fafc !important;
    color: #1e293b !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .main-content table td,
html[data-theme="light"] .main-content .user-row-cell,
html[data-theme="light"] .main-content .shop-info,
html[data-theme="light"] .admin-main-content table td {
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .main-content .page-header-subtitle,
html[data-theme="light"] .main-content .stat-label,
html[data-theme="light"] .main-content .card-info-label,
html[data-theme="light"] .main-content .user-detail-label,
html[data-theme="light"] .main-content .action-desc {
    color: #475569 !important;
}

html[data-theme="light"] .main-content .btn-secondary {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .main-content .btn-primary {
    color: #ffffff !important;
}

/* Admin Responsive Grid & Table Safety (PC, Tablet, Mobile) */
.main-content .table-responsive,
.main-content .table-container,
.admin-main-content .table-responsive,
.admin-main-content .table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
    .main-content,
    .admin-main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    .page-header,
    .page-header-actions,
    .filter-bar,
    .filter-section {
        flex-wrap: wrap;
        gap: 12px;
    }
    .stats-dashboard {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .stats-dashboard {
        grid-template-columns: 1fr !important;
    }
    .page-header,
    .content-container {
        padding: 16px !important;
    }
    .page-title span {
        font-size: 1.25rem !important;
    }
}

/* ----- 2. CLIENT SHARED UI, LIGHT/DARK POLICY READABILITY & RESPONSIVE NAV ----- */
body.light-theme .policy-page::before {
    background: radial-gradient(circle at top, rgba(241, 245, 249, 0.94) 0%, rgba(248, 250, 252, 0.98) 100%) !important;
}

body.light-theme .policy-page .page-title h1 {
    color: #1d4ed8 !important;
    text-shadow: none !important;
}

body.light-theme .policy-page .content-container {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .policy-page .content-body {
    color: #1e293b !important;
}

body.light-theme .policy-page .content-body h1,
body.light-theme .policy-page .content-body h2,
body.light-theme .policy-page .content-body h3,
body.light-theme .policy-page .content-body h4 {
    color: #1e40af !important;
}

.policy-nav-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.policy-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(96, 165, 250, 0.35);
    background: rgba(30, 41, 59, 0.75);
    color: #e2e8f0;
    transition: all 0.2s ease;
}

.policy-nav-link:hover,
.policy-nav-link.active {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-1px);
}

body.light-theme .policy-nav-link {
    background: #ffffff;
    color: #1e293b;
    border-color: #cbd5e1;
}

body.light-theme .policy-nav-link.active,
body.light-theme .policy-nav-link:hover {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: #ffffff;
    border-color: transparent;
}

/* Crisp Avatar Initials Circle when photo unavailable */
.gdtg-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
    user-select: none;
}

/* Ensure Ghep-Anh & Category cards align badge neatly */
.service-price-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: rgba(6, 182, 212, 0.16);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.35);
}

body.light-theme .service-price-pill {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #7dd3fc;
}

/* Mobile bottom quick-nav padding safety */
@media (max-width: 768px) {
    .mobile-safe-footer {
        padding-bottom: 80px !important;
    }
}
