/* === DeckUnivers - Gaming Dark Theme === */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --accent-glow: rgba(124, 58, 237, 0.3);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #2d2d44;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* === HEADER === */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.logo span { font-weight: 400; -webkit-text-fill-color: #c4b5fd; color: #c4b5fd; background: none; }
.credits-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
}
.credits-badge .icon { font-size: 1.1rem; }
.credits-badge .amount { color: var(--accent-light); }

/* === NAV CATEGORIES === */
.categories-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.categories-nav::-webkit-scrollbar { display: none; }
.categories-list {
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.categories-list li {
    display: flex;
    margin: 0;
    padding: 0;
}
.categories-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.categories-list a:hover,
.categories-list a.active {
    color: var(--accent-light);
    border-bottom-color: var(--accent);
    background: rgba(124, 58, 237, 0.05);
}
/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #1a1030 100%);
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* === PRODUCT GRID === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--accent-glow);
    text-decoration: none;
    color: inherit;
}
.product-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: contain;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent-light);
    overflow: hidden;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    
}
.product-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-category {
    font-size: 0.75rem;
    color: var(--accent-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.product-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.product-card-value {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.stock-badge.in-stock { background: rgba(16,185,129,0.15); color: var(--success); }
.stock-badge.out-of-stock { background: rgba(239,68,68,0.15); color: var(--danger); }

/* === PRODUCT PAGE === */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.product-image {
    width: 100%;
    aspect-ratio: 16/10;
    max-height: 350px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border: 1px solid var(--border);
    color: var(--accent-light);
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
    
}
.product-info h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.product-info .category-tag {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.product-info .description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.product-price-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.product-price-box .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-light);
}
.product-price-box .price small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
    color: #fff;
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* === PAYMENT SECTION === */
.payment-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 600px;
    margin: 2rem auto;
}
.payment-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.payment-method:hover,
.payment-method .method-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.payment-method .method-name { font-weight: 600; font-size: 0.9rem; }
.payment-method .method-credits { color: var(--accent-light); font-weight: 700; font-size: 0.85rem; margin-top: 0.25rem; }

.code-input-group {
    display: flex;
    gap: 0.5rem;
}
.code-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}
.code-input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* === ALERTS === */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.alert-success { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.alert-danger { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.alert-warning { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.alert-info { background: rgba(124,58,237,0.15); color: var(--accent-light); border: 1px solid rgba(124,58,237,0.3); }

/* === DELIVERED CODE === */
.delivered-code {
    background: var(--bg-secondary);
    border: 2px solid var(--success);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
}
.delivered-code .code {
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--success);
    letter-spacing: 3px;
    padding: 1rem;
    background: rgba(16,185,129,0.1);
    border-radius: var(--radius-sm);
    margin: 1rem 0;
    word-break: break-all;
    user-select: all;
}

/* === ADMIN === */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
}
.admin-sidebar .logo { padding: 0 1.5rem; margin-bottom: 2rem; display: block; }
.admin-nav { list-style: none; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.admin-nav a:hover, .admin-nav a.active {
    background: var(--accent-glow);
    color: var(--accent-light);
    border-right: 3px solid var(--accent);
}
.admin-content { padding: 2rem; }
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.admin-header h1 { font-size: 1.5rem; }

/* === TABLES === */
.table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
tr:hover td { background: rgba(124, 58, 237, 0.03); }

/* === FORMS (Admin) === */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
select.form-control { appearance: none; cursor: pointer; }
textarea.form-control { min-height: 100px; resize: vertical; }

/* === STATS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.stat-card .label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.stat-card .value { font-size: 1.5rem; font-weight: 800; }
.stat-card .value.accent { color: var(--accent-light); }
.stat-card .value.success { color: var(--success); }

/* === LOGIN === */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}
.login-box h1 { text-align: center; margin-bottom: 2rem; font-size: 1.5rem; }

/* === MODAL === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal h2 { margin-bottom: 1.5rem; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .product-detail { grid-template-columns: 1fr; }
    .product-image { max-height: 280px; }
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.95rem; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        bottom: 0;
        width: 240px;
        z-index: 300;
        transition: left 0.3s;
    }
    .admin-sidebar.open { left: 0; }
    .payment-methods { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
    .product-card-body { padding: 0.75rem; }
}

/* === BREADCRUMB === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb .sep { color: var(--text-muted); }

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state p { font-size: 1rem; }

/* === BADGE === */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-success { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-info { background: rgba(124,58,237,0.15); color: var(--accent-light); }

/* === PLATFORM LOGOS === */
.platform-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 12%;
    transition: transform 0.3s;
}
.platform-logo .platform-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.3));
}
.product-card:hover .platform-logo {
    transform: scale(1.08);
}

