﻿/* Variables */
:root {
    --steam-bg: #1b2838;
    --steam-nav: #171a21;
    --steam-surface: #2a475e;
    --steam-card: #16202d;
    --steam-accent: #66c0f4;
    --steam-text: #c6d4df;
    --steam-muted: #8f98a0;
    --steam-green: #4c6b22;
    --steam-green-l: #a4d007;
}

body {
    background: var(--steam-bg);
    color: var(--steam-text);
    font-family: 'Noto Sans', sans-serif;
    margin: 0;
}

/* ── Navbar ── */
.steam-nav {
    background: var(--steam-nav);
    border-bottom: 1px solid rgba(0,0,0,0.4);
    height: 52px;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
}

    .logo span {
        color: var(--steam-accent);
    }

.nav-links {
    display: flex;
}

.nav-link {
    color: var(--steam-muted);
    font-size: 12px;
    padding: 0 14px;
    height: 52px;
    display: flex;
    align-items: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

    .nav-link:hover, .nav-link.active {
        color: #fff;
        border-bottom-color: var(--steam-accent);
    }

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(102,192,244,0.2);
    border-right: none;
    border-radius: 2px 0 0 2px;
    padding: 5px 10px;
    color: var(--steam-text);
    font-size: 12px;
    width: 200px;
    outline: none;
}

.search-btn {
    background: rgba(102,192,244,0.15);
    border: 1px solid rgba(102,192,244,0.2);
    border-radius: 0 2px 2px 0;
    color: var(--steam-accent);
    /*padding: 5px 10px;*/
    cursor: pointer;
}

.cart-link {
    position: relative;
    color: var(--steam-text);
    font-size: 18px;
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--steam-accent);
    color: var(--steam-nav);
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-username {
    font-size: 12px;
    color: var(--steam-accent);
}

.nav-btn {
    background: linear-gradient(180deg, #4899c4 0%, #3885aa 100%);
    color: #fff;
    border: none;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
}

    .nav-btn.ghost {
        background: transparent;
        border: 1px solid var(--steam-accent);
        color: var(--steam-accent);
    }

.logoff-form {
    display: inline;
    margin: 0;
    padding: 0;
}

/* Tabs */
.tabs-bar {
    background: var(--steam-surface);
    border-bottom: 1px solid rgba(0,0,0,0.3);
}

.tabs-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
}

.tab {
    padding: 10px 16px;
    font-size: 12px;
    color: var(--steam-muted);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    display: block;
}

    .tab:hover {
        color: var(--steam-accent);
        border-bottom-color: var(--steam-accent);
    }

