:root {
    --glass-bg: rgba(20, 20, 25, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(16px);
}

/* Base Body Update for Dashboard */
body.dashboard-page {
    background-color: #050308;
    background-image: radial-gradient(circle at top left, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
                      radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Redesigned Glass Dashboard Header */
.dashboard-page-header {
    margin-bottom: 40px;
    padding: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.dashboard-page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-purple, #8b5cf6), var(--accent-pink, #ec4899));
}

.dashboard-page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.dashboard-page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Glass Plugin Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    padding: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 12px 40px 0 rgba(139, 92, 246, 0.15);
}

.glass-card .plugin-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.glass-card .plugin-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.glass-card .plugin-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.glass-card .plugin-status {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    display: inline-block;
}
.glass-card .plugin-status.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.glass-card .license-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.glass-card .license-section label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.glass-card .license-key-display {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: 1px;
}

.glass-card .hardware-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Skeleton Loading State */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.skeleton-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.skeleton-header {
    display: flex;
    gap: 16px;
}
.skeleton-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
}
.skeleton-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.skeleton-line {
    height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}
.skeleton-line.short { width: 40%; }
.skeleton-line.long { width: 100%; height: 40px; margin-top: 10px; }

/* Empty State */
.glass-empty-state {
    grid-column: 1 / -1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 80px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glass-shadow);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.glass-empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-empty-state p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 30px;
}

/* Premium List View Card for Purchases */
.premium-list-card {
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.6), rgba(20, 20, 25, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.premium-list-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.premium-list-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 50px -10px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.premium-list-card:hover::before {
    left: 200%;
}

.premium-list-card .plugin-info,
.skeleton-list-card .plugin-info {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 250px;
    flex: 1;
}

.premium-list-card .plugin-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.05), 0 8px 20px rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #c4b5fd;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.premium-list-card:hover .plugin-icon-container {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.15));
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.1), 0 12px 25px rgba(139, 92, 246, 0.2);
    transform: scale(1.05) rotate(-3deg);
}

