/* =============================================
   SHOP — Tienda VIP
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Rubik:wght@400;600;800&family=Inconsolata:wght@400;700&display=swap');

:root {
    --neon-cyan: #65E6FF;
    --neon-cyan-glow: rgba(101, 230, 255, 0.45);
    --neon-cyan-dim: rgba(101, 230, 255, 0.1);
    --deep-purple: #0f0c29;
    --card-bg: rgba(15, 12, 41, 0.6);
    --card-border: rgba(101, 230, 255, 0.15);
    --success: #00ff88;
    --danger: #FF3D5A;
    --warning: #FFD447;
    --gold: #FFD447;
    --text-muted: rgba(255,255,255,0.5);
    --text-dim: rgba(255,255,255,0.75);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.hidden { display: none !important; }

body {
    font-family: 'Rubik', sans-serif;
    background: #000;
    color: #e0e0e0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(101, 230, 255, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(101, 230, 255, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #000 0%, #060814 100%);
    pointer-events: none;
    z-index: 0;
}

/* -- Layout ---------------------------------- */
.shop-main {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* -- Balance strip --------------------------- */
.balance-strip {
    background: rgba(101,230,255,0.06);
    border: 1px solid rgba(101,230,255,0.18);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2.5rem;
}
.balance-inner {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}
.balance-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.balance-icon { font-size: 1.1rem; }
.balance-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.balance-value {
    font-family: 'Inconsolata', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--neon-cyan);
}
.vip-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.vip-dot.vip-bronze { background: #cd7f32; box-shadow: 0 0 6px #cd7f32; }
.vip-dot.vip-silver { background: #c0c0c0; box-shadow: 0 0 6px #c0c0c0; }
.vip-dot.vip-gold   { background: #FFD447; box-shadow: 0 0 6px #FFD447; }

/* -- Trial banner --------------------------- */
.trial-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(101,230,255,0.08);
    border: 1px solid rgba(101,230,255,0.3);
    border-radius: 8px;
    font-size: 0.9rem;
}
.trial-icon { font-size: 1.1rem; }
.trial-timer {
    font-family: 'Inconsolata', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan);
    min-width: 3.5rem;
}
.trial-hint {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.trial-hint code {
    background: rgba(255,255,255,0.08);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-family: 'Inconsolata', monospace;
    color: var(--neon-cyan);
}

/* -- Login notice --------------------------- */
.shop-login-notice {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.shop-login-notice .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--neon-cyan);
    color: #000;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
}

/* -- Section headings ----------------------- */
.shop-section { margin-bottom: 3rem; }

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.section-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.section-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.section-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 0.25em 0.6em;
    border-radius: 4px;
}
.weekly-badge {
    background: rgba(255,212,71,0.15);
    color: #FFD447;
    border: 1px solid rgba(255,212,71,0.3);
}

/* -- Filters -------------------------------- */
.catalog-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: auto;
}
.filter-btn {
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(101,230,255,0.2);
    background: transparent;
    color: var(--text-muted);
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Rubik', sans-serif;
}
.filter-btn:hover,
.filter-btn.active {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(101,230,255,0.08);
}

