        /* Menghilangkan kotak biru saat elemen ditekan di mobile */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            /* IMPORTANT: Global sizing fix */
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
        }

        /* Memastikan tombol tetap terlihat bersih saat difokuskan */
        button:focus,
        input:focus,
        textarea:focus,
        select:focus {
            outline: none !important;
        }

        /* ==========================================
           DARK MODE SUPPORT - Theme Variables
           ========================================== */
        :root {
            /* Palette Modern 2025 - Light Mode */
            --primary: #6C5CE7;
            --primary-dark: #5849BE;
            --primary-light: #A29BFE;
            --primary-glow: rgba(108, 92, 231, 0.4);

            --bg-main: #F3F4F6;
            --bg-card: #FFFFFF;
            --bg-tertiary: #F1F5F9;

            --text-dark: #1E293B;
            --text-main: #1E293B;
            --text-muted: #64748B;
            --text-light: #94A3B8;

            --success: #00cec9;
            --success-glow: rgba(0, 206, 201, 0.4);

            --danger: #fd79a8;
            --warning: #fdcb6e;
            --warning-bg: #fff5e6;
            --warning-text: #e17055;

            --border: #E2E8F0;

            /* Shadows */
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

        /* Dark Mode Variables */
        [data-theme="dark"] {
            --primary: #8B7FF4;
            --primary-dark: #6C5CE7;
            --primary-light: #A29BFE;
            --primary-glow: rgba(139, 127, 244, 0.4);

            --bg-main: #0F172A;
            --bg-card: #1E293B;
            --bg-tertiary: #334155;

            --text-dark: #F1F5F9;
            --text-main: #E2E8F0;
            --text-muted: #94A3B8;
            --text-light: #64748B;

            --success: #10B981;
            --success-glow: rgba(16, 185, 129, 0.4);

            --danger: #EF4444;
            --warning: #F59E0B;
            --warning-bg: rgba(245, 158, 11, 0.1);
            --warning-text: #FCD34D;

            --border: #334155;

            /* Dark Shadows */
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
        }


        /* Smooth theme transition */
        \n * {
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        }

        /* Additional root variables - backwards compatibility & spacing */
        :root {
            /* Keep google colors for backwards compatibility */
            --google-blue: #6C5CE7;
            --google-red: #fd79a8;
            --google-green: #00cec9;
            --google-yellow: #fdcb6e;

            /* Modern Spacing & Radius */
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-full: 9999px;

            /* Typography Weights */
            --font-weight-regular: 400;
            --font-weight-medium: 500;
            --font-weight-semibold: 600;
            --font-weight-bold: 700;
            --font-weight-extrabold: 800;

            /* Button Styles - Consistent */
            --btn-radius: var(--radius-lg);
            --btn-radius-small: var(--radius-sm);
        }


        html {
            scroll-behavior: auto;
            overflow-x: hidden;
        }

        body {
            margin: 0;
            /* Reset default margin */
            padding: 20px;
            padding-bottom: 120px;
            /* Increased space for bottom nav + toast */
            background: var(--bg-main);
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
            /* Force Jakarta */
            font-weight: var(--font-weight-regular);
            color: var(--text-dark);
            -webkit-font-smoothing: antialiased;
            min-height: 100vh;
            overflow-x: hidden;
            padding-top: 90px;
            /* Safe area for Header (56px) + Gap */
        }

        button,
        input,
        select,
        textarea {
            font-family: 'Plus Jakarta Sans', sans-serif !important;
        }

        .admin-container {
            max-width: 500px;
            margin: 0 auto;
        }

        /* Sticky Compact Header */
        .sticky-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            /* height: 56px; Removed fixed height for equal padding */
            background: var(--bg-card);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px;
            /* Equal padding 16px all sides */
            z-index: 999;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

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

        .header-logo-icon {
            width: 36px;
            height: 36px;
            background: var(--primary);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .header-logo-icon i {
            font-size: 1rem;
            color: white;
        }

        .header-title {
            font-size: 1.1rem;
            font-weight: var(--font-weight-bold);
            color: var(--text-dark);
        }

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

        .header-btn {
            width: 40px;
            height: 40px;
            border: none;
            background: var(--bg-tertiary);
            border-radius: var(--btn-radius);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            position: relative;
            transition: all 0.2s ease;
            color: var(--text-dark);
        }

        .header-btn:hover {
            background: var(--border);
        }

        #notification-btn {
            width: auto;
            min-width: 40px;
            padding: 0 4px;
            /* Default small padding */
        }

        #notification-btn:has(.notification-badge:not(.hidden)) {
            padding: 0 12px;
            /* More padding when badge visible */
            gap: 8px;
        }

        .header-btn i {
            font-size: 1.1rem;
        }

        .notification-badge {
            position: relative;
            /* Not absolute */
            top: auto;
            right: auto;
            min-width: 20px;
            height: 20px;
            background: var(--primary);
            /* Purple */
            color: white;
            font-size: 0.75rem;
            font-weight: var(--font-weight-bold);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 6px;
        }

        .notification-badge.hidden {
            display: none;
        }

        /* Legacy admin-header - hidden */
        .admin-header {
            display: none;
        }

        .admin-header h1 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 4px;
        }

        .admin-header p {
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        /* Registrasi Overlay */
        .registrasi-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--bg-main);
            z-index: 1001;
            animation: slideInRight 0.3s ease;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .registrasi-container {
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .registrasi-header {
            height: 56px;
            background: var(--bg-card);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            flex-shrink: 0;
        }

        .registrasi-body {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            padding-bottom: 100px;
        }

        /* FAB Buttons - matching tab style */
        .fab-btn {
            padding: 10px 16px;
            border: 2px solid var(--border);
            border-radius: 16px;
            background: var(--bg-card);
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: inherit;
            color: var(--text-muted);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        /* Status Indicators (User Card) */
        .status-active {
            color: var(--success) !important;
            font-weight: 800;
            background: rgba(0, 206, 201, 0.1);
            border-radius: 6px;
            padding: 4px 8px;
            font-size: 0.8rem;
        }

        .status-archive {
            color: var(--danger) !important;
            font-weight: 800;
            background: rgba(253, 121, 168, 0.1);
            border-radius: 6px;
            padding: 4px 8px;
            font-size: 0.8rem;
        }

        .fab-btn i {
            font-size: 1.2rem;
        }

        .fab-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: rgba(108, 92, 231, 0.08);
        }

        /* Bottom Navigation Tabs - Fixed at bottom, no layout shift */
        .tabs {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            gap: 0;
            padding: 8px 12px;
            background: var(--bg-card);
            border-top: 1px solid var(--border);
            box-shadow: none;
            z-index: 1000;
            /* Ensure bottom area is covered */
            padding-bottom: calc(8px + env(safe-area-inset-bottom, 20px));

            /* Prevent any layout shift */
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
            will-change: auto;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }

        .tab-btn {
            flex: 1;
            padding: 8px 4px;
            border: none;
            border-radius: 12px;
            background: transparent;
            font-size: 0.65rem;
            font-weight: var(--font-weight-medium, 500);
            cursor: pointer;
            transition: background 0.15s ease, color 0.15s ease;
            font-family: inherit;
            color: var(--text-muted);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            /* Improve touch target */
            min-height: 56px;
            position: relative;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            user-select: none;
            -webkit-user-select: none;
            /* Prevent any borders or outlines */
            outline: none;
            box-shadow: none;
            text-decoration: none;
            border-bottom: none !important;
            /* Prevent overflow */
            overflow: hidden;
        }

        /* Ensure child elements don't block clicks */
        .tab-btn i,
        .tab-btn span {
            pointer-events: none;
            border: none;
            outline: none;
        }

        .tab-btn i {
            font-size: 1.25rem;
        }

        .tab-btn.active {
            color: var(--primary);
            background: rgba(108, 92, 231, 0.1);
            border: none;
            outline: none;
        }

        .tab-btn:active,
        .tab-btn.pressing {
            transform: scale(0.92);
            background: rgba(108, 92, 231, 0.15);
            border: none;
            outline: none;
        }

        /* All tabs show text in bottom nav */
        .tab-btn span {
            display: block;
        }

        /* Override small tab styles for bottom nav */
        .tab-btn.tab-large,
        .tab-btn.tab-small {
            flex: 1;
        }

        .tab-btn.tab-small span {
            display: block;
        }

        /* User Pills/Chips - Interactive & Spaced */
        .user-pill {
            display: inline-flex;
            align-items: center;
            background: var(--bg-card);
            padding: 10px 16px;
            /* Larger touch target */
            margin: 0 10px 10px 0;
            /* More breathing room */
            border: 1px solid var(--border);
            border-radius: 12px;
            /* Smooth rounded corners */
            font-size: 0.9rem;
            color: var(--text-dark);
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
            gap: 10px;
            /* Space between dot and text */
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
            user-select: none;
        }

        .user-pill:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(108, 92, 231, 0.1);
            border-color: var(--primary-light);
            background: #fff;
        }

        .user-pill:active {
            transform: scale(0.96);
            background: var(--bg-tertiary);
        }

        /* Status Dots */
        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            flex-shrink: 0;
            display: inline-block;
        }

        .status-dot.active {
            background-color: var(--success);
            box-shadow: 0 0 0 2px rgba(0, 206, 201, 0.2);
        }

        .status-dot.expired {
            background-color: var(--danger);
            box-shadow: 0 0 0 2px rgba(253, 121, 168, 0.2);
        }

        .status-dot.inactive {
            background-color: var(--text-light);
        }


        .expiry-group-title {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text-muted);
            margin-bottom: 12px;
            padding-left: 4px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Toast Notification */
        .toast {
            position: fixed;
            bottom: calc(85px + env(safe-area-inset-bottom));
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--text-dark);
            color: #fff;
            padding: 12px 24px;
            border-radius: 16px;
            font-size: 0.85rem;
            z-index: 9999;
            opacity: 0;
            transition: all 0.3s ease;
            max-width: 90%;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            pointer-events: none;
        }

        .toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        .toast i {
            margin-right: 6px;
        }

        .toast.success {
            background: var(--success);
        }

        .toast.error {
            background: var(--danger);
        }

        .toast.warning {
            background: #F59E0B;
        }

        .toast.info,
        .toast.default {
            background: var(--primary);
        }

        /* Confirmation Modal */
        .confirm-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9998;
        }

        .confirm-modal.show {
            display: flex;
        }

        .confirm-box {
            background: var(--bg-card);
            border-radius: 20px;
            padding: 24px;
            max-width: 320px;
            width: 90%;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
        }

        .confirm-box h3 {
            margin: 0 0 12px;
            font-size: 1.1rem;
            color: var(--text-dark);
        }

        .confirm-box p {
            color: var(--text-muted);
            font-size: 0.85rem;
            margin: 0 0 20px;
        }

        .confirm-buttons {
            display: flex;
            gap: 8px;
        }

        .confirm-buttons button {
            flex: 1;
            padding: 12px;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            font-family: inherit;
            transition: all 0.2s ease;
        }

        .confirm-cancel {
            background: var(--border);
            color: var(--text-dark);
        }

        .confirm-cancel:hover {
            background: #dee2e6;
        }

        .confirm-ok {
            background: var(--primary);
            color: #fff;
        }

        .confirm-ok:hover {
            background: var(--primary-dark);
        }

        .confirm-danger {
            background: var(--danger);
            color: #fff;
        }

        .confirm-danger:hover {
            background: #c0392b;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        /* Cards */
        /* Card (Standardized) */
        .admin-card {
            background: var(--bg-card);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
            margin-bottom: 20px;
            border: none;
            /* No Border */
            overflow: visible;
        }

        .card-title {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            /* Increased gap */
        }

        .card-title i {
            color: var(--primary);
            margin-right: 12px;
            /* Fix icon-text spacing */
        }


        /* Filter Chips */
        .filter-chip.active,
        .user-filter-chip.active {
            background: var(--primary) !important;
            color: white !important;
            border-color: var(--primary) !important;
        }


        /* Status Tabs */
        .status-tab,
        .user-status-tab {
            flex: 1;
            /* Equal width */
            padding: 12px 0;
            /* Vertical padding */
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-muted);
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
            margin-bottom: -1px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            /* Icon gap */
            text-align: center;
        }

        .status-tab:hover,
        .user-status-tab:hover {
            color: var(--text-dark);
        }

        .status-tab.active,
        .user-status-tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }

        /* User List */
        .user-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }


        /* User Grid (2-column layout for Notifikasi tab) */
        .user-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .user-card {
            background: var(--bg-card);
            border: 2px solid var(--border) !important;
            /* Force Border visibility */
            box-shadow: none !important;
            /* Ensure Flat */
            border-radius: 12px;
            padding: 12px;
            text-align: center;
            transition: all 0.2s ease;
        }

        .user-card.sent {
            border-color: var(--success);
            background: rgba(0, 184, 148, 0.05);
        }

        .user-card .card-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 12px;
        }

        .user-card .username {
            font-size: 0.9rem;
            font-weight: var(--font-weight-semibold);
            color: var(--text-dark);
            word-break: break-all;
            /* Remove margin-bottom as we are now using flex layout */
            margin-bottom: 0;
        }

        .expiry-indicator {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 700;
            flex-shrink: 0;
        }

        .expiry-indicator.warning {
            background: #FFD43B;
            /* Yellow */
            color: #333;
        }

        .expiry-indicator.danger {
            background: var(--danger);
            color: white;
        }

        .user-card .send-btn {
            width: 100%;
            padding: 8px;
            border: none;
            border-radius: 12px;
            background: var(--primary);
            color: white;
            font-size: 0.75rem;
            font-weight: var(--font-weight-medium);
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        .user-card .send-btn:hover {
            background: var(--primary-dark);
        }

        /* .user-card.sent .send-btn removed to avoid conflict */

        .user-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px;
            border: 2px solid var(--border);
            border-radius: 16px;
            background: var(--bg-card);
            transition: all 0.2s ease;
        }

        .user-item.expired {
            border-color: var(--danger);
            background: rgba(231, 76, 60, 0.05);
        }

        .user-item.expiring {
            border-color: var(--warning);
            background: rgba(243, 156, 18, 0.05);
        }

        .user-item.sent {
            border-color: var(--success);
            background: rgba(0, 184, 148, 0.05);
            opacity: 0.7;
        }

        .user-checkbox {
            width: 20px;
            height: 20px;
            accent-color: var(--primary);
        }

        .user-info {
            flex: 1;
        }

        .user-name {
            font-weight: 600;
            color: var(--text-dark);
            font-size: 0.95rem;
        }

        .user-expiry {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .user-expiry.expired {
            color: var(--danger);
        }

        .user-expiry.expiring {
            color: var(--warning);
        }

        .send-btn-small {
            padding: 8px 14px;
            border: none;
            border-radius: 12px;
            background: var(--primary);
            color: #fff;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: inherit;
        }

        .send-btn-small:hover {
            background: var(--primary-dark);
        }

        .send-btn-small.sent {
            background: var(--success);
        }

        /* Progress */
        .progress-bar {
            height: 8px;
            background: var(--border);
            border-radius: 8px;
            margin-bottom: 12px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: var(--primary);
            border-radius: 8px;
            transition: width 0.3s ease;
        }

        .progress-text {
            font-size: 0.85rem;
            color: var(--text-muted);
            text-align: center;
            margin-bottom: 16px;
        }

        /* Form */
        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 8px;
            display: block;
        }

        .form-select,
        .form-input {
            width: 100%;
            padding: 12px 14px;
            border: 2px solid var(--border);
            border-radius: 12px;
            font-size: 0.95rem;
            font-family: inherit;
            background: var(--bg-card);
            transition: all 0.2s ease;
            color: var(--text-dark);
            box-sizing: border-box;
            min-width: 0;
            max-width: 100%;
        }

        .form-select:focus,
        .form-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
        }

        /* Preview */
        .preview-box {
            background: var(--bg-main);
            border-radius: 12px;
            padding: 16px;
            font-size: 0.9rem;
            line-height: 1.6;
            white-space: pre-wrap;
            color: var(--text-dark);
            margin-bottom: 16px;
            border: 1px solid var(--border);
        }

        .send-btn {
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: var(--btn-radius);
            background: #25D366;
            color: #fff;
            font-size: 1rem;
            font-weight: var(--font-weight-semibold);
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: inherit;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .send-btn:hover {
            background: #128C7E;
        }

        .send-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .send-btn svg {
            width: 20px;
            height: 20px;
        }

        /* Button Variants */
        .btn-whatsapp {
            background: #25D366;
            box-shadow: none;
            /* Flat */
        }

        .btn-whatsapp:hover {
            box-shadow: none;
            /* Flat */
        }

        /* Empty state */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-muted);
        }

        .empty-state svg {
            width: 48px;
            height: 48px;
            margin-bottom: 12px;
            opacity: 0.5;
        }

        /* Storage options for konfirmasi */
        .storage-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        .storage-option {
            padding: 10px 8px;
            border: 2px solid var(--border);
            border-radius: 12px;
            background: var(--bg-card);
            cursor: pointer;
            text-align: center;
            transition: all 0.2s ease;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-dark);
        }

        .storage-option:hover {
            border-color: var(--primary-light);
        }

        .storage-option.selected {
            border-color: var(--primary);
            background: rgba(108, 92, 231, 0.08);
            color: var(--primary);
        }

        .duration-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
        }

        .duration-option {
            padding: 10px 8px;
            border: 2px solid var(--border);
            border-radius: 12px;
            background: var(--bg-card);
            cursor: pointer;
            text-align: center;
            transition: all 0.2s ease;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-dark);
        }

        .duration-option:hover {
            border-color: var(--primary-light);
        }

        .duration-option.selected {
            border-color: var(--primary);
            background: rgba(108, 92, 231, 0.08);
            color: var(--primary);
        }

        .info-row {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid var(--border);
            font-size: 0.9rem;
        }

        .info-row:last-child {
            border-bottom: none;
        }

        .info-label {
            color: var(--text-muted);
        }

        .info-value {
            font-weight: 600;
            color: var(--text-dark);
        }

        .reset-btn {
            width: 100%;
            padding: 12px;
            border: 2px solid var(--border);
            border-radius: var(--btn-radius);
            background: var(--bg-card);
            font-size: 0.85rem;
            color: var(--text-muted);
            cursor: pointer;
            margin-bottom: 12px;
            font-family: inherit;
            font-weight: var(--font-weight-medium);
            transition: all 0.2s ease;
        }

        .reset-btn:hover {
            border-color: var(--primary-light);
            background: var(--bg-main);
        }

        .user-card .send-btn.sent,
        .send-btn.sent {
            background: #b2bec3 !important;
            pointer-events: auto;
        }

        .apply-btn {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: var(--btn-radius);
            background: var(--primary);
            font-size: 0.85rem;
            color: #fff;
            cursor: pointer;
            margin-bottom: 12px;
            font-family: inherit;
            font-weight: var(--font-weight-semibold);
            transition: all 0.2s ease;
        }

        .apply-btn:hover {
            background: var(--primary-dark);
        }

        .apply-btn i {
            color: inherit;
        }

        .resend-btn {
            background: var(--primary) !important;
            color: #fff !important;
        }

        .resend-btn:hover {
            background: var(--primary-dark) !important;
        }

        .action-buttons-row {
            display: flex;
            gap: 6px;
        }

        .action-btn-small {
            padding: 8px 12px;
            border: none;
            border-radius: var(--btn-radius);
            font-size: 0.75rem;
            font-weight: var(--font-weight-semibold);
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: inherit;
        }

        .action-btn-small.primary {
            background: var(--primary);
            color: #fff;
        }

        .action-btn-small.success {
            background: var(--success);
            color: #fff;
        }

        .action-btn-small.warning {
            background: var(--warning);
            color: #fff;
        }

        .action-btn-small.danger {
            background: var(--danger);
            color: #fff;
        }

        .action-btn-small.sent {
            background: var(--text-muted);
            color: #fff;
        }

        /* Input Tab Styles */
        .input-form {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        /* PIN Overlay */
        .pin-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--primary);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .pin-overlay.hidden {
            display: none;
        }

        /* Loading Overlay - Non-blocking */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 70px;
            /* Taller to cover header fully */
            background: var(--bg-card);
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            z-index: 9999;
            /* Higher than anything */
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            transform: translateY(0);
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .loading-overlay.hidden {
            transform: translateY(-100%);
            opacity: 0;
            pointer-events: none;
        }

        .loading-spinner-small {
            width: 20px;
            height: 20px;
            border: 3px solid var(--border);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .loading-text {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: var(--font-weight-medium, 500);
        }

        /* Skeleton Loading Animation */
        @keyframes skeleton-pulse {

            0%,
            100% {
                opacity: 0.4;
            }

            50% {
                opacity: 1;
            }
        }

        .skeleton {
            background: linear-gradient(90deg, var(--border) 25%, #e8e8e8 50%, var(--border) 75%);
            background-size: 200% 100%;
            animation: skeleton-pulse 1.5s ease-in-out infinite;
            border-radius: 8px;
        }

        .skeleton-text {
            height: 14px;
            width: 100%;
            margin-bottom: 8px;
        }

        .skeleton-text.short {
            width: 60%;
        }

        .skeleton-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }

        .skeleton-card {
            padding: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            background: var(--bg-card);
            border-radius: 12px;
            margin-bottom: 10px;
        }

        .skeleton-content {
            flex: 1;
        }

        /* Legacy support - hide old loading card */
        .loading-card {
            display: none;
        }

        .pin-card {
            background: var(--bg-card);
            border-radius: 24px;
            padding: 32px 24px;
            width: 100%;
            max-width: 320px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
        }

        .pin-card h2 {
            font-size: 1.25rem;
            color: var(--text-dark);
            margin-bottom: 8px;
        }

        .pin-card h2 i {
            color: var(--primary);
            margin-right: 8px;
        }

        .pin-card p {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 24px;
        }

        .pin-inputs {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-bottom: 24px;
        }

        .pin-input {
            width: 50px;
            height: 56px;
            border: 2px solid var(--border);
            border-radius: var(--btn-radius);
            font-size: 1.5rem;
            font-weight: var(--font-weight-semibold);
            text-align: center;
            font-family: inherit;
            transition: all 0.2s ease;
            color: var(--text-dark);
        }

        .pin-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
        }

        .pin-input.error {
            border-color: var(--danger);
            animation: shake 0.3s ease;
        }

        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            25% {
                transform: translateX(-5px);
            }

            75% {
                transform: translateX(5px);
            }
        }

        .pin-error {
            color: var(--danger);
            font-size: 0.85rem;
            margin-bottom: 16px;
            min-height: 20px;
        }

        .pin-submit-btn {
            width: 100%;
            padding: 14px;
            background: var(--primary);
            color: #fff;
            border: none;
            border-radius: var(--btn-radius);
            font-size: 1rem;
            font-weight: var(--font-weight-semibold);
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s ease;
        }

        .pin-submit-btn:hover {
            background: var(--primary-dark);
        }

        .pin-submit-btn:disabled {
            background: var(--border);
            color: var(--text-muted);
            cursor: not-allowed;
        }

        /* Pinwheel Animation for PIN Overlay */
        @keyframes spinBlade {

            0%,
            100% {
                transform: rotate(0deg) scale(1);
            }

            50% {
                transform: rotate(180deg) scale(1.05);
            }
        }

        /* =================================================================
           PRO MAX UI OVRRIDES (Matching index.html)
           ================================================================= */

        /* Modern Inputs */
        input[type="text"],
        input[type="number"],
        input[type="email"],
        input[type="datetime-local"],
        input[type="date"],
        select,
        textarea {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid var(--border);
            /* Standardized Border */
            border-radius: var(--radius-lg);
            background: var(--bg-card);
            font-size: 0.95rem;
            color: var(--text-dark);
            outline: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: inherit;
            box-shadow: none;
            /* Uniform flat look */
        }

        input:focus,
        select:focus,
        textarea:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-glow);
            transform: translateY(-2px);
        }

        /* Search Box Specifics */
        .search-box input {
            padding-left: 50px;
        }

        /* Modern Buttons (Apply Btn, FAB, Header Btn) */
        .apply-btn,
        .pin-submit-btn {
            background: var(--primary);
            border-radius: var(--radius-full);
            box-shadow: none;
            /* Flat */
            border: none;
            padding: 14px 24px;
            font-weight: 700;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .apply-btn:hover,
        .pin-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: none;
            /* Flat */
        }

        .apply-btn:active,
        .pin-submit-btn:active {
            transform: scale(0.98);
        }

        /* Secondary/Action Buttons */
        .header-btn,
        .fab-btn {
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            /* Visibilty */
            background: white;
            box-shadow: none;
            /* Flat */
        }

        .header-btn:hover,
        .fab-btn:hover {
            background: var(--bg-tertiary);
            transform: translateY(-1px);
        }

        /* Bottom Sheet Modal for Mobile */
        @media (max-width: 768px) {
            #user-detail-modal .confirm-box {
                width: 100%;
                max-width: 100%;
                border-radius: 20px 20px 0 0;
                margin: 0;
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
                max-height: 85vh;
                overflow-y: auto;
            }

            @keyframes slideUp {
                from {
                    transform: translateY(100%);
                }

                to {
                    transform: translateY(0);
                }
            }
        }

        /* Cards */
        .card,
        .user-card,
        .skeleton-card {
            border: none;
            border-radius: 20px;
            background: white;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.01);
            transition: transform 0.2s ease;
        }

        .user-card:active {
            transform: scale(0.98);
        }

        /* Tags/Pills - Check line 419 for definition */
        /* Removed duplicate .user-pill styles */

        /* Button Variants */
        .btn-whatsapp {
            background: #25D366;
            box-shadow: none;
            /* Flat */
        }

        .btn-whatsapp:hover {
            box-shadow: none;
            /* Flat */
        }

        /* NUCLEAR STYLES for Refresh Buttons (ID Override) */
        #refresh-notif-btn,
        #refresh-payment-btn,
        #refresh-registrasi-btn,
        #refresh-rekap-btn,
        #refresh-userlist-btn,
        #refresh-template-btn,
        #refresh-config-btn,
        #refresh-wa-btn,
        .btn-refresh {
            background: var(--primary) !important;
            color: #ffffff !important;
            box-shadow: none !important;
            -webkit-box-shadow: none !important;
            filter: none !important;
            /* Kill drop-shadows */
            border: none !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 6px !important;
            /* User said 10px was too far */
        }

        #refresh-notif-btn:hover,
        #refresh-payment-btn:hover,
        #refresh-registrasi-btn:hover,
        #refresh-rekap-btn:hover,
        #refresh-userlist-btn:hover,
        #refresh-template-btn:hover,
        #refresh-config-btn:hover,
        #refresh-wa-btn:hover,
        .btn-refresh:hover {
            background: var(--primary-dark) !important;
            transform: translateY(-2px) !important;
            box-shadow: none !important;
            -webkit-box-shadow: none !important;
            filter: none !important;
        }

        /* GLOBAL ICON SPACING (The "Everything" Fix) */
        i.fa-solid,
        i.fa-regular,
        i.fa-brands,
        i.fab {
            margin-right: 5px;
            /* Reduced to match single space width */
        }

        /* EXCEPTIONS: Buttons (Handled by flex gap) */
        button i,
        .btn i,
        .apply-btn i,
        .header-btn i,
        .fab-btn i,
        .pin-submit-btn i,
        .user-pill i,
        .tab-btn i,
        .btn-refresh i,
        .reset-btn i {
            margin-right: 0 !important;
        }

        /* EXCEPTIONS: Centered/Absolute Icons */
        .search-box i {
            margin-right: 0 !important;
        }

        .empty-state i {
            margin-right: 0 !important;
            margin-bottom: 12px;
        }

        .header-logo-icon i {
            margin-right: 0 !important;
        }

        /* EXCEPTIONS: Right-side Icons (Chevrons) */
        .fa-chevron-right,
        .fa-angle-right {
            margin-right: 0 !important;
            margin-left: 8px;
            /* Space BEFORE chevron */
        }

        /* NEW: Purple Pinwheel Logo */
        .pinwheel-sm {
            width: 32px;
            height: 32px;
            position: relative;
            animation: spin-slow 10s linear infinite;
            /* Gentle spin */
        }

        @keyframes spin-slow {
            100% {
                transform: rotate(360deg);
            }
        }

        .pinwheel-sm .blade {
            position: absolute;
            width: 14px;
            height: 14px;
            border-radius: 50% 50% 0 50%;
            background: var(--primary);
            /* Monochromatic Purple */
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .pinwheel-sm .b1 {
            top: 0;
            left: 9px;
            transform: rotate(0deg);
            opacity: 1;
        }

        .pinwheel-sm .b2 {
            top: 9px;
            right: 0;
            transform: rotate(90deg);
            opacity: 0.85;
        }

        .pinwheel-sm .b3 {
            bottom: 0;
            left: 9px;
            transform: rotate(180deg);
            opacity: 0.7;
        }

        .pinwheel-sm .b4 {
            top: 9px;
            left: 0;
            transform: rotate(270deg);
            opacity: 0.55;
        }

        /* Pinwheel Large (for PIN page) */
        .pinwheel-lg {
            width: 64px;
            height: 64px;
            position: relative;
            animation: spin-slow 10s linear infinite;
            margin: 0 auto;
        }

        .pinwheel-lg .blade {
            position: absolute;
            width: 28px;
            height: 28px;
            border-radius: 50% 50% 0 50%;
            background: var(--primary);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .pinwheel-lg .b1 {
            top: 0;
            left: 18px;
            transform: rotate(0deg);
            opacity: 1;
        }

        .pinwheel-lg .b2 {
            top: 18px;
            right: 0;
            transform: rotate(90deg);
            opacity: 0.85;
        }

        .pinwheel-lg .b3 {
            bottom: 0;
            left: 18px;
            transform: rotate(180deg);
            opacity: 0.7;
        }

        .pinwheel-lg .b4 {
            top: 18px;
            left: 0;
            transform: rotate(270deg);
            opacity: 0.55;
        }

        /* NEW: Status Dot Pulse */
        @keyframes pulse-dot {
            0% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
            }

            70% {
                transform: scale(1);
                box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
            }

            100% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
            }
        }

        /* Sync Status Indicator Dots (Larger & More Prominent) */
        .sync-dot-success {
            width: 14px;
            height: 14px;
            background: #2ecc71;
            border-radius: 50%;
            animation: pulse-success 2s infinite;
            display: inline-block;
            box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
        }

        .sync-dot-loading {
            width: 14px;
            height: 14px;
            background: #e74c3c;
            border-radius: 50%;
            animation: pulse-loading 1.5s infinite;
            display: inline-block;
            box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
        }

        @keyframes pulse-success {
            0% {
                box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
            }

            50% {
                box-shadow: 0 0 0 8px rgba(46, 204, 113, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
            }
        }

        @keyframes pulse-loading {
            0% {
                box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
            }

            50% {
                box-shadow: 0 0 0 8px rgba(231, 76, 60, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
            }
        }

        /* Legacy status dot (keep for compatibility) */
        .status-dot-active {
            width: 8px;
            height: 8px;
            background: #2ecc71;
            border-radius: 50%;
            animation: pulse-dot 2s infinite;
            display: inline-block;
        }

        /* User Detail Modal Styling */
        .user-detail-card-full,
        .user-detail-card {
            background: #F8F9FA;
            /* Light Gray */
            border-radius: 12px;
            padding: 14px 16px;
            text-align: center;
            border: 1px solid transparent;
            /* Optional refinement */
            transition: all 0.2s;
        }

        .user-detail-card:hover {
            border-color: var(--border);
            background: #fff;
        }

        .user-detail-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .detail-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 4px;
            letter-spacing: 0.3px;
        }

        .detail-value {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text-dark);
            word-break: break-all;
            /* Prevent overflow */
        }

        .text-primary {
            color: var(--primary) !important;
        }

        .text-danger {
            color: var(--danger) !important;
        }

        .text-success {
            color: #10B981 !important;
        }

        /* Button Rounded Consistency */
        .confirm-box .apply-btn {
            border-radius: 20px;
        }

        /* PAYMENT CARD SYSTEM (NEW) */
        .payment-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
            padding-bottom: 80px;
            /* Space for bottom nav */
        }

        @media (min-width: 768px) {
            .payment-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .payment-card {
            background: white;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            overflow: hidden;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        .payment-card.pending {
            border-left: 4px solid var(--warning);
        }

        .payment-card.verified {
            border-left: 4px solid var(--success);
            opacity: 0.8;
        }

        .payment-card.rejected {
            border-left: 4px solid var(--danger);
            opacity: 0.7;
        }

        /* Preview Mode (Always Visible) */
        .card-preview {
            padding: 16px;
            cursor: pointer;
            /* Clickable */
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .card-preview:active {
            background: var(--bg-tertiary);
        }

        .preview-left {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .preview-username {
            font-weight: 700;
            font-size: 1.05rem;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .preview-meta {
            font-size: 0.85rem;
            color: var(--text-muted);
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .preview-right {
            text-align: right;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 4px;
        }

        .preview-amount {
            font-weight: 800;
            font-size: 1.1rem;
            color: var(--primary);
        }

        .preview-pill {
            font-size: 0.75rem;
            padding: 2px 8px;
            border-radius: 12px;
            font-weight: 600;
            background: var(--bg-tertiary);
            color: var(--text-muted);
        }

        .toggle-btn {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            transition: transform 0.3s;
            margin-left: 12px;
        }

        /* Expanded State Logic */
        .payment-card.expanded .toggle-btn {
            transform: rotate(180deg);
        }

        .card-details {
            display: none;
            background: var(--bg-tertiary);
            border-top: 1px solid var(--border);
            animation: slideDown 0.3s ease-out;
        }

        .payment-card.expanded .card-details {
            display: block;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .details-content {
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
            padding-bottom: 8px;
            border-bottom: 1px dashed var(--border);
        }

        .detail-row:last-child {
            border-bottom: none;
        }

        .detail-label {
            color: var(--text-muted);
        }

        .detail-value {
            font-weight: 600;
            color: var(--text-main);
            text-align: right;
        }

        .action-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-top: 16px;
            padding: 16px;
            background: white;
            border-top: 1px solid var(--border);
        }

        .btn-card-action {
            border: none;
            padding: 12px;
            border-radius: var(--radius-md);
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: white;
            transition: transform 0.1s;
        }

        .btn-card-action:active {
            transform: scale(0.96);
        }

        .btn-reject {
            background: white;
            color: var(--danger);
            border: 1px solid var(--danger);
        }

        .btn-approve {
            background: var(--success);
            box-shadow: 0 4px 12px rgba(0, 206, 201, 0.3);
            color: white;
        }

        /* --- Global Animations --- */
        @keyframes zoomIn {
            from {
                transform: scale(0.95);
                opacity: 0;
            }

            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        @keyframes slideUp {
            from {
                transform: translateY(100%);
            }

            to {
                transform: translateY(0);
            }
        }

        /* --- User Detail Modal (Bottom Sheet on Mobile) --- */
        #user-detail-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            display: none;
            justify-content: center;
            align-items: center;
            /* Default Desktop: Center */
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }

        .user-detail-card {
            width: 100%;
            max-width: 400px;
            background: #ffffff;
            border-radius: 24px;
            padding: 30px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            position: relative;
            margin: 20px;
            overflow-y: auto;
            max-height: 90vh;
            animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        /* Mobile Bottom Sheet Override */
        @media (max-width: 768px) {
            #user-detail-modal {
                align-items: flex-end;
                /* Align to bottom */
                padding: 0;
            }

            .user-detail-card {
                margin: 0;
                max-width: 100%;
                border-radius: 24px 24px 0 0;
                /* Top corners rounded */
                padding: 24px 20px 40px 20px;
                /* Extra bottom padding */
                animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            }
        }

        /* FINAL MOBILE BOTTOM SHEET OVERRIDE */
        @media (max-width: 768px) {
            #user-detail-modal {
                align-items: flex-end !important;
                padding: 0 !important;
                /* display: flex !important; REMOVED - This caused modal to always show */
            }

            #user-detail-modal .confirm-box {
                width: 100% !important;
                max-width: 100% !important;
                min-width: 100% !important;
                border-radius: 24px 24px 0 0 !important;
                margin: 0 !important;
                position: relative !important;
                bottom: auto !important;
                left: auto !important;
                right: auto !important;
                animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
                max-height: 85vh;
                overflow-y: auto;
            }
        }

        /* ==========================================
   DARK MODE COMPREHENSIVE FIXES (AUTO-PATCH)
   ========================================== */

        /* 1. Sticky Header di User Tab (Rekap.js) */
        .group-sticky-header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-bottom: 1px solid var(--border);
        }

        [data-theme="dark"] .group-sticky-header {
            background: rgba(30, 41, 59, 0.95);
            /* Slate 800 */
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            /* Subtle border */
            color: var(--primary-light);
        }

        /* 2. Filter Chips (Daftar, Durasi, Kapasitas, dll) */
        .user-filter-chip {
            background: #ffffff;
            border: 1px solid transparent;
            color: var(--text-muted);
        }

        [data-theme="dark"] .user-filter-chip {
            background: var(--bg-card);
            border: 1px solid var(--border);
            color: var(--text-muted);
        }

        [data-theme="dark"] .user-filter-chip.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        /* Fix label text inside chip */
        [data-theme="dark"] .user-filter-chip:not(.active) {
            color: var(--text-light);
            /* Make sure text is visible */
        }

        /* 3. Status Tabs (Semua, Aktif, Arsip) */
        .status-tab,
        .user-status-tab {
            background: transparent;
            color: var(--text-muted);
        }

        [data-theme="dark"] .status-tab,
        [data-theme="dark"] .user-status-tab {
            color: var(--text-muted);
        }

        [data-theme="dark"] .status-tab.active,
        [data-theme="dark"] .user-status-tab.active {
            color: var(--primary-light);
            border-bottom-color: var(--primary);
        }

        /* 4. Filter Chips di Alert Tab (Kode, Server, dll) */
        /* Assuming they use same class or similar structure */
        [data-theme="dark"] .filter-chip {
            background: var(--bg-card);
            color: var(--text-light);
            border: 1px solid var(--border);
        }

        [data-theme="dark"] .filter-chip.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        /* 5. CARD BACKGROUNDS - CRITICAL FIX */
        [data-theme="dark"] .card,
        [data-theme="dark"] .user-card,
        [data-theme="dark"] .data-card,
        [data-theme="dark"] .stat-card,
        [data-theme="dark"] .payment-card,
        [data-theme="dark"] .user-detail-card,
        [data-theme="dark"] .action-grid,
        [data-theme="dark"] .info-card {
            background: var(--bg-card) !important;
            border-color: var(--border);
            color: var(--text-dark);
        }

        /* 6. Text Colors in Cards */
        [data-theme="dark"] h3,
        [data-theme="dark"] h4,
        [data-theme="dark"] .card-title,
        [data-theme="dark"] .stat-value,
        [data-theme="dark"] .user-name-text,
        [data-theme="dark"] .preview-username {
            color: var(--text-dark) !important;
        }

        [data-theme="dark"] .text-muted,
        [data-theme="dark"] .stat-label,
        [data-theme="dark"] .detail-label,
        [data-theme="dark"] .user-meta-text {
            color: var(--text-muted) !important;
        }

        /* 7. Search Input Fix */
        [data-theme="dark"] .search-box input {
            background: var(--bg-tertiary);
            color: var(--text-dark);
            border-color: var(--border);
        }

        [data-theme="dark"] .search-box input::placeholder {
            color: var(--text-muted);
            opacity: 0.6;
        }

        /* 8. Progress Bar Fix (Alert Tab) */
        [data-theme="dark"] .progress-container {
            background: var(--bg-tertiary);
        }

        [data-theme="dark"] .progress-fill {
            box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
        }

        /* 9. Floating Action Button */
        [data-theme="dark"] .fab-btn {
            background: var(--bg-card);
            border-color: var(--border);
            color: var(--text-dark);
        }

        /* 10. Modal Background */
        [data-theme="dark"] #user-detail-modal {
            background: rgba(0, 0, 0, 0.8);
            /* Darker backdrop */
        }

        /* 11. Stat Card Fixes */
        [data-theme="dark"] .stat-icon-bg {
            background: var(--bg-tertiary);
        }


        /* FORCE OVERRIDE for Inline JS Styles */
        [data-theme="dark"] .group-sticky-header {
            color: var(--primary-light) !important;
        }

        /* ==========================================
   ANALYTICS & STAT CARD FIXES (PHASE 2)
   ========================================== */

        /* Base style for Analytics Cards (replacing inline styles) */
        .analytics-card {
            background: white;
            padding: 20px;
            border-radius: 16px;
            border: 1px solid var(--border);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            margin-bottom: 16px;
        }

        [data-theme="dark"] .analytics-card {
            background: var(--bg-card) !important;
            border-color: var(--border);
            box-shadow: none;
        }

        /* Stat Cards (Small 7/14/30 days) */
        .stat-mini-card {
            background: white;
            padding: 16px;
            border-radius: 12px;
            text-align: center;
            border-width: 2px;
            border-style: solid;
        }

        [data-theme="dark"] .stat-mini-card {
            background: var(--bg-card) !important;
            /* Border color handled by inline style border-color which is fine */
        }

        /* Fix Admin Card if definition missing */
        .admin-card {
            background: white;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            padding: 16px;
            margin-bottom: 16px;
        }

        [data-theme="dark"] .admin-card {
            background: var(--bg-card) !important;
            border-color: var(--border);
        }

        /* FORCE FIX FILTER CHIPS */
        [data-theme="dark"] .user-filter-chip {
            background: var(--bg-card) !important;
            color: var(--text-muted) !important;
            border-color: var(--border) !important;
        }

        [data-theme="dark"] .user-filter-chip.active {
            background: var(--primary) !important;
            color: white !important;
            border-color: var(--primary) !important;
        }

        /* FORCE FIX MODAL USER DETAIL */
        [data-theme="dark"] .confirm-box,
        [data-theme="dark"] .user-detail-card {
            background: var(--bg-card) !important;
            color: var(--text-dark) !important;
        }

        /* Base Stat Card Definition */
        .stat-card {
            background: white;
            transition: background 0.3s ease;
        }

        /* ==========================================
   FINAL UI PATCH FOR HEADER & ALERT TAB
   ========================================== */

        /* 1. Header Buttons */
        .header-icon-btn {
            background: white;
            border: 1px solid var(--border);
            cursor: pointer;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            transition: all 0.2s;
            box-shadow: var(--shadow-sm);
            position: relative;
            color: var(--text-dark);
        }

        [data-theme="dark"] .header-icon-btn {
            background: var(--bg-tertiary) !important;
            border-color: var(--border);
            box-shadow: none;
            color: var(--text-dark);
        }

        /* 2. Progress Bar Container */
        .progress-container {
            height: 24px;
            border-radius: 12px;
            background: #E2E8F0;
            position: relative;
            overflow: visible;
        }

        [data-theme="dark"] .progress-container {
            background: var(--bg-tertiary) !important;
        }

        /* 3. Progress Chip */
        .progress-chip {
            position: absolute;
            right: 4px;
            top: 50%;
            transform: translateY(-50%);
            background: white;
            color: var(--primary);
            padding: 6px 12px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
            border: 2px solid var(--primary);
        }

        [data-theme="dark"] .progress-chip {
            background: var(--bg-card) !important;
            color: var(--primary-light) !important;
            border-color: var(--primary-light) !important;
            box-shadow: none;
        }

        /* 4. Filter Chips (Alert Tab) */
        .filter-chip {
            padding: 10px 12px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            border: 1px solid var(--border);
            background: white;
            transition: all 0.2s;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            height: 40px;
            box-sizing: border-box;
            color: var(--text-dark);
        }

        [data-theme="dark"] .filter-chip {
            background: var(--bg-card) !important;
            color: var(--text-muted) !important;
            border-color: var(--border) !important;
        }

        [data-theme="dark"] .filter-chip.active {
            background: var(--primary) !important;
            color: white !important;
            border-color: var(--primary) !important;
        }

        /* ==========================================
   BUTTON COLORS FOR ALERT CARDS
   ========================================== */
        .btn-purple-light {
            background: #E0DDFE;
            color: #6C5CE7;
        }

        [data-theme="dark"] .btn-purple-light {
            background: rgba(108, 92, 231, 0.2) !important;
            color: var(--primary-light) !important;
            border: 1px solid rgba(108, 92, 231, 0.3);
        }

        .btn-green-light {
            background: #D1FAE5;
            color: #10B981;
        }

        [data-theme="dark"] .btn-green-light {
            background: rgba(16, 185, 129, 0.2) !important;
            color: #34D399 !important;
            /* Brighter green for dark mode */
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        .btn-grey-light {
            background: #b2bec3;
            color: white;
        }

        [data-theme="dark"] .btn-grey-light {
            background: var(--bg-tertiary) !important;
            color: var(--text-muted) !important;
            border: 1px solid var(--border);
        }

        /* OVERRIDE: Better Grey Button for Dark Mode */
        [data-theme="dark"] .btn-grey-light {
            background: rgba(148, 163, 184, 0.15) !important;
            /* Glassy Slate */
            color: var(--text-muted) !important;
            border: 1px solid rgba(148, 163, 184, 0.2);
        }

        /* ==========================================
   USER DETAIN MODAL DARK MODE FIX
   ========================================== */

        /* Username & Name */
        .user-modal-username {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-dark);
            margin: 0 0 4px 0;
        }

        .user-modal-fullname {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-muted);
        }

        /* LTV Card (Purple) */
        .user-modal-ltv-card {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px 24px;
            background: #E0DDFE;
            border-radius: 16px;
            height: 100%;
        }

        .user-modal-ltv-text {
            font-size: 1.8rem;
            color: #6C5CE7;
            letter-spacing: -0.5px;
            line-height: 1;
        }

        [data-theme="dark"] .user-modal-ltv-card {
            background: rgba(108, 92, 231, 0.2);
            border: 1px solid rgba(108, 92, 231, 0.3);
        }

        [data-theme="dark"] .user-modal-ltv-text {
            color: var(--primary-light);
        }

        /* Status/Server Card */
        .modal-status-card {
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 4px;
            border-radius: 16px;
            text-align: center;
            height: 100%;
            transition: transform 0.1s;
        }

        .modal-status-card.is-active {
            background: #D1FAE5;
            color: #065F46;
        }

        .modal-status-card.is-active .capacity-text {
            color: #065F46;
        }

        .modal-status-card.is-inactive {
            background: #FFE2E5;
            color: #880E4F;
        }

        .modal-status-card.is-inactive .capacity-text {
            color: #880E4F;
        }

        [data-theme="dark"] .modal-status-card.is-active {
            background: rgba(16, 185, 129, 0.2);
            color: #34D399;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        [data-theme="dark"] .modal-status-card.is-active .capacity-text {
            color: #34D399;
        }

        [data-theme="dark"] .modal-status-card.is-inactive {
            background: rgba(239, 68, 68, 0.2);
            color: #F87171;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        [data-theme="dark"] .modal-status-card.is-inactive .capacity-text {
            color: #F87171;
        }

        .capacity-text {
            font-size: 0.75rem;
            font-weight: 800;
            line-height: 1.1;
        }

        /* Referral Cards */
        .user-modal-ref-card {
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 16px 20px;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            cursor: pointer;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }

        [data-theme="dark"] .user-modal-ref-card {
            background: var(--bg-card);
            border-color: var(--border);
            box-shadow: none;
        }

        .user-modal-ref-num {
            font-size: 2.2rem;
            font-weight: 800;
            line-height: 1;
        }

        .user-modal-ref-label {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-muted);
            text-align: left;
            line-height: 1.3;
        }

        .user-modal-ref-label span {
            color: var(--text-dark);
        }

        /* Timeline */
        .user-modal-timeline-line {
            position: absolute;
            left: 0;
            right: 0;
            top: 50%;
            height: 3px;
            background: #E2E8F0;
            z-index: 1;
            transform: translateY(-50%);
        }

        [data-theme="dark"] .user-modal-timeline-line {
            background: var(--border);
        }

        .timeline-dot-center {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #6C5CE7;
            color: white;
            font-weight: 700;
            font-size: 0.8rem;
            z-index: 2;
            border: 4px solid #E0DDFE;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        [data-theme="dark"] .timeline-dot-center {
            border-color: rgba(108, 92, 231, 0.3);
        }

        .timeline-date {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-top: 8px;
        }

        /* Timeline Extra & Buttons */
        .timeline-dot-edge {
            position: relative;
            z-index: 2;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #E2E8F0;
            border: 4px solid white;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 0 1px #CBD5E1;
        }

        [data-theme="dark"] .timeline-dot-edge {
            background: var(--bg-tertiary);
            border-color: var(--bg-card);
            box-shadow: 0 0 0 1px var(--border);
        }

        .user-modal-action-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 12px;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            width: 100%;
        }

        .btn-reset {
            background: white;
            border: 1px solid #E2E8F0;
            color: #1a1a1a;
        }

        [data-theme="dark"] .btn-reset {
            background: var(--bg-tertiary);
            border-color: var(--border);
            color: var(--text-dark);
        }

        .btn-upgrade {
            background: #6C5CE7;
            border: 1px solid #6C5CE7;
            color: white;
        }

        [data-theme="dark"] .btn-upgrade {
            background: var(--primary);
            border-color: var(--primary);
            color: var(--text-dark);
            /* White usually better on primary bg */
            color: white;
        }

        /* Keyframes for User Modal */
        @keyframes pulse-green-custom {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
            }

            70% {
                transform: scale(1.05);
                box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
            }
        }

        @keyframes pulse-red-custom {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(245, 92, 71, 0.4);
            }

            70% {
                transform: scale(1.05);
                box-shadow: 0 0 0 6px rgba(245, 92, 71, 0);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(245, 92, 71, 0);
            }
        }

        @keyframes pulse-purple-custom {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4);
            }

            70% {
                transform: scale(1.05);
                box-shadow: 0 0 0 6px rgba(108, 92, 231, 0);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
            }
        }

        /* GROUPING HEADER (User List) - Dark Mode Fix */
        .group-header-badge {
            background: #E0DDFE;
            color: #6C5CE7;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 700;
        }

        .group-header-icon {
            color: #8c7ae6;
            font-size: 1rem;
            margin-right: 8px;
        }

        [data-theme="dark"] .group-header-badge {
            background: rgba(108, 92, 231, 0.2) !important;
            /* Glassy Purple */
            color: var(--primary-light) !important;
            border: 1px solid rgba(108, 92, 231, 0.3);
        }

        [data-theme="dark"] .group-header-icon {
            color: var(--primary-light) !important;
            opacity: 0.9;
        }

        /* PINWHEEL ICON (Header Logo) Dark Mode Adjustment */
        [data-theme="dark"] .blade {
            opacity: 0.8;
            /* Make blades slightly transparent so they glow nicely, not flat white */
        }

        /* Group Header Badge (Tab Rekap) */
        .group-header-badge {
            background: #E0DDFE;
            color: #6C5CE7;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.85em;
            font-weight: 700;
        }

        [data-theme="dark"] .group-header-badge {
            background: rgba(108, 92, 231, 0.2);
            color: var(--primary-light);
            border: 1px solid rgba(108, 92, 231, 0.3);
        }

        /* Menu Icons Colors */
        .menu-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Cleanup (Red) */
        .menu-icon.cleanup {
            background: rgba(231, 76, 60, 0.1);
            color: #e74c3c;
        }

        [data-theme="dark"] .menu-icon.cleanup {
            background: rgba(239, 68, 68, 0.2);
            color: #F87171;
        }

        /* Registration (Purple) */
        .menu-icon.registration {
            background: rgba(108, 92, 231, 0.1);
            color: var(--primary);
        }

        [data-theme="dark"] .menu-icon.registration {
            background: rgba(108, 92, 231, 0.2);
            color: var(--primary-light);
        }

        /* Settings (Grey -> Slate White) */
        .menu-icon.settings {
            background: rgba(149, 165, 166, 0.15);
            color: #7f8c8d;
        }

        [data-theme="dark"] .menu-icon.settings {
            background: rgba(148, 163, 184, 0.2);
            /* Slate lighter */
            color: #f1f5f9;
            /* Bright white-ish */
        }

        /* Glassy Green for Dark Mode */
        [data-theme="dark"] .btn-green-light {
            background: rgba(16, 185, 129, 0.2) !important;
            color: #34D399 !important;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        /* Glassy Purple for Dark Mode */
        [data-theme="dark"] .btn-purple-light {
            background: rgba(108, 92, 231, 0.2) !important;
            color: var(--primary-light) !important;
            border: 1px solid rgba(108, 92, 231, 0.3);
        }

        /* Remove Divider from Group Sticky Headers */
        .group-sticky-header {
            border-bottom: none !important;
        }

        [data-theme="dark"] .group-sticky-header {
            border-bottom: none !important;
        }

        /* Unique Code Badge (Indicator) */
        .unique-code-badge {
            background: #6C5CE7;
            color: white;
            font-weight: 800;
            font-size: 0.75rem;
            padding: 4px 8px;
            border-radius: 99px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        [data-theme="dark"] .unique-code-badge {
            background: rgba(108, 92, 231, 0.2);
            /* Glassy Purple */
            color: var(--primary-light);
            border: 1px solid rgba(108, 92, 231, 0.3);
        }

        /* FORCE OVERRIDE for Grey Button in Dark Mode */
        body[data-theme="dark"] .btn-grey-light {
            background-color: rgba(148, 163, 184, 0.15) !important;
            color: #94a3b8 !important;
            border: 1px solid rgba(148, 163, 184, 0.2) !important;
            box-shadow: none !important;
        }

        /* NUCLEAR FIX: Force Grey/Sent Button to be Glassy in Dark Mode */
        [data-theme="dark"] .send-btn.sent,
        [data-theme="dark"] .send-btn.btn-grey-light,
        [data-theme="dark"] button.send-btn.sent {
            background: rgba(148, 163, 184, 0.15) !important;
            background-color: rgba(148, 163, 184, 0.15) !important;
            color: #94a3b8 !important;
            border: 1px solid rgba(148, 163, 184, 0.2) !important;
            box-shadow: none !important;
        }

        /* BORDER FIX: Remove thin white lines on Dark Mode Buttons */
        [data-theme="dark"] .send-btn.sent,
        [data-theme="dark"] .send-btn.btn-grey-light,
        [data-theme="dark"] button.send-btn.sent,
        [data-theme="dark"] .btn-green-light,
        [data-theme="dark"] .btn-purple-light {
            border: 1px solid transparent !important;
        }

        /* =========================================
   PAYMENT MODAL FIXES (Duration Cards)
   ========================================= */

        .duration-card-btn {
            padding: 14px 16px;
            border: 2px solid var(--border);
            border-radius: 12px;
            background: white;
            display: flex;
            align-items: center;
            gap: 14px;
            text-align: left;
            transition: all 0.2s;
            cursor: pointer;
            width: 100%;
            box-sizing: border-box;
            min-height: 72px;
            color: var(--text-dark);
        }

        .duration-card-btn:hover {
            border-color: var(--primary);
            background: rgba(108, 92, 231, 0.05);
        }

        [data-theme="dark"] .duration-card-btn {
            background: rgba(255, 255, 255, 0.05) !important;
            /* Glassy Dark */
            border-color: rgba(255, 255, 255, 0.1);
        }

        [data-theme="dark"] .duration-card-btn:hover,
        [data-theme="dark"] .duration-card-btn.selected {
            background: rgba(108, 92, 231, 0.2) !important;
            border-color: var(--primary) !important;
        }

        /* Internal text styling classes */
        .duration-month {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--primary);
            line-height: 1;
            width: 35px;
            flex-shrink: 0;
            text-align: center;
        }

        [data-theme="dark"] .duration-month {
            color: var(--primary-light);
        }

        .duration-price {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .duration-expiry {
            font-size: 0.75rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* Server Filter Toggle (Next to Search) */
        .server-toggle-btn {
            border-radius: 12px;
            border: 1px solid var(--primary);
            background: var(--primary);
            color: white;
            font-size: 0.85rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            cursor: pointer;
            transition: all 0.2s;
            height: 42px;
            padding: 0 12px;
        }

        /* States */
        .server-toggle-btn:hover {
            opacity: 0.9;
        }

        .server-toggle-btn .server-badges {
            display: flex;
            gap: 4px;
        }

        .server-badge {
            width: 20px;
            height: 20px;
            background: rgba(255, 255, 255, 0.25);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 700;
        }

        /* Server Badge Color Update */
        .server-badge {
            background: white !important;
            color: var(--primary) !important;
        }

        /* Input Text Color Fix */
        .form-input {
            color: var(--text-dark);
        }

        [data-theme="dark"] .form-input {
            color: var(--text-dark);
            background: var(--bg-tertiary);
            /* Ensure consistent bg */
        }

        /* Placeholder contrast */
        ::placeholder {
            color: #94a3b8;
            opacity: 1;
        }

        [data-theme="dark"] ::placeholder {
            color: #64748b;
        }

        /* FAB Sending State (Red Stop Button) */
        /* FAB Sending State (Red Stop Button) */
        .fab.sending {
            background: #FF4757 !important;
            box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
            animation: pulseRed 2s infinite;
            color: white !important;
            border-color: #FF4757 !important;
        }

        @keyframes pulseRed {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
            }

            70% {
                transform: scale(1.05);
                box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
            }
        }

        /* ADAPTIVE GREEN BUTTON FIX */
        .btn-green-adaptive {
            background: #D1FAE5 !important;
            color: #10B981 !important;
            border: 1px solid #D1FAE5 !important;
        }

        [data-theme="dark"] .btn-green-adaptive {
            background: rgba(16, 185, 129, 0.2) !important;
            color: #34D399 !important;
            border: 1px solid rgba(16, 185, 129, 0.3) !important;
        }


        /* FORCE UNIFIED PASTEL COLORS (NO BORDER) - FINAL FIX v21 */
        .btn-green-adaptive,
        [data-theme="dark"] .btn-green-adaptive {
            background: #D1FAE5 !important;
            color: #10B981 !important;
            border: none !important;
        }

        .btn-purple-light,
        [data-theme="dark"] .btn-purple-light {
            background: rgba(108, 92, 231, 0.15) !important;
            color: #6C5CE7 !important;
            border: none !important;
        }


        /* FORCE SOLID PASTEL COLORS FOR ALL MODES v22 */
        .btn-green-adaptive,
        [data-theme="dark"] .btn-green-adaptive {
            background: #D1FAE5 !important;
            /* Solid Light Green */
            color: #10B981 !important;
            border: none !important;
            opacity: 1 !important;
        }

        .btn-purple-light,
        [data-theme="dark"] .btn-purple-light {
            background: #EBE9FE !important;
            /* Solid Light Purple */
            color: #6C5CE7 !important;
            border: none !important;
            opacity: 1 !important;
        }


        /* FIX DARK MODE BUTTONS TO BE DARKER (RESTORE GLASSY) v23 */
        [data-theme="dark"] .btn-green-adaptive {
            background: rgba(16, 185, 129, 0.2) !important;
            color: #34D399 !important;
        }

        [data-theme="dark"] .btn-purple-light {
            background: rgba(108, 92, 231, 0.2) !important;
            color: #A29BFE !important;
        }