/* ==========================================
   SWAG SHOP — Glassmorphism / Glossy UI
   Premium, colorful, 3D glassy look
   ========================================== */

/* ── Animated gradient background for shop page ── */
#points .page-title {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 30%, #ec4899 60%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

#checkout .page-title {
    background: linear-gradient(135deg, #10b981 0%, #0ea5e9 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

#points .page-subtitle,
#checkout .page-subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
}

/* ── Balance Banner — Glassy ── */
#shop-balance-banner {
    background: rgba(255,255,255,0.6) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5) !important;
    border-radius: 20px !important;
    box-shadow:
        0 8px 32px rgba(14,165,233,0.08),
        0 2px 8px rgba(0,0,0,0.04),
        inset 0 1px 0 rgba(255,255,255,0.8);
    padding: 20px 28px !important;
    position: relative;
    overflow: hidden;
}

#shop-balance-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(59,130,246,0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(168,85,247,0.05) 0%, transparent 50%);
    pointer-events: none;
}

#shop-user-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6) !important;
    box-shadow: 0 4px 14px rgba(14,165,233,0.3), inset 0 1px 0 rgba(255,255,255,0.3) !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
}

#shop-user-balance {
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 8px rgba(245,158,11,0.2);
}

/* ── Search Bar — Glassy ── */
#shop-search {
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5) !important;
    border-radius: 14px !important;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#shop-search:focus {
    outline: none;
    border-color: rgba(14,165,233,0.4) !important;
    box-shadow: 0 0 0 4px rgba(14,165,233,0.1), 0 4px 16px rgba(14,165,233,0.08);
    background: rgba(255,255,255,0.9) !important;
}

/* ── Cart Summary Bar — Glassy ── */
#shop-cart-summary {
    background: rgba(255,255,255,0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(245,158,11,0.15) !important;
    border-radius: 16px !important;
    padding: 14px 24px !important;
    box-shadow: 0 4px 16px rgba(245,158,11,0.06), inset 0 1px 0 rgba(255,255,255,0.7);
}

/* ── Product Grid ── */
#swag-shop-grid {
    gap: 20px !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
}

/* ── Product Cards — Glassmorphism ── */
#swag-shop-grid > div {
    background: rgba(255,255,255,0.65) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5) !important;
    border-radius: 20px !important;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.04),
        0 1px 4px rgba(0,0,0,0.03),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden !important;
}

#swag-shop-grid > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6, #ec4899, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s;
}

#swag-shop-grid > div:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.08),
        0 8px 16px rgba(14,165,233,0.06),
        inset 0 1px 0 rgba(255,255,255,0.9) !important;
    border-color: rgba(14,165,233,0.2) !important;
}

#swag-shop-grid > div:hover::before {
    opacity: 1;
}


/* ── Product Card Icon Area ── */
#swag-shop-grid > div > div:first-child {
    background: linear-gradient(135deg,
        rgba(59,130,246,0.05),
        rgba(168,85,247,0.05),
        rgba(236,72,153,0.03)) !important;
    height: 150px !important;
    position: relative;
}

/* ── Product Card Images ── */
.swag-card-icon-area {
    overflow: hidden;
}

.swag-product-img {
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 120px;
    max-width: 90%;
    object-fit: contain;
}

.swag-product-img[src] {
    opacity: 1;
}

.swag-card-icon-area:hover .swag-product-img {
    transform: scale(1.08);
}

.swag-product-emoji {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.swag-card-icon-area:hover .swag-product-emoji {
    transform: scale(1.1);
}

/* Premium badge glow */
#swag-shop-grid > div > div:first-child > span[style*="PREMIUM"] {
    box-shadow: 0 2px 12px rgba(245,158,11,0.4);
}

/* ── Quantity Picker — Glassy ── */
#swag-shop-grid input[type="number"] {
    background: rgba(255,255,255,0.8) !important;
    border-color: rgba(0,0,0,0.06) !important;
    font-weight: 800 !important;
}

#swag-shop-grid button[onclick*="adjustQtyPicker"] {
    background: rgba(241,245,249,0.8) !important;
    transition: all 0.2s !important;
}

#swag-shop-grid button[onclick*="adjustQtyPicker"]:hover {
    background: rgba(14,165,233,0.1) !important;
    color: var(--primary) !important;
}

/* ── Add to Cart Button — Glossy ── */
#swag-shop-grid button[onclick*="addFromCard"] {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #0ea5e9 100%) !important;
    background-size: 200% 100% !important;
    border-radius: 12px !important;
    padding: 10px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(14,165,233,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#swag-shop-grid button[onclick*="addFromCard"]:hover {
    background-position: 100% 0 !important;
    box-shadow: 0 6px 20px rgba(14,165,233,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

#swag-shop-grid button[onclick*="addFromCard"]:active {
    transform: translateY(0px) scale(0.98);
}

/* ── Variant Modal — Glassmorphism ── */
#variant-modal-backdrop {
    background: rgba(15,23,42,0.5) !important;
    backdrop-filter: blur(8px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(120%) !important;
}

#variant-modal-content {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border: 1px solid rgba(255,255,255,0.6) !important;
    border-radius: 24px !important;
    box-shadow:
        0 24px 48px rgba(0,0,0,0.12),
        0 8px 16px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

#variant-modal-header {
    background: rgba(255,255,255,0.4);
    border-bottom: 1px solid rgba(0,0,0,0.04) !important;
    padding: 20px 24px !important;
}

#variant-modal-title {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.variant-row {
    border-radius: 12px !important;
    margin: 4px 12px !important;
    border-bottom: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.variant-row:hover {
    background: rgba(14,165,233,0.06) !important;
    transform: translateX(4px);
}

.variant-row.selected {
    background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(139,92,246,0.06)) !important;
    border: 1px solid rgba(14,165,233,0.15);
    box-shadow: 0 2px 8px rgba(14,165,233,0.08);
}

#variant-modal-confirm {
    border-radius: 14px !important;
    padding: 14px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6) !important;
    box-shadow: 0 4px 16px rgba(14,165,233,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s !important;
    letter-spacing: 0.3px;
}

#variant-modal-confirm:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14,165,233,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
}

#variant-modal-footer {
    background: rgba(255,255,255,0.4);
    border-top: 1px solid rgba(0,0,0,0.04) !important;
    padding: 16px 24px !important;
}

/* ── Checkout Page — Glassmorphism ── */
#checkout .card {
    background: rgba(255,255,255,0.65) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5) !important;
    border-radius: 20px !important;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.05),
        0 2px 8px rgba(0,0,0,0.03),
        inset 0 1px 0 rgba(255,255,255,0.8) !important;
    overflow: hidden;
}

/* Checkout employee card — special glow */
#checkout .card:first-child {
    position: relative;
}

#checkout-avatar {
    width: 60px !important;
    height: 60px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6, #ec4899) !important;
    box-shadow: 0 6px 20px rgba(14,165,233,0.3), inset 0 1px 0 rgba(255,255,255,0.3) !important;
    font-size: 1.4rem !important;
    font-weight: 900 !important;
}

#checkout-name {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
}

#checkout-balance {
    font-size: 2rem !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 8px rgba(245,158,11,0.2);
}

/* Checkout items — hover effect */
#checkout-items > div {
    transition: all 0.2s ease;
    border-radius: 0;
    padding: 16px 24px !important;
}

#checkout-items > div:hover {
    background: rgba(14,165,233,0.03);
}

/* Item icon in checkout */
#checkout-items > div > div:first-child {
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(168,85,247,0.06), rgba(236,72,153,0.04)) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Order summary card — sticky with glow */
#checkout .card[style*="sticky"] {
    position: sticky !important;
    top: 80px !important;
    border: 1px solid rgba(16,185,129,0.15) !important;
    box-shadow:
        0 8px 32px rgba(16,185,129,0.06),
        0 2px 8px rgba(0,0,0,0.03),
        inset 0 1px 0 rgba(255,255,255,0.8) !important;
}

/* Submit button — glossy green */
#checkout-submit-btn {
    border-radius: 16px !important;
    padding: 16px !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #10b981 100%) !important;
    background-size: 200% 100% !important;
    box-shadow: 0 6px 20px rgba(16,185,129,0.3), inset 0 1px 0 rgba(255,255,255,0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#checkout-submit-btn:not(:disabled):hover {
    background-position: 100% 0 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(16,185,129,0.35), inset 0 1px 0 rgba(255,255,255,0.3) !important;
}

#checkout-submit-btn:disabled {
    background: linear-gradient(135deg, #94a3b8, #64748b) !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* ── Cart Dropdown — Glassmorphism ── */
.cart-dropdown {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    border-radius: 20px !important;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.1),
        0 8px 16px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

.cart-dropdown-header {
    background: rgba(255,255,255,0.4) !important;
    border-bottom: 1px solid rgba(0,0,0,0.04) !important;
}

.cart-dropdown-footer {
    background: rgba(255,255,255,0.4) !important;
    border-top: 1px solid rgba(0,0,0,0.04) !important;
}

.cart-dropdown-item {
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 2px 8px;
}

.cart-dropdown-item:hover {
    background: rgba(14,165,233,0.04);
}

/* ── Go to Checkout button in dropdown ── */
#cart-go-checkout-btn {
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(14,165,233,0.25);
    transition: all 0.3s !important;
}

#cart-go-checkout-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(14,165,233,0.3);
}

/* ── Header Cart Badge — Glow ── */
#header-cart-badge.visible {
    box-shadow: 0 0 8px rgba(239,68,68,0.4), 0 0 16px rgba(239,68,68,0.2);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(239,68,68,0.4); }
    50% { box-shadow: 0 0 12px rgba(239,68,68,0.6), 0 0 24px rgba(239,68,68,0.2); }
}

