/* Pokémon Card Shop - Gamified Light Theme v3.0 */
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Orbitron:wght@400;500;600;700;900&display=swap");

:root {
    /* Core palette */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #F1F3F5;
    --text-primary: #1A1A2E;
    --text-secondary: #444444;
    --text-muted: #888888;

    /* Pokemon brand colors */
    --poke-red: #CC0000;
    --poke-red-light: #FF3838;
    --poke-yellow: #FFD700;
    --poke-yellow-light: #FFE44D;
    --poke-yellow-dark: #B8960C;
    --poke-blue: #3B4CCA;
    --poke-blue-light: #5A6FDD;

    /* UI colors */
    --success: #2ED573;
    --warning: #FFA502;
    --danger: #FF3838;

    /* Navbar/Footer dark */
    --dark-nav: #1A1A2E;
    --dark-nav-light: #222244;
    --dark-footer: #1A1A2E;

    /* Cards */
    --card-bg: #FFFFFF;
    --card-border: #E8E8E8;
    --card-shadow: 0 4px 16px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 12px 32px rgba(0,0,0,0.14);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--poke-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--poke-red); }
img { max-width: 100%; display: block; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #CCCCCC; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--poke-yellow-dark); }

/* ===== NAVBAR (Dark Gamified) ===== */
.navbar {
    background: linear-gradient(135deg, var(--dark-nav), var(--dark-nav-light));
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--poke-yellow);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    height: 72px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.navbar .logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.1rem;
    color: var(--poke-yellow);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    transition: var(--transition);
    letter-spacing: 1px;
    position: relative;
}

.navbar .logo:hover {
    transform: scale(1.03);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 100%;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.78rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.nav-links a:hover {
    color: var(--poke-yellow);
    background: rgba(255, 215, 0, 0.1);
}

.nav-links a.active {
    color: var(--poke-yellow);
    background: rgba(255, 215, 0, 0.12);
}

.nav-links .btn {
    padding: 10px 20px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-links .admin-link {
    background: linear-gradient(135deg, var(--poke-red), #990000);
    color: white !important;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}

.nav-links .admin-link:hover {
    background: linear-gradient(135deg, var(--poke-red-light), var(--poke-red));
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(204, 0, 0, 0.5);
    color: white !important;
}

/* ===== GAMIFIED BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before { left: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--poke-yellow), var(--poke-yellow-dark));
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.35);
    border: 2px solid var(--poke-yellow-dark);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--poke-yellow-light), var(--poke-yellow));
}

.btn-secondary {
    background: rgba(26, 26, 46, 0.06);
    color: var(--text-primary);
    border: 2px solid rgba(26, 26, 46, 0.15);
}

.btn-secondary:hover {
    background: rgba(26, 26, 46, 0.1);
    border-color: var(--poke-yellow);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--poke-red), #990000);
    color: white;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(204, 0, 0, 0.5);
    color: white;
}

.btn-sm { padding: 8px 16px; font-size: 0.7rem; letter-spacing: 1px; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 40px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-block { display: flex; width: 100%; }

/* ===== HERO SECTION ===== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 20px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(204, 0, 0, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(59, 76, 202, 0.06) 0%, transparent 50%),
        var(--bg-primary);
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroPulse 4s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3)); }
    100% { filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.5)); }
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    animation: heroFadeIn 1.2s 0.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: heroFadeIn 1.2s 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero-buttons .btn { padding: 16px 36px; font-size: 0.9rem; }

/* ===== SECTION TITLES ===== */
.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    color: var(--text-primary);
    text-align: center;
    margin: 100px 0 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 2px;
}

.section-title::before {
    content: '\25C6';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6em;
    color: var(--poke-yellow-dark);
}

.section-title::after {
    content: '\25C6';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6em;
    color: var(--poke-yellow-dark);
}

/* ===== PRODUCT / AUCTION GRIDS ===== */
.product-grid, .auction-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin: 50px auto;
    padding: 0 4px;
    justify-content: center;
    max-width: 1400px;
}

.product-grid > .product-card,
.auction-grid > .auction-card {
    flex: 0 0 280px;
    max-width: 320px;
}

/* ===== CARDS (Gamified Light) ===== */
.product-card, .auction-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    position: relative;
    animation: cardEntry 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    box-shadow: var(--card-shadow);
}

