:root {
    --bg-dark: #050505;
    --bg-card: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;

    /* Corevia Colors */
    --color-start: #00C2FF;
    /* Cyan Blue */
    --color-power: #BC13FE;
    /* Purple */
    --color-elite: #FF4D4D;
    /* Red/Pink */

    --gamer-gradient: linear-gradient(135deg, var(--color-start), var(--color-power));
    --menu-bg: rgba(5, 5, 5, 0.98);

    /* Pro Colors */
    --gold: #FFD700;
    --silver: #C0C0C0;

    --font-main: 'Outfit', sans-serif;

    /* Peripherique specific */
    --color-periph: #FF2E97;
    /* Hot Pink for peripherals */
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo-img {
    height: 40px;
    border-radius: 15px;
    /* Coins arrondis */
}

.highlight {
    color: var(--color-start);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-start);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
        /* Above mobile menu */
    }

    /* Premium Mobile Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        max-width: 300px;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 25px;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        padding: 80px 40px;
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 1000;
        visibility: hidden;
        opacity: 0;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }

    /* Blur overlay for body when menu is active */
    body.menu-open main {
        filter: blur(8px);
        pointer-events: none;
        transition: filter 0.3s ease;
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        letter-spacing: 2px;
        display: block;
        padding: 5px 0;
    }

    /* Delays for cascading entrance */
    .nav-links li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links li:nth-child(6) {
        transition-delay: 0.35s;
    }

    /* Hamburger Animation */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2.5rem;
        /* Slightly smaller for mobile */
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 0 15px;
        gap: 20px;
    }

    .card-info h3 {
        font-size: 1.3rem;
    }

    .price {
        font-size: 1.5rem;
    }

    /* Fix product gallery on mobile */
    .gallery-wrapper {
        flex-direction: column;
        padding: 0 10px;
    }

    .main-image-viewport {
        min-height: 250px;
        padding: 10px;
        width: 100%;
    }

    #main-product-img {
        max-height: 280px;
        width: 100%;
        object-fit: contain;
    }

    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .arrow-left {
        left: -10px;
    }

    .arrow-right {
        right: -10px;
    }

    .cart-content {
        width: 100%;
        padding: 20px;
    }

    /* Responsive Tables Utility */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 12px;
        padding: 5px;
    }

    .table-responsive::-webkit-scrollbar {
        height: 4px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: var(--color-start);
        border-radius: 10px;
    }
}

/* Hero Section */
#hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    /* Premium CSS gradient background - Corevia Sober Theme */
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255, 46, 151, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 1) 0%, rgba(10, 10, 10, 1) 100%);
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #ffffff;
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 20px;
    }

    #hero {
        height: 60vh;
        padding-top: 80px;
    }
}

/* Ancienne classe gradient supprimée ou désactivée pour le titre */
.gradient-text {
    color: #ffffff;
}

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

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gamer {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-gamer:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.card-image {
    height: 350px;
    background-color: #0f0f0f;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.card-info {
    padding: 30px;
}

.card-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.specs {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

/* Specific Styles for Ranges */

/* START */
.card-start:hover {
    border-color: var(--color-start);
    box-shadow: 0 0 30px rgba(0, 194, 255, 0.2);
}

.card-start h3 {
    color: var(--color-start);
}

.text-start {
    color: var(--color-start);
}

.btn-start {
    background: rgba(0, 194, 255, 0.1);
    color: var(--color-start);
    border: 1px solid var(--color-start);
}

.btn-start:hover {
    background: var(--color-start);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 194, 255, 0.4);
}

/* POWER */
.card-power:hover {
    border-color: var(--color-power);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.2);
}

.card-power h3 {
    color: var(--color-power);
}

.text-power {
    color: var(--color-power);
}

.btn-power {
    background: rgba(188, 19, 254, 0.1);
    color: var(--color-power);
    border: 1px solid var(--color-power);
}

.btn-power:hover {
    background: var(--color-power);
    color: #fff;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4);
}

/* PERIPHERIQUE */
.card-periph:hover {
    border-color: var(--color-periph);
    box-shadow: 0 0 30px rgba(255, 46, 151, 0.2);
}

.card-periph h3 {
    color: var(--color-periph);
}

.text-periph {
    color: var(--color-periph);
}