/* ── Toast Notifications — Glassy ── */
.toast {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 14px !important;
}

/* ── Scrollbar Styling ── */
#variant-modal-list::-webkit-scrollbar,
#checkout-items::-webkit-scrollbar {
    width: 6px;
}

#variant-modal-list::-webkit-scrollbar-track,
#checkout-items::-webkit-scrollbar-track {
    background: transparent;
}

#variant-modal-list::-webkit-scrollbar-thumb,
#checkout-items::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

#variant-modal-list::-webkit-scrollbar-thumb:hover,
#checkout-items::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    #swag-shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 12px !important;
    }

    #checkout > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }

    #shop-balance-banner {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }
}

/* ── Subtle animated shimmer on page load ── */
@keyframes shimmer-in {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

#points .page-title,
#checkout .page-title {
    animation: shimmer-in 0.5s ease-out;
}

#shop-balance-banner {
    animation: shimmer-in 0.6s ease-out 0.1s both;
}

#swag-shop-grid {
    animation: shimmer-in 0.7s ease-out 0.2s both;
}


/* ── Locked Product Cards ── */
#swag-shop-grid > div.swag-card-locked {
    opacity: 0.55 !important;
    filter: grayscale(60%) !important;
    cursor: not-allowed;
    transform: none !important;
}

#swag-shop-grid > div.swag-card-locked:hover {
    transform: none !important;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.04),
        0 1px 4px rgba(0,0,0,0.03),
        inset 0 1px 0 rgba(255,255,255,0.8) !important;
    border-color: rgba(148,163,184,0.3) !important;
}

#swag-shop-grid > div.swag-card-locked::before {
    display: none !important;
}


/* ==========================================
   TRANSACTION DETAILS — Glassmorphism Styles
   ========================================== */

/* ── Page Title Gradient ── */
#transactions .page-title {
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    animation: shimmer-in 0.5s ease-out;
}

#transactions .page-subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
}

/* ── Balance Summary Card ── */
.txn-balance-card-inner {
    display: flex;
    gap: 16px;
    animation: shimmer-in 0.6s ease-out 0.1s both;
}

.txn-metric-tile {
    flex: 1;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    padding: 20px 24px;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.05),
        0 2px 8px rgba(0,0,0,0.03),
        inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.txn-metric-tile:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 36px rgba(0,0,0,0.08),
        0 4px 12px rgba(14,165,233,0.06),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.txn-metric-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}

.txn-metric-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.txn-metric-value {
    font-size: 1.8rem;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── Section Titles ── */
.txn-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 12px;
}

/* ── Table Styles ── */
.txn-table-wrap {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.05),
        0 2px 8px rgba(0,0,0,0.03),
        inset 0 1px 0 rgba(255,255,255,0.8);
    overflow: hidden;
    animation: shimmer-in 0.7s ease-out 0.2s both;
}

.txn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.txn-table thead tr {
    background: rgba(241,245,249,0.7);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.txn-table th {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-secondary);
}

.txn-table td {
    padding: 12px 18px;
    color: var(--text-primary);
}

.txn-row-even {
    background: rgba(255,255,255,0.3);
}

.txn-row-odd {
    background: rgba(241,245,249,0.35);
}

.txn-table tbody tr {
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.txn-table tbody tr:hover {
    background: rgba(14,165,233,0.06);
}

.txn-footer-row {
    background: rgba(241,245,249,0.8) !important;
    border-top: 2px solid rgba(0,0,0,0.08);
}

.txn-footer-row td {
    padding: 14px 18px;
    font-size: 0.92rem;
}

/* ── Loading Skeleton ── */
.txn-skeleton-card {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.txn-skeleton-line {
    background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.06) 75%);
    background-size: 200% 100%;
    animation: txn-skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
    height: 16px;
}

@keyframes txn-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Error State ── */
.txn-error-state {
    text-align: center;
    padding: 48px 24px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(239,68,68,0.06);
}

/* ── Empty State ── */
.txn-empty-state {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    color: var(--text-secondary);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .txn-balance-card-inner {
        flex-direction: column;
        gap: 12px;
    }

    .txn-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .txn-table {
        min-width: 500px;
    }

    .txn-metric-value {
        font-size: 1.4rem;
    }
}


/* ==========================================
   ADMIN DASHBOARD — Dark Theme Scoped Variables
   All --dash-* variables are scoped to #analytics
   to avoid leaking into other portal pages.
   ========================================== */

#analytics {
    /* ── Background & Surface ── */
    --dash-bg: #0f172a;
    --dash-bg-secondary: #1a1a2e;
    --dash-card-bg: rgba(30, 41, 59, 0.65);
    --dash-card-border: rgba(51, 65, 85, 0.5);
    --dash-card-blur: blur(16px) saturate(180%);

    /* ── Text ── */
    --dash-text-primary: #f1f5f9;
    --dash-text-secondary: #94a3b8;
    --dash-text-muted: #64748b;

    /* ── Accent Colors ── */
    --dash-accent-green: #10b981;
    --dash-accent-purple: #8b5cf6;
    --dash-accent-blue: #0ea5e9;
    --dash-accent-pink: #ec4899;
    --dash-accent-amber: #f59e0b;

    /* ── Glow Colors ── */
    --dash-glow-green: rgba(16, 185, 129, 0.15);
    --dash-glow-purple: rgba(139, 92, 246, 0.15);
    --dash-glow-blue: rgba(14, 165, 233, 0.15);
    --dash-glow-pink: rgba(236, 72, 153, 0.15);
    --dash-glow-amber: rgba(245, 158, 11, 0.15);

    /* ── Apply dark background & text to the section ── */
    background: var(--dash-bg);
    color: var(--dash-text-primary);
}

/* ── Glassmorphism Card Base (dark theme) ── */
.dash-glass-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--dash-card-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Conditional glass effects for browsers that support backdrop-filter ── */
@supports (backdrop-filter: blur(1px)) {
    .dash-glass-card {
        background: var(--dash-card-bg);
        backdrop-filter: var(--dash-card-blur);
        -webkit-backdrop-filter: var(--dash-card-blur);
    }
}

/* ── Dashboard Dark Wrapper ── */
#analytics .dash-dark-wrapper {
    min-height: 100%;
}

/* ── Dashboard Layout (Sidebar + Content) ── */
#analytics .dash-layout {
    display: flex;
    min-height: calc(100vh - 140px);
}

#analytics .dash-content {
    flex: 1;
    min-width: 0;
    padding: 24px 28px;
}

/* ── Dashboard Top Bar ── */
#analytics .dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    gap: 16px;
    flex-wrap: wrap;
}

#analytics .dash-topbar-left {
    flex: 1;
    min-width: 180px;
    max-width: 360px;
}

#analytics .dash-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Dashboard Search Input ── */
#analytics .dash-search {
    width: 100%;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 10px;
    color: var(--dash-text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

#analytics .dash-search::placeholder {
    color: var(--dash-text-muted);
}

#analytics .dash-search:focus {
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* ── Dashboard Refresh Button ── */
#analytics .dash-refresh-btn {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

#analytics .dash-refresh-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* ── Dashboard User Avatar ── */
#analytics .dash-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

/* ── Dashboard Sidebar ── */
#analytics .dash-sidebar {
    width: 56px;
    background: #020617;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 4px;
    flex-shrink: 0;
}

#analytics .dash-sidebar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-left: 3px solid transparent;
}

#analytics .dash-sidebar-icon:hover {
    background: rgba(255, 255, 255, 0.08);
}

#analytics .dash-sidebar-icon.active {
    background: rgba(14, 165, 233, 0.12);
    border-left-color: #0ea5e9;
}

/* ── Dashboard Page Header ── */
#analytics .dash-page-header {
    margin-bottom: 24px;
}

#analytics .dash-page-header .page-subtitle {
    color: var(--dash-text-secondary);
}


/* ==========================================
   ADMIN DASHBOARD — Glassmorphism Styles
   ========================================== */

/* ── Page Title Gradient ── */
#analytics .page-title {
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 40%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    animation: shimmer-in 0.5s ease-out;
}

#analytics .page-subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
}

/* ── KPI Grid (Dark Theme) ── */
.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    animation: shimmer-in 0.6s ease-out 0.1s both;
}

.dash-kpi-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--dash-card-border, rgba(51,65,85,0.5));
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.2),
        0 2px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@supports (backdrop-filter: blur(1px)) {
    .dash-kpi-card {
        background: var(--dash-card-bg, rgba(30, 41, 59, 0.65));
        backdrop-filter: var(--dash-card-blur, blur(16px) saturate(180%));
        -webkit-backdrop-filter: var(--dash-card-blur, blur(16px) saturate(180%));
    }
}

.dash-kpi-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(0,0,0,0.3),
        0 4px 12px rgba(14,165,233,0.1),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ── KPI Card Accent Glow on Hover ── */
.dash-kpi-card--green:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 24px var(--dash-glow-green, rgba(16,185,129,0.15)); }
.dash-kpi-card--purple:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 24px var(--dash-glow-purple, rgba(139,92,246,0.15)); }
.dash-kpi-card--blue:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 24px var(--dash-glow-blue, rgba(14,165,233,0.15)); }
.dash-kpi-card--pink:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 24px var(--dash-glow-pink, rgba(236,72,153,0.15)); }

/* ── KPI Icon Container (circular with glow) ── */
.dash-kpi-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: box-shadow 0.3s ease;
}

.dash-kpi-card:hover .dash-kpi-icon-wrap {
    filter: brightness(1.15);
}