.product-card:nth-child(1), .auction-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2), .auction-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3), .auction-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4), .auction-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5), .auction-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6), .auction-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes cardEntry {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.product-card::before, .auction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--poke-yellow), var(--poke-red), var(--poke-blue));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover, .auction-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--poke-yellow);
    box-shadow: var(--card-shadow-hover), 0 0 30px rgba(255, 215, 0, 0.12);
}

.product-card:hover::before, .auction-card:hover::before { opacity: 1; }

.product-card .card-image, .auction-card .card-image {
    width: 100%;
    height: 320px;
    object-fit: contain;
    padding: 20px;
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    border-bottom: 2px solid var(--card-border);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .card-image, .auction-card:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: 20px 24px 24px;
}

.card-body h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.card-price {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.95rem;
    color: var(--poke-red);
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(204, 0, 0, 0.15);
}

.card-price::before { content: '\26A1'; font-size: 0.8em; }

.card-meta {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-stock {
    color: var(--success);
    font-size: 0.75rem;
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-card {
    display: flex;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--poke-yellow), var(--poke-yellow-dark));
    color: var(--text-primary);
    text-align: center;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    margin-top: 16px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Orbitron', sans-serif;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--poke-yellow-dark);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
}

.btn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--poke-yellow-light), var(--poke-yellow));
}

/* ===== FILTER BAR ===== */
.filter-bar {
    background: var(--bg-secondary);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    border: 2px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.filter-bar input, .filter-bar select {
    padding: 10px 16px;
    border: 2px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    transition: var(--transition);
    min-width: 0;
}

.filter-bar input:focus, .filter-bar select:focus {
    outline: none;
    border-color: var(--poke-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.filter-bar input { flex: 1; min-width: 200px; }
.filter-bar input::placeholder { color: var(--text-muted); }
.filter-bar select option { background: var(--bg-primary); color: var(--text-primary); }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: var(--transition);
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    min-width: 42px;
    text-align: center;
}

.page-link:hover, .page-link.active {
    background: linear-gradient(135deg, var(--poke-yellow), var(--poke-yellow-dark));
    color: var(--text-primary);
    border-color: var(--poke-yellow-dark);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    font-weight: 700;
}

/* ===== MAIN CONTENT ===== */
main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 200px);
    padding-top: 24px;
}

main.container h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-primary);
    margin-bottom: 32px;
    text-align: center;
    text-shadow: none;
    letter-spacing: 2px;
}

main h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 50px 0 24px;
    letter-spacing: 1px;
}

main h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

main h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* ===== AUTH FORMS ===== */
.auth-form {
    max-width: 460px;
    margin: 100px auto;
    background: var(--bg-primary);
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--card-border);
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.auth-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 4px;
    background: linear-gradient(90deg, var(--poke-yellow), var(--poke-red), var(--poke-blue));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.auth-form h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 36px;
    text-shadow: none;
    letter-spacing: 1px;
}

.auth-link {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-link a {
    color: var(--poke-red);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.auth-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--poke-red);
    transition: width 0.3s ease;
}

.auth-link a:hover::after { width: 100%; }

/* ===== FORM GROUPS ===== */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--poke-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.form-group input:disabled { opacity: 0.4; cursor: not-allowed; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group small { display: block; margin-top:6px; color: var(--text-muted); font-size: 0.7rem; }

/* ===== ALERTS ===== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.85rem;
    border: 2px solid;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(255, 56, 56, 0.08);
    color: var(--poke-red);
    border-color: rgba(255, 56, 56, 0.3);
}

.alert-success {
    background: rgba(46, 213, 115, 0.08);
    color: var(--success);
    border-color: rgba(46, 213, 115, 0.3);
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.product-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--card-border);
    background: var(--bg-secondary);
    box-shadow: var(--card-shadow);
}

.product-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-image:hover img { transform: scale(1.03); }

.no-image {
    height: 320px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    border: 2px solid var(--card-border);
    font-size: 4rem;
    color: var(--text-muted);
}

.product-info h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: left;
    text-shadow: none;
    letter-spacing: 0.5px;
}

.product-meta {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-md);
    margin: 24px 0;
    border: 2px solid var(--card-border);
}

.product-meta p {
    margin: 10px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-meta strong {
    color: var(--poke-red);
    font-weight: 600;
    min-width: 100px;
    display: inline-block;
}

.price {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.4rem;
    color: var(--poke-red);
    margin: 24px 0;
    text-shadow: 0 2px 4px rgba(204, 0, 0, 0.15);
}

.description {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-md);
    margin: 24px 0;
    border: 2px solid var(--card-border);
}

.description h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.description p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ===== CART ===== */
.cart-items { position: relative; z-index: 1; }

.cart-item {
    display: flex;
    gap: 20px;
    background: var(--bg-primary);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin: 12px 0;
    align-items: center;
    border: 2px solid var(--card-border);
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.cart-item:hover {
    border-color: var(--poke-yellow);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--card-border);
}

.cart-item h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.cart-summary {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    border: 2px solid var(--card-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.cart-summary h2 {
    font-family: 'Press Start 2P', cursive;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 1rem;
}

/* ===== CHECKOUT ===== */
.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.checkout-items .product-card {
    display: flex;
    gap: 16px;
    align-items: center;
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
}

.checkout-items .product-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--card-border);
}

.checkout-summary {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--card-border);
    height: fit-content;
    position: sticky;
    top: 96px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.checkout-summary h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.checkout-summary p {
    color: var(--text-secondary);
    margin: 12px 0;
    font-size: 0.9rem;
}

.checkout-summary strong { color: var(--text-primary); }

/* ===== PROFILE ===== */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.profile-card {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.profile-card h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.points-display {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.6rem;
    color: var(--poke-yellow-dark);
    text-shadow: 0 2px 4px rgba(184, 150, 12, 0.2);
    margin: 16px 0;
    letter-spacing: 1px;
}

.profile-section {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--card-border);
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
}

.profile-section h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

/* ===== TABLES ===== */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.data-table thead {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(204, 0, 0, 0.06));
}