.btn-periph {
    background: rgba(255, 46, 151, 0.1);
    color: var(--color-periph);
    border: 1px solid var(--color-periph);
}

.btn-periph:hover {
    background: var(--color-periph);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 46, 151, 0.4);
}

/* ELITE */
.card-elite:hover {
    border-color: var(--color-elite);
    box-shadow: 0 0 30px rgba(255, 77, 77, 0.2);
}

.card-elite h3 {
    color: var(--color-elite);
}

.text-elite {
    color: var(--color-elite);
}

.btn-elite {
    background: rgba(255, 77, 77, 0.1);
    color: var(--color-elite);
    border: 1px solid var(--color-elite);
}

.btn-elite:hover {
    background: var(--color-elite);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.4);
}

/* PRO */
.gold-text {
    color: var(--gold);
}

.gold {
    color: var(--gold);
}

.btn-add-pro {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-pro:hover {
    background: var(--gold);
    color: #000;
}


.btn-add {
    width: 100%;
    padding: 15px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Cart Modal Styles */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: flex-end;
}

.cart-modal.active {
    opacity: 1;
    pointer-events: all;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-content {
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-modal.active .cart-content {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.cart-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empty-msg {
    color: var(--text-muted);
    text-align: center;
    margin-top: 50px;
}

.cart-item {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 10px;
    align-items: center;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #000;
    border-radius: 5px;
}

.cart-item-details h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.remove-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 0.9rem;
}

.cart-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

/* Payment Refactor Styles */
.payment-methods-container {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.payment-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-tab {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: 0.3s;
}

.payment-tab.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-start);
    color: #fff;
}

.payment-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.payment-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Address & Card Forms */
.form-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.form-group label {
    font-size: 0.75rem;
    color: #888;
}

.form-group input {
    background: #111;
    border: 1px solid #222;
    padding: 12px;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
}

.form-group input:focus {
    border-color: var(--color-start);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #888;
    cursor: pointer;
    margin-top: 5px;
}

.checkbox-group input {
    width: 16px;
    height: 16px;
}

/* Saved Cards */
.saved-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.saved-card-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.saved-card-item:hover {
    border-color: #444;
}

.saved-card-item.selected {
    border-color: var(--color-start);
    background: rgba(0, 194, 255, 0.05);
}

.card-icon-small {
    font-size: 1.2rem;
    color: #888;
}

.card-info-small {
    flex: 1;
}

.card-number-masked {
    font-size: 0.9rem;
    font-weight: 600;
}

.card-expiry-small {
    font-size: 0.75rem;
    color: #666;
}

.btn-add-new-card {
    background: none;
    border: 1px dashed #333;
    padding: 10px;
    border-radius: 8px;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    width: 100%;
}

.btn-add-new-card:hover {
    border-color: #666;
    color: #aaa;
}


/* Specs Hover Overlay */
.specs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    padding: 20px;
}

.product-card:hover .specs-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* For mobile tap interaction, we could add a class toggled by JS, 
   but for now we rely on hover behavior which sometimes works on tap for mobile 
   or we can add an :active state. */
.product-card:active .specs-overlay {
    opacity: 1;
}

.overlay-content {
    width: 100%;
    color: #fff;
    text-align: left;
}

.overlay-content h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.overlay-specs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.overlay-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #ddd;
}

.overlay-spec-item i {
    width: 20px;
    text-align: center;
    color: var(--color-start);
    /* Default, will be overridden card-wise if we want */
}

/* Specific Colors for Icons based on card type */
.card-start .overlay-spec-item i {
    color: var(--color-start);
}

.card-power .overlay-spec-item i {
    color: var(--color-power);
}

.card-elite .overlay-spec-item i {
    color: var(--color-elite);
}

.pro-card .overlay-spec-item i {
    color: var(--gold);
}

.card-periph .overlay-spec-item i {
    color: var(--color-periph);
}

/* Utils */
.neon-text {
    color: var(--color-start);
    text-shadow: 0 0 2px var(--color-start);
}

.neon-text-purple {
    color: var(--color-power);
    text-shadow: 0 0 2px var(--color-power);
}

/* New Dynamic Overlay Styles */
.out-of-stock-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(231, 76, 60, 0.95);
    color: white;
    padding: 8px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 4px;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.card-overlay-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.8);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    pointer-events: none;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.3s;
}

.product-card:hover .card-overlay-hint {
    opacity: 0;
    /* Hide when specs overlay appears */
}