.dash-kpi-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.dash-kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dash-text-muted, var(--text-muted));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.dash-kpi-value {
    font-size: 1.6rem;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── Section Titles (Dark Theme) ── */
.dash-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dash-text-primary, var(--text-primary));
    margin: 0 0 16px;
}

/* ── Chart Header ── */
.dash-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dash-chart-subtitle {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dash-text-muted, var(--text-muted));
    background: rgba(255,255,255,0.06);
    padding: 4px 12px;
    border-radius: 8px;
}

/* ── Chart Container (Dark Theme) ── */
.dash-chart-container {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--dash-card-border, rgba(51,65,85,0.5));
    border-radius: 20px;
    padding: 24px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.2),
        0 2px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.05);
    animation: shimmer-in 0.7s ease-out 0.15s both;
}

@supports (backdrop-filter: blur(1px)) {
    .dash-chart-container {
        background: var(--dash-card-bg, rgba(30, 41, 59, 0.65));
        backdrop-filter: var(--dash-card-blur, blur(16px) saturate(180%));
        -webkit-backdrop-filter: var(--dash-card-blur, blur(16px) saturate(180%));
    }
}

.dash-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 200px;
    padding: 0 8px;
}

.dash-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.dash-bar-value {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--dash-text-secondary, var(--text-secondary));
    margin-bottom: 6px;
    min-height: 18px;
}

.dash-bar-track {
    flex: 1;
    width: 100%;
    max-width: 60px;
    display: flex;
    align-items: flex-end;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.dash-bar {
    width: 100%;
    background: linear-gradient(180deg, #0ea5e9, #8b5cf6);
    border-radius: 10px 10px 4px 4px;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    position: relative;
    min-height: 4px;
}

.dash-bar:hover {
    opacity: 0.85;
    box-shadow: 0 0 12px rgba(14,165,233,0.3);
}

.dash-bar-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dash-text-muted, var(--text-muted));
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
}

/* ── Tables (Dark Theme) ── */
.dash-table-wrap {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--dash-card-border, rgba(51,65,85,0.5));
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.2),
        0 2px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
    animation: shimmer-in 0.7s ease-out 0.2s both;
}

@supports (backdrop-filter: blur(1px)) {
    .dash-table-wrap {
        background: var(--dash-card-bg, rgba(30, 41, 59, 0.65));
        backdrop-filter: var(--dash-card-blur, blur(16px) saturate(180%));
        -webkit-backdrop-filter: var(--dash-card-blur, blur(16px) saturate(180%));
    }
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.dash-table thead tr {
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(148,163,184,0.1);
}

.dash-table th {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--dash-text-secondary, var(--text-secondary));
}

.dash-table td {
    padding: 12px 18px;
    color: var(--dash-text-primary, var(--text-primary));
}

.dash-row-even {
    background: rgba(30, 41, 59, 0.3);
}

.dash-row-odd {
    background: rgba(15, 23, 42, 0.3);
}

.dash-table tbody tr {
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(148,163,184,0.08);
}

.dash-table tbody tr:hover {
    background: rgba(14,165,233,0.08);
}

/* ── Stock Alert Row (RED) ── */
.dash-stock-alert {
    background: rgba(239,68,68,0.08) !important;
    border-left: 3px solid #ef4444;
}

.dash-stock-alert:hover {
    background: rgba(239,68,68,0.12) !important;
}

.dash-stock-alert td {
    color: #dc2626;
    font-weight: 600;
}

/* ── Popular Items (Dark Theme) ── */
.dash-popular-container {
    border-radius: 20px;
    padding: 8px 0;
    animation: shimmer-in 0.7s ease-out 0.2s both;
}

.dash-popular-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(148,163,184,0.08);
}

.dash-popular-row:last-child {
    border-bottom: none;
}

.dash-popular-row:hover {
    background: rgba(14,165,233,0.06);
}

.dash-popular-rank {
    font-size: 1.2rem;
    min-width: 36px;
    text-align: center;
    font-weight: 800;
}

.dash-popular-info {
    flex: 1;
    min-width: 0;
}

.dash-popular-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dash-text-primary, var(--text-primary));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-popular-stats {
    font-size: 0.75rem;
    color: var(--dash-text-muted, var(--text-muted));
    margin-top: 2px;
}

.dash-progress-bar-wrap {
    width: 120px;
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.dash-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: dash-progress-fill 0.8s ease-out;
}

@keyframes dash-progress-fill {
    from { width: 0; }
}

/* ── Loading Skeleton (Dark Theme) ── */
.dash-skeleton-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--dash-card-border, rgba(51,65,85,0.5));
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

@supports (backdrop-filter: blur(1px)) {
    .dash-skeleton-card {
        background: var(--dash-card-bg, rgba(30, 41, 59, 0.65));
        backdrop-filter: var(--dash-card-blur, blur(16px) saturate(180%));
        -webkit-backdrop-filter: var(--dash-card-blur, blur(16px) saturate(180%));
    }
}

.dash-skeleton-line {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: dash-skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
    height: 16px;
}

@keyframes dash-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Error State (Dark Theme) ── */
.dash-error-state {
    text-align: center;
    padding: 48px 24px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(239,68,68,0.08);
    color: var(--dash-text-primary, var(--text-primary));
}

@supports (backdrop-filter: blur(1px)) {
    .dash-error-state {
        background: var(--dash-card-bg, rgba(30, 41, 59, 0.65));
        backdrop-filter: var(--dash-card-blur, blur(16px) saturate(180%));
        -webkit-backdrop-filter: var(--dash-card-blur, blur(16px) saturate(180%));
    }
}

/* ── Access Denied State (Dark Theme) ── */
.dash-access-denied-state {
    text-align: center;
    padding: 60px 24px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--dash-card-border, rgba(51,65,85,0.5));
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    color: var(--dash-text-primary, var(--text-primary));
}

@supports (backdrop-filter: blur(1px)) {
    .dash-access-denied-state {
        background: var(--dash-card-bg, rgba(30, 41, 59, 0.65));
        backdrop-filter: var(--dash-card-blur, blur(16px) saturate(180%));
        -webkit-backdrop-filter: var(--dash-card-blur, blur(16px) saturate(180%));
    }
}

/* ── Empty State (Dark Theme) ── */
.dash-empty-state {
    text-align: center;
    padding: 40px 24px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--dash-card-border, rgba(51,65,85,0.5));
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    color: var(--dash-text-secondary, var(--text-secondary));
}

@supports (backdrop-filter: blur(1px)) {
    .dash-empty-state {
        background: var(--dash-card-bg, rgba(30, 41, 59, 0.65));
        backdrop-filter: var(--dash-card-blur, blur(16px) saturate(180%));
        -webkit-backdrop-filter: var(--dash-card-blur, blur(16px) saturate(180%));
    }
}

/* ── Secondary Charts Row (Task 6.4) ── */
.dash-secondary-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
    animation: shimmer-in 0.7s ease-out 0.25s both;
}

/* ── Activity List (Timeline fallback) ── */
.dash-activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.dash-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148,163,184,0.08);
}

.dash-activity-item:last-child {
    border-bottom: none;
}

.dash-activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dash-accent-purple, #8b5cf6);
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(139,92,246,0.3);
}

.dash-activity-info {
    flex: 1;
    min-width: 0;
}

.dash-activity-text {
    font-size: 0.82rem;
    color: var(--dash-text-primary, var(--text-primary));
    display: block;
    line-height: 1.4;
}

.dash-activity-time {
    font-size: 0.72rem;
    color: var(--dash-text-muted, var(--text-muted));
    margin-top: 2px;
    display: block;
}

/* ── Percentage Badge ── */
.dash-pct-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--dash-accent-blue, #0ea5e9);
    background: rgba(14, 165, 233, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── Responsive — Sidebar collapse ── */
@media (max-width: 1024px) {
    #analytics .dash-sidebar {
        display: none;
    }

    #analytics .dash-content {
        width: 100%;
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dash-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dash-kpi-value {
        font-size: 1.2rem;
    }

    .dash-chart-bars {
        height: 150px;
    }

    .dash-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dash-table {
        min-width: 500px;
    }

    .dash-popular-row {
        flex-wrap: wrap;
    }

    .dash-progress-bar-wrap {
        width: 100%;
        margin-top: 4px;
    }

    .dash-secondary-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dash-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dash-kpi-card {
        padding: 16px 12px;
    }
}


/* ==========================================
   STOCK BADGES — Inventory Stock Tracking
   ========================================== */

/* ── Base Stock Badge ── */
.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 8px;
    z-index: 2;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}

/* ── Low Stock (amber/warning) ── */
.stock-badge.stock-low {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(245,158,11,0.35);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ── Out of Stock (red/danger) ── */
.stock-badge.stock-out {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(239,68,68,0.35);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ── In Stock (green) ── */
.stock-badge.stock-ok {
    background: rgba(34,197,94,0.9);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(34,197,94,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}


/* ==========================================
   MIDNIGHT DARK THEME — Glassmorphism Overrides
   Dark-appropriate backgrounds while preserving
   blur/saturate glassmorphism effects
   ========================================== */

/* ── Product Cards ── */
[data-theme="midnight"] #swag-shop-grid > div {
    background: rgba(30,41,59,0.75) !important;
    border-color: rgba(51,65,85,0.5) !important;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.2),
        0 1px 4px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

[data-theme="midnight"] #swag-shop-grid > div:hover {
    box-shadow:
        0 20px 40px rgba(0,0,0,0.3),
        0 8px 16px rgba(14,165,233,0.1),
        inset 0 1px 0 rgba(255,255,255,0.08) !important;
    border-color: rgba(14,165,233,0.3) !important;
}

/* ── Checkout Cards ── */
[data-theme="midnight"] #checkout .card {
    background: rgba(30,41,59,0.75) !important;
    border-color: rgba(51,65,85,0.5) !important;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.2),
        0 2px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