/* Contenido */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Footer */
.steam-footer {
    background: var(--steam-nav);
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 40px;
    padding: 20px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

    .footer-links a {
        font-size: 11px;
        color: var(--steam-muted);
        text-decoration: none;
    }

        .footer-links a:hover {
            color: var(--steam-accent);
        }

.footer-copy {
    font-size: 11px;
    color: var(--steam-muted);
}

/* Auth (Login / Registro) */
.auth-wrapper {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    background: var(--steam-card);
    border: 1px solid rgba(102,192,244,0.15);
    border-radius: 4px;
    padding: 40px 48px;
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 8px;
}

    .auth-logo span {
        color: var(--steam-accent);
    }

.auth-title {
    font-size: 16px;
    color: var(--steam-muted);
    text-align: center;
    margin-bottom: 28px;
    font-weight: 400;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-group label {
        font-size: 12px;
        color: var(--steam-muted);
        text-transform: uppercase;
        letter-spacing: 0.6px;
    }

.form-input {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(102,192,244,0.2);
    border-radius: 2px;
    padding: 10px 12px;
    color: var(--steam-text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

    .form-input:focus {
        border-color: var(--steam-accent);
    }

.field-error {
    font-size: 11px;
    color: #e74c3c;
}

.auth-errors {
    background: rgba(231,76,60,0.1);
    border: 1px solid rgba(231,76,60,0.3);
    border-radius: 2px;
    padding: 10px 14px;
    font-size: 13px;
    color: #e74c3c;
    margin-bottom: 8px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--steam-muted);
}

.btn-auth {
    background: linear-gradient(180deg, #4899c4 0%, #3885aa 100%);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 14px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 8px;
    transition: opacity 0.15s;
}

    .btn-auth:hover {
        opacity: 0.9;
    }

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--steam-muted);
    margin-top: 20px;
}

    .auth-switch a {
        color: var(--steam-accent);
        text-decoration: none;
    }

        .auth-switch a:hover {
            text-decoration: underline;
        }

/*
   HOME / INDEX
*/

/* Layout principal */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 0;
    margin-top: 0;
}

.main-content {
    min-width: 0;
}

/* Secciones */
.section {
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(102,192,244,0.2);
    padding-bottom: 8px;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--steam-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.see-all {
    font-size: 12px;
    color: var(--steam-accent);
    text-decoration: none;
    opacity: 0.7;
}

    .see-all:hover {
        opacity: 1;
    }

/* Hero */
.hero {
    position: relative;
    height: 360px;
    overflow: hidden;
    background: var(--steam-card);
    display: flex;
}

.hero-bg {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100% );
    display: flex;
    align-items: flex-end;
}

.hero-content {
    padding: 32px 28px;
    max-width: 500px;
}

.hero-badge {
    display: inline-block;
    background: var(--steam-green);
    color: var(--steam-green-l);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: 13px;
    color: var(--steam-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.hero-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.price-tag {
    background: var(--steam-green);
    color: var(--steam-green-l);
    font-size: 14px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 2px;
}

.orig-price {
    font-size: 11px;
    color: var(--steam-muted);
    text-decoration: line-through;
}

.final-price-hero {
    font-size: 16px;
    color: var(--steam-green-l);
    font-weight: 700;
}

.btn-details {
    background: transparent;
    border: 1px solid rgba(102,192,244,0.5);
    color: var(--steam-accent);
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 2px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.15s;
}

    .btn-details:hover {
        background: rgba(102,192,244,0.1);
    }

/* Grilla de juegos */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.game-card {
    background: var(--steam-card);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s;
}

    .game-card:hover {
        transform: translateY(-2px);
    }

.game-thumb {
    height: 100px;
    overflow: hidden;
    background: #0e1822;
}

    .game-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.2s;
    }

.game-card:hover .game-thumb img {
    transform: scale(1.04);
}

.game-info {
    padding: 8px 10px 10px;
}

.game-name {
    font-size: 12px;
    color: var(--steam-text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-price-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}

.discount-badge {
    background: var(--steam-green);
    color: var(--steam-green-l);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 1px;
}

.final-price {
    font-size: 12px;
    color: var(--steam-green-l);
    font-weight: 700;
}

.free-tag {
    font-size: 12px;
    color: var(--steam-accent);
    font-weight: 700;
}

.btn-add-cart {
    width: 100%;
    background: linear-gradient(180deg, #4899c4 0%, #3885aa 100%);
    color: #fff;
    border: none;
    padding: 5px 0;
    font-size: 11px;
    border-radius: 2px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: opacity 0.15s;
}

    .btn-add-cart:hover {
        opacity: 0.85;
    }

/* Lista de juegos (novedades) */
.games-list {
    display: flex;
    flex-direction: column;
}

.games-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.15s;
}

    .games-list-item:hover {
        background: rgba(102,192,244,0.04);
        margin: 0 -24px;
        padding-left: 24px;
        padding-right: 24px;
    }

.list-thumb {
    width: 120px;
    height: 45px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    background: var(--steam-card);
}

.list-info {
    flex: 1;
    min-width: 0;
}

.list-name {
    font-size: 13px;
    color: var(--steam-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-tags-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.list-tag {
    background: rgba(255,255,255,0.07);
    color: var(--steam-muted);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 1px;
}

.list-right {
    text-align: right;
    min-width: 90px;
    flex-shrink: 0;
}

/* Sidebar */
.sidebar {
    background: #0e1822;
    padding: 20px 16px;
    border-left: 1px solid rgba(0,0,0,0.3);
    min-height: 100%;
}

.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-title {
    font-size: 11px;
    color: var(--steam-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 600;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: rgba(102,192,244,0.08);
    color: var(--steam-accent);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 2px;
    border: 1px solid rgba(102,192,244,0.2);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    display: inline-block;
}

    .tag:hover {
        background: rgba(102,192,244,0.2);
    }

/* Wishlist / nuevos lanzamientos en sidebar */
.wishlist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
}

.wishlist-thumb {
    width: 60px;
    height: 28px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    background: var(--steam-card);
}

.wishlist-info {
    flex: 1;
    min-width: 0;
}

.wishlist-name {
    font-size: 12px;
    color: var(--steam-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wishlist-price {
    font-size: 11px;
    color: var(--steam-green-l);
}

/* Detalle del juego */
.detail-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.detail-breadcrumb {
    font-size: 12px;
    color: var(--steam-muted);
    margin-bottom: 8px;
}

    .detail-breadcrumb a {
        color: var(--steam-accent);
        text-decoration: none;
    }

        .detail-breadcrumb a:hover {
            text-decoration: underline;
        }

.detail-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.detail-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.screenshot-img {
    width: 100%;
    border-radius: 3px;
    display: block;
}

.screenshot-placeholder {
    width: 100%;
    height: 280px;
    background: var(--steam-card);
    border-radius: 3px;
}

.detail-description {
    font-size: 13px;
    color: var(--steam-text);
    line-height: 1.7;
    margin: 16px 0;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.tags-label {
    font-size: 11px;
    color: var(--steam-muted);
    margin-right: 4px;
}

/* Sidebar del detalle */
.detail-capsule {
    width: 100%;
    border-radius: 3px;
    display: block;
    margin-bottom: 14px;
}

.detail-meta {
    margin-bottom: 14px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
}

.meta-label {
    color: var(--steam-muted);
}

.meta-value {
    color: var(--steam-text);
    text-align: right;
}

/* Reseñas */
.detail-reviews {
    margin-bottom: 16px;
}

.review-label {
    font-size: 11px;
    color: var(--steam-muted);
    margin-bottom: 6px;
}

.review-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.review-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s;
}

    .review-fill.positive {
        background: var(--steam-accent);
    }

    .review-fill.mixed {
        background: #a4c3d4;
    }

    .review-fill.negative {
        background: #e74c3c;
    }

.review-text {
    font-size: 12px;
}

    .review-text.positive {
        color: var(--steam-accent);
    }

    .review-text.mixed {
        color: #a4c3d4;
    }

    .review-text.negative {
        color: #e74c3c;
    }

/* Bloque de compra */
.detail-purchase {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(102,192,244,0.15);
    border-radius: 3px;
    padding: 16px;
}

.purchase-price {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

    .purchase-price.free {
        color: var(--steam-green-l);
    }

.purchase-discount-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.purchase-prices {
    display: flex;
    flex-direction: column;
}

.final-price-lg {
    font-size: 18px;
    font-weight: 700;
    color: var(--steam-green-l);
}

.btn-buy {
    width: 100%;
    background: linear-gradient(180deg, #4899c4 0%, #3885aa 100%);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 14px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.15s;
}

    .btn-buy:hover {
        opacity: 0.9;
    }

/* Requisitos */
.sysreq-box {
    background: var(--steam-card);
    border-radius: 3px;
    padding: 16px 20px;
    font-size: 13px;
    color: var(--steam-text);
    line-height: 1.7;
}

    .sysreq-box h4 {
        color: var(--steam-accent);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        margin-bottom: 10px;
    }

/* Checkout */
.checkout-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.checkout-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

.checkout-card {
    background: var(--steam-card);
    border: 1px solid rgba(102,192,244,0.12);
    border-radius: 3px;
    padding: 24px;
    margin-bottom: 16px;
}

.checkout-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--steam-accent);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

.checkout-note {
    font-size: 11px;
    color: var(--steam-muted);
    margin-bottom: 16px;
    background: rgba(102,192,244,0.06);
    padding: 8px 10px;
    border-radius: 2px;
    border-left: 2px solid var(--steam-accent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-checkout-submit {
    width: 100%;
    background: linear-gradient(180deg, #6abf3c 0%, #4d901d 100%);
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 15px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.15s;
}

    .btn-checkout-submit:hover {
        opacity: 0.9;
    }

/* Resumen */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.summary-name {
    font-size: 13px;
    color: var(--steam-text);
    margin-bottom: 4px;
}

.summary-price {
    font-size: 13px;
    color: var(--steam-green-l);
    font-weight: 700;
    white-space: nowrap;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    font-size: 14px;
    color: var(--steam-muted);
}

.total-amount {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.back-to-cart {
    font-size: 12px;
    color: var(--steam-accent);
    text-decoration: none;
    display: block;
    text-align: center;
}

    .back-to-cart:hover {
        text-decoration: underline;
    }

/* Confirmación */
.confirm-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.confirm-card {
    background: var(--steam-card);
    border: 1px solid rgba(102,192,244,0.15);
    border-radius: 4px;
    padding: 48px;
    width: 100%;
    max-width: 520px;
    text-align: center;
}

.confirm-icon {
    width: 60px;
    height: 60px;
    background: var(--steam-green);
    color: var(--steam-green-l);
    font-size: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.confirm-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.confirm-sub {
    font-size: 13px;
    color: var(--steam-muted);
    margin-bottom: 28px;
}

.confirm-items {
    text-align: left;
    margin-bottom: 16px;
}

.confirm-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.confirm-game {
    font-size: 13px;
    color: var(--steam-text);
}

.confirm-price {
    font-size: 13px;
    color: var(--steam-green-l);
    font-weight: 700;
}

.confirm-total {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    font-size: 13px;
    color: var(--steam-muted);
    margin-bottom: 28px;
}

.confirm-total-amount {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.confirm-actions {
    display: flex;
    justify-content: center;
}

/* 
   CARRITO
*/

.cart-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.cart-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(102,192,244,0.2);
}

/* Tabla de items */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

    .cart-table thead tr {
        border-bottom: 1px solid rgba(102,192,244,0.2);
    }

    .cart-table th {
        font-size: 11px;
        color: var(--steam-muted);
        text-transform: uppercase;
        letter-spacing: 0.8px;
        padding: 8px 12px;
        text-align: left;
        font-weight: 600;
    }

    .cart-table td {
        padding: 14px 12px;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        vertical-align: middle;
    }

    .cart-table tbody tr:hover {
        background: rgba(102,192,244,0.03);
    }

/* Imagen del juego en la tabla */
.cart-game-thumb {
    width: 90px;
    height: 34px;
    object-fit: cover;
    border-radius: 2px;
    background: var(--steam-card);
    display: block;
}

/* Nombre del juego */
.cart-game-name {
    font-size: 14px;
    color: var(--steam-text);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

    .cart-game-name:hover {
        color: var(--steam-accent);
    }

.cart-game-genre {
    font-size: 11px;
    color: var(--steam-muted);
}

/* Precio en la tabla */
.cart-price-col {
    text-align: right;
}

.cart-orig-price {
    font-size: 11px;
    color: var(--steam-muted);
    text-decoration: line-through;
    display: block;
}

.cart-final-price {
    font-size: 14px;
    color: var(--steam-green-l);
    font-weight: 700;
}

.cart-free {
    font-size: 14px;
    color: var(--steam-accent);
    font-weight: 700;
}

/* Botón eliminar */
.btn-remove {
    background: transparent;
    border: 1px solid rgba(231,76,60,0.3);
    color: #e74c3c;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 2px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: background 0.15s, border-color 0.15s;
}

    .btn-remove:hover {
        background: rgba(231,76,60,0.1);
        border-color: rgba(231,76,60,0.6);
    }

/* Panel inferior (total + botón) */
.cart-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid rgba(102,192,244,0.2);
}

.cart-total-label {
    font-size: 13px;
    color: var(--steam-muted);
}

.cart-total-amount {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.btn-checkout {
    background: linear-gradient(180deg, #6abf3c 0%, #4d901d 100%);
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 14px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.15s;
}

    .btn-checkout:hover {
        opacity: 0.9;
        color: #fff;
        text-decoration: none;
    }

/* Carrito vacío */
.cart-empty {
    text-align: center;
    padding: 80px 0;
}

.cart-empty-icon {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-empty-title {
    font-size: 18px;
    color: var(--steam-text);
    margin-bottom: 10px;
}

.cart-empty-sub {
    font-size: 13px;
    color: var(--steam-muted);
    margin-bottom: 24px;
}

.btn-go-store {
    background: linear-gradient(180deg, #4899c4 0%, #3885aa 100%);
    color: #fff;
    border: none;
    padding: 10px 28px;
    font-size: 13px;
    border-radius: 2px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: opacity 0.15s;
}

    .btn-go-store:hover {
        opacity: 0.9;
        color: #fff;
        text-decoration: none;
    }

/*
   PERFIL DE USUARIO
*/

.profile-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 0 28px;
    border-bottom: 1px solid rgba(102,192,244,0.2);
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--steam-surface);
    border: 2px solid var(--steam-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--steam-accent);
    flex-shrink: 0;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.profile-email {
    font-size: 13px;
    color: var(--steam-muted);
    margin-bottom: 4px;
}

.profile-joined {
    font-size: 12px;
    color: var(--steam-muted);
}

/* Estadísticas */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--steam-card);
    border: 1px solid rgba(102,192,244,0.12);
    border-radius: 3px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--steam-accent);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    color: var(--steam-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Órdenes */
.order-card {
    background: var(--steam-card);
    border: 1px solid rgba(102,192,244,0.1);
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.order-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.order-id {
    font-size: 13px;
    font-weight: 700;
    color: var(--steam-accent);
}

.order-date {
    font-size: 12px;
    color: var(--steam-muted);
}

.order-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.order-status {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
}

    .order-status.completado {
        background: rgba(76,107,34,0.3);
        color: var(--steam-green-l);
        border: 1px solid rgba(164,208,7,0.2);
    }

    .order-status.pendiente {
        background: rgba(230,165,0,0.15);
        color: #e6a500;
        border: 1px solid rgba(230,165,0,0.2);
    }

.order-total {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

/* Items de la orden */
.order-items {
    padding: 8px 0;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.15s;
}

    .order-item:last-child {
        border-bottom: none;
    }

    .order-item:hover {
        background: rgba(102,192,244,0.03);
    }

.order-item-thumb {
    width: 90px;
    height: 34px;
    object-fit: cover;
    border-radius: 2px;
    background: var(--steam-surface);
    flex-shrink: 0;
}

.order-item-info {
    flex: 1;
    min-width: 0;
}

.order-item-name {
    font-size: 13px;
    color: var(--steam-text);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

    .order-item-name:hover {
        color: var(--steam-accent);
    }

.order-item-genre {
    font-size: 11px;
    color: var(--steam-muted);
}

.order-item-price {
    font-size: 13px;
    color: var(--steam-green-l);
    font-weight: 700;
    white-space: nowrap;
}

/* Sin órdenes */
.orders-empty {
    text-align: center;
    padding: 60px 0;
}

.orders-empty-icon {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.orders-empty-title {
    font-size: 16px;
    color: var(--steam-text);
    margin-bottom: 8px;
}

.orders-empty-sub {
    font-size: 13px;
    color: var(--steam-muted);
    margin-bottom: 20px;
}

/*
   PANEL DE ADMINISTRACIÓN
*/

.admin-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(102,192,244,0.2);
}

.admin-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.btn-admin-add {
    background: linear-gradient(180deg, #6abf3c 0%, #4d901d 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 2px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: opacity 0.15s;
}

    .btn-admin-add:hover {
        opacity: 0.9;
        color: #fff;
        text-decoration: none;
    }

/* Alerta de éxito */
.admin-alert.success {
    background: rgba(76,107,34,0.2);
    border: 1px solid rgba(164,208,7,0.3);
    color: var(--steam-green-l);
    padding: 10px 16px;
    border-radius: 2px;
    font-size: 13px;
    margin-bottom: 20px;
}

/* Estadísticas */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: var(--steam-card);
    border: 1px solid rgba(102,192,244,0.1);
    border-radius: 3px;
    padding: 18px;
    text-align: center;
}

    .admin-stat-card.highlight {
        border-color: rgba(164,208,7,0.3);
        background: rgba(76,107,34,0.15);
    }

.admin-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--steam-accent);
    margin-bottom: 6px;
}

.admin-stat-card.highlight .admin-stat-value {
    color: var(--steam-green-l);
}

.admin-stat-label {
    font-size: 11px;
    color: var(--steam-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Tabla */
.admin-table-wrapper {
    background: var(--steam-card);
    border: 1px solid rgba(102,192,244,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table thead tr {
        background: rgba(0,0,0,0.3);
        border-bottom: 1px solid rgba(102,192,244,0.15);
    }

    .admin-table th {
        font-size: 11px;
        color: var(--steam-muted);
        text-transform: uppercase;
        letter-spacing: 0.7px;
        padding: 12px 14px;
        text-align: left;
        font-weight: 600;
    }

    .admin-table td {
        padding: 12px 14px;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        font-size: 13px;
        color: var(--steam-text);
        vertical-align: middle;
    }

    .admin-table tbody tr:last-child td {
        border-bottom: none;
    }

    .admin-table tbody tr:hover {
        background: rgba(102,192,244,0.03);
    }

.admin-td-muted {
    color: var(--steam-muted) !important;
}

.admin-td-price {
    color: var(--steam-green-l) !important;
    font-weight: 700;
}

.admin-game-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-game-thumb {
    width: 72px;
    height: 27px;
    object-fit: cover;
    border-radius: 2px;
    background: var(--steam-surface);
    flex-shrink: 0;
}

.admin-game-name {
    font-size: 13px;
    color: var(--steam-text);
}

.featured-badge {
    color: #f5c518;
    font-size: 12px;
    font-weight: 700;
}

/* Botones de acción */
.admin-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-admin-edit {
    background: transparent;
    border: 1px solid rgba(102,192,244,0.3);
    color: var(--steam-accent);
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.15s;
}

    .btn-admin-edit:hover {
        background: rgba(102,192,244,0.1);
        color: var(--steam-accent);
        text-decoration: none;
    }

.btn-admin-delete {
    background: transparent;
    border: 1px solid rgba(231,76,60,0.3);
    color: #e74c3c;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.15s;
}

    .btn-admin-delete:hover {
        background: rgba(231,76,60,0.1);
        border-color: rgba(231,76,60,0.6);
    }

.delete-form {
    display: inline;
    margin: 0;
    padding: 0;
}

/* Formulario de creación / edición */
.admin-form-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.admin-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(102,192,244,0.2);
}

.admin-form {
    background: var(--steam-card);
    border: 1px solid rgba(102,192,244,0.1);
    border-radius: 3px;
    padding: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-span2 {
    grid-column: span 2;
}

.form-textarea {
    min-height: 90px;
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--steam-text);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}

.admin-form-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: flex-end;
}

.btn-admin-save {
    background: linear-gradient(180deg, #4899c4 0%, #3885aa 100%);
    color: #fff;
    border: none;
    padding: 11px 32px;
    font-size: 14px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.15s;
}

    .btn-admin-save:hover {
        opacity: 0.9;
    }

/*
   BÚSQUEDA Y FILTROS
*/

.search-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.search-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(102,192,244,0.2);
}

.search-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.search-query {
    color: var(--steam-accent);
}

.search-count {
    font-size: 13px;
    color: var(--steam-muted);
}

/* Layout */
.search-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: start;
}

/* Sidebar de filtros */
.filter-sidebar {
    background: var(--steam-card);
    border: 1px solid rgba(102,192,244,0.1);
    border-radius: 3px;
    padding: 16px;
    position: sticky;
    top: 16px;
}

.filter-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

    .filter-section:last-of-type {
        border-bottom: none;
    }

.filter-title {
    font-size: 11px;
    color: var(--steam-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 10px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--steam-text);
    cursor: pointer;
}

    .filter-radio input {
        cursor: pointer;
        accent-color: var(--steam-accent);
    }

.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--steam-text);
    cursor: pointer;
    margin-bottom: 6px;
}

    .filter-check input {
        cursor: pointer;
        accent-color: var(--steam-accent);
    }

.filter-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-price-input {
    width: 72px !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
}

.filter-price-sep {
    color: var(--steam-muted);
    font-size: 12px;
}

.btn-filter-apply {
    width: 100%;
    background: linear-gradient(180deg, #4899c4 0%, #3885aa 100%);
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
    transition: opacity 0.15s;
}

    .btn-filter-apply:hover {
        opacity: 0.9;
    }

.btn-filter-clear {
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--steam-muted);
    text-decoration: none;
    transition: color 0.15s;
}

    .btn-filter-clear:hover {
        color: #e74c3c;
    }

/* Items de resultados */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    border-radius: 2px;
    transition: background 0.15s;
    cursor: pointer;
}

    .search-item:hover {
        background: rgba(102,192,244,0.05);
    }

.search-item-thumb-link {
    flex-shrink: 0;
}

.search-item-thumb {
    width: 184px;
    height: 69px;
    object-fit: cover;
    border-radius: 2px;
    background: var(--steam-card);
    display: block;
}

.search-item-info {
    flex: 1;
    min-width: 0;
}

.search-item-name {
    font-size: 15px;
    color: var(--steam-text);
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .search-item-name:hover {
        color: var(--steam-accent);
    }

.search-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.search-item-dev {
    font-size: 11px;
    color: var(--steam-muted);
}

.search-item-date {
    font-size: 11px;
    color: var(--steam-muted);
}

.search-item-reviews {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.search-item-price {
    text-align: right;
    min-width: 110px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.search-discount-block {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.search-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Sin resultados */
.search-empty {
    text-align: center;
    padding: 80px 0;
    grid-column: span 2;
}

.search-empty-icon {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.search-empty-title {
    font-size: 18px;
    color: var(--steam-text);
    margin-bottom: 8px;
}

.search-empty-sub {
    font-size: 13px;
    color: var(--steam-muted);
    margin-bottom: 20px;
}

/*
   PAGINACIÓN
*/

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(102,192,244,0.15);
}

.page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--steam-card);
    border: 1px solid rgba(102,192,244,0.15);
    border-radius: 2px;
    color: var(--steam-text);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    padding: 0 10px;
}

    .page-btn:hover {
        background: var(--steam-surface);
        border-color: rgba(102,192,244,0.4);
        color: #fff;
        text-decoration: none;
    }

    .page-btn.active {
        background: var(--steam-accent);
        border-color: var(--steam-accent);
        color: var(--steam-nav);
        font-weight: 700;
        cursor: default;
    }

    .page-btn.disabled {
        opacity: 0.3;
        cursor: default;
        pointer-events: none;
    }

.page-ellipsis {
    color: var(--steam-muted);
    font-size: 13px;
    padding: 0 4px;
}

.pagination-info {
    text-align: center;
    font-size: 12px;
    color: var(--steam-muted);
    margin-top: 10px;
}