     :root {
            --bg-main: #0f0f1a;
            --bg-card: #1a1a2e;
            --bg-input: #252542;
            --text-primary: #ffffff;
            --text-muted: #94a3b8;
            --primary: #6366f1;
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --border-radius: 12px;
            --transition: all 0.25s ease;
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: var(--bg-main);
            color: var(--text-primary);
            margin: 0;
            padding: 24px;
            min-height: 100vh;
        }

        .container {
            max-width: 1100px;
            margin: auto;
            background: var(--bg-card);
            border-radius: var(--border-radius);
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        /* Top Header Styling */
        .header-bar {
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            flex-wrap: wrap;
            gap: 15px;
        }

        .user-info {
            font-size: 15px;
            color: var(--text-muted);
        }
        
        .user-info b {
            color: var(--text-primary);
        }

        /* Top Shift Meta Layout Layout Badge */
        .header-shift-status {
            display: flex;
            align-items: center;
            gap: 15px;
            background: rgba(255, 255, 255, 0.03);
            padding: 6px 14px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 13px;
            color: var(--text-muted);
        }

        .header-shift-status b {
            color: var(--text-primary);
        }

        .header-shift-status #shift-timer {
            color: var(--warning);
            font-weight: 600;
            font-family: monospace;
            font-size: 14px;
            background: rgba(245, 158, 11, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
        }

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

        h2 {
            margin: 0 0 20px 0;
            font-size: 24px;
            font-weight: 600;
            letter-spacing: -0.5px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Manager Panel Styling */
        .manager-panel {
            background: #141424;
            border: 1px solid rgba(245, 158, 11, 0.15);
            border-radius: var(--border-radius);
            padding: 20px;
            margin-bottom: 25px;
        }

        .manager-panel h3 {
            margin: 0 0 15px 0;
            font-size: 16px;
            font-weight: 600;
            color: var(--warning);
            display: flex;
            align-items: center;
            gap: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .manager-actions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
        }

        .btn-manager {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(245, 158, 11, 0.08);
            color: #fcd34d;
            border: 1px solid rgba(245, 158, 11, 0.2);
            padding: 12px 14px;
            font-size: 14px;
            font-weight: 600;
            text-align: left;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
        }

        a.btn-manager:visited {
            color: #fcd34d;
        }

        a.btn-manager:hover {
            color: #0f0f1a;
        }

        .btn-manager--mgmt .manager-icon-wrap {
            background: rgba(99, 102, 241, 0.14);
            color: #a5b4fc;
        }

        .btn-manager:hover {
            background: var(--warning);
            color: #0f0f1a;
            border-color: var(--warning);
        }

        .btn-manager:hover .manager-icon-wrap {
            background: rgba(15, 15, 26, 0.12);
            color: #0f0f1a;
        }

        .manager-label {
            line-height: 1.25;
        }

        .manager-icon-wrap {
            width: 34px;
            height: 34px;
            border-radius: 9px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            background: rgba(255, 255, 255, 0.06);
            color: #fcd34d;
            transition: var(--transition);
        }

        .manager-icon-wrap svg {
            width: 18px;
            height: 18px;
            display: block;
        }

        .manager-icon-wrap--title {
            width: 28px;
            height: 28px;
            border-radius: 7px;
            background: rgba(245, 158, 11, 0.15);
            color: var(--warning);
        }

        .manager-icon-wrap--title svg {
            width: 15px;
            height: 15px;
        }

        .btn-manager--open .manager-icon-wrap {
            background: rgba(34, 197, 94, 0.14);
            color: #4ade80;
        }

        .btn-manager--close .manager-icon-wrap {
            background: rgba(239, 68, 68, 0.14);
            color: #f87171;
        }

        .btn-manager--report .manager-icon-wrap {
            background: rgba(59, 130, 246, 0.14);
            color: #60a5fa;
        }

        .btn-manager--payout .manager-icon-wrap {
            background: rgba(168, 85, 247, 0.14);
            color: #c084fc;
        }

        .btn-manager--refund .manager-icon-wrap {
            background: rgba(251, 146, 60, 0.14);
            color: #fb923c;
        }

        .manager-icon-wrap--open {
            background: rgba(34, 197, 94, 0.14);
            color: #4ade80;
        }

        .manager-icon-wrap--close {
            background: rgba(239, 68, 68, 0.14);
            color: #f87171;
        }

        .manager-icon-wrap--payout {
            background: rgba(168, 85, 247, 0.14);
            color: #c084fc;
        }

        .manager-icon-wrap--refund {
            background: rgba(251, 146, 60, 0.14);
            color: #fb923c;
        }

        #openShiftModal .modal-header h3,
        #closeShiftModal .modal-header h3,
        #payoutModal .modal-header h3,
        #refundModal .modal-header h3 {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Input Controls */
        input[type="text"],
        input[type="password"],
        input[type="email"],
        input[type="number"],
        input[type="search"],
        input[type="tel"],
        input[type="url"] {
            width: 100%;
            padding: 14px 18px;
            font-size: 16px;
            font-family: inherit;
            background: var(--bg-input);
            color: var(--text-primary);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: var(--border-radius);
            outline: none;
            transition: var(--transition);
            -webkit-appearance: none;
            appearance: none;
        }

        input[type="password"] {
            letter-spacing: 0.08em;
        }

        input::placeholder {
            color: var(--text-muted);
            opacity: 0.85;
            letter-spacing: normal;
        }

        input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }

        #barcode {
            margin-bottom: 25px;
            font-size: 18px;
            border-left: 4px solid var(--primary);
        }

        /* Cart Table */
        table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            margin-bottom: 25px;
            border-radius: var(--border-radius);
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        th {
            background: #22223b;
            padding: 16px;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-muted);
            font-weight: 600;
        }

        td {
            padding: 14px 16px;
            text-align: center;
            background: #1e1e38;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
            font-size: 15px;
            vertical-align: middle;
        }

        tr:last-child td {
            border-bottom: none;
        }

        table td input[type="number"] {
            width: 80px;
            padding: 8px;
            text-align: center;
            font-size: 15px;
            margin: 0 auto;
        }

        /* Dynamic Totals Panel */
        .total-box {
            margin-top: 20px;
            padding: 20px 25px;
            background: #141424;
            border-radius: var(--border-radius);
            text-align: right;
            border: 1px solid rgba(255, 255, 255, 0.03);
            font-size: 15px;
            line-height: 1.8;
            color: var(--text-muted);
        }

        .total-box b {
            font-size: 24px;
            color: var(--text-primary);
            display: block;
            margin-top: 5px;
            padding-top: 5px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .total-box #total {
            color: var(--success);
            font-weight: 700;
        }

        /* Master Buttons Component */
        .buttons {
            margin-top: 25px;
            display: flex;
            gap: 12px;
        }

        button {
            flex: 1;
            padding: 14px 24px;
            font-size: 15px;
            font-weight: 600;
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: #2d2d44;
            color: var(--text-primary);
        }

        button:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }

        button:active {
            transform: translateY(1px);
        }

        .checkout {
            background: var(--success);
            color: white;
            flex: 2;
        }

        .clear {
            background: rgba(239, 68, 68, 0.15);
            color: var(--danger);
            border: 1px solid rgba(239, 68, 68, 0.2);
        }
        
        .clear:hover {
            background: var(--danger);
            color: white;
        }

        .btn-logout {
            background: var(--danger);
            padding: 8px 16px;
            font-size: 13px;
            border-radius: 8px;
            color: white;
        }

        .btn-shift {
            padding: 8px 16px;
            font-size: 13px;
            border-radius: 8px;
            background: rgba(99, 102, 241, 0.15);
            color: #a5b4fc;
            border: 1px solid rgba(99, 102, 241, 0.2);
        }
        .btn-shift:hover {
            background: var(--primary);
            color: white;
        }

        .btn-remove {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
            padding: 6px;
            border-radius: 6px;
            width: 32px;
            height: 32px;
        }
        .btn-remove:hover {
            background: var(--danger);
            color: white;
        }

        /* Global Notification System */
        .msg {
            text-align: center;
            margin-top: 15px;
            font-size: 15px;
            min-height: 24px;
            font-weight: 500;
        }

        .success { color: var(--success); }
        .error { color: var(--danger); }

        /* Payment Modal Configuration Overlay */
        .payment {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 10, 18, 0.85);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        /* Modal window container card */
        .payment-modal-content {
            background: var(--bg-card);
            border-radius: var(--border-radius);
            width: 100%;
            max-width: 480px;
            padding: 30px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.08);
            animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes modalFadeIn {
            from { opacity: 0; transform: scale(0.95) translateY(10px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .payment h3 {
            margin: 0 0 20px 0;
            font-size: 22px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding-bottom: 12px;
        }

        .row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 14px;
        }

        .row label {
            font-size: 15px;
            color: var(--text-muted);
        }

        .payment input.payment-input {
            width: 160px;
            padding: 10px 14px;
            font-size: 16px;
            text-align: right;
        }

        .payment-summary {
            background: #141424;
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
            margin-bottom: 20px;
            font-size: 15px;
            border: 1px solid rgba(255, 255, 255, 0.02);
        }

        .payment-summary > div {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .payment-summary > div:last-child {
            margin-bottom: 0;
        }

        .payment-summary #totalPaid { color: var(--text-primary); font-weight: 600; }
        .payment-summary #remaining { color: var(--warning); font-weight: 600; }
        .payment-summary #change { color: var(--success); font-weight: 600; font-size: 18px; }

        .modal-actions {
            display: flex;
            gap: 10px;
        }

        .btn-cancel {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-muted);
        }
        .btn-cancel:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-primary);
        }

        