/* === LEGAL PAGES === */
.legal-content {
    max-width: 780px;
    margin: 0 auto;
    padding-bottom: 2rem;
}
.legal-content h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.legal-updated {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 2.5rem;
}
.legal-content h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}
.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}
.legal-content ul {
    color: var(--text-secondary);
    margin: 0.5rem 0 1rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1.8;
}
.legal-content li { margin-bottom: 0.3rem; }
.legal-content strong { color: var(--text-primary); }
.legal-content a { color: var(--accent-light); }
.legal-content a:hover { text-decoration: underline; }

/* === ADMIN MOBILE TOPBAR === */
.admin-topbar {
    display: none;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    height: 56px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
}
.admin-topbar .logo { font-size: 1.25rem; }

/* Burger button */
.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
}
.burger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 250;
    opacity: 0;
    transition: opacity 0.3s;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar logo (desktop only) */
.sidebar-logo { display: block; }

/* === ADMIN RESPONSIVE === */
@media (max-width: 768px) {
    /* Show topbar, hide desktop sidebar logo */
    .admin-topbar { display: flex; }
    .sidebar-logo { display: none; }

    /* Layout: single column */
    .admin-layout {
        grid-template-columns: 1fr;
    }

    /* Sidebar: off-canvas drawer */
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 260px;
        z-index: 300;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding-top: 1.5rem;
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-nav a {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Content area */
    .admin-content {
        padding: 1rem;
        min-width: 0;
    }

    /* Header */
    .admin-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    .admin-header h1 { font-size: 1.25rem; }
    .admin-header .btn { width: 100%; }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .stat-card { padding: 1rem; }
    .stat-card .value { font-size: 1.25rem; }

    /* Tables: horizontal scroll */
    .table-wrap {
        border-radius: var(--radius-sm);
        -webkit-overflow-scrolling: touch;
    }
    table { min-width: 600px; }
    th, td {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* Buttons in tables */
    table .btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
    }

    /* Forms */
    .form-group label { font-size: 0.8rem; }
    .form-control {
        padding: 0.7rem 0.875rem;
        font-size: 0.9rem;
    }

    /* Settings: single column */
    div[style*="grid-template-columns: 1fr 1fr"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    /* Modals */
    .modal-overlay { padding: 0.5rem; }
    .modal {
        padding: 1.25rem;
        max-height: 85vh;
    }
    .modal h2 { font-size: 1.1rem; margin-bottom: 1rem; }

    /* Buttons: full-width on mobile */
    .btn { min-height: 44px; }
    .btn-block, .modal .btn { font-size: 0.9rem; }

    /* Test mode toggle block */
    div[style*="display:flex"][style*="justify-content:space-between"] {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: flex-start !important;
    }
}

@media (max-width: 400px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .admin-content { padding: 0.75rem; }
    table { min-width: 500px; }
}

/* === AUDIOTEL SPINNER === */
.audiotel-waiting-box {
    margin-top: 2rem;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: var(--radius-sm);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}
.audiotel-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--warning);
    border-radius: 50%;
    animation: audiotel-spin 0.9s linear infinite;
    flex-shrink: 0;
}
@keyframes audiotel-spin {
    to { transform: rotate(360deg); }
}
.audiotel-waiting-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--warning);
}
.audiotel-waiting-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 320px;
}

