@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #121214;
    --bg-card: #1c1c1f;
    --bg-input: #121214;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --primary: #dc2626;         /* Corporate Red */
    --primary-hover: #b91c1c;   /* Darker Corporate Red */
    --primary-rgb: 220, 38, 38;
    --accent: #71717a;          /* Corporate Gray (Zinc) */
    --accent-rgb: 113, 113, 122;
    --success: #10b981;         /* Emerald Green */
    --warning: #f59e0b;         /* Amber/Orange */
    --danger: #ef4444;          /* Danger Red */
    --border: #2a2a2e;
    --header-bg: rgba(28, 28, 31, 0.8);
    --footer-bg: #0c0c0e;
    --font-main: 'Outfit', sans-serif;
    --radius: 8px;              /* Shorter radius for a structured corporate look */
    --transition: all 0.2s ease-in-out;
}

/* Light Theme Variables (Used via body class or toggle) */
body.light-theme {
    --bg-dark: #f4f4f5;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --text-main: #18181b;
    --text-muted: #52525b;
    --primary: #b91c1c;         /* Strong Corporate Red */
    --primary-hover: #991b1b;
    --primary-rgb: 185, 28, 28;
    --accent: #71717a;          /* Slate Gray */
    --accent-rgb: 113, 113, 122;
    --border: #cbd5e1;          /* Crisp light border */
    --header-bg: rgba(255, 255, 255, 0.8);
    --footer-bg: #e4e4e7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Header & Navigation */
header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo ion-icon {
    color: var(--primary);
}

.logo span {
    font-weight: 400;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

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

.btn-danger:hover {
    background-color: #dc2626;
}

/* Layout container */
main {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--accent-rgb), 0.12) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3.5rem 3rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Catalog Wrapper */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Sidebar filter */
.sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: fit-content;
}

.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
}

.category-link:hover, .category-link.active {
    background-color: var(--border);
    color: var(--text-main);
}

/* Search Bar */
.search-form {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.input-group {
    position: relative;
    flex: 1;
}

.form-input {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

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

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.15), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.product-img-wrapper {
    height: 140px;
    background-color: rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-info {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-sku {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.5rem;
    line-height: 1.25;
}

.product-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.price-locked {
    font-size: 0.8rem;
    color: var(--warning);
    font-weight: 600;
    background-color: rgba(245, 158, 11, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.product-stock {
    font-size: 0.85rem;
    font-weight: 600;
}

.stock-ok { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-none { color: var(--danger); }

/* Forms & Authentication Panels */
.auth-container {
    max-width: 450px;
    margin: 4rem auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-info {
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.2);
}

/* Detail page */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
}

.detail-img-container {
    background-color: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 450px;
}

.detail-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-sku {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.detail-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.detail-price-box {
    background-color: rgba(15, 23, 42, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.detail-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.detail-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    white-space: pre-line;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.qty-input {
    width: 80px;
    padding: 0.8rem;
    border-radius: var(--radius);
    background-color: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-main);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

/* Cart Table */
.table-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: rgba(15, 23, 42, 0.3);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

td {
    vertical-align: middle;
}

.table-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.table-product img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background-color: rgba(15, 23, 42, 0.3);
    border-radius: 6px;
    padding: 4px;
}

.cart-summary {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.summary-row.total {
    font-size: 1.3rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    font-weight: 800;
}

/* Checkout Page */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 2rem;
}

/* Admin Dashboard layout */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

.admin-sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: fit-content;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-link:hover, .admin-link.active {
    background-color: var(--border);
    color: var(--text-main);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    text-align: center;
}

.badge-pending { background-color: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-active { background-color: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-completed { background-color: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-shipped { background-color: rgba(var(--accent-rgb), 0.15); color: var(--accent); }
.badge-processing { background-color: rgba(var(--primary-rgb), 0.15); color: var(--primary); }
.badge-suspended { background-color: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-cancelled { background-color: rgba(239, 68, 68, 0.15); color: var(--danger); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3rem;
}

.page-item {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.page-item:hover {
    background-color: var(--bg-input);
    border-color: var(--primary);
    color: var(--primary);
}

.page-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-dots {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1rem;
}

/* Footer styling */
footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 1.5rem 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    text-align: left;
    margin-bottom: 2.5rem;
}

.footer-column h4 {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--primary);
    padding-left: 0.5rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.6rem;
}

.footer-column ul li a:hover {
    color: var(--text-main);
}

.footer-column .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.footer-column .contact-item ion-icon {
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.footer-column .contact-info {
    line-height: 1.4;
}

.footer-column .contact-info strong {
    color: var(--text-main);
    display: block;
    font-size: 0.88rem;
}

.footer-column .contact-info a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-column .contact-info a:hover {
    color: var(--text-main);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
}

/* Modal and Inline details editing styling */
.action-modal-trigger {
    cursor: pointer;
}

/* Responsive queries */
@media (max-width: 992px) {
    .catalog-layout, .checkout-layout, .admin-layout {
        grid-template-columns: 1fr;
    }
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
    #cart-drawer {
        width: 100% !important;
        right: -100% !important;
    }
}

/* Chrome, Safari, Edge, Opera number input arrow reset */
.stock-quick-editor input::-webkit-outer-spin-button,
.stock-quick-editor input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stock-quick-editor button:hover {
    color: var(--primary) !important;
}

/* Custom Scrollbar for Cart Drawer items */
#cart-drawer-items::-webkit-scrollbar {
    width: 6px;
}
#cart-drawer-items::-webkit-scrollbar-track {
    background: transparent;
}
#cart-drawer-items::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 3px;
}

/* ==========================================================================
   SCI-FI TECH / CYBERPUNK STYLING & ANIMATIONS
   ========================================================================== */

/* Faint background tech grid blueprint */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(220, 38, 38, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 38, 38, 0.012) 1px, transparent 1px);
    background-size: 45px 45px;
    pointer-events: none;
    z-index: -1;
}

body.light-theme::before {
    background-image: 
        linear-gradient(rgba(185, 28, 28, 0.008) 1px, transparent 1px),
        linear-gradient(90deg, rgba(185, 28, 28, 0.008) 1px, transparent 1px);
}

/* Flowing light streak under sticky header */
header {
    position: relative;
}
header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), #ffffff, var(--primary), transparent);
    background-size: 200% 100%;
    animation: header-flow-light 5s linear infinite;
    pointer-events: none;
}

@keyframes header-flow-light {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Pulsing red-white glowing borders for active components */
@keyframes cyber-pulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.15), 0 0 1px rgba(255, 255, 255, 0.05);
        border-color: var(--border);
    }
    50% {
        box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.35), 0 0 4px rgba(255, 255, 255, 0.15);
        border-color: rgba(var(--primary-rgb), 0.5);
    }
}