/* ── Balance Banner ── */
[data-theme="midnight"] #shop-balance-banner {
    background: rgba(30,41,59,0.7) !important;
    border-color: rgba(51,65,85,0.5) !important;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.2),
        0 2px 8px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ── Search Bar ── */
[data-theme="midnight"] #shop-search {
    background: rgba(30,41,59,0.7) !important;
    border-color: rgba(51,65,85,0.5) !important;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}

[data-theme="midnight"] #shop-search:focus {
    background: rgba(30,41,59,0.85) !important;
    border-color: rgba(14,165,233,0.4) !important;
    box-shadow: 0 0 0 4px rgba(14,165,233,0.15), 0 4px 16px rgba(14,165,233,0.1);
}

[data-theme="midnight"] #shop-search::placeholder {
    color: var(--text-muted);
}

/* ── Cart Summary ── */
[data-theme="midnight"] #shop-cart-summary {
    background: rgba(30,41,59,0.7) !important;
    border-color: rgba(51,65,85,0.5) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ── Variant Modal ── */
[data-theme="midnight"] #variant-modal-content {
    background: rgba(30,41,59,0.9) !important;
    border-color: rgba(51,65,85,0.5) !important;
    box-shadow:
        0 24px 48px rgba(0,0,0,0.3),
        0 8px 16px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

[data-theme="midnight"] #variant-modal-header {
    background: rgba(30,41,59,0.5);
    border-bottom-color: rgba(51,65,85,0.3) !important;
}

[data-theme="midnight"] #variant-modal-footer {
    background: rgba(30,41,59,0.5);
    border-top-color: rgba(51,65,85,0.3) !important;
}

[data-theme="midnight"] .variant-row:hover {
    background: rgba(14,165,233,0.1) !important;
}

[data-theme="midnight"] .variant-row.selected {
    background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(139,92,246,0.1)) !important;
    border-color: rgba(14,165,233,0.25);
}

/* ── Transaction Details — Tables & Metrics ── */
[data-theme="midnight"] .txn-table-wrap {
    background: rgba(30,41,59,0.75);
    border-color: rgba(51,65,85,0.5);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.2),
        0 2px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

[data-theme="midnight"] .txn-metric-tile {
    background: rgba(30,41,59,0.75);
    border-color: rgba(51,65,85,0.5);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.2),
        0 2px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

[data-theme="midnight"] .txn-table thead tr {
    background: rgba(15,23,42,0.6);
}

[data-theme="midnight"] .txn-row-even {
    background: rgba(30,41,59,0.3);
}

[data-theme="midnight"] .txn-row-odd {
    background: rgba(15,23,42,0.3);
}

[data-theme="midnight"] .txn-table tbody tr:hover {
    background: rgba(14,165,233,0.1);
}

[data-theme="midnight"] .txn-footer-row {
    background: rgba(15,23,42,0.6) !important;
}

/* ── Admin Dashboard — KPI Cards ── */
[data-theme="midnight"] .dash-kpi-card {
    background: rgba(30,41,59,0.75);
    border-color: rgba(51,65,85,0.5);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.2),
        0 2px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

[data-theme="midnight"] .dash-kpi-card:hover {
    box-shadow:
        0 16px 40px rgba(0,0,0,0.3),
        0 4px 12px rgba(14,165,233,0.1),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ── Admin Dashboard — Chart Container ── */
[data-theme="midnight"] .dash-chart-container {
    background: rgba(30,41,59,0.75);
    border-color: rgba(51,65,85,0.5);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.2),
        0 2px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ── Admin Dashboard — Tables ── */
[data-theme="midnight"] .dash-table-wrap {
    background: rgba(30,41,59,0.75);
    border-color: rgba(51,65,85,0.5);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.2),
        0 2px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

[data-theme="midnight"] .dash-table thead tr {
    background: rgba(15,23,42,0.6);
}

[data-theme="midnight"] .dash-row-even {
    background: rgba(30,41,59,0.3);
}

[data-theme="midnight"] .dash-row-odd {
    background: rgba(15,23,42,0.3);
}

[data-theme="midnight"] .dash-table tbody tr:hover {
    background: rgba(14,165,233,0.1);
}

/* ── Admin Dashboard — Popular Items ── */
[data-theme="midnight"] .dash-popular-container {
    background: rgba(30,41,59,0.75);
    border-color: rgba(51,65,85,0.5);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.2),
        0 2px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

[data-theme="midnight"] .dash-popular-row {
    border-bottom-color: rgba(51,65,85,0.3);
}

[data-theme="midnight"] .dash-popular-row:hover {
    background: rgba(14,165,233,0.08);
}

[data-theme="midnight"] .dash-progress-bar-wrap {
    background: rgba(255,255,255,0.08);
}

/* ── Cart Dropdown ── */
[data-theme="midnight"] .cart-dropdown {
    background: rgba(30,41,59,0.9) !important;
    border-color: rgba(51,65,85,0.5) !important;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.3),
        0 8px 16px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

[data-theme="midnight"] .cart-dropdown-header {
    background: rgba(30,41,59,0.5) !important;
    border-bottom-color: rgba(51,65,85,0.3) !important;
}

[data-theme="midnight"] .cart-dropdown-footer {
    background: rgba(30,41,59,0.5) !important;
    border-top-color: rgba(51,65,85,0.3) !important;
}

[data-theme="midnight"] .cart-dropdown-item:hover {
    background: rgba(14,165,233,0.08);
}

/* ── Skeleton & State Cards ── */
[data-theme="midnight"] .txn-skeleton-card,
[data-theme="midnight"] .dash-skeleton-card {
    background: rgba(30,41,59,0.75);
    border-color: rgba(51,65,85,0.5);
}

[data-theme="midnight"] .txn-error-state,
[data-theme="midnight"] .dash-error-state {
    background: rgba(30,41,59,0.75);
    border-color: rgba(239,68,68,0.25);
}

[data-theme="midnight"] .txn-empty-state,
[data-theme="midnight"] .dash-empty-state,
[data-theme="midnight"] .dash-access-denied-state {
    background: rgba(30,41,59,0.75);
    border-color: rgba(51,65,85,0.5);
}

/* ── Scrollbar ── */
[data-theme="midnight"] #variant-modal-list::-webkit-scrollbar-thumb,
[data-theme="midnight"] #checkout-items::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
}

[data-theme="midnight"] #variant-modal-list::-webkit-scrollbar-thumb:hover,
[data-theme="midnight"] #checkout-items::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}

/* ── Stock Badges on dark ── */
[data-theme="midnight"] .stock-badge {
    background: rgba(30,41,59,0.85);
    border-color: rgba(51,65,85,0.5);
    color: var(--text-primary);
}

/* ── Text color enforcement for glassmorphism elements ── */
[data-theme="midnight"] #swag-shop-grid > div,
[data-theme="midnight"] #checkout .card,
[data-theme="midnight"] .txn-table-wrap,
[data-theme="midnight"] .dash-kpi-card,
[data-theme="midnight"] .dash-chart-container,
[data-theme="midnight"] .dash-table-wrap,
[data-theme="midnight"] .dash-popular-container,
[data-theme="midnight"] #shop-balance-banner,
[data-theme="midnight"] #shop-cart-summary,
[data-theme="midnight"] #variant-modal-content,
[data-theme="midnight"] .txn-metric-tile {
    color: var(--text-primary);
}


/* ==========================================
   MAIN DASHBOARD — Polish Pass
   Scoped to #dashboard only — preserves existing layout & cards
   Enhances: animations, colors, shadows, hover effects
   ========================================== */

/* ── Page title with animated gradient ── */
#dashboard .page-title {
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 50%, #f59e0b 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.5px;
    animation: dash-title-shimmer 8s ease-in-out infinite, shimmer-in 0.5s ease-out;
}

@keyframes dash-title-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#dashboard .page-subtitle {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Stats Grid — smoother grid with stagger ── */
#dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

/* ── Stat Cards — glassmorphism with glow ── */
#dashboard .stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px !important;
    padding: 22px 24px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: dash-card-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

#dashboard .stats-grid .stat-card:nth-child(1) { animation-delay: 0.05s; }
#dashboard .stats-grid .stat-card:nth-child(2) { animation-delay: 0.15s; }
#dashboard .stats-grid .stat-card:nth-child(3) { animation-delay: 0.25s; }
#dashboard .stats-grid .stat-card:nth-child(4) { animation-delay: 0.35s; }

@keyframes dash-card-in {
    0% { opacity: 0; transform: translateY(16px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Colored top accent bar */
#dashboard .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6, #ec4899, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Radial glow on hover */
#dashboard .stat-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(14,165,233,0.08) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

#dashboard .stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(14, 165, 233, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(14, 165, 233, 0.2);
}

#dashboard .stat-card:hover::before {
    opacity: 1;
}

#dashboard .stat-card:hover::after {
    transform: translate(-50%, -50%) scale(2);
}

/* ── Icon Box — colorful with glow ── */
#dashboard .stat-card .icon-box {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.6rem !important;
    margin-bottom: 12px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#dashboard .stat-card:hover .icon-box {
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