@media (max-width: 768px) {
    .audiotel-waiting-box {
        margin-top: 3rem;
        padding: 1.5rem 1rem;
    }
    .audiotel-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    .audiotel-waiting-title {
        font-size: 0.95rem;
    }
}

/* === PAYMENT TABS (Passtocard style) === */
.pay-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}
.pay-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}
.pay-tab:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}
.pay-tab.active {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: var(--accent-light);
    box-shadow: 0 0 16px var(--accent-glow);
}
.pay-tab-icon {
    font-size: 1.1rem;
}

/* === OFFER CARD === */
.pay-offer-title {
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.pay-offer-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.1rem 1.5rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: var(--bg-secondary);
    cursor: default;
    transition: border-color 0.2s;
}
.pay-offer-card:hover {
    border-color: var(--accent);
}
.pay-offer-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.pay-offer-credits {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-light);
}
.pay-offer-gem {
    font-size: 1.2rem;
}
.pay-offer-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .pay-tabs {
        gap: 0.5rem;
    }
    .pay-tab {
        padding: 0.6rem 1.1rem;
        font-size: 0.85rem;
    }
    .pay-offer-card {
        padding: 0.9rem 1rem;
        flex-wrap: wrap;
    }
    .pay-offer-credits,
    .pay-offer-price {
        font-size: 1.25rem;
    }
}
/* ============================================
   DeckUnivers Phase 2 — Additional Styles
   Dark gaming theme (#0a0a0f, accent #7c3aed)
   ============================================ */

/* --- Prix en euros --- */
.price-eur {
    font-size: 0.8rem;
    color: #6b7280;
    margin-left: 0.4rem;
    font-weight: 400;
}

/* --- User menu (header) --- */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.user-menu a:hover {
    color: #fff;
    background: rgba(124, 58, 237, 0.15);
}

.user-menu a.btn-login {
    background: #7c3aed;
    color: #fff;
    font-weight: 600;
}

.user-menu a.btn-login:hover {
    background: #6d28d9;
}

.user-menu .user-credits {
    color: #7c3aed;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Announcement bar --- */
.announcement-bar p {
    margin: 0;
    flex: 1;
    text-align: center;
}

.announcement-bar .announcement-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.2rem 0.5rem;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}

.announcement-bar .announcement-close:hover {
    color: #fff;
}

/* --- Profile tabs --- */
.profile-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #1f1f2e;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
    display: none;
}

.profile-tab {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #9ca3af;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -2px;
}

.profile-tab:hover {
    color: #d1d5db;
}

.profile-tab.active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
    font-weight: 600;
}

/* --- Profile section (tab content) --- */
.profile-section.active {
    display: block;
}

@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Order history table --- */
.order-history thead {
    background: #1a1a2e;
}

.order-history th {
    padding: 0.75rem 1rem;
    text-align: left;
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #2d2d44;
}

.order-history td {
    padding: 0.75rem 1rem;
    color: #d1d5db;
    border-bottom: 1px solid #1f1f2e;
}

.order-history tbody tr {
    transition: background 0.15s;
}

.order-history tbody tr:hover {
    background: rgba(124, 58, 237, 0.05);
}

.order-history .status-completed {
    color: #34d399;
    font-weight: 600;
}

.order-history .status-pending {
    color: #fbbf24;
    font-weight: 600;
}

.order-history .status-failed {
    color: #f87171;
    font-weight: 600;
}

/* --- Ticket list --- */
.ticket-list .ticket-item {
    background: #12121c;
    border: 1px solid #1f1f2e;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: border-color 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.ticket-list .ticket-item:hover {
    border-color: #7c3aed;
}