/* Pulse glow on hero and sidebar card borders */
.hero {
    animation: cyber-pulse 6s ease-in-out infinite;
    position: relative;
}

/* Corner brackets on Hero & Sidebar */
.hero, .sidebar, .admin-sidebar, .auth-container {
    background-image: 
        linear-gradient(to right, var(--primary) 10px, transparent 10px),
        linear-gradient(to bottom, var(--primary) 10px, transparent 10px),
        linear-gradient(to left, var(--primary) 10px, transparent 10px),
        linear-gradient(to bottom, var(--primary) 10px, transparent 10px),
        linear-gradient(to right, var(--primary) 10px, transparent 10px),
        linear-gradient(to top, var(--primary) 10px, transparent 10px),
        linear-gradient(to left, var(--primary) 10px, transparent 10px),
        linear-gradient(to top, var(--primary) 10px, transparent 10px);
    background-position: 
        0 0, 0 0, 
        100% 0, 100% 0, 
        0 100%, 0 100%, 
        100% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-size: 1px 8px, 8px 1px;
}

body.light-theme .hero, 
body.light-theme .sidebar, 
body.light-theme .admin-sidebar, 
body.light-theme .auth-container {
    background-image: none; /* Keep clean on light theme */
}

/* Product Card futuristic glow effects on hover */
.product-card {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.45), 0 0 6px rgba(255, 255, 255, 0.2);
    animation: border-color-glow 3s linear infinite;
}

body.light-theme .product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.2);
    animation: none;
}

@keyframes border-color-glow {
    0%, 100% {
        border-color: var(--primary);
    }
    50% {
        border-color: #ffffff;
    }
}

/* Pulsing text glow for stats card numbers in Admin Panel */
.stat-card {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}
.stat-card .stat-val {
    text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.1);
    transition: text-shadow 0.3s ease;
}
.stat-card:hover .stat-val {
    text-shadow: 0 0 12px rgba(var(--primary-rgb), 0.6), 0 0 2px #ffffff;
}

/* Subtle laser scanning overlay on Hero banner */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(var(--primary-rgb), 0.03) 40%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(var(--primary-rgb), 0.03) 60%, 
        transparent 100%);
    background-size: 100% 200px;
    animation: laser-scan 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes laser-scan {
    0% {
        background-position: 0 -200px;
    }
    100% {
        background-position: 0 100%;
    }
}

/* Glowing/Shining light effects inside and around the logo image */
.logo img, .auth-header img, footer img {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.45));
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.logo img:hover, .auth-header img:hover, footer img:hover {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 3px rgba(220, 38, 38, 0.5));
    transform: scale(1.02);
}