#dashboard .stat-card .icon-box.orange {
    background: linear-gradient(135deg, #fb923c, #f59e0b) !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#dashboard .stat-card .icon-box.green {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#dashboard .stat-card .icon-box.blue {
    background: linear-gradient(135deg, #60a5fa, #0ea5e9) !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#dashboard .stat-card .icon-box.purple {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6) !important;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ── Stat Card Value (h3) — big bold gradient on hover ── */
#dashboard .stat-card h3 {
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    margin: 0 0 4px !important;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

#dashboard .stat-card:hover h3 {
    transform: scale(1.04);
}

#dashboard .stat-card p {
    color: var(--text-muted) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 !important;
}

/* ── Grid-2 (Weekly + Recent Activity) ── */
#dashboard .grid-2 {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    #dashboard .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ── Cards — polished glassmorphism ── */
#dashboard .card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 20px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: dash-card-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

#dashboard .grid-2 .card:nth-child(1) { animation-delay: 0.4s; }
#dashboard .grid-2 .card:nth-child(2) { animation-delay: 0.5s; }
#dashboard #main-dash-popular-card { animation: dash-card-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.6s backwards; }
#dashboard #main-dash-lowstock-card { animation: dash-card-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.7s backwards; }
#dashboard #main-dash-stockviz-card { animation: dash-card-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.8s backwards; }

#dashboard .card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 40px rgba(14, 165, 233, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

#dashboard .card-header {
    padding: 18px 22px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    background: rgba(255, 255, 255, 0.4) !important;
}

#dashboard .card-header h2 {
    font-size: 1rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    letter-spacing: -0.2px;
    color: var(--text-primary);
}

#dashboard .card-body {
    padding: 20px 22px !important;
}

/* ── Weekly Distribution bars — colorful gradient with glow on hover ── */
#dashboard #main-dash-weekly .chart-bars > div > div[style*="linear-gradient"] {
    position: relative;
    animation: bar-grow 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
    transition: all 0.3s ease;
}

#dashboard #main-dash-weekly .chart-bars > div:nth-child(1) > div[style*="linear-gradient"] { animation-delay: 0.1s; }
#dashboard #main-dash-weekly .chart-bars > div:nth-child(2) > div[style*="linear-gradient"] { animation-delay: 0.2s; }
#dashboard #main-dash-weekly .chart-bars > div:nth-child(3) > div[style*="linear-gradient"] { animation-delay: 0.3s; }
#dashboard #main-dash-weekly .chart-bars > div:nth-child(4) > div[style*="linear-gradient"] { animation-delay: 0.4s; }
#dashboard #main-dash-weekly .chart-bars > div:nth-child(5) > div[style*="linear-gradient"] { animation-delay: 0.5s; }

@keyframes bar-grow {
    0% { height: 0 !important; opacity: 0; }
    100% { opacity: 1; }
}

#dashboard #main-dash-weekly .chart-bars > div:hover > div[style*="linear-gradient"] {
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
    transform: scaleY(1.03);
    transform-origin: bottom;
    filter: brightness(1.08);
}

/* ── Recent Activity timeline — smoother entries ── */
#dashboard .timeline {
    position: relative;
    padding-left: 4px;
}

#dashboard .timeline-item {
    position: relative;
    padding: 10px 12px 10px 22px;
    border-radius: 10px;
    margin-bottom: 4px;
    transition: background 0.2s ease, transform 0.2s ease;
    animation: timeline-slide 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

#dashboard .timeline-item:nth-child(1) { animation-delay: 0.1s; }
#dashboard .timeline-item:nth-child(2) { animation-delay: 0.2s; }
#dashboard .timeline-item:nth-child(3) { animation-delay: 0.3s; }
#dashboard .timeline-item:nth-child(4) { animation-delay: 0.4s; }
#dashboard .timeline-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes timeline-slide {
    0% { opacity: 0; transform: translateX(-8px); }
    100% { opacity: 1; transform: translateX(0); }
}

#dashboard .timeline-item::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

#dashboard .timeline-item:hover {
    background: rgba(14, 165, 233, 0.04);
    transform: translateX(4px);
}

#dashboard .timeline-item .time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
}

/* ── Refresh bar styling ── */
#dashboard #dash-refresh-bar #dash-refresh-btn {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#dashboard #dash-refresh-bar #dash-refresh-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#dashboard #dash-refresh-bar #dash-refresh-btn:active {
    transform: translateY(0);
}

/* ── Most Distributed / Stock Visualization cards — smooth hover on product tiles ── */
#dashboard #mostUsedItems > div > div,
#dashboard #stockVisualization > div > div {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#dashboard #mostUsedItems > div > div:hover,
#dashboard #stockVisualization > div > div:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
}

/* ── Low stock alert items — subtle pulse on critical ── */
#dashboard #main-dash-lowstock > div {
    transition: all 0.3s ease;
}

#dashboard #main-dash-lowstock > div:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
}

/* ── Responsive polish ── */
@media (max-width: 768px) {
    #dashboard .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    #dashboard .stat-card {
        padding: 16px !important;
    }

    #dashboard .stat-card h3 {
        font-size: 1.3rem !important;
    }

    #dashboard .stat-card .icon-box {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.3rem !important;
    }

    #dashboard .card-header,
    #dashboard .card-body {
        padding: 14px 16px !important;
    }
}


/* ==========================================
   PENDING HANDOUTS — Glassmorphism Styles
   ========================================== */

/* ── Page Title Gradient ── */
#pending-handouts .page-title {
    background: linear-gradient(135deg, #10b981 0%, #0ea5e9 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    animation: shimmer-in 0.5s ease-out;
}

#pending-handouts .page-subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
}

/* ── Pending Table ── */
.pending-table {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.05),
        0 2px 8px rgba(0,0,0,0.03),
        inset 0 1px 0 rgba(255,255,255,0.8);
    overflow: hidden;
    animation: shimmer-in 0.7s ease-out 0.2s both;
}

/* ── Table Header Row ── */
.pending-row.pending-header {
    display: flex;
    align-items: center;
    background: rgba(241,245,249,0.7);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 14px 20px;
}

.pending-row.pending-header .pending-cell {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-secondary);
}

/* ── Table Data Rows ── */
.pending-row:not(.pending-header) {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: background 0.2s ease, transform 0.3s ease, opacity 0.3s ease;
}

.pending-row:not(.pending-header):hover {
    background: rgba(14,165,233,0.04);
}

.pending-row:not(.pending-header):nth-child(even) {
    background: rgba(241,245,249,0.35);
}

.pending-row:not(.pending-header):nth-child(even):hover {
    background: rgba(14,165,233,0.06);
}

.pending-cell {
    padding: 0 8px;
    min-width: 0;
}

/* ── Confirm Button ── */
.pending-confirm-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16,185,129,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.pending-confirm-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16,185,129,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
}

.pending-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Reject Button ── */
.pending-reject-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(239,68,68,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.pending-reject-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(239,68,68,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
}

.pending-reject-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Empty State Card ── */
.pending-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.04),
        inset 0 1px 0 rgba(255,255,255,0.8);
    animation: shimmer-in 0.6s ease-out;
}

/* ── In-flight Spinner ── */
.pending-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ── Per-Product Row: Product Image ── */
.pending-product-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* ── Per-Product Row: Product Details ── */
.pending-product-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pending-product-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.pending-product-variant {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.pending-product-cid {
    font-size: 0.72rem;
    color: var(--text-muted, #94a3b8);
    font-family: monospace;
    line-height: 1.3;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .pending-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pending-row .pending-cell {
        flex: 1 1 45% !important;
        text-align: left !important;
    }

    .pending-row .pending-cell:last-child {
        flex: 1 1 100% !important;
        justify-content: flex-start !important;
    }

    .pending-product-img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
}


/* ─── Status Badges ─── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.badge-success {
    background: rgba(34, 197, 94, 0.18);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.badge-danger {
    background: rgba(239, 68, 68, 0.18);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.badge-warning {
    background: rgba(234, 179, 8, 0.18);
    color: #ca8a04;
    border: 1px solid rgba(234, 179, 8, 0.25);
}


/* ==========================================
   REVIEW ITEMS MODAL — Per-Item Handout Approval
   Glassmorphism modal for per-item confirm/reject
   ========================================== */

/* ── Backdrop ── */
#review-items-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: review-backdrop-in 0.2s ease-out;
}

@keyframes review-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Modal Card ── */
#review-items-modal {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 24px;
    box-shadow:
        0 24px 48px rgba(0,0,0,0.12),
        0 8px 16px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.9);
    width: min(680px, 92vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    animation: review-modal-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

@keyframes review-modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Header ── */
.review-items-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
}

.review-items-header h2 {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--text-primary, #0f172a), var(--primary, #0ea5e9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.review-items-subtitle {
    width: 100%;
    font-size: 0.82rem;
    color: var(--text-secondary, #64748b);
    margin: 0;
}

#review-items-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #64748b);
    transition: all 0.2s ease;
}

#review-items-close:hover {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}

/* ── Body (scrollable) ── */
#review-items-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

#review-items-body::-webkit-scrollbar {
    width: 6px;
}

#review-items-body::-webkit-scrollbar-track {
    background: transparent;
}

#review-items-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

#review-items-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}

/* ── Item Row ── */
.pending-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border, rgba(0,0,0,0.06));
    transition: background 0.2s ease, opacity 0.3s ease;
}

.pending-item-row:last-child {
    border-bottom: none;
}

.pending-item-row:hover {
    background: rgba(14,165,233,0.03);
}

.pending-item-main {
    flex: 1;
    min-width: 0;
}

.pending-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pending-item-meta {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 2px;
}