/* -- Grid ----------------------------------- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}
.shop-grid-weekly {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* -- Card ----------------------------------- */
.shop-card {
    position: relative;
    background: rgba(15, 12, 41, 0.6);
    border: 1px solid rgba(101, 230, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.shop-card:hover {
    border-color: rgba(101,230,255,0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(101,230,255,0.08);
}
.shop-card.owned {
    border-color: rgba(0,255,136,0.3);
    background: rgba(0,255,136,0.04);
}
.shop-card.exclusive {
    border-color: rgba(255,212,71,0.3);
}
.shop-card.hidden { display: none; }

/* exclusive ribbon */
.card-exclusive-ribbon {
    position: absolute;
    top: 12px;
    right: -24px;
    background: #FFD447;
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 0.2em 2.5em;
    transform: rotate(35deg);
    z-index: 2;
    pointer-events: none;
}

/* image */
.card-img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: rgba(0,0,0,0.5);
    overflow: hidden;
}
.card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.shop-card:hover .card-img { transform: scale(1.05); }

/* placeholder when no image */
.card-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: rgba(101,230,255,0.25);
    font-size: 0.75rem;
    font-family: 'Inconsolata', monospace;
}
.card-img-placeholder svg { opacity: 0.3; }

/* tier badge on image */
.card-tier-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    letter-spacing: .05em;
}
.card-tier-badge.tier-bronze { background: rgba(205,127,50,.9); color: #fff; }
.card-tier-badge.tier-silver { background: rgba(192,192,192,.9); color: #000; }
.card-tier-badge.tier-gold   { background: rgba(255,212,71,.9);  color: #000; }

/* body */
.card-body {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}
.card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.card-type-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
}
.card-tier-req {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: .04em;
}
.card-tier-req.tier-req-bronze { color: #cd7f32; }
.card-tier-req.tier-req-silver { color: #c0c0c0; }
.card-tier-req.tier-req-gold   { color: #FFD447; }

.card-price-row { margin-top: auto; padding-top: 0.5rem; }
.card-price {
    font-family: 'Inconsolata', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-cyan);
}
.card-price-null {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* actions */
.card-actions {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.6rem;
}
.btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.78rem;
    border-radius: 6px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all .2s;
    flex: 1;
    text-align: center;
    font-family: 'Rubik', sans-serif;
    line-height: 1;
}
.btn-trial {
    background: rgba(101,230,255,0.1);
    border: 1px solid rgba(101,230,255,0.3) !important;
    color: var(--neon-cyan);
    border: none;
}
.btn-trial:hover:not(:disabled) {
    background: rgba(101,230,255,0.2);
    border-color: var(--neon-cyan) !important;
}
.btn-buy {
    background: var(--neon-cyan);
    color: #000;
}
.btn-buy:hover:not(:disabled) {
    background: #fff;
    box-shadow: 0 0 12px rgba(101,230,255,0.4);
}
.btn-disabled {
    opacity: 0.35;
    cursor: not-allowed !important;
}
.owned-badge {
    font-size: 0.8rem;
    color: #00ff88;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* -- No results ----------------------------- */
.no-results {
    color: var(--text-muted);
    text-align: center;
    padding: 3rem;
    font-size: 0.9rem;
}
.no-results.hidden { display: none; }

/* -- Modal ---------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-overlay.hidden { display: none; }

.modal-box {
    position: relative;
    background: #0d0d1e;
    border: 1px solid rgba(101,230,255,0.25);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
}
.modal-close:hover { color: #fff; }
.modal-img-wrap { margin-bottom: 1rem; }
.modal-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(0,0,0,0.4);
}
.modal-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.modal-price-line {
    font-family: 'Inconsolata', monospace;
    font-size: 1.4rem;
    color: var(--neon-cyan);
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.modal-balance-line {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}
.modal-actions .btn {
    padding: 0.65rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all .2s;
    font-family: 'Rubik', sans-serif;
}
.modal-actions .btn-primary {
    background: var(--neon-cyan);
    color: #000;
}
.modal-actions .btn-primary:hover:not(:disabled) { background: #fff; }
.modal-actions .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.modal-actions .btn-secondary {
    background: rgba(255,255,255,0.07);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12) !important;
}
.modal-actions .btn-secondary:hover { background: rgba(255,255,255,0.14); }

/* -- Toast ---------------------------------- */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.8rem 1.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2000;
    max-width: 90vw;
    text-align: center;
    animation: toastIn .2s ease;
    font-family: 'Rubik', sans-serif;
}
.toast.hidden { display: none; }
.toast-success { background: rgba(0,255,136,0.15); border: 1px solid #00ff88; color: #00ff88; }
.toast-error   { background: rgba(255,61,90,0.15);  border: 1px solid #FF3D5A; color: #FF3D5A; }
.toast-info    { background: rgba(101,230,255,0.1);  border: 1px solid var(--neon-cyan); color: var(--neon-cyan); }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* -- Responsive ----------------------------- */
@media (max-width: 768px) {
    .shop-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.9rem; }
    .shop-grid-weekly { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .section-heading { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .catalog-filters { margin-left: 0; }
    .catalog-controls { margin-left: 0; width: 100%; align-items: flex-start; }
}
@media (max-width: 480px) {
    .shop-grid, .shop-grid-weekly { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}


/* -- Inherited nav/header styles --- */
.site-header {
    background: rgba(9, 6, 28, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(101, 230, 255, 0.18);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 64px;
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 32px;
    border-right: 1px solid rgba(101, 230, 255, 0.1);
    margin-right: 24px;
}

.logo h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    line-height: 1;
}

.tagline {
    color: var(--neon-cyan);
    font-size: 0.65rem;
    font-family: 'Inconsolata', monospace;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-top: 4px;
    font-weight: 700;
}

/* Navegación central */
.header-nav-links {
    display: flex;
    align-items: stretch;
    flex: 1;
    gap: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    border-bottom-color: var(--neon-cyan);
}

.nav-link.active {
    color: var(--neon-cyan);
}

.nav-icon { font-size: 0.9rem; }

/* Lado derecho: user */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 24px;
    border-left: 1px solid rgba(101, 230, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(101, 230, 255, 0.08);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(101, 230, 255, 0.25);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan-glow);
}

.user-name {
    font-family: 'Inconsolata', monospace;
    font-size: 0.85rem;
    color: #fff;
}

/* -- BOTONES ------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), #00d4ff);
    color: var(--deep-purple);
    box-shadow: 0 4px 20px var(--neon-cyan-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px var(--neon-cyan-glow);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.3);
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

/* -- LAYOUT -------------------------------- */


/* logo-link styles for section headers */
.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    gap: 3px;
}
.logo-section {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.35rem;
    color: var(--neon-cyan);
    letter-spacing: -0.5px;
    text-transform: uppercase;
    line-height: 1;
}
.logo-community {
    font-size: 0.62rem;
    font-family: 'Inconsolata', monospace;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.nav-link--shop { color: var(--neon-cyan) !important; }




/* ── Footer rediseñado ──────────────────────── */
.site-footer {
    background: rgba(9, 6, 28, 0.92) !important;
    border-top: 1px solid rgba(101,230,255,0.12) !important;
    padding: 2rem 1.5rem !important;
    margin-top: 4rem !important;
    position: relative !important;
    z-index: 1 !important;
}
.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-logo { font-family: 'Archivo Black', sans-serif; font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-tagline { font-size: 0.7rem; color: rgba(255,255,255,0.3); font-family: 'Inconsolata', monospace; letter-spacing: 2px; text-transform: uppercase; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.82rem; transition: color .2s; }
.footer-links a:hover { color: var(--neon-cyan); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.2); }

/* ── Cookie banner ──────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13,13,30,0.97);
    border: 1px solid rgba(101,230,255,0.2);
    border-radius: 12px;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: min(600px, 94vw);
    z-index: 5000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
}
.cookie-text { font-size: 0.82rem; color: rgba(255,255,255,0.75); line-height: 1.4; }
.cookie-link { color: var(--neon-cyan); text-decoration: none; }
.cookie-accept {
    flex-shrink: 0;
    background: var(--neon-cyan);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 1rem;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background .2s;
    font-family: 'Rubik', sans-serif;
}
.cookie-accept:hover { background: #fff; }

/* ── Adblock notice ─────────────────────────── */
.adblock-notice {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,212,71,0.1);
    border: 1px solid rgba(255,212,71,0.35);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: min(640px, 94vw);
    z-index: 4000;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.85);
}
.adblock-notice button {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.4rem;
}
.adblock-notice button:hover { color: #fff; }




/* ── Exclusive badge (on card image) ────────── */
.exclusive-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--gold);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 0.2em 0.55em;
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
    text-transform: uppercase;
}

/* ── Armored badge (on card image) ──────────── */
.armored-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #4a7fa5;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 0.2em 0.55em;
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
    text-transform: uppercase;
}

/* Badge en el modal (inline, no absolute) */
.detail-armored-badge {
    position: static;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    font-size: 0.65rem;
}
.detail-excl-badge {
    position: static;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    font-size: 0.65rem;
}

/* Exclusive price text in card */
.card-price.exclusive-price {
    color: var(--gold);
}

/* Exclusive action button */
.btn-exclusive {
    background: rgba(255,212,71,0.12);
    border: 1px solid rgba(255,212,71,0.45) !important;
    color: var(--gold);
}
.btn-exclusive:hover:not(:disabled) {
    background: rgba(255,212,71,0.25);
    border-color: var(--gold) !important;
    box-shadow: 0 0 10px rgba(255,212,71,0.2);
}


/* ── Detail modal ────────────────────────────── */
.detail-modal-box {
    max-width: 860px !important;
    width: min(860px, 96vw) !important;
    min-width: 0 !important;
    text-align: left !important;
    padding: 1.75rem !important;
    overflow-y: auto !important;
    max-height: 92vh !important;
}

.detail-layout {
    display: grid !important;
    grid-template-columns: 44% 1fr !important;
    gap: 1.5rem;
    align-items: start;
}

/* Gallery — left column */
.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.detail-main-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: rgba(0,0,0,0.55);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.detail-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(101,230,255,0.25);
    font-size: 0.75rem;
    font-family: 'Inconsolata', monospace;
}
.detail-img-placeholder svg { opacity: 0.3; }

.detail-main-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-thumbs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.detail-thumb {
    width: 64px;
    height: 44px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity .2s, border-color .2s;
    flex-shrink: 0;
}
.detail-thumb:hover { opacity: 1; }
.detail-thumb.active {
    border-color: var(--neon-cyan);
    opacity: 1;
}

/* Info — right column */
.detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-header { display: flex; flex-direction: column; gap: 0.35rem; }

.detail-name {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.detail-type-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    font-family: 'Inconsolata', monospace;
}

.detail-excl-badge {
    position: static !important;
    display: inline-block;
    width: fit-content;
}
.detail-excl-badge.hidden { display: none !important; }

.detail-badges-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.btn-share-item {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(101,230,255,0.06);
    border: 1px solid rgba(101,230,255,0.3);
    color: var(--neon-cyan);
    font-size: 0.72rem;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.3em 0.85em;
    border-radius: 20px;
    cursor: pointer;
    transition: background .18s, border-color .18s, box-shadow .18s, color .18s;
    white-space: nowrap;
    text-decoration: none;
    outline: none;
}
.btn-share-item:hover {
    background: rgba(101,230,255,0.14);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(101,230,255,0.2);
}
.btn-share-item:active {
    background: rgba(101,230,255,0.22);
    box-shadow: 0 0 16px rgba(101,230,255,0.3);
}

/* Price block */
.detail-price-block {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.detail-price-block.hidden { display: none; }

.detail-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.detail-price-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.detail-price-value {
    font-family: 'Inconsolata', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neon-cyan);
}
.detail-price-value.excl {
    color: var(--gold);
    font-size: 1rem;
}

.detail-balance-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.detail-balance-row.hidden { display: none; }

.detail-after { color: rgba(255,255,255,0.4); }

/* Owned block */
.detail-owned-block {
    background: rgba(0,255,136,0.06);
    border: 1px solid rgba(0,255,136,0.2);
    border-radius: 8px;
    padding: 0.75rem;
}
.detail-owned-block.hidden { display: none; }

.owned-badge-lg {
    font-size: 1rem;
    font-weight: 700;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Notice cuenta no vinculada */
.detail-no-data-notice {
    font-size: 0.82rem;
    color: var(--warning);
    background: rgba(255,212,71,0.07);
    border: 1px solid rgba(255,212,71,0.25);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    line-height: 1.4;
}

/* Detail actions */
.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.detail-actions a.btn {
    display: block;
    text-align: center;
    text-decoration: none;
}

.detail-actions .btn {
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all .2s;
    font-family: 'Rubik', sans-serif;
    width: 100%;
    text-align: center;
}
.detail-actions .btn-primary {
    background: var(--neon-cyan);
    color: #000;
}
.detail-actions .btn-primary:hover:not(:disabled) {
    background: #fff;
    box-shadow: 0 0 14px rgba(101,230,255,0.35);
}
.detail-actions .btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.detail-actions .btn-secondary {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1) !important;
}
.detail-actions .btn-secondary:hover { background: rgba(255,255,255,0.1); }

.detail-actions .btn-exclusive-lg,
.detail-actions .btn-exclusive {
    background: rgba(255,212,71,0.1);
    color: var(--gold);
    border: 1px solid rgba(255,212,71,0.4) !important;
}
.detail-actions .btn-exclusive-lg:hover,
.detail-actions .btn-exclusive:hover {
    background: rgba(255,212,71,0.2);
    box-shadow: 0 0 12px rgba(255,212,71,0.2);
}

/* Responsive: stack on small screens */
@media (max-width: 560px) {
    .detail-layout { grid-template-columns: 1fr !important; }
    .detail-modal-box { padding: 1rem !important; }
}

/* -- Lightbox ------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn .15s ease;
}
.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
    pointer-events: none;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* Cursor en la foto del modal para indicar que es clicable */
.detail-main-img { cursor: zoom-in; }

/* -- Confirmación de compra ------------------------------------ */
.buy-confirm {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem;
    background: rgba(101,230,255,0.05);
    border: 1px solid rgba(101,230,255,0.2);
    border-radius: 10px;
}
.buy-confirm-msg {
    font-size: 0.88rem;
    color: var(--text-primary, #e0e0ff);
    line-height: 1.5;
    margin: 0;
}
.buy-confirm-rest {
    color: var(--neon-cyan);
    font-family: 'Inconsolata', monospace;
    font-weight: 700;
}
.buy-confirm-btns {
    display: flex;
    gap: 0.5rem;
}
.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); color: #fff; }

/* -- Panel XP → GladiCoins en modal --------------------------- */
.detail-xp-toggle {
    margin-top: 0.75rem;
    text-align: center;
}
.btn-xp-toggle {
    background: none;
    border: none;
    color: rgba(101,230,255,0.65);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    transition: color .2s;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}
.btn-xp-toggle:hover { color: var(--neon-cyan); }

.detail-xp-panel {
    margin-top: 0.75rem;
    padding: 0.85rem;
    background: rgba(101,230,255,0.04);
    border: 1px solid rgba(101,230,255,0.15);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.detail-xp-panel.hidden { display: none; }

.detail-xp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.detail-xp-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--neon-cyan);
    letter-spacing: .03em;
}
.btn-xp-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 5px;
    border-radius: 4px;
    transition: color .2s;
}
.btn-xp-close:hover { color: #fff; }

.detail-xp-avail {
    font-size: 0.78rem;
    color: var(--text-muted, rgba(255,255,255,0.45));
    margin: 0;
}
.detail-xp-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.modal-xp-input {
    width: 80px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(101,230,255,0.2);
    border-radius: 6px;
    color: #fff;
    font-family: 'Inconsolata', monospace;
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
    text-align: center;
    -moz-appearance: textfield;
}
.modal-xp-input::-webkit-outer-spin-button,
.modal-xp-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.detail-xp-preview {
    font-family: 'Inconsolata', monospace;
    font-size: 0.82rem;
    color: var(--neon-cyan);
    white-space: nowrap;
}
.detail-xp-panel .btn {
    align-self: flex-start;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
}

/* -- XP step buttons (igual que perfil) ----------------------- */
.xp-step-btn {
    background: rgba(101,230,255,0.08);
    border: none;
    color: var(--neon-cyan);
    font-size: 1.2rem;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background .15s;
    line-height: 1;
}
.xp-step-btn:hover { background: rgba(101,230,255,0.18); }

/* -- Card locked (rotación sin acceso por tier) --------------- */
.shop-card.locked { opacity: 0.75; }
.card-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9,6,28,0.62);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    backdrop-filter: blur(2px);
    border-radius: inherit;
}
.card-lock-icon  { font-size: 1.6rem; line-height: 1; }
.card-lock-tier  { font-size: 0.7rem; font-weight: 700; color: #FFD447; letter-spacing: .06em; text-transform: uppercase; }

.btn-upgrade {
    background: linear-gradient(135deg, rgba(255,212,71,0.15), rgba(255,140,0,0.1));
    color: #FFD447;
    border: 1px solid rgba(255,212,71,0.4) !important;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
.btn-upgrade:hover {
    background: rgba(255,212,71,0.25);
    box-shadow: 0 0 12px rgba(255,212,71,0.25);
    text-decoration: none;
    color: #FFD447;
}

/* -- Buscador + filtros catálogo ------------------------------ */
.catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-end;
    margin-left: auto;
}

.catalog-search-input {
    /* Misma altura visual que los filter-btn */
    background: rgba(101,230,255,0.04);
    border: 1px solid rgba(101,230,255,0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 0.82rem;
    font-family: inherit;
    padding: 0.35rem 1rem;
    width: 200px;
    outline: none;
    transition: border-color .2s, background .2s;
}
.catalog-search-input::placeholder { color: rgba(255,255,255,0.28); }
.catalog-search-input:focus {
    border-color: rgba(101,230,255,0.55);
    background: rgba(101,230,255,0.07);
}

/* Lupa decorativa antes del input via wrapper */
.catalog-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.catalog-search-wrap::before {
    content: '⌕';
    position: absolute;
    left: 0.7rem;
    color: rgba(101,230,255,0.4);
    font-size: 1rem;
    pointer-events: none;
    line-height: 1;
}
.catalog-search-wrap .catalog-search-input {
    padding-left: 2rem;
}

@media (max-width: 768px) {
    .catalog-controls { align-items: flex-start; margin-left: 0; }
    .catalog-search-input { width: 100%; }

    /* Botón login centrado */
    .shop-login-notice {
        display: flex;
        justify-content: center;
        padding: 1rem;
    }
    .shop-login-notice .btn {
        white-space: normal !important;
        text-align: center;
        max-width: 90vw;
        justify-content: center;
    }

    /* Botón "Necesitas VIP X" — que no se salga del card */
    .card-actions .btn-upgrade {
        white-space: normal !important;
        word-break: break-word;
        font-size: 0.72rem;
        padding: 0.35rem 0.5rem;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        justify-content: center;
        line-height: 1.3;
    }
}

/* -- Weekly tier badge (en imagen) ---------------------------- */
.weekly-tier-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: .05em;
    padding: 0.2em 0.55em;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

/* -- "✓ Tu VIP lo incluye" en acciones ----------------------- */
.weekly-access-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(101,230,255,0.7);
    letter-spacing: .02em;
    padding: 0.15em 0;
}
/* Hamburger styles live in profile.css (shared across all freeroam pages) */

/* =============================================
   LOBBYS
   ============================================= */

.lobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.lobby-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.lobby-card:hover {
    border-color: rgba(101,230,255,0.35);
    box-shadow: 0 0 20px rgba(101,230,255,0.08);
}

.lobby-card.lobby-active {
    border-color: rgba(0,255,136,0.4);
    box-shadow: 0 0 24px rgba(0,255,136,0.08);
}

/* Tier accent colors */
.lobby-tier-basic   { --lobby-color: #7289DA; }
.lobby-tier-premium { --lobby-color: #FFD700; }
.lobby-tier-vip     { --lobby-color: #FF6B35; }
.lobby-tier-elite   { --lobby-color: #FF3D5A; }

.lobby-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lobby-tier-label {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--lobby-color, var(--neon-cyan));
    font-family: 'Archivo Black', sans-serif;
    letter-spacing: .04em;
}

.lobby-badge-active {
    background: rgba(0,255,136,0.15);
    color: #00ff88;
    border: 1px solid rgba(0,255,136,0.4);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15em 0.6em;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.lobby-badge-included {
    background: rgba(101,230,255,0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(101,230,255,0.25);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15em 0.6em;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.lobby-members-count {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dim);
}

.lobby-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.lobby-features li {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.lobby-price-block {
    margin-top: auto;
}

.lobby-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
    font-family: 'Archivo Black', sans-serif;
}

.lobby-price-todo {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.lobby-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lobby-btn-owned {
    font-size: 0.82rem;
    font-weight: 700;
    color: #00ff88;
    text-align: center;
    padding: 0.5rem;
}

.btn-lobby-buy {
    background: linear-gradient(135deg, rgba(101,230,255,0.15), rgba(101,230,255,0.05));
    border: 1px solid rgba(101,230,255,0.35);
    color: var(--neon-cyan);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    text-align: center;
    width: 100%;
}
.btn-lobby-buy:hover {
    background: rgba(101,230,255,0.2);
    box-shadow: 0 0 10px rgba(101,230,255,0.15);
}

.btn-lobby-upgrade {
    background: linear-gradient(135deg, rgba(255,212,71,0.15), rgba(255,212,71,0.05));
    border: 1px solid rgba(255,212,71,0.4);
    color: var(--gold);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    width: 100%;
}
.btn-lobby-upgrade:hover {
    background: rgba(255,212,71,0.2);
}
.btn-lobby-upgrade:disabled,
.btn-lobby-soon {
    opacity: 0.45;
    cursor: not-allowed;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-weight: 600;
    font-size: 0.82rem;
    text-align: center;
    width: 100%;
}

/* =============================================
   MAPEADO ADDON
   ============================================= */

.addon-map-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 2rem;
}

.addon-map-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.addon-map-info {
    flex: 1;
}

.addon-map-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: 'Archivo Black', sans-serif;
}

.addon-map-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.addon-map-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.addon-map-features li {
    font-size: 0.8rem;
    color: rgba(0,255,136,0.8);
}

.addon-map-buy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 160px;
    text-align: center;
}

.addon-map-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold);
    font-family: 'Archivo Black', sans-serif;
}

.addon-map-price-todo {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 680px) {
    .addon-map-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .addon-map-buy {
        width: 100%;
    }
    .lobby-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {
    .lobby-grid {
        grid-template-columns: 1fr;
    }
}

/* -- Lobby badge en section heading ----------------------------- */
.lobby-badge {
    background: linear-gradient(135deg, #7b2ff7, #ff6b35);
    color: #fff;
}

/* -- Lobby pitch (texto de venta) ------------------------------- */
.lobby-pitch {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(123,47,247,0.08), rgba(255,107,53,0.06));
    border: 1px solid rgba(123,47,247,0.2);
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.75rem;
}

.lobby-pitch-questions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-right: 1px solid rgba(255,255,255,0.07);
    padding-right: 1.5rem;
}

.lobby-pitch-questions p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
    font-style: italic;
}

.lobby-pitch-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lobby-pitch-body > p {
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.55;
}

.lobby-pitch-body strong {
    color: var(--neon-cyan);
}

.lobby-pitch-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lobby-pitch-list li {
    font-size: 0.83rem;
    color: var(--text-dim);
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}

.lobby-pitch-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-weight: 800;
}

.lobby-pitch-list strong {
    color: #fff;
}

@media (max-width: 700px) {
    .lobby-pitch {
        grid-template-columns: 1fr;
    }
    .lobby-pitch-questions {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        padding-right: 0;
        padding-bottom: 1rem;
    }
}