/* Modal Core Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal Window Layout */
.modal-card {
    background: #1a1a2e;
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 16px 20px;
    background: #22223b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    background: #252542;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #6366f1;
}

/* Footer layout rules */
.modal-footer {
    padding: 14px 20px;
    background: #141424;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.modal-footer button {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: transparent;
    color: #94a3b8;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background: #ef4444; /* Alert color context for asset deduction/payouts */
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-confirm {
    background: var(--primary);
    color: #ffffff;
}

.btn-confirm:hover {
    opacity: 0.9;
}

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

.modal-card--sm {
    max-width: 380px;
}

.modal-card--wide {
    max-width: 560px;
}

.modal-inline-error {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 14px;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.shift-feedback-body {
    text-align: center;
    padding: 28px 24px 12px;
}

.shift-feedback-body h4 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.shift-feedback-body p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.shift-feedback-icon {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 12px;
}
.modal {
    display: none;

    position: fixed;   /* 🔥 VERY IMPORTANT */
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.6);

    z-index: 99999;   /* 🔥 MUST be high */
}

.modal-content {
    background: white;

    width: 700px;
    margin: 10% auto;

    padding: 20px;
    border-radius: 10px;
}

.refund-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.refund-item {
    flex: 2;
    font-weight: 500;
    color:#141424 !important;
}

.refund-available {
    flex: 1;
    text-align: center;
    color: #666;
    font-size: 13px;
}

.refund-input {
    flex: 1;
    text-align: right;
}

.refund-input input {
    width: 80px;
    padding: 8px;
    font-size: 16px;
    border: 2px solid #ccc;
}


    :root {
        --modal-teal: #083364;
        --modal-taupe: #3755EA;
        --modal-danger: #b91c1c;
    }

    #refundModal .modal-card--wide {
        max-width: 560px;
    }

    #refundModal .modal-body {
        max-height: 55vh;
        overflow-y: auto;
    }

    .refund-sale-meta {
        margin: 14px 0;
        padding: 12px 14px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        font-size: 0.85rem;
    }

    .refund-meta-row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 4px 0;
        color: #cbd5e1;
    }

    .refund-meta-row span:last-child {
        color: #ffffff;
        font-weight: 600;
    }

    .refund-items-list {
        margin-top: 14px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .refund-items-list:empty::before {
        content: "Load a receipt to see refundable items.";
        display: block;
        padding: 20px;
        color: #94a3b8;
        font-size: 0.9rem;
        text-align: center;
        font-style: italic;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        border: 1px dashed rgba(255, 255, 255, 0.12);
    }

    .refund-item-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        gap: 12px;
    }

    .refund-item-id {
        font-weight: 600;
        color: #94a3b8;
        font-size: 0.85rem;
        min-width: 56px;
        flex-shrink: 0;
    }

    .refund-item-name {
        flex-grow: 1;
        font-weight: 500;
        color: #f1f5f9;
        font-size: 0.9rem;
        line-height: 1.3;
        word-break: break-word;
    }

    .refund-item-qty-area {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.8rem;
        color: #94a3b8;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .refund-item-input {
        width: 52px;
        padding: 6px;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: #0f172a;
        color: #ffffff;
        border-radius: 6px;
        font-weight: 600;
        font-size: 0.95rem;
    }

    .refund-item-input:focus {
        outline: none;
        border-color: #3755EA;
        box-shadow: 0 0 0 2px rgba(55, 85, 234, 0.25);
    }

    #refundModal .btn-block {
        width: 100%;
        margin-top: 4px;
    }

    #refundModal .btn-danger {
        background: var(--modal-danger);
        color: #fff;
        border: none;
        padding: 10px 18px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
    }

    #refundModal .btn-danger:hover {
        background: #991b1b;
    }

    #refundModal .modal-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    #refundModal .modal-footer-right {
        display: flex;
        gap: 8px;
        margin-left: auto;
    }

    @keyframes modalSlideIn {
        from { transform: translateY(-12px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

/* ======================
   Dashboard / Landing Page
   ====================== */

.dashboard-page {
    padding: 0;
    background: var(--bg-main);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
}

.dashboard-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 40px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-logo {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.dashboard-brand h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.dashboard-subtitle {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-card--primary { border-top: 3px solid var(--primary); }
.stat-card--success { border-top: 3px solid var(--success); }
.stat-card--danger  { border-top: 3px solid var(--danger); }
.stat-card--neutral { border-top: 3px solid var(--text-muted); }

.stat-card--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.stat-card--link:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.stat-card--link .stat-meta {
    color: #a5b4fc;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.stat-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.dashboard-panel {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 24px 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dashboard-panel h2 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
}

.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.panel-header-row h2 {
    margin: 0;
}

.panel-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.panel-link:hover {
    text-decoration: underline;
}

.shift-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.shift-summary-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 14px 16px;
}

.shift-summary-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.shift-summary-value {
    font-size: 16px;
    font-weight: 600;
}

.shift-closed-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-left: 4px solid var(--warning);
}

.shift-closed-banner h2 {
    margin-bottom: 6px;
}

.shift-closed-banner p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.nav-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.nav-card:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

.nav-card--featured {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.nav-card--featured:hover {
    background: rgba(99, 102, 241, 0.2);
}

.nav-card-icon {
    font-size: 28px;
    line-height: 1;
}

.nav-card-title {
    font-size: 16px;
    font-weight: 600;
}

.nav-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

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

.btn-nav--primary:hover {
    background: #5558e3;
}

.table-wrap {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dashboard-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dashboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.sale-id {
    font-family: ui-monospace, monospace;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 4px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.badge--sale {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.badge--refund {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.badge--neutral {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
}

/* Product catalog */
.items-catalog-panel {
    padding-top: 20px;
}

.items-filter-form {
    margin-bottom: 16px;
}

.items-filter-row {
    display: grid;
    grid-template-columns: 1fr minmax(160px, 200px) auto auto;
    gap: 16px;
    align-items: end;
}

.items-filter-search,
.items-filter-sort {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.items-filter-search label,
.items-filter-sort label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.items-filter-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    outline: none;
    cursor: pointer;
}

.items-filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.items-filter-check {
    display: flex;
    align-items: center;
    padding-bottom: 14px;
}

.items-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
}

.items-check-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.items-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-bottom: 2px;
}

.items-results-meta {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.items-results-meta b {
    color: var(--text-primary);
}

.items-table td:nth-child(3) {
    max-width: 320px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.items-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.items-page-info {
    font-size: 14px;
    color: var(--text-muted);
}

.amount-sale { color: var(--success); font-weight: 600; }
.amount-refund { color: var(--danger); font-weight: 600; }

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

.empty-state p {
    margin: 0 0 16px;
}

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Auth pages (login, first-run setup) */
.login-page,
.setup-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: var(--bg-main);
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    color-scheme: dark;
}

.login-card,
.setup-card {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 36px 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.login-card {
    max-width: 400px;
}

.setup-card {
    max-width: 720px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 20px;
}

.auth-brand .dashboard-logo {
    display: inline-flex;
}

.login-card h2,
.setup-card h2 {
    margin: 0 0 6px;
    font-size: 24px;
    text-align: center;
}

.login-subtitle,
.setup-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 28px;
    line-height: 1.5;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.45;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.auth-alert-info {
    background: rgba(99, 102, 241, 0.12);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.auth-alert strong {
    color: #e0e7ff;
}

.auth-alert code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    color: #e0e7ff;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-field .field-hint {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: -2px;
}

/* Explicit auth inputs — required for Electron/Chromium password fields */
.auth-form .auth-input,
.login-card .auth-input,
.setup-card .auth-input {
    width: 100%;
    min-width: 0;
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.4;
    background-color: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.auth-form .auth-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.auth-form .auth-input::placeholder {
    color: var(--text-muted);
    opacity: 0.85;
}

.auth-form input.auth-input[type="password"] {
    letter-spacing: 0.08em;
}

.auth-form input.auth-input:-webkit-autofill,
.auth-form input.auth-input:-webkit-autofill:hover,
.auth-form input.auth-input:-webkit-autofill:focus,
.auth-form input.auth-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
    box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-password-wrap {
    position: relative;
    width: 100%;
}

.auth-password-wrap .auth-input {
    padding-right: 52px;
}

.auth-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.auth-password-toggle:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.setup-section {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 18px 18px 6px;
    background: rgba(0, 0, 0, 0.12);
}

.setup-section-title {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a5b4fc;
}

.setup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.setup-grid .auth-field--full {
    grid-column: 1 / -1;
}

.auth-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 4px;
}

.auth-submit:hover {
    background: #5558e3;
}

.login-error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-dashboard-link {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-dashboard-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Reports layout */
.reports-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

.reports-filter-panel h2 {
    margin: 0 0 16px;
    font-size: 16px;
}

.reports-filter-panel .auth-field {
    margin-bottom: 14px;
}

.reports-filter-panel .auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.reports-filter-panel .auth-input,
.reports-filter-panel input[type="date"],
.reports-filter-panel .items-filter-select {
    width: 100%;
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.4;
    background-color: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    outline: none;
    transition: var(--transition);
    color-scheme: dark;
    -webkit-appearance: none;
    appearance: none;
}

.reports-filter-panel input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.85);
    cursor: pointer;
    opacity: 0.9;
}

.reports-filter-panel .auth-input:focus,
.reports-filter-panel input[type="date"]:focus,
.reports-filter-panel .items-filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.reports-filter-panel .auth-submit {
    margin-top: 8px;
}

.reports-action-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.reports-results-panel {
    min-height: 320px;
}

.receipts-stat-grid {
    margin-bottom: 20px;
}

.receipt-link {
    color: #a5b4fc;
    font-weight: 600;
    text-decoration: none;
}

.receipt-link:hover {
    color: #c7d2fe;
    text-decoration: underline;
}

.receipt-row {
    cursor: pointer;
}

.receipt-row:hover {
    background: rgba(99, 102, 241, 0.06);
}

.receipts-hint {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.receipt-reprint-link {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 6px;
    text-decoration: none;
}

.receipt-reprint-link:hover {
    background: var(--warning);
    color: #0f0f1a;
}

.receipt-detail-panel h3 {
    margin: 20px 0 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.receipt-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.receipt-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.receipt-detail-totals,
.receipt-detail-payments,
.receipt-detail-vat {
    max-width: 360px;
    margin-left: auto;
    margin-top: 16px;
}

.receipt-total-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.receipt-total-row--grand {
    font-size: 18px;
    font-weight: 700;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    padding-top: 10px;
}

.dashboard-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
    .reports-layout {
        grid-template-columns: 1fr;
    }
}

/* Electron kiosk window controls (shown only in strict kiosk mode) */
.electron-window-chrome {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    padding: 0 8px 0 14px;
    background: #12121f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-app-region: drag;
    user-select: none;
}

.electron-chrome-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.electron-chrome-actions {
    display: flex;
    gap: 4px;
    -webkit-app-region: no-drag;
}

.electron-chrome-btn {
    width: 40px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.electron-chrome-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.electron-chrome-btn--close:hover {
    background: #ef4444;
    color: #fff;
}

body.has-electron-chrome {
    padding-top: 36px;
}

body.has-electron-chrome.login-page,
body.has-electron-chrome.setup-page {
    padding-top: 36px;
}

@media (max-width: 640px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-value {
        font-size: 24px;
    }

    .setup-grid {
        grid-template-columns: 1fr;
    }

    .login-card,
    .setup-card {
        padding: 28px 20px;
    }

    .items-filter-row {
        grid-template-columns: 1fr;
    }

    .items-filter-check,
    .items-filter-actions {
        padding-bottom: 0;
    }
}

/* License activation */
.license-card {
    max-width: 520px;
}

.license-device-meta {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.license-device-meta div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #cbd5e1;
}

.license-device-meta strong {
    color: #fff;
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.08em;
}

.license-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.license-tab {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    cursor: pointer;
    font-weight: 600;
}

.license-tab.active {
    background: rgba(55, 85, 234, 0.18);
    border-color: rgba(55, 85, 234, 0.35);
    color: #fff;
}

.license-tab-panel {
    display: none;
}

.license-tab-panel.active {
    display: block;
}

.license-request-box {
    margin-bottom: 18px;
}

.license-help {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 6px 0 12px;
}

.license-code-field {
    min-height: 88px;
    font-family: var(--font-mono, monospace);
    font-size: 0.82rem;
    line-height: 1.45;
    resize: vertical;
}

.license-status-page .license-status-shell {
    max-width: 960px;
    margin: 0 auto;
}

.license-status-grid {
    display: grid;
    gap: 18px;
}

.license-status-panel h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.license-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.license-status-header h2 {
    margin: 0;
}

.license-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.license-status-badge--active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.license-status-badge--inactive,
.license-status-badge--expired,
.license-status-badge--revoked {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.license-status-badge--warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.license-detail-list {
    margin-top: 8px;
}

.license-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.license-status-activate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: auto;
    min-width: 180px;
}

.license-status-panel--wide {
    grid-column: 1 / -1;
}

.auth-alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}

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

.auth-alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

.btn-block {
    width: 100%;
    margin-top: 8px;
}

/* Licensing portal */
.portal-page {
    background: #0f0f1a;
    color: #e2e8f0;
    min-height: 100vh;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: #141424;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.portal-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.portal-brand span {
    color: #94a3b8;
    font-size: 0.85rem;
}

.portal-nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.portal-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

.portal-nav a:hover {
    color: #fff;
}

.portal-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.portal-main h1 {
    margin: 0 0 8px;
}

.portal-subtitle {
    color: #94a3b8;
    margin: 0 0 20px;
}

.portal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.portal-stat {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
}

.portal-stat span {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.portal-stat strong {
    font-size: 1.6rem;
}

.portal-panel {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
}

.portal-panel h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

.portal-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 18px;
}

.portal-panel--wide {
    min-width: 0;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.portal-table th,
.portal-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    vertical-align: top;
}

.portal-table th {
    color: #94a3b8;
    font-weight: 600;
}

.portal-detail-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.portal-detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-steps {
    color: #cbd5e1;
    line-height: 1.6;
    padding-left: 18px;
}

.portal-messages {
    margin-bottom: 16px;
}

.license-key-reveal {
    border-color: rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.08);
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
}