.data-table th {
    padding: 16px 20px;
    text-align: left;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid var(--card-border);
}

.data-table td {
    padding: 16px 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.data-table tbody tr { transition: var(--transition); }
.data-table tbody tr:hover { background: rgba(255, 215, 0, 0.05); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ===== ADMIN DASHBOARD ===== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.stat-card {
    background: var(--bg-primary);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--card-border);
    text-align: center;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--poke-yellow), var(--poke-red), var(--poke-blue));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::before { opacity: 1; }

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--poke-yellow);
    box-shadow: var(--card-shadow-hover), 0 0 30px rgba(255, 215, 0, 0.1);
}

.stat-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stat-card .stat-number {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    font-weight: 700;
    margin: 16px 0 20px;
    letter-spacing: 1px;
}

.stat-number.blue { color: var(--poke-blue); }
.stat-number.gold { color: var(--poke-yellow-dark); }
.stat-number.red { color: var(--poke-red); }
.stat-number.green { color: var(--success); }

/* ===== STATUS BADGES ===== */
.status-active, .status-approved {
    color: var(--success);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-active::before, .status-approved::before { content: '\25C9'; font-size: 0.6em; }

.status-inactive, .status-rejected {
    color: var(--danger);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-inactive::before, .status-rejected::before { content: '\25C9'; font-size: 0.6em; }

.status-pending {
    color: var(--warning);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-pending::before { content: '\25C9'; font-size: 0.6em; }

/* ===== FOOTER (Dark Gamified) ===== */
.footer {
    background: linear-gradient(135deg, var(--dark-footer), var(--dark-nav-light));
    border-top: 3px solid var(--poke-yellow);
    padding: 60px 0 40px;
    margin-top: 120px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--poke-yellow), transparent);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.footer .small {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom:20px; }

.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.no-results a { color: var(--poke-red); text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-detail { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar { height: 64px; }
    .navbar .logo { font-size: 0.9rem; }
    .nav-links { gap: 2px; }
    .nav-links a { font-size: 0.7rem; padding: 6px 10px; }
    .hero { min-height: 70vh; padding: 80px 16px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .product-grid, .auction-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
    .section-title { margin: 60px 0 40px; font-size: 1.1rem; }
    .section-title::before, .section-title::after { display: none; }
    .auth-form { margin: 60px 16px; padding: 32px 24px; }
    main.container h1 { font-size: 1.2rem; }
    .cart-item { flex-direction: column; text-align: center; }
    .cart-item img { margin: 0 auto; }
    .admin-stats { grid-template-columns: 1fr; }
    .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.4rem; }
    .section-title { font-size: 0.9rem; }
    .product-grid, .auction-grid { grid-template-columns: 1fr; }
    .btn-lg { padding: 14px 28px; font-size: 0.85rem; }
}

.center-grid {
    display: flex;
    justify-content: center;
}

/* opcional mejora */
.product-grid,
.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 280px));
    gap: 25px;
    justify-content: center;
}