.pending-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Status Pills ── */
.pending-item-final {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.pending-item-final.status-confirmed {
    background: rgba(34,197,94,0.15);
    color: #16a34a;
    border: 1px solid rgba(34,197,94,0.25);
}

.pending-item-final.status-rejected {
    background: rgba(239,68,68,0.15);
    color: #dc2626;
    border: 1px solid rgba(239,68,68,0.25);
}

/* ── In-flight Row State ── */
.pending-item-row[data-inflight="true"] {
    opacity: 0.55;
    pointer-events: none;
}

.pending-item-row[data-inflight="true"] .pending-confirm-btn,
.pending-item-row[data-inflight="true"] .pending-reject-btn {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Disabled button states inside modal ── */
.pending-item-actions .pending-confirm-btn[disabled],
.pending-item-actions .pending-reject-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── Footer ── */
.review-items-footer {
    padding: 12px 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
    text-align: center;
}

.review-items-hint {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    font-weight: 500;
}

/* ── Partial-Progress Badge ── */
.badge.badge-partial {
    background: rgba(14,165,233,0.12);
    color: #0284c7;
    border: 1px solid rgba(14,165,233,0.2);
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 8px;
}

/* ── Midnight Dark Theme Overrides ── */
[data-theme="midnight"] #review-items-modal {
    background: rgba(30,41,59,0.9);
    border-color: rgba(51,65,85,0.5);
    box-shadow:
        0 24px 48px rgba(0,0,0,0.3),
        0 8px 16px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

[data-theme="midnight"] .review-items-header {
    border-bottom-color: rgba(51,65,85,0.3);
}

[data-theme="midnight"] #review-items-close {
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
}

[data-theme="midnight"] .pending-item-row {
    border-bottom-color: rgba(51,65,85,0.3);
}

[data-theme="midnight"] .pending-item-row:hover {
    background: rgba(14,165,233,0.06);
}

[data-theme="midnight"] .review-items-footer {
    border-top-color: rgba(51,65,85,0.3);
}

[data-theme="midnight"] .badge.badge-partial {
    background: rgba(14,165,233,0.18);
    color: #38bdf8;
    border-color: rgba(14,165,233,0.3);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    #review-items-modal {
        width: 96vw;
        max-height: 90vh;
        border-radius: 18px;
    }

    .pending-item-row {
        flex-wrap: wrap;
    }

    .pending-item-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
}


/* ==========================================
   PROXY-MODE BANNER (Swag Shop)
   Shown at the top of #points when admin is
   shopping on behalf of another employee.
   ========================================== */
#swag-shop-proxy-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
    margin: 0 0 18px 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(14, 165, 233, 0.12));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
    font-weight: 700;
    color: #0f172a;
}
#swag-shop-proxy-banner .proxy-banner-text {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}
#swag-shop-proxy-banner .proxy-banner-text .proxy-alias {
    color: #b45309;
    font-weight: 800;
}
#swag-shop-proxy-banner .proxy-banner-text .proxy-balance {
    color: #f59e0b;
    font-weight: 900;
}
#swag-shop-proxy-banner button.proxy-exit-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}
#swag-shop-proxy-banner button.proxy-exit-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #991b1b;
}

/* ==========================================
   EMPLOYEE MANAGEMENT PAGE
   Admin-only search + profile + transactions.
   Matches the glassmorphism pattern used on
   the rest of the portal.
   ========================================== */

#emp-admin-header {
    padding: 14px 22px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #334155;
}
#emp-admin-header strong { color: #0f172a; }

#emp-search-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
#emp-search-input {
    flex: 1;
    padding: 12px 18px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 14px;
    font-size: 0.92rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s;
}
#emp-search-input:focus {
    border-color: #0ea5e9;
}
#emp-site-select {
    min-width: 130px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245,158,11,0.35);
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #b45309;
    cursor: pointer;
    outline: none;
}
#emp-site-select:focus {
    border-color: #f59e0b;
}
#emp-search-btn {
    padding: 12px 22px;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(14,165,233,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}
#emp-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(14,165,233,0.35);
}
#emp-search-status {
    font-size: 0.9rem;
    padding: 6px 4px;
    margin-bottom: 12px;
    min-height: 1.2em;
}