/* Admin Layout - RESTORED SIDEBAR */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: #0a0a0a;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    height: 100vh;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.admin-logo {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 50px;
    color: var(--color-start);
    text-align: center;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: #888;
    border-radius: 10px;
    font-weight: 500;
    transition: 0.3s;
}

.admin-nav-item i {
    width: 20px;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(0, 194, 255, 0.1);
    color: #fff;
}

.admin-main {
    flex: 1;
    padding: 30px;
    margin-left: 280px;
    /* Sidebar width */
    background: #050505;
}

/* ADMIN TABLE STYLES - High Contrast */
.admin-table-container {
    background: #111;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    color: #eee;
}

.admin-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid var(--color-start);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

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

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

.product-img-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #333;
}

.btn-action {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    margin-right: 5px;
}

.btn-action:hover {
    background: var(--color-start);
    color: #000;
    border-color: var(--color-start);
}

.btn-delete:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.admin-main {
    flex: 1;
    padding: 30px;
    margin-left: 280px;
    /* Sidebar width */
    background: #050505;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
}

.btn-add-pc {
    background: var(--color-start);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-add-pc:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 194, 255, 0.3);
}

.admin-tab {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.admin-tab.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
}

.admin-table-container {
    background: #0a0a0a;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

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

.admin-table th {
    background: rgba(255, 255, 255, 0.02);
    text-align: left;
    padding: 20px;
    font-size: 0.9rem;
    color: #888;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Image Thumbnails */
.product-img-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-instock {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.status-outstock {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

/* Action Buttons */
.btn-action {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.btn-edit {
    background: var(--color-power);
    color: #fff;
}

/* Password Toggle Styles */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px !important;
    /* Make room for the eye */
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    z-index: 10;
    font-size: 1rem;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--color-start);
}

.btn-delete {
    background: var(--color-elite);
    color: #fff;
}

.btn-action:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.btn-add-pc {
    background: var(--color-start);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-add-pc:hover {
    box-shadow: 0 0 20px rgba(0, 194, 255, 0.4);
}

/* Discord Section on Contact Page */
.discord-card {
    background: #0a0a0a;
    /* Fallback */
    background: linear-gradient(145deg, #111, #0a0a0a);
    border: 1px solid rgba(88, 101, 242, 0.2);
    /* Discord Color border hint */
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discord-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.15);
    border-color: #5865F2;
    /* Discord Blurple */
}

.discord-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.discord-icon {
    font-size: 2.5rem;
    color: #5865F2;
}

.discord-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
}

.discord-text {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1rem;
}

.discord-stats {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #3ba55c;
    /* Discord Green */
    border-radius: 50%;
    box-shadow: 0 0 10px #3ba55c;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 165, 92, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(59, 165, 92, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 165, 92, 0);
    }
}

.btn-discord {
    display: inline-block;
    background-color: #5865F2;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-discord:hover {
    background-color: #4752c4;
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}

/* --- PREMIUM NOTIFICATIONS & MODALS --- */

/* --- PREMIUM NOTIFICATIONS & MODALS --- */

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    /* Way above any sidebar */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.custom-modal-box {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.custom-modal-overlay.active .custom-modal-box {
    transform: translateY(0);
}

.custom-modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.custom-modal-icon.warning {
    color: #f1c40f;
}

.custom-modal-icon.error {
    color: #e74c3c;
}

.custom-modal-icon.success {
    color: #2ecc71;
}

.custom-modal-icon.info {
    color: var(--color-start);
}

.custom-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
}

.custom-modal-text {
    color: #aaa;
    margin-bottom: 30px;
    line-height: 1.6;
}

.custom-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-modal {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    min-width: 120px;
}

.btn-modal-confirm {
    background: #fff;
    color: #000;
}

.btn-modal-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-modal-confirm:hover {
    transform: scale(1.05);
}

.btn-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #111;
    border-left: 4px solid var(--color-start);
    padding: 15px 25px;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.active {
    transform: translateX(0);
}

.toast.success {
    border-color: #2ecc71;
}

.toast.error {
    border-color: #e74c3c;
}

.toast.warning {
    border-color: #f1c40f;
}

.toast i {
    font-size: 1.2rem;
}

/* Correction duplication z-index footer if any */
footer {
    z-index: 10;
}