.ticket-item .ticket-subject {
    font-weight: 600;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.ticket-item .ticket-date {
    color: #6b7280;
    font-size: 0.8rem;
}

.ticket-item .ticket-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.ticket-item .ticket-status.open {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
}

.ticket-item .ticket-status.closed {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

.ticket-item .ticket-status.answered {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

/* --- Chat messages --- */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #2d2d44;
    border-radius: 3px;
}

.chat-msg.user .meta {
    text-align: right;
    color: rgba(255, 255, 255, 0.6);
}

.chat-msg.admin .meta {
    color: #6b7280;
}

/* --- Chat input --- */
.chat-input textarea {
    flex: 1;
    background: #12121c;
    border: 1px solid #2d2d44;
    border-radius: 8px;
    color: #e5e7eb;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 44px;
    max-height: 120px;
    transition: border-color 0.2s;
}

.chat-input textarea:focus {
    outline: none;
    border-color: #7c3aed;
}

.chat-input textarea::placeholder {
    color: #4b5563;
}

.chat-input button {
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.chat-input button:hover {
    background: #6d28d9;
}

.chat-input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Promo input (payment page) --- */
.promo-input {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    max-width: 400px;
}

.promo-input input[type="text"] {
    flex: 1;
    background: #12121c;
    border: 1px solid #2d2d44;
    border-radius: 8px;
    color: #e5e7eb;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: border-color 0.2s;
}

.promo-input input[type="text"]:focus {
    outline: none;
    border-color: #7c3aed;
}

.promo-input input[type="text"]::placeholder {
    color: #4b5563;
    text-transform: none;
    letter-spacing: normal;
}

.promo-input button {
    background: #1f1f2e;
    color: #d1d5db;
    border: 1px solid #2d2d44;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.promo-input button:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.promo-input .promo-result {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.promo-input .promo-result.success {
    color: #34d399;
}

.promo-input .promo-result.error {
    color: #f87171;
}

/* ============================================
   Responsive (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* User menu */
    .user-menu {
    margin-left: auto;
        gap: 0.5rem;
    }

    .user-menu a {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
    }

    /* Announcement bar */
    .announcement-bar {
        font-size: 0.78rem;
        padding: 0.5rem 0.8rem;
    }

    /* Profile tabs */
    .profile-tabs {
        gap: 0;
    }

    .profile-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Order history */
    .order-history {
        font-size: 0.8rem;
    }

    .order-history th,
    .order-history td {
        padding: 0.5rem 0.6rem;
    }

    /* Tickets */
    .ticket-list .ticket-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
    }

    /* Chat */
    .chat-messages {
        max-height: 350px;
        padding: 0.75rem;
    }

    .chat-msg {
        max-width: 88%;
        font-size: 0.85rem;
    }

    .chat-input {
        flex-direction: column;
    }

    .chat-input button {
        width: 100%;
    }

    /* Promo input */
    .promo-input {
        max-width: 100%;
    }

    .promo-input input[type="text"] {
        font-size: 0.85rem;
    }
}

/* === MOBILE CARD FIX === */
.product-card-footer {
    flex-wrap: nowrap;
    gap: 0.5rem;
}
.price-credits {
    white-space: nowrap;
}
.price-credits small {
    margin-left: 0.15rem;
}
.stock-badge {
    white-space: nowrap;
    flex-shrink: 0;
}
.price-eur {
    white-space: nowrap;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .product-card-footer {
        gap: 0.25rem;
    }
    .price-credits {
        font-size: 0.95rem;
    }
    .price-credits small {
        font-size: 0.7rem;
    }
    .stock-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 0.5rem;
        gap: 0.3rem;
    }
    }
    .credits-badge {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    .credits-badge svg {
        width: 14px;
        height: 14px;
    }
    .user-menu {
    margin-left: auto;
        gap: 8px !important;
        flex-shrink: 1;
        min-width: 0;
    }
    .user-menu-link {
        font-size: 0 !important;
    }
    .user-menu-link svg {
        width: 20px !important;
        height: 20px !important;
    }
}
@media (max-width: 380px) {
    .logo {
        font-size: 1.05rem;
    }
    .credits-badge {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
}

/* === FOOTER === */
.main-content {
    flex: 1;
}
.footer-bar {
    width: 100%;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.footer-bar a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bar a:hover {
    color: var(--accent-light);
}
.footer-bar-logo {
    font-weight: 800;
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-bar-logo span {
    font-weight: 400;
    -webkit-text-fill-color: #c4b5fd;
    color: #c4b5fd;
    background: none;
}
.footer-bar-sep {
    opacity: 0.3;
}