/* ── 403 panel ────────────────── */
.emp-403-panel {
    padding: 40px 28px;
    text-align: center;
    background: rgba(239,68,68,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 20px;
    color: #0f172a;
}
.emp-403-panel h2 { margin: 0 0 12px 0; font-size: 1.4rem; color: #dc2626; }
.emp-403-panel p { margin: 0 0 18px 0; color: #64748b; }
.emp-403-panel button {
    padding: 10px 22px;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white; border: none; border-radius: 12px;
    font-size: 0.88rem; font-weight: 700; cursor: pointer;
}

/* ── Profile card ───────────────────── */
.emp-profile-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px 26px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    margin-bottom: 18px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}
.emp-profile-avatar {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: white; font-weight: 800; font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(14,165,233,0.3);
}
.emp-profile-info { flex: 1; min-width: 0; }
.emp-profile-info .emp-name {
    font-size: 1.15rem; font-weight: 800; color: #0f172a; margin-bottom: 4px;
}
.emp-profile-info .emp-meta {
    font-size: 0.82rem; color: #64748b; margin-bottom: 2px;
}
.emp-balance-block {
    text-align: right;
    padding-left: 18px;
    border-left: 1px solid rgba(0,0,0,0.06);
}
.emp-balance-label {
    font-size: 0.7rem; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.8px;
}
.emp-balance-value {
    font-size: 1.8rem; font-weight: 900; color: #f59e0b;
    text-shadow: 0 2px 8px rgba(245,158,11,0.2);
    margin: 4px 0;
}
.emp-balance-sub {
    font-size: 0.72rem; color: #64748b; margin-bottom: 10px;
}
.emp-proxy-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: white; border: none; border-radius: 12px;
    font-size: 0.88rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 14px rgba(14,165,233,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.emp-proxy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14,165,233,0.4);
}

/* ── Section titles ─────────────── */
.emp-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 24px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.emp-section-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

/* ── Category breakdown ─────────── */
.emp-category-bars {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 18px;
}
.emp-cat-row {
    display: flex; align-items: center; gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.emp-cat-row:last-child { border-bottom: none; }
.emp-cat-label { width: 140px; font-size: 0.85rem; font-weight: 700; color: #0f172a; }
.emp-cat-bar { flex: 1; height: 10px; background: rgba(0,0,0,0.05); border-radius: 5px; overflow: hidden; }
.emp-cat-fill { height: 100%; background: linear-gradient(90deg, #0ea5e9, #06b6d4); border-radius: 5px; }
.emp-cat-value { font-size: 0.78rem; color: #64748b; font-weight: 600; min-width: 140px; text-align: right; }
.emp-category-empty { padding: 20px; text-align: center; color: #64748b; font-size: 0.9rem; }

/* ── Transactions table ─────────── */
.emp-txn-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px;
    overflow: hidden;
}
.emp-txn-table thead th {
    background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(139,92,246,0.05));
    padding: 14px 16px;
    text-align: left;
    font-size: 0.75rem; font-weight: 800;
    color: #0f172a;
    text-transform: uppercase; letter-spacing: 0.4px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.emp-txn-table tbody td {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #0f172a;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.emp-txn-table tbody tr:last-child td { border-bottom: none; }
.emp-txn-table tbody tr:hover { background: rgba(14,165,233,0.08); }

.emp-ordered-by {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
}
.emp-ordered-by--self {
    background: rgba(34,197,94,0.1);
    color: #16a34a;
    border: 1px solid rgba(34,197,94,0.25);
}
.emp-ordered-by--admin {
    background: rgba(245,158,11,0.1);
    color: #b45309;
    border: 1px solid rgba(245,158,11,0.3);
}
.emp-txn-empty {
    padding: 32px 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.4);
    border-radius: 16px;
    border: 1px dashed rgba(0,0,0,0.08);
}

.emp-txn-empty__icon {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.6;
    filter: grayscale(30%);
}


/* ==========================================
   EMPLOYEE ROSTER DASHBOARD — Glassmorphism
   Task 10.1: Roster table, pagination, detail
   panel, loading skeleton, status badges
   ========================================== */

/* ── Roster table wrapper ── */
.emp-roster-wrap {
    animation: shimmer-in 0.6s ease-out 0.1s both;
}

.emp-roster-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.05),
        0 2px 8px rgba(0,0,0,0.03),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.emp-roster-table thead tr {
    background: rgba(241,245,249,0.7);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.emp-roster-table thead th {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-secondary, #64748b);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-align: left;
}

.emp-roster-table tbody td {
    padding: 12px 18px;
    font-size: 0.88rem;
    color: var(--text-primary, #0f172a);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.emp-roster-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Roster row — clickable ── */
.emp-roster-row {
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.emp-roster-row:hover {
    background: rgba(14,165,233,0.06);
}

.emp-roster-row:active {
    background: rgba(14,165,233,0.1);
}

/* ── Expanded row highlight ── */
.emp-roster-row--expanded {
    background: rgba(14,165,233,0.08) !important;
    border-left: 3px solid #0ea5e9;
}

/* ── Warning row (zero/negative balance) ── */
.emp-roster-row--warning td:nth-child(3) {
    color: #ef4444;
}

.emp-roster-row--warning {
    background: rgba(239,68,68,0.03);
}

.emp-roster-row--warning:hover {
    background: rgba(239,68,68,0.07);
}

/* ── Detail row (expanded panel container) ── */
.emp-detail-row {
    background: rgba(241,245,249,0.5);
}

.emp-detail-row td {
    padding: 0 !important;
    border-bottom: none !important;
}

/* ── Detail panel ── */
.emp-detail-panel {
    padding: 28px 32px;
    border-top: 3px solid rgba(14,165,233,0.25);
    border-bottom: 2px solid rgba(14,165,233,0.08);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: inset 0 4px 20px rgba(14,165,233,0.04);
    animation: emp-detail-slide-down 0.3s ease-out;
}

@keyframes emp-detail-slide-down {
    0% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        max-height: 2000px;
        transform: translateY(0);
    }
}

/* ── Detail panel purchase/allocation tables ── */
.emp-detail-purchase-table,
.emp-detail-alloc-table {
    margin-bottom: 12px;
}

.emp-detail-footer-row {
    background: rgba(241,245,249,0.9) !important;
    border-top: 2px solid rgba(14,165,233,0.15);
}

.emp-detail-footer-row td {
    padding: 16px 18px !important;
    font-size: 0.92rem;
}

/* ── Pagination controls ── */
.emp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 0;
    margin-top: 8px;
}

.emp-pagination-btn {
    padding: 8px 18px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary, #0ea5e9);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.emp-pagination-btn:hover:not(:disabled) {
    background: rgba(14,165,233,0.08);
    border-color: rgba(14,165,233,0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14,165,233,0.1);
}

.emp-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: var(--text-muted, #94a3b8);
}

.emp-pagination-info {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
}

/* ── Loading skeleton ── */
.emp-loading-skeleton {
    padding: 24px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.emp-skeleton-line {
    background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.06) 75%);
    background-size: 200% 100%;
    animation: emp-skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
    height: 16px;
}

@keyframes emp-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Roster error state ── */
.emp-roster-error {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(239,68,68,0.06);
}

/* ── Roster empty state ── */
.emp-roster-empty {
    text-align: center;
    padding: 48px 24px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

/* ── Status badges ── */
.emp-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.emp-status-badge--confirmed {
    background: rgba(34,197,94,0.1);
    color: #16a34a;
    border: 1px solid rgba(34,197,94,0.25);
}

.emp-status-badge--rejected {
    background: rgba(239,68,68,0.1);
    color: #dc2626;
    border: 1px solid rgba(239,68,68,0.25);
}

.emp-status-badge--pending {
    background: rgba(245,158,11,0.1);
    color: #b45309;
    border: 1px solid rgba(245,158,11,0.3);
}

/* ── Detail panel proxy button ── */
.emp-detail-proxy-btn {
    margin-top: 8px;
    font-size: 0.82rem;
}

/* ── Profile card — detailed variant with accent bar ── */
.emp-profile-card--detailed {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.emp-profile-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6, #f59e0b);
    border-radius: 20px 20px 0 0;
}

/* ── Metric tiles (Balance / Assigned / Spent) ── */
.emp-metric-tiles {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.emp-metric-tile {
    flex: 1;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px;
    padding: 18px 20px;
    text-align: center;
    box-shadow:
        0 6px 24px rgba(0,0,0,0.04),
        0 2px 6px rgba(0,0,0,0.02),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.emp-metric-tile:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.07),
        0 4px 10px rgba(14,165,233,0.05),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.emp-metric-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

.emp-metric-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.emp-metric-value {
    font-size: 1.5rem;
    font-weight: 900;
    text-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.emp-metric-value--balance {
    color: #f59e0b;
}

.emp-metric-value--assigned {
    color: #0ea5e9;
}

.emp-metric-value--spent {
    color: #8b5cf6;
}

/* ── Table glassmorphism wrapper ── */
.emp-table-wrap {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 18px;
    box-shadow:
        0 8px 28px rgba(0,0,0,0.06),
        0 2px 8px rgba(0,0,0,0.03),
        inset 0 1px 0 rgba(255,255,255,0.9);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 12px;
}

.emp-table-wrap .emp-txn-table {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: 900px;
}

/* ── Alternating row colors ── */
.emp-row-even {
    background: rgba(255,255,255,0.3);
}

.emp-row-odd {
    background: rgba(241,245,249,0.35);
}

/* ── Monospace TXN# column ── */
.emp-txn-mono {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.72rem;
    letter-spacing: -0.3px;
    color: #475569;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

/* ── Table column sizing ── */
.emp-detail-purchase-table th:nth-child(1),
.emp-detail-purchase-table td:nth-child(1) { width: 90px; white-space: nowrap; }
.emp-detail-purchase-table th:nth-child(2),
.emp-detail-purchase-table td:nth-child(2) { width: 160px; }
.emp-detail-purchase-table th:nth-child(3),
.emp-detail-purchase-table td:nth-child(3) { width: 55px; text-align: center; }
.emp-detail-purchase-table th:nth-child(4),
.emp-detail-purchase-table td:nth-child(4) { min-width: 140px; }
.emp-detail-purchase-table th:nth-child(5),
.emp-detail-purchase-table td:nth-child(5) { min-width: 90px; }
.emp-detail-purchase-table th:nth-child(6),
.emp-detail-purchase-table td:nth-child(6) { width: 45px; text-align: center; }
.emp-detail-purchase-table th:nth-child(7),
.emp-detail-purchase-table td:nth-child(7) { width: 80px; text-align: right; }
.emp-detail-purchase-table th:nth-child(8),
.emp-detail-purchase-table td:nth-child(8) { width: 80px; }
.emp-detail-purchase-table th:nth-child(9),
.emp-detail-purchase-table td:nth-child(9) { width: 100px; }

/* ── Row spacing ── */
.emp-detail-purchase-table tbody td,
.emp-detail-alloc-table tbody td {
    padding: 10px 14px;
    font-size: 0.84rem;
    vertical-align: middle;
    line-height: 1.4;
}

/* ── Responsive: roster table ── */
@media (max-width: 768px) {
    .emp-roster-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .emp-roster-table {
        min-width: 600px;
    }

    .emp-detail-panel {
        padding: 14px 12px;
    }

    .emp-pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .emp-metric-tiles {
        flex-direction: column;
    }

    .emp-profile-card--detailed {
        flex-direction: column;
        text-align: center;
    }

    .emp-profile-card--detailed .emp-balance-block {
        border-left: none;
        padding-left: 0;
        padding-top: 12px;
        border-top: 1px solid rgba(0,0,0,0.06);
        text-align: center;
    }

    .emp-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* ==========================================
   ADOBE DARK THEME — Creative Cloud Inspired
   Deep navy-purple palette with indigo accents,
   frosted glass cards, and refined typography
   ========================================== */

/* ── Typography ── */
[data-theme="adobe-dark"] {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="adobe-dark"] h1,
[data-theme="adobe-dark"] h2,
[data-theme="adobe-dark"] h3,
[data-theme="adobe-dark"] h4,
[data-theme="adobe-dark"] h5,
[data-theme="adobe-dark"] h6 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

[data-theme="adobe-dark"] body,
[data-theme="adobe-dark"] p,
[data-theme="adobe-dark"] span,
[data-theme="adobe-dark"] div {
    font-weight: 400;
    line-height: 1.6;
}

/* ── Sidebar ── */
[data-theme="adobe-dark"] .sidebar {
    background: linear-gradient(180deg, #0d0d1a, #1a1a2e) !important;
    border-right: 1px solid rgba(99, 102, 241, 0.08);
}

[data-theme="adobe-dark"] .sidebar .sidebar-header {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="adobe-dark"] .sidebar .nav-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

[data-theme="adobe-dark"] .sidebar .nav-item:hover {
    background: rgba(99, 102, 241, 0.08);
}

[data-theme="adobe-dark"] .sidebar .nav-item.active {
    background: rgba(99, 102, 241, 0.12);
    border-left-color: #6366f1;
}

[data-theme="adobe-dark"] .sidebar .section-label {
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* ── Top Header ── */
[data-theme="adobe-dark"] .top-header {
    background: #0d0d1a !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

/* ── Content Area ── */
[data-theme="adobe-dark"] .main-content {
    background: #1a1a2e;
}

/* ── Cards & Stat Cards ── */
[data-theme="adobe-dark"] .card,
[data-theme="adobe-dark"] .stat-card {
    background: rgba(30, 30, 55, 0.7) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(99, 102, 241, 0.12) !important;
    border-radius: 16px !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 1px 4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

[data-theme="adobe-dark"] .card:hover,
[data-theme="adobe-dark"] .stat-card:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.2) !important;
}

/* ── Product Grid Cards ── */
[data-theme="adobe-dark"] #swag-shop-grid > div {
    background: rgba(30, 30, 55, 0.7) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(99, 102, 241, 0.12) !important;
    border-radius: 16px !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 1px 4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="adobe-dark"] #swag-shop-grid > div:hover {
    box-shadow:
        0 0 20px rgba(99, 102, 241, 0.08),
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
}

/* ── Balance Banner ── */
[data-theme="adobe-dark"] #shop-balance-banner {
    background: rgba(30, 30, 55, 0.7) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(99, 102, 241, 0.12) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ── Search Inputs ── */
[data-theme="adobe-dark"] #shop-search {
    background: rgba(22, 22, 42, 0.8) !important;
    border: 1px solid rgba(99, 102, 241, 0.12) !important;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="adobe-dark"] #shop-search:focus {
    background: rgba(22, 22, 42, 0.95) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), 0 4px 16px rgba(99, 102, 241, 0.1);
}

[data-theme="adobe-dark"] #shop-search::placeholder {
    color: var(--text-muted);
}

/* ── Cart Summary ── */
[data-theme="adobe-dark"] #shop-cart-summary {
    background: rgba(30, 30, 55, 0.7) !important;
    border: 1px solid rgba(99, 102, 241, 0.12) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ── Tables — Transaction Details ── */
[data-theme="adobe-dark"] .txn-table-wrap {
    background: rgba(30, 30, 55, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="adobe-dark"] .txn-metric-tile {
    background: rgba(30, 30, 55, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="adobe-dark"] .txn-table thead tr {
    background: rgba(99, 102, 241, 0.06);
}

[data-theme="adobe-dark"] .txn-row-even {
    background: rgba(30, 30, 55, 0.4);
}

[data-theme="adobe-dark"] .txn-row-odd {
    background: rgba(22, 22, 42, 0.4);
}

[data-theme="adobe-dark"] .txn-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

[data-theme="adobe-dark"] .txn-footer-row {
    background: rgba(99, 102, 241, 0.06) !important;
}

/* ── Tables — Employee Roster & Transactions ── */
[data-theme="adobe-dark"] .emp-txn-table,
[data-theme="adobe-dark"] .emp-roster-table {
    background: rgba(30, 30, 55, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 16px;
}

[data-theme="adobe-dark"] .emp-txn-table thead tr,
[data-theme="adobe-dark"] .emp-roster-table thead tr {
    background: rgba(99, 102, 241, 0.06);
}

[data-theme="adobe-dark"] .emp-txn-table tbody tr:nth-child(even),
[data-theme="adobe-dark"] .emp-roster-table tbody tr:nth-child(even) {
    background: rgba(30, 30, 55, 0.4);
}

[data-theme="adobe-dark"] .emp-txn-table tbody tr:nth-child(odd),
[data-theme="adobe-dark"] .emp-roster-table tbody tr:nth-child(odd) {
    background: rgba(22, 22, 42, 0.4);
}

[data-theme="adobe-dark"] .emp-txn-table tbody tr:hover,
[data-theme="adobe-dark"] .emp-roster-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* ── Tables — Pending Handouts ── */
[data-theme="adobe-dark"] .pending-table {
    background: rgba(30, 30, 55, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="adobe-dark"] .pending-row.pending-header {
    background: rgba(99, 102, 241, 0.06);
    border-bottom-color: rgba(99, 102, 241, 0.08);
}

[data-theme="adobe-dark"] .pending-row:not(.pending-header):nth-child(even) {
    background: rgba(30, 30, 55, 0.4);
}

[data-theme="adobe-dark"] .pending-row:not(.pending-header):hover {
    background: rgba(99, 102, 241, 0.1);
}

/* ── Admin Dashboard — KPI Cards ── */
[data-theme="adobe-dark"] .dash-kpi-card {
    background: rgba(30, 30, 55, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="adobe-dark"] .dash-kpi-card:hover {
    box-shadow:
        0 0 20px rgba(99, 102, 241, 0.08),
        0 16px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ── Admin Dashboard — Chart Container ── */
[data-theme="adobe-dark"] .dash-chart-container {
    background: rgba(30, 30, 55, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ── Admin Dashboard — Tables ── */
[data-theme="adobe-dark"] .dash-table-wrap {
    background: rgba(30, 30, 55, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="adobe-dark"] .dash-table thead tr {
    background: rgba(99, 102, 241, 0.06);
}

[data-theme="adobe-dark"] .dash-row-even {
    background: rgba(30, 30, 55, 0.4);
}

[data-theme="adobe-dark"] .dash-row-odd {
    background: rgba(22, 22, 42, 0.4);
}

[data-theme="adobe-dark"] .dash-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* ── Admin Dashboard — Popular Items ── */
[data-theme="adobe-dark"] .dash-popular-container {
    background: rgba(30, 30, 55, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="adobe-dark"] .dash-popular-row {
    border-bottom-color: rgba(99, 102, 241, 0.06);
}

[data-theme="adobe-dark"] .dash-popular-row:hover {
    background: rgba(99, 102, 241, 0.08);
}

[data-theme="adobe-dark"] .dash-progress-bar-wrap {
    background: rgba(255, 255, 255, 0.06);
}

/* ── Checkout Cards ── */
[data-theme="adobe-dark"] #checkout .card {
    background: rgba(30, 30, 55, 0.7) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(99, 102, 241, 0.12) !important;
    border-radius: 16px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

/* ── Cart Dropdown ── */
[data-theme="adobe-dark"] .cart-dropdown {
    background: rgba(30, 30, 55, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(99, 102, 241, 0.12) !important;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

[data-theme="adobe-dark"] .cart-dropdown-header {
    background: rgba(22, 22, 42, 0.6) !important;
    border-bottom-color: rgba(99, 102, 241, 0.08) !important;
}

[data-theme="adobe-dark"] .cart-dropdown-footer {
    background: rgba(22, 22, 42, 0.6) !important;
    border-top-color: rgba(99, 102, 241, 0.08) !important;
}

[data-theme="adobe-dark"] .cart-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.08);
}

/* ── Variant Modal ── */
[data-theme="adobe-dark"] #variant-modal-content {
    background: rgba(30, 30, 55, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(99, 102, 241, 0.12) !important;
    border-radius: 16px !important;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

[data-theme="adobe-dark"] #variant-modal-header {
    background: rgba(22, 22, 42, 0.6);
    border-bottom-color: rgba(99, 102, 241, 0.08) !important;
}

[data-theme="adobe-dark"] #variant-modal-footer {
    background: rgba(22, 22, 42, 0.6);
    border-top-color: rgba(99, 102, 241, 0.08) !important;
}

[data-theme="adobe-dark"] .variant-row:hover {
    background: rgba(99, 102, 241, 0.1) !important;
}

[data-theme="adobe-dark"] .variant-row.selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1)) !important;
    border-color: rgba(99, 102, 241, 0.25);
}

/* ── Buttons ── */
[data-theme="adobe-dark"] .btn-primary,
[data-theme="adobe-dark"] button[style*="background: var(--primary)"],
[data-theme="adobe-dark"] button[style*="background:var(--primary)"] {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="adobe-dark"] .pending-confirm-btn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="adobe-dark"] .pending-reject-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ── Status Badges ── */
[data-theme="adobe-dark"] .badge-success {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
}

[data-theme="adobe-dark"] .badge-danger {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}

[data-theme="adobe-dark"] .badge-warning {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

/* ── Stock Badges ── */
[data-theme="adobe-dark"] .stock-badge {
    background: rgba(30, 30, 55, 0.85);
    border-color: rgba(99, 102, 241, 0.12);
    color: var(--text-primary);
}

/* ── Skeleton & State Cards ── */
[data-theme="adobe-dark"] .txn-skeleton-card,
[data-theme="adobe-dark"] .dash-skeleton-card {
    background: rgba(30, 30, 55, 0.7);
    border-color: rgba(99, 102, 241, 0.12);
}

[data-theme="adobe-dark"] .txn-error-state,
[data-theme="adobe-dark"] .dash-error-state {
    background: rgba(30, 30, 55, 0.7);
    border-color: rgba(248, 113, 113, 0.25);
}

[data-theme="adobe-dark"] .txn-empty-state,
[data-theme="adobe-dark"] .dash-empty-state,
[data-theme="adobe-dark"] .dash-access-denied-state {
    background: rgba(30, 30, 55, 0.7);
    border-color: rgba(99, 102, 241, 0.12);
}

/* ── Scrollbars ── */
[data-theme="adobe-dark"] #variant-modal-list::-webkit-scrollbar-track,
[data-theme="adobe-dark"] #checkout-items::-webkit-scrollbar-track {
    background: rgba(22, 22, 42, 0.4);
}

[data-theme="adobe-dark"] #variant-modal-list::-webkit-scrollbar-thumb,
[data-theme="adobe-dark"] #checkout-items::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px;
}

[data-theme="adobe-dark"] #variant-modal-list::-webkit-scrollbar-thumb:hover,
[data-theme="adobe-dark"] #checkout-items::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.35);
}

/* ── Text color enforcement for glassmorphism elements ── */
[data-theme="adobe-dark"] #swag-shop-grid > div,
[data-theme="adobe-dark"] #checkout .card,
[data-theme="adobe-dark"] .txn-table-wrap,
[data-theme="adobe-dark"] .dash-kpi-card,
[data-theme="adobe-dark"] .dash-chart-container,
[data-theme="adobe-dark"] .dash-table-wrap,
[data-theme="adobe-dark"] .dash-popular-container,
[data-theme="adobe-dark"] #shop-balance-banner,
[data-theme="adobe-dark"] #shop-cart-summary,
[data-theme="adobe-dark"] #variant-modal-content,
[data-theme="adobe-dark"] .txn-metric-tile,
[data-theme="adobe-dark"] .pending-table,
[data-theme="adobe-dark"] .cart-dropdown {
    color: var(--text-primary);
}

/* ── Review Items Modal ── */
[data-theme="adobe-dark"] #review-items-modal {
    background: rgba(30, 30, 55, 0.92) !important;
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ── Dashboard stat cards on Adobe Dark ── */
[data-theme="adobe-dark"] #dashboard .stat-card {
    background: rgba(30, 30, 55, 0.7) !important;
    border: 1px solid rgba(99, 102, 241, 0.12) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

[data-theme="adobe-dark"] #dashboard .stat-card:hover {
    box-shadow:
        0 0 20px rgba(99, 102, 241, 0.08),
        0 20px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
}

[data-theme="adobe-dark"] #dashboard .card {
    background: rgba(30, 30, 55, 0.7) !important;
    border: 1px solid rgba(99, 102, 241, 0.12) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

[data-theme="adobe-dark"] #dashboard .card-header {
    background: rgba(22, 22, 42, 0.5) !important;
    border-bottom-color: rgba(99, 102, 241, 0.08) !important;
}

/* ── Employee Profile Cards ── */
[data-theme="adobe-dark"] .emp-profile-card,
[data-theme="adobe-dark"] .emp-table-wrap {
    background: rgba(30, 30, 55, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 16px;
}