.premium-list-card .plugin-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(to right, #fff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.premium-list-card .license-key-box {
    flex: 1.5;
    min-width: 280px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s, transform 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.premium-list-card .license-key-box:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.premium-list-card .license-key-text {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: #a78bfa;
    font-size: 0.95rem;
    letter-spacing: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.premium-list-card .copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.premium-list-card .copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.premium-list-card .actions-group {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: max-content;
}

.premium-list-card .hardware-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    padding: 0 16px;
    height: 46px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.premium-list-card .btn-download {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #fff;
    padding: 0 24px;
    height: 46px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.premium-list-card .btn-download:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(236, 72, 153, 0.6));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

/* Synced Premium Skeleton Card */
.skeleton-list-card {
    background: rgba(20, 20, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.skeleton-list-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

.skeleton-list-card .skeleton-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.skeleton-list-card .skeleton-title-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.skeleton-list-card .skeleton-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.skeleton-list-card .skeleton-key-box {
    flex: 1.5;
    min-width: 280px;
    height: 52px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.skeleton-list-card .skeleton-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: max-content;
}

.skeleton-list-card .skeleton-hardware {
    width: 80px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
}

.skeleton-list-card .skeleton-btn {
    width: 130px;
    height: 46px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

/* Mobile Responsiveness for Dashboard */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .skeleton-list-card, .premium-list-card {
        flex-direction: column;
        align-items: stretch;
    }
    .skeleton-list-card .skeleton-actions,
    .premium-list-card .actions-group {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    .dashboard-page-header {
        padding: 40px 20px;
    }
    
    .claim-license-section {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 24px 20px !important;
        gap: 16px !important;
    }
    
    .claim-form-container {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .claim-form-group {
        flex-direction: column !important;
    }
    
    .claim-form-group button {
        width: 100% !important;
    }

    .premium-list-card .license-key-box {
        min-width: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }

    .premium-list-card .license-key-text {
        white-space: normal !important;
        word-break: break-all !important;
        line-height: 1.4 !important;
    }
}

/* Dashboard Invoice Button */
.premium-list-card .btn-invoice {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    padding: 0 18px;
    height: 46px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.premium-list-card .btn-invoice:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ── Invoice Modal Overlay & Dialog ── */
.invoice-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.invoice-modal-overlay.active {
    display: flex;
}

.invoice-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.invoice-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Invoice Card */
.invoice-card {
    background: #0f1015;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.1);
    color: #f3f4f6;
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.invoice-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invoice-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
}

.invoice-brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.invoice-brand-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

.invoice-meta-top {
    text-align: right;
}

.invoice-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.invoice-id-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    font-weight: 600;
}

.invoice-id-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Montserrat', monospace;
}

.invoice-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    margin: 28px 0;
}

.invoice-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.invoice-info-block .info-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.invoice-info-block .info-val-strong {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.invoice-info-block .info-val {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    word-break: break-all;
}

.invoice-info-block .info-row {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.invoice-info-block .info-sub {
    color: rgba(255, 255, 255, 0.45);
    margin-right: 6px;
}

.invoice-table-wrapper {
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-table th {
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    padding: 12px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.invoice-table td {
    padding: 18px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.invoice-table .item-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.invoice-table .item-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.code-font {
    font-family: monospace;
    color: #c4b5fd;
    letter-spacing: 0.5px;
}

.invoice-totals {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 28px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    width: 260px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.totals-row.total-highlight {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.invoice-footer-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    line-height: 1.5;
}

.invoice-footer-note a {
    color: #a78bfa;
    text-decoration: none;
}

/* Modal Actions */
.invoice-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 4px;
}

.btn-inv-action {
    height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-inv-print {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-inv-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.45);
}

.btn-inv-external {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-inv-external:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-inv-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.btn-inv-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Print Styling */
@media print {
    body * {
        visibility: hidden !important;
    }
    #invoice-modal,
    #invoice-modal * {
        visibility: visible !important;
    }
    #invoice-modal {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }
    .invoice-modal-backdrop,
    .invoice-modal-actions {
        display: none !important;
    }
    .invoice-modal-dialog {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
    }
    .invoice-card {
        background: #ffffff !important;
        color: #111827 !important;
        border: 1px solid #e5e7eb !important;
        box-shadow: none !important;
        padding: 30px !important;
    }
    .invoice-brand-name,
    .invoice-id-val,
    .info-val-strong,
    .item-title,
    .totals-row.total-highlight {
        color: #000000 !important;
    }
    .invoice-brand-sub,
    .invoice-id-label,
    .info-label,
    .info-sub,
    .invoice-table th,
    .item-meta,
    .totals-row,
    .invoice-footer-note {
        color: #4b5563 !important;
    }
    .code-font {
        color: #4338ca !important;
    }
    .invoice-status-badge {
        border: 1px solid #10b981 !important;
        color: #047857 !important;
        background: #ecfdf5 !important;
    }
    .invoice-table-wrapper {
        border-color: #e5e7eb !important;
    }
    .invoice-table th {
        background: #f9fafb !important;
        border-bottom-color: #e5e7eb !important;
    }
    .invoice-table td {
        border-bottom-color: #f3f4f6 !important;
    }
    .invoice-divider {
        background: #e5e7eb !important;
    }
    .totals-row.total-highlight {
        border-top-color: #e5e7eb !important;
    }
}

@media (max-width: 640px) {
    .invoice-card {
        padding: 24px 18px !important;
    }
    .invoice-header {
        flex-direction: column !important;
        gap: 16px !important;
    }
    .invoice-meta-top {
        text-align: left !important;
    }
    .invoice-info-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .invoice-totals {
        width: 100% !important;
    }
    .totals-row {
        width: 100% !important;
    }
    .invoice-modal-actions {
        flex-direction: column !important;
    }
    .btn-inv-action {
        width: 100% !important;
        justify-content: center !important;
    }
}
