
        .card {
            background: #151b2b;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .input,
        .select,
        textarea {
            width: 100%;
            padding: 12px 14px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            border-radius: 8px;
            outline: none;
            font-size: 14px;
            transition: border-color 0.2s;
        }

        .input:focus,
        .select:focus,
        textarea:focus {
            border-color: var(--accent);
            background: rgba(255, 255, 255, 0.08);
        }

        select option {
            background: #1e293b;
        }

        .hint {
            font-size: 12px;
            color: #64748b;
            margin-top: 6px;
            font-style: italic;
        }

        .btn-accent,
        .btn-primary,
        .btn-sm,
        button:not(.tab) {
            padding: 12px 24px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 14px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            border: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        .btn-accent,
        .btn-primary {
            background: linear-gradient(135deg, #f3ba2f 0%, #d49e1e 100%);
            color: #060913;
        }

        .btn-accent:hover,
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 15px -3px rgba(243, 186, 47, 0.4);
            filter: brightness(1.1);
        }

        .btn-sm {
            padding: 8px 16px;
            font-size: 12px;
        }

        /* Tabs Container Flexibility (Horizontal Scroll on Mobile) */
        .tabs {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            border-bottom: 2px solid rgba(255, 255, 255, 0.05);
            padding-bottom: 10px;
            margin-bottom: 25px;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .tabs::-webkit-scrollbar {
            display: none;
        }

        .tab {
            white-space: nowrap;
            padding: 10px 18px;
            border-radius: 8px;
            cursor: pointer;
            color: var(--text-muted);
            font-weight: 700;
            font-size: 13px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: all 0.2s;
        }

        .tab.active {
            color: #fff;
            background: var(--accent);
            border-color: var(--accent);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        @media (max-width: 768px) {
            .card {
                padding: 15px;
            }

            .tabs {
                flex-wrap: wrap;
                overflow-x: visible;
                gap: 8px;
            }

            .tab {
                flex: 1 1 calc(33.33% - 10px);
                width: calc(33.33% - 10px);
                padding: 8px 4px;
                text-align: center;
                font-size: 11px;
                white-space: normal;
                word-break: break-word;
            }

            .form-row {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .btn-accent,
            .btn-primary,
            button:not(.tab):not(#btnToggle):not(.btn-sm) {
                width: 100%;
                max-width: 400px;
                margin: 8px auto;
                padding: 12px 16px;
                font-size: 13px;
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 8px;
            }

            .btn-sm {
                padding: 6px 12px !important;
                font-size: 11px !important;
                width: auto !important;
                min-width: unset !important;
                margin: 0 !important;
                display: inline-flex !important;
                align-items: center;
                justify-content: center;
                gap: 4px;
            }

            #btnToggle {
                width: auto !important;
                padding: 5px !important;
            }

            .row {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }

            .row input[type="file"] {
                max-width: 100% !important;
            }
        }

        /* WhatsApp Control Center Styles */
        #wa-status-card {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            margin-bottom: 20px;
        }

        #wa-qr-container {
            width: 140px;
            height: 140px;
            background: #0d1117;
            padding: 5px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        #wa-qr-container img {
            width: 100%;
            height: 100%;
            display: none;
            background: #fff;
            padding: 5px;
            border-radius: 4px;
        }

        #wa-info {
            flex: 1;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            margin-bottom: 8px;
        }

        .status-connected {
            background: #059669;
            color: #ecfdf5;
        }

        .status-disconnected {
            background: #dc2626;
            color: #fef2f2;
        }

        .status-pairing {
            background: #d97706;
            color: #fffbeb;
        }

        #wa-log-box {
            background: #0d1117;
            color: #d1d5db;
            font-family: 'Courier New', Courier, monospace;
            padding: 15px;
            border-radius: 8px;
            height: 200px;
            overflow-y: auto;
            font-size: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 15px;
        }

        .wa-log-line {
            padding: 2px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        }

        @media (max-width: 768px) {
            #wa-status-card {
                flex-direction: column;
                text-align: center;
            }
        }

        /* Fix stubborn black text on time inputs */
        input[type="time"] {
            color-scheme: dark !important;
        }

        input[type="time"]::-webkit-datetime-edit-fields-wrapper,
        input[type="time"]::-webkit-datetime-edit-text,
        input[type="time"]::-webkit-datetime-edit-hour-field,
        input[type="time"]::-webkit-datetime-edit-minute-field,
        input[type="time"]::-webkit-datetime-edit-ampm-field {
            color: #ffffff !important;
            -webkit-text-fill-color: #ffffff !important;
        }

        input[type="time"]::-webkit-calendar-picker-indicator {
            filter: invert(1);
        }

        /* Toast Notifications */
        #toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
        }

        .toast-msg {
            min-width: 300px;
            background: #1e293b;
            color: white;
            padding: 16px 20px;
            border-radius: 12px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
            border-left: 5px solid #3b82f6;
            display: flex;
            align-items: center;
            gap: 12px;
            pointer-events: auto;
            animation: toast-slide-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
            font-size: 14px;
            font-weight: 500;
        }

        .toast-msg.success {
            border-left-color: #10b981;
        }

        .toast-msg.error {
            border-left-color: #ef4444;
        }

        .toast-msg.warning {
            border-left-color: #f59e0b;
        }

        .toast-msg.info {
            border-left-color: #3b82f6;
        }

        @keyframes toast-slide-in {
            from {
                transform: translateX(100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .toast-fade-out {
            animation: toast-fade-out 0.4s forwards;
        }

        @keyframes toast-fade-out {
            from {
                opacity: 1;
                transform: scale(1);
            }

            to {
                opacity: 0;
                transform: scale(0.9);
            }
        }

        .modal-content {
            background: #1e293b;
            padding: 30px;
            border-radius: 16px;
            width: 90%;
            position: relative;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            border-top: 4px solid var(--accent);
        }

        .tg-left-col {
            flex: 1.5;
            min-width: 300px;
            max-width: 550px;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .tg-right-col {
            flex: 1;
            min-width: 280px;
            max-width: 360px;
            background: #0e1621;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 12px 15px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            align-self: stretch;
            display: flex;
            flex-direction: column;
        }

        @media (max-width: 768px) {

            .tg-left-col,
            .tg-right-col {
                min-width: 100% !important;
                max-width: 100% !important;
            }
        }

        /* Premium Variable Guide Tables */
        .tg-vars-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 15px;
        }

        .tg-vars-grid>div {
            min-width: 0;
            overflow-x: hidden;
        }

        .var-guide-table,
        .var-guide-table tbody {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        .var-guide-table tr {
            display: flex;
            flex-direction: row;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
            transition: all 0.2s ease;
            align-items: flex-start;
        }

        .var-guide-table tr:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .var-guide-table td {
            padding: 6px 5px;
            border: none;
            color: #cbd5e1;
            font-size: 10.5px;
            line-height: 1.5;
        }

        .var-guide-table td:first-child {
            flex: 0 0 155px;
            /* Lebar pasti untuk kolom badge, cukup untuk variabel terpanjang */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding-right: 10px;
        }

        .var-guide-table td:last-child {
            flex: 1 1 0%;
            word-wrap: break-word;
            white-space: normal;
        }

        .var-badge {
            display: inline-block;
            font-weight: 600;
            padding: 2px 5px;
            border-radius: 4px;
            font-family: monospace;
            font-size: 9px;
            text-align: left;
            max-width: 100%;
        }

        .var-badge.blue {
            color: #60a5fa;
            background: rgba(96, 165, 250, 0.1);
        }

        .var-badge.orange {
            color: #fb923c;
            background: rgba(251, 146, 60, 0.1);
        }

        .var-badge.red {
            color: #f87171;
            background: rgba(248, 113, 113, 0.1);
        }

        .var-badge.yellow {
            color: #facc15;
            background: rgba(250, 204, 21, 0.1);
        }

        .var-badge.green {
            color: #34d399;
            background: rgba(52, 211, 153, 0.1);
        }

        .var-badge.purple {
            color: #c084fc;
            background: rgba(192, 132, 252, 0.1);
        }
    