* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            -webkit-tap-highlight-color: transparent;
        }

        html, body {
            width: 100%;
            max-width: 100%;
            background: #f1f5f9;
            color: #0f172a;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* App Layout */
        .app-layout {
            display: flex;
            width: 100%;
            max-width: 100%;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
        }

        /* Top Header */
        .dashboard-header {
            position: sticky;
            top: 0;
            z-index: 990;
            background: #ffffff;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(16, 52, 120, 0.08);
            box-shadow: 0 2px 10px rgba(16, 52, 120, 0.04);
            width: 100%;
        }

        .header-brand-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            min-width: 0;
        }

        .header-logo-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            object-fit: cover;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .brand-text-block {
            display: flex;
            flex-direction: column;
        }

        .brand-logo-title {
            font-size: 15px;
            font-weight: 900;
            line-height: 1.15;
            letter-spacing: -0.3px;
        }

        .brand-logo-title .text-digital { color: #0084ff; }
        .brand-logo-title .text-scratch { color: #ff1a75; }
        .brand-logo-title .text-design { color: #0070e0; }

        .brand-tagline-row {
            display: flex;
            gap: 4px;
            font-size: 8.5px;
            font-weight: 700;
            letter-spacing: 0.2px;
            margin-top: 1px;
        }

        .brand-tagline-row .tag-c { color: #5c6b7e; }
        .brand-tagline-row .tag-e { color: #5c6b7e; }
        .brand-tagline-row .tag-r { color: #5c6b7e; }
        .brand-tagline-row .tag-g { color: #5c6b7e; }

        .header-actions-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .header-profile-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 2px;
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .header-profile-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, #8327db 0%, #6012b8 100%);
            color: #ffffff;
            font-size: 13.5px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(131, 39, 219, 0.35);
        }

        /* Left Sidebar & Mobile Drawer */
        .sidebar {
            width: 255px;
            background: #0b1727;
            color: #94a3b8;
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            border-right: 1px solid rgba(255, 255, 255, 0.06);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
        }

        .sidebar-header {
            padding: 22px 18px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .slide-close-btn {
            background: rgba(255, 255, 255, 0.08);
            border: none;
            color: #ffffff;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 15px;
            transition: background 0.15s ease;
            flex-shrink: 0;
        }

        .slide-close-btn:hover {
            background: rgba(255, 255, 255, 0.18);
        }

        .slide-bar-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(4, 15, 36, 0.6);
            backdrop-filter: blur(3px);
            z-index: 99998;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .slide-bar-backdrop.open {
            opacity: 1;
            pointer-events: auto;
        }

        .user-avatar {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: linear-gradient(135deg, #ff5722 0%, #ff8a00 100%);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 17px;
            box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
            flex-shrink: 0;
        }

        .user-meta {
            overflow: hidden;
        }

        .user-meta-name {
            font-size: 15px;
            font-weight: 800;
            color: #ffffff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .user-meta-id {
            font-size: 12px;
            font-weight: 700;
            color: #38bdf8;
            margin-top: 2px;
        }

        .sidebar-menu {
            padding: 20px 12px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex: 1;
        }

        .sidebar-link,
        .slide-nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 12px;
            color: #94a3b8;
            text-decoration: none;
            font-size: 14px;
            font-weight: 700;
            transition: all 0.2s ease;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            cursor: pointer;
            box-sizing: border-box;
        }

        .sidebar-link svg,
        .slide-nav-item svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        .sidebar-link:hover,
        .slide-nav-item:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #ffffff;
        }

        .sidebar-link.active,
        .slide-nav-item.active {
            background: linear-gradient(90deg, #f95722 0%, #ff7a00 100%);
            color: #ffffff;
            box-shadow: 0 4px 14px rgba(249, 87, 34, 0.35);
        }

        .sidebar-link.logout {
            margin-top: auto;
            color: #f87171;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 0;
            padding-top: 16px;
        }

        .sidebar-link.logout:hover {
            background: rgba(248, 113, 113, 0.1);
            color: #fca5a5;
        }

        /* Collapsible Privacy Subnav */
        .slide-nav-group {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        .slide-nav-toggle {
            justify-content: flex-start;
            position: relative;
        }

        .slide-collapse-icon {
            margin-left: auto;
            font-size: 16px;
            font-weight: 800;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.08);
            color: #94a3b8;
            transition: all 0.2s ease;
        }

        .slide-nav-group.open .slide-collapse-icon {
            background: rgba(255, 255, 255, 0.18);
            color: #ffffff;
        }

        .slide-subnav-menu {
            display: flex;
            flex-direction: column;
            gap: 2px;
            padding-left: 20px;
            margin-top: 4px;
            margin-bottom: 4px;
            border-left: 2px solid rgba(255, 255, 255, 0.12);
            margin-left: 24px;
        }

        .slide-subnav-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 8px;
            color: #94a3b8;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.15s ease;
        }

        .slide-subnav-item:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.06);
        }

        .slide-subnav-item.active {
            color: #ffffff;
            background: rgba(249, 87, 34, 0.2);
            font-weight: 700;
        }

        .subnav-dot {
            font-size: 14px;
            line-height: 1;
            opacity: 0.6;
        }

        /* Main Content */
        .main-panel {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            background: #f8fafc;
            min-height: 100vh;
        }

        /* Top Banner Matching Image 2 */
        .customer-banner {
            background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #0284c7 100%);
            padding: 24px 32px;
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        }

        .banner-left {
            display: flex;
            align-items: center;
            gap: 16px;
            z-index: 2;
        }

        .banner-icon {
            font-size: 38px;
            filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
        }

        .banner-title {
            font-size: 28px;
            font-weight: 900;
            letter-spacing: -0.5px;
            color: #ffffff;
            margin-bottom: 4px;
        }

        .banner-sub {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.92);
            font-weight: 500;
        }

        .banner-badge-box {
            display: flex;
            align-items: center;
            gap: 16px;
            z-index: 2;
        }

        .promo-badge-text {
            font-size: 13px;
            font-weight: 800;
            color: #ffffff;
            text-align: right;
            line-height: 1.25;
            text-shadow: 0 2px 4px rgba(0,0,0,0.15);
        }

        .promo-gold-card {
            width: 74px;
            height: 74px;
            background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
            border-radius: 14px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.25);
            border: 2px solid #ffffff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 6px;
            transform: rotate(5deg);
        }

        .promo-gold-card span {
            font-size: 9px;
            font-weight: 900;
            color: #78350f;
            text-align: center;
            line-height: 1.1;
        }

        .promo-gold-foil {
            width: 80%;
            height: 14px;
            background: #e2e8f0;
            border-radius: 4px;
            margin-top: 4px;
        }

        /* Content Area */
        .content-wrap {
            padding: 28px 32px 40px;
            display: flex;
            flex-direction: column;
            gap: 22px;
        }

        /* Search & Filter Bar Matching Image 2 */
        .filter-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 16px 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
            border: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
        }

        .search-box {
            flex: 1.4;
            min-width: 240px;
            position: relative;
        }

        .search-box input {
            width: 100%;
            padding: 11px 16px 11px 40px;
            border-radius: 12px;
            border: 1.5px solid #cbd5e1;
            font-size: 14px;
            font-weight: 600;
            color: #0f172a;
            outline: none;
            transition: border-color 0.2s;
        }

        .search-box input:focus {
            border-color: #0d9488;
        }

        .search-box svg {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 18px;
            height: 18px;
            color: #94a3b8;
        }

        .filter-select {
            padding: 11px 16px;
            border-radius: 12px;
            border: 1.5px solid #cbd5e1;
            font-size: 14px;
            font-weight: 700;
            color: #1e293b;
            background: #ffffff;
            outline: none;
            cursor: pointer;
            min-width: 160px;
        }

        .filter-select:focus {
            border-color: #0d9488;
        }

        .date-picker-box {
            padding: 11px 16px;
            border-radius: 12px;
            border: 1.5px solid #cbd5e1;
            font-size: 14px;
            font-weight: 700;
            color: #64748b;
            display: flex;
            align-items: center;
            gap: 8px;
            background: #ffffff;
            cursor: pointer;
        }

        .btn-filter-action {
            background: #0d9488;
            color: #ffffff;
            font-size: 14px;
            font-weight: 800;
            padding: 11px 24px;
            border-radius: 12px;
            border: none;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
            transition: background 0.2s, transform 0.1s;
        }

        .btn-filter-action:hover {
            background: #0f766e;
        }

        /* 6 KPI Cards Matching Image 2 */
        .kpi-row {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 16px;
        }

        .kpi-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 18px 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            border: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .kpi-icon-wrap {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 800;
            flex-shrink: 0;
        }

        .kpi-info {
            min-width: 0;
            flex: 1;
        }

        .kpi-label {
            font-size: 11.5px;
            font-weight: 700;
            color: #64748b;
            margin-bottom: 2px;
            white-space: normal;
            word-break: break-word;
            line-height: 1.25;
        }

        .kpi-val {
            font-size: 22px;
            font-weight: 900;
            color: #0f172a;
            line-height: 1;
        }

        .bg-cyan { background: #e0f2fe; color: #0284c7; }
        .bg-green { background: #dcfce7; color: #16a34a; }
        .bg-orange { background: #ffedd5; color: #ea580c; }
        .bg-purple { background: #f3e8ff; color: #9333ea; }
        .bg-blue { background: #e0f2fe; color: #2563eb; }
        .bg-gray { background: #f1f5f9; color: #64748b; }

        /* Table Card & Responsive Table Scroll */
        .table-card {
            background: #ffffff;
            border-radius: 18px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
            border: 1px solid #e2e8f0;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            width: 100%;
            max-width: 100%;
        }

        .table-responsive {
            width: 100%;
            max-width: 100%;
            max-height: 535px;
            overflow-y: scroll;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            scrollbar-color: #0d9488 #f1f5f9;
        }

        /* Modern Custom Scrollbar from Top to Bottom */
        .table-responsive::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        .table-responsive::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 4px;
        }

        .table-responsive::-webkit-scrollbar-thumb {
            background: #0d9488;
            border-radius: 4px;
            border: 2px solid #f1f5f9;
        }

        .table-responsive::-webkit-scrollbar-thumb:hover {
            background: #0f766e;
        }

        .data-table {
            width: 100%;
            min-width: 780px;
            border-collapse: separate;
            border-spacing: 0;
            text-align: left;
        }

        .data-table thead {
            background: #0d9488;
            color: #ffffff;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .data-table th {
            position: sticky;
            top: 0;
            z-index: 10;
            background: #0d9488;
            color: #ffffff;
            padding: 15px 20px;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.3px;
            white-space: nowrap;
            border-bottom: 2px solid #0f766e;
        }

        .data-table tbody tr {
            height: 54px;
            border-bottom: 1px solid #f1f5f9;
            transition: background 0.15s ease;
        }

        .data-table tbody tr:hover {
            background: #f8fafc;
        }

        .data-table tbody tr.placeholder-row {
            background: #ffffff;
            height: 54px;
            pointer-events: none;
            user-select: none;
        }

        .data-table tbody tr.placeholder-row:hover {
            background: #ffffff;
        }

        .data-table td {
            padding: 12px 20px;
            font-size: 14px;
            font-weight: 600;
            color: #1e293b;
            vertical-align: middle;
            border-bottom: 1px solid #f1f5f9;
        }

        .customer-col {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .customer-avatar-circle {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            flex-shrink: 0;
        }

        .gift-col {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .gift-icon-thumb {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: #f1f5f9;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
        }

        .gift-sub-label {
            font-size: 11px;
            color: #dc2626;
            font-weight: 700;
            display: block;
        }

        /* Badges */
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            border-radius: 9999px;
            font-size: 12px;
            font-weight: 800;
            white-space: nowrap;
        }

        .badge-winner { background: #7e22ce; color: #ffffff; }
        .badge-claimed { background: #16a34a; color: #ffffff; }
        .badge-pending { background: #fef08a; color: #854d0e; }
        .badge-active { background: #22c55e; color: #ffffff; }
        .badge-notscratched { background: #3b82f6; color: #ffffff; }

        .btn-view-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: transparent;
            border: 1.5px solid #cbd5e1;
            padding: 6px 16px;
            border-radius: 9999px;
            font-size: 12px;
            font-weight: 700;
            color: #0f766e;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-view-pill:hover {
            background: #f0fdfa;
            border-color: #0f766e;
        }

        .btn-deliver-action {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: linear-gradient(135deg, #0ca872 0%, #059669 100%);
            color: #ffffff;
            border: none;
            padding: 6px 14px;
            border-radius: 9999px;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(12, 168, 114, 0.3);
            transition: all 0.2s ease;
        }

        .btn-deliver-action:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(12, 168, 114, 0.4);
        }

        .badge-delivered-locked {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: #e2e8f0;
            color: #475569;
            border: 1px solid #cbd5e1;
            padding: 5px 12px;
            border-radius: 9999px;
            font-size: 11.5px;
            font-weight: 800;
        }

        .status-select {
            padding: 7px 14px;
            border-radius: 9999px;
            font-size: 12px;
            font-weight: 800;
            font-family: inherit;
            outline: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            transition: all 0.2s ease;
        }

        .status-select.pending {
            background: #fef08a;
            color: #854d0e;
            border: 1.5px solid #facc15;
            box-shadow: 0 1px 4px rgba(202, 138, 4, 0.15);
        }

        .status-select.pending:hover {
            background: #fef9c3;
            border-color: #eab308;
        }

        .status-select.pending:focus {
            box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.25);
        }

        .status-select.delivered-locked {
            background: #dcfce7;
            color: #15803d;
            border: 1.5px solid #86efac;
            cursor: not-allowed;
            opacity: 0.95;
            font-weight: 800;
        }

        /* Customer Modals */
        .customer-modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.65);
            backdrop-filter: blur(4px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 100000;
            padding: 16px;
        }

        .customer-modal-backdrop.open {
            display: flex;
        }

        .customer-modal-card {
            background: #ffffff;
            border-radius: 20px;
            width: 100%;
            max-width: 460px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes modalPopIn {
            from { opacity: 0; transform: scale(0.94) translateY(12px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .customer-modal-header {
            padding: 18px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #f1f5f9;
        }

        .customer-modal-title {
            font-size: 17px;
            font-weight: 900;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-modal-close-icon {
            background: #f1f5f9;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            color: #64748b;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
        }

        .btn-modal-close-icon:hover {
            background: #e2e8f0;
            color: #0f172a;
        }

        .customer-modal-body {
            padding: 20px;
            max-height: 75vh;
            overflow-y: auto;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #f8fafc;
            font-size: 13.5px;
        }

        .detail-label {
            color: #64748b;
            font-weight: 600;
        }

        .detail-val {
            font-weight: 800;
            color: #0f172a;
            text-align: right;
        }

        .form-group-cust {
            margin-bottom: 14px;
            text-align: left;
        }

        .form-group-cust label {
            display: block;
            font-size: 12px;
            font-weight: 800;
            color: #1e293b;
            margin-bottom: 6px;
        }

        .form-group-cust input,
        .form-group-cust select {
            width: 100%;
            padding: 10px 14px;
            border: 1.5px solid #cbd5e1;
            border-radius: 10px;
            font-size: 13.5px;
            font-family: inherit;
            outline: none;
            box-sizing: border-box;
            transition: border-color 0.2s;
        }

        .form-group-cust input:focus,
        .form-group-cust select:focus {
            border-color: #0ca872;
        }

        /* Bottom Controls */
        .table-footer-bar {
            padding: 16px 24px;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-top: 1px solid #e2e8f0;
            flex-wrap: wrap;
            gap: 16px;
        }

        .btn-export-teal {
            background: #0d9488;
            color: #ffffff;
            font-size: 13px;
            font-weight: 800;
            padding: 10px 20px;
            border-radius: 9999px;
            border: none;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
            transition: background 0.2s;
        }

        .btn-export-teal:hover {
            background: #0f766e;
        }

        .btn-add-teal {
            background: #0d9488;
            color: #ffffff;
            font-size: 13px;
            font-weight: 800;
            padding: 10px 20px;
            border-radius: 9999px;
            border: none;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
            transition: background 0.2s;
        }

        .btn-add-teal:hover {
            background: #0f766e;
        }

        .pagination-box {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .page-btn {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: 1.5px solid #e2e8f0;
            background: #ffffff;
            color: #475569;
            font-size: 13px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .page-btn:hover:not(:disabled) {
            border-color: #0d9488;
            color: #0d9488;
        }

        .page-btn.active {
            background: #0d9488;
            color: #ffffff;
            border-color: #0d9488;
        }

        .page-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            background: #f8fafc;
        }

        /* Fixed Bottom Nav Bar (Mobile Only) */
        /* Fixed Bottom Nav Bar (Mobile Only) */
        .bottom-nav-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            background: #ffffff;
            border-top: 1px solid rgba(16, 52, 120, 0.09);
            box-shadow: 0 -4px 18px rgba(11, 33, 73, 0.08);
            display: flex;
            align-items: center;
            justify-content: space-around;
            padding: 7px 2px 9px;
            z-index: 998;
        }

        .bottom-tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            text-decoration: none;
            cursor: pointer;
            background: none;
            border: none;
            outline: none;
            position: relative;
            padding: 0 2px;
            flex: 1;
            min-width: 0;
        }

        .tab-icon-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
            transition: transform 0.15s ease;
        }

        .bottom-tab-item:active .tab-icon-circle { transform: scale(0.92); }
        .tab-icon-circle.home { background: linear-gradient(135deg, #ff4d29 0%, #ff7a00 100%); }
        .tab-icon-circle.unscratched { background: linear-gradient(135deg, #0099ff 0%, #0066cc 100%); }
        .tab-icon-circle.scratched { background: linear-gradient(135deg, #ff7e1d 0%, #f74d1a 100%); }
        .tab-icon-circle.customers { background: linear-gradient(135deg, #0ca872 0%, #059669 100%); }
        .tab-icon-circle.profile { background: linear-gradient(135deg, #8327db 0%, #c026d3 100%); }

        .tab-icon-circle svg { width: 20px; height: 20px; }

        .tab-text-label {
            font-size: 10.5px;
            font-weight: 800;
            color: #0b2149;
            line-height: 1;
        }

        .active-tab-indicator {
            width: 18px;
            height: 3px;
            border-radius: 2px;
            background: #0ca872;
            margin-top: 2px;
        }

        /* Mobile Customer Cards (Default hidden on desktop) */
        .customer-mobile-list {
            display: none;
        }

        .cust-mobile-card {
            background: #ffffff;
            border-radius: 14px;
            padding: 12px 14px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
            display: flex;
            flex-direction: column;
            gap: 10px;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }

        .cust-mobile-card:active {
            transform: scale(0.99);
        }

        .cust-card-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .cust-card-user {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
            flex: 1;
        }

        .cust-card-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            font-weight: 800;
            flex-shrink: 0;
        }

        .cust-card-name-block {
            min-width: 0;
        }

        .cust-card-name {
            font-size: 14px;
            font-weight: 800;
            color: #0f172a;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .cust-card-phone {
            font-size: 12px;
            font-weight: 700;
            color: #0284c7;
            margin-top: 1px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .cust-card-body {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #f8fafc;
            padding: 9px 12px;
            border-radius: 10px;
            border: 1px solid #f1f5f9;
            gap: 10px;
        }

        .cust-card-prize-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            flex: 1;
        }

        .cust-prize-thumb {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
        }

        .cust-prize-info {
            min-width: 0;
        }

        .cust-prize-title {
            font-size: 13px;
            font-weight: 800;
            color: #0f172a;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .cust-prize-category {
            font-size: 10.5px;
            font-weight: 700;
            color: #dc2626;
        }

        .cust-card-date {
            font-size: 11px;
            font-weight: 600;
            color: #64748b;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .cust-card-foot {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding-top: 2px;
        }

        .cust-card-sno {
            font-size: 11.5px;
            font-weight: 800;
            color: #94a3b8;
        }

        .filter-row-secondary {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 2;
            flex-wrap: wrap;
        }

        /* ================= RESPONSIVE MEDIA QUERIES ================= */
        @media (min-width: 1024px) {
            .sidebar {
                position: sticky;
                top: 0;
                height: 100vh;
                transform: none !important;
            }
            .bottom-nav-bar {
                display: none !important;
            }
            .slide-close-btn {
                display: none !important;
            }
            .header-profile-btn {
                display: none !important;
            }
        }

        @media (max-width: 1023px) {
            .sidebar {
                position: fixed;
                top: 0;
                left: 0;
                width: 285px;
                max-width: 82vw;
                height: 100%;
                z-index: 99999;
                transform: translateX(-100%);
                box-shadow: 4px 0 20px rgba(0, 0, 0, 0.35);
                overflow-y: auto;
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .slide-close-btn {
                display: flex;
            }

            .main-panel {
                width: 100%;
                min-width: 0;
                padding-bottom: 95px !important;
            }

            .content-wrap {
                padding: 14px 12px 35px;
                gap: 14px;
            }
        }

        /* Mobile View (< 768px) - Switch Table to Responsive Cards */
        @media (max-width: 768px) {
            .table-responsive {
                display: none !important;
            }

            .customer-mobile-list {
                display: flex !important;
                flex-direction: column;
                gap: 10px;
                width: 100%;
                max-height: 580px;
                overflow-y: auto;
                padding-right: 4px;
                scrollbar-width: thin;
                scrollbar-color: #0d9488 #f1f5f9;
            }

            .customer-mobile-list::-webkit-scrollbar {
                width: 6px;
            }

            .customer-mobile-list::-webkit-scrollbar-track {
                background: #f1f5f9;
                border-radius: 4px;
            }

            .customer-mobile-list::-webkit-scrollbar-thumb {
                background: #0d9488;
                border-radius: 4px;
            }

            .table-card {
                background: transparent !important;
                border: none !important;
                box-shadow: none !important;
                border-radius: 0 !important;
            }

            .table-footer-bar {
                background: #ffffff;
                border-radius: 16px;
                border: 1px solid #e2e8f0;
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
                margin-top: 10px;
                flex-direction: column !important;
                align-items: stretch !important;
                gap: 12px !important;
                padding: 14px !important;
            }

            .table-footer-bar > div:first-child {
                flex-direction: column !important;
                align-items: center !important;
                gap: 6px !important;
                width: 100% !important;
                text-align: center !important;
            }

            .pagination-box {
                justify-content: center !important;
                flex-wrap: wrap !important;
                width: 100% !important;
            }

            .btn-export-teal, .btn-add-teal {
                width: 100% !important;
                justify-content: center !important;
            }

            /* Compact Sleek Banner on Mobile */
            .customer-banner {
                padding: 12px 14px !important;
                flex-direction: row !important;
                align-items: center !important;
                justify-content: space-between !important;
                gap: 10px !important;
            }

            .banner-left {
                width: auto !important;
                gap: 8px !important;
            }

            .banner-icon {
                font-size: 24px !important;
            }

            .banner-title {
                font-size: 17px !important;
                margin-bottom: 0 !important;
                line-height: 1.2 !important;
            }

            .banner-sub {
                display: none !important;
            }

            .banner-badge-box {
                width: auto !important;
                border-top: none !important;
                padding-top: 0 !important;
                gap: 6px !important;
            }

            .promo-gold-card {
                display: none !important;
            }

            .promo-badge-text {
                font-size: 10.5px !important;
                line-height: 1.2 !important;
                text-align: right !important;
            }

            /* Compact Search & Filter on Mobile */
            .filter-card {
                flex-direction: column !important;
                align-items: stretch !important;
                gap: 8px !important;
                padding: 10px 12px !important;
                border-radius: 14px !important;
            }

            .search-box {
                width: 100% !important;
                min-width: 0 !important;
                flex: none !important;
            }

            .search-box input {
                padding: 9px 12px 9px 36px !important;
                font-size: 13px !important;
            }

            .filter-row-secondary {
                display: flex !important;
                align-items: center !important;
                gap: 8px !important;
                width: 100% !important;
                flex-wrap: wrap !important;
            }

            .filter-select {
                flex: 1 1 calc(50% - 4px) !important;
                min-width: 0 !important;
                padding: 8px 10px !important;
                font-size: 12px !important;
                border-radius: 8px !important;
            }

            .date-picker-box {
                display: flex !important;
                width: 100% !important;
                align-items: center !important;
                justify-content: space-between !important;
                gap: 6px !important;
                padding: 7px 10px !important;
                box-sizing: border-box !important;
            }

            .date-picker-box input[type="date"] {
                flex: 1 !important;
                min-width: 0 !important;
                width: auto !important;
            }

            .btn-filter-action {
                display: none !important;
            }

            /* Compact KPI Grid on Mobile (3 columns x 2 rows) */
            .kpi-row {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 6px !important;
            }

            .kpi-card {
                padding: 8px 6px !important;
                gap: 4px !important;
                border-radius: 10px !important;
                flex-direction: column !important;
                align-items: center !important;
                text-align: center !important;
                min-width: 0 !important;
                overflow: hidden !important;
            }

            .kpi-icon-wrap {
                width: 28px !important;
                height: 28px !important;
                font-size: 13px !important;
                flex-shrink: 0 !important;
            }

            .kpi-info {
                width: 100%;
            }

            .kpi-label {
                font-size: 9px !important;
                line-height: 1.15 !important;
                margin-bottom: 2px !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }

            .kpi-val {
                font-size: 15px !important;
            }
        }

/* Keep the export action visible while browsing customer data. */
.customer-export-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    padding: 12px 32px;
    background: #fff;
    border-bottom: 1px solid #dbeafe;
    box-shadow: 0 3px 10px rgba(30, 64, 175, .08);
}
.customer-export-toolbar .btn-export-teal { background: #2563eb; width: auto; }
.customer-export-toolbar .btn-export-teal:hover { background: #1d4ed8; }
@media (max-width: 768px) {
    .customer-export-toolbar { padding: 10px 14px; }
    .customer-export-toolbar .btn-export-teal {
        width: auto !important;
        flex: 0 0 auto;
        margin-left: auto;
        padding: 8px 12px;
        font-size: 10px;
        gap: 6px;
        border-radius: 8px;
        min-height: 36px;
    }
    .customer-export-toolbar .btn-export-teal svg { width: 16px; height: 16px; }
}

.customer-data-page .dashboard-app-layout { overflow: visible; }

html:has(.customer-data-page), body.customer-data-page { overflow-x: clip; }
.customer-data-page .app-layout { overflow: visible; }
