/* --- CSS LIMPIO - SIN BLOQUEOS --- */

/* --- FUENTES --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;500;600;700&family=Share+Tech+Mono&display=swap');

/* --- VARIABLES --- */
:root {
    --primary: #bc13fe;
    /* Purple Neon */
    --primary-dim: rgba(188, 19, 254, 0.4);
    --primary-glow: rgba(188, 19, 254, 0.6);
    --secondary: #7a0099;
    /* Darker Purple */
    --secondary-dim: rgba(122, 0, 153, 0.4);
    --bg-color: #05000a;
    /* Deep Purple Black */
    --panel-bg: rgba(20, 5, 25, 0.9);
    --glass-border: rgba(188, 19, 254, 0.3);
    --text-main: #e0e6ed;
    --text-muted: #9d8bb4;
    --font-heading: 'Orbitron', sans-serif;
    --font-ui: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-ui);
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    /* Fondo Matrix Sutil - Purple Version */
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(188, 19, 254, .05) 25%, rgba(188, 19, 254, .05) 26%, transparent 27%, transparent 74%, rgba(188, 19, 254, .05) 75%, rgba(188, 19, 254, .05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(188, 19, 254, .05) 25%, rgba(188, 19, 254, .05) 26%, transparent 27%, transparent 74%, rgba(188, 19, 254, .05) 75%, rgba(188, 19, 254, .05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}

/* --- EFECTOS VISUALES --- */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    z-index: 5;
    pointer-events: none;
    opacity: 0.6;
    animation: flickerAnimation 0.15s infinite;
    pointer-events: none;
}

@keyframes flickerAnimation {
    0% {
        opacity: 0.55;
    }

    50% {
        opacity: 0.65;
    }

    100% {
        opacity: 0.55;
    }
}

/* --- RESPONSIVE TWEAKS --- */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 1.5rem !important;
        /* Resize title on mobile */
    }

    .top-bar {
        padding: 0 10px;
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .user-status {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 4px var(--primary);
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

#app {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hidden {
    display: none !important;
}

/* --- TEXTO GLITCH --- */
.glitch-text {
    font-family: var(--font-heading);
    color: var(--primary);
    position: relative;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--panel-bg);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(70px, 9999px, 81px, 0);
        transform: skew(0.53deg);
    }

    5% {
        clip: rect(98px, 9999px, 5px, 0);
        transform: skew(0.96deg);
    }

    10% {
        clip: rect(6px, 9999px, 49px, 0);
        transform: skew(0.25deg);
    }

    15% {
        clip: rect(25px, 9999px, 83px, 0);
        transform: skew(0.67deg);
    }

    20% {
        clip: rect(13px, 9999px, 51px, 0);
        transform: skew(0.85deg);
    }

    25% {
        clip: rect(18px, 9999px, 73px, 0);
        transform: skew(0.04deg);
    }

    30% {
        clip: rect(95px, 9999px, 32px, 0);
        transform: skew(0.92deg);
    }

    35% {
        clip: rect(51px, 9999px, 13px, 0);
        transform: skew(0.02deg);
    }

    40% {
        clip: rect(78px, 9999px, 63px, 0);
        transform: skew(0.57deg);
    }

    45% {
        clip: rect(35px, 9999px, 50px, 0);
        transform: skew(0.35deg);
    }

    50% {
        clip: rect(9px, 9999px, 92px, 0);
        transform: skew(0.07deg);
    }

    55% {
        clip: rect(27px, 9999px, 16px, 0);
        transform: skew(0.98deg);
    }

    60% {
        clip: rect(64px, 9999px, 34px, 0);
        transform: skew(0.79deg);
    }

    65% {
        clip: rect(41px, 9999px, 39px, 0);
        transform: skew(0.63deg);
    }

    70% {
        clip: rect(4px, 9999px, 86px, 0);
        transform: skew(0.52deg);
    }

    75% {
        clip: rect(38px, 9999px, 5px, 0);
        transform: skew(0.91deg);
    }

    80% {
        clip: rect(89px, 9999px, 66px, 0);
        transform: skew(0.12deg);
    }

    85% {
        clip: rect(33px, 9999px, 57px, 0);
        transform: skew(0.48deg);
    }

    90% {
        clip: rect(6px, 9999px, 90px, 0);
        transform: skew(0.05deg);
    }

    95% {
        clip: rect(2px, 9999px, 15px, 0);
        transform: skew(0.59deg);
    }

    100% {
        clip: rect(51px, 9999px, 61px, 0);
        transform: skew(0.31deg);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(21px, 9999px, 58px, 0);
        transform: skew(0.33deg);
    }

    5% {
        clip: rect(95px, 9999px, 76px, 0);
        transform: skew(0.81deg);
    }

    10% {
        clip: rect(10px, 9999px, 20px, 0);
        transform: skew(0.89deg);
    }

    15% {
        clip: rect(44px, 9999px, 95px, 0);
        transform: skew(0.19deg);
    }

    20% {
        clip: rect(60px, 9999px, 39px, 0);
        transform: skew(0.03deg);
    }

    25% {
        clip: rect(56px, 9999px, 6px, 0);
        transform: skew(0.78deg);
    }

    30% {
        clip: rect(37px, 9999px, 25px, 0);
        transform: skew(0.74deg);
    }

    35% {
        clip: rect(11px, 9999px, 38px, 0);
        transform: skew(0.24deg);
    }

    40% {
        clip: rect(96px, 9999px, 94px, 0);
        transform: skew(0.46deg);
    }

    45% {
        clip: rect(52px, 9999px, 55px, 0);
        transform: skew(0.85deg);
    }

    50% {
        clip: rect(79px, 9999px, 7px, 0);
        transform: skew(0.64deg);
    }

    55% {
        clip: rect(17px, 9999px, 85px, 0);
        transform: skew(0.21deg);
    }

    60% {
        clip: rect(48px, 9999px, 59px, 0);
        transform: skew(0.23deg);
    }

    65% {
        clip: rect(99px, 9999px, 88px, 0);
        transform: skew(0.97deg);
    }

    70% {
        clip: rect(81px, 9999px, 49px, 0);
        transform: skew(0.32deg);
    }

    75% {
        clip: rect(58px, 9999px, 23px, 0);
        transform: skew(0.55deg);
    }

    80% {
        clip: rect(31px, 9999px, 45px, 0);
        transform: skew(0.43deg);
    }

    85% {
        clip: rect(20px, 9999px, 8px, 0);
        transform: skew(0.09deg);
    }

    90% {
        clip: rect(12px, 9999px, 69px, 0);
        transform: skew(0.38deg);
    }

    95% {
        clip: rect(67px, 9999px, 98px, 0);
        transform: skew(0.71deg);
    }

    100% {
        clip: rect(30px, 9999px, 14px, 0);
        transform: skew(0.47deg);
    }
}

/* --- BUTTONS --- */
.btn {
    background: #000;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--primary-dim);
    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: 0.5s;
}

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

.btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 25px var(--primary), 0 0 50px var(--primary-dim);
    transform: scale(1.02);
}

/* --- AUTH CARDS --- */
#auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.auth-card {
    background: var(--panel-bg);
    border: 1px solid var(--primary);
    padding: 3rem;
    width: 500px;
    max-width: 90vw;
    box-shadow: 0 0 30px var(--primary-dim);
    text-align: center;
}

.logo-area i {
    color: var(--primary);
    margin-bottom: 15px;
    text-shadow: 0 0 15px var(--primary);
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group i {
    position: absolute;
    left: 10px;
    top: 12px;
    color: var(--primary);
}

.input-group input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    font-family: var(--font-mono);
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-dim);
}

.auth-footer {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #888;
}

.link {
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    margin-left: 5px;
}

/* --- MAIN INTERFACE --- */
#main-interface {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.top-bar {
    height: 60px;
    background: #000;
    border-bottom: 1px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: #fff;
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.version {
    background: var(--primary);
    color: #000;
    padding: 2px 5px;
    font-size: 0.7rem;
    font-weight: bold;
}

.user-status {
    display: flex;
    gap: 20px;
    align-items: center;
    font-family: var(--font-mono);
    color: var(--primary);
}

.points-highlight {
    border: 1px solid var(--primary);
    padding: 5px 10px;
    border-radius: 4px;
}

.btn-micro {
    background: transparent;
    border: 1px solid #ff003c;
    color: #ff003c;
    cursor: pointer;
    padding: 5px 10px;
    transition: 0.3s;
}

.btn-micro:hover {
    background: #ff003c;
    color: #fff;
}

.main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* --- SIDE NAV --- */
.side-nav {
    width: 80px;
    transition: width 0.3s ease;
    background: rgba(0, 0, 0, 0.95);
    border-right: 1px solid var(--primary-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    gap: 15px;
    z-index: 50;
    overflow: hidden;
}

.side-nav:hover {
    width: 220px;
    align-items: flex-start;
    padding-left: 15px;
}

.nav-btn {
    width: 100%;
    height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding-left: 15px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
    white-space: nowrap;
}

.nav-btn i {
    font-size: 1.5rem;
    margin-right: 15px;
    margin-bottom: 0;
    width: 30px;
    text-align: center;
}

.nav-btn span {
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
    font-family: var(--font-heading);
}

.side-nav:hover .nav-btn span {
    opacity: 1;
}

.nav-btn:hover,
.nav-btn.active {
    color: var(--primary);
    background: linear-gradient(90deg, rgba(188, 19, 254, 0.2), transparent);
    border-left: 3px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-dim);
    padding-left: 20px;
}

/* --- CONTENT --- */
.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.section-title {
    font-family: var(--font-heading);
    color: #fff;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    animation: slideInDown 0.5s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.hero-banner {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--primary);
    padding: 20px;
    margin-bottom: 30px;
}

.hero-banner h3 {
    color: var(--primary);
    margin-top: 0;
}

/* --- MISSION GRID --- */
.missions-grid {
    display: grid;
    gap: 20px;
}

.mission-card {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 25px var(--primary-dim);
    transform: scale(1.02);
}

.missions-grid,
.items-grid {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.mission-icon {
    font-size: 2rem;
    color: var(--primary);
    width: 60px;
    text-align: center;
}

.mission-info {
    flex: 1;
    padding: 0 20px;
}

.mission-info h4 {
    margin: 0 0 5px 0;
    color: #fff;
}

.mission-info p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

.btn-action {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: 0.3s;
}

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

/* --- SHOP GRID (CLAIM) --- */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* --- GLASSMORPHISM --- */
.glass {
    background: rgba(20, 5, 25, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.item-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-dim);
    transform: scale(1.02);
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: 0.4s;
}

.item-card:hover::before {
    transform: scaleX(1);
}

.item-image {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: 0.4s;
}

.item-card:hover .item-image {
    transform: scale(1.1);
    text-shadow: 0 0 15px var(--primary);
}

.btn-buy {
    background: var(--primary);
    border: none;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-buy:hover {
    background: #fff;
    box-shadow: 0 0 15px #fff;
}

/* --- LISTS --- */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border-left: 2px solid #333;
    padding: 15px;
    transition: 0.3s;
}

.list-item:hover {
    border-left-color: var(--primary);
    background: rgba(188, 19, 254, 0.1);
    padding-left: 20px;
}

/* --- MODALS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-card {
    background: #000;
    border: 1px solid var(--primary);
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 30px var(--primary-dim);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-modal {
    flex: 1;
    padding: 10px;
    background: var(--primary);
    border: none;
    cursor: pointer;
    font-weight: bold;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 6px;
    background: #05000a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* --- EXTRAS: CURSOR & CONSENT --- */
.typing-cursor::after {
    content: '_';
    animation: blink 0.8s steps(2, start) infinite;
    color: var(--primary);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.consent-card {
    background: var(--panel-bg);
    border: 1px solid var(--primary);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 50px var(--primary-dim);
}

.consent-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.consent-title {
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.consent-text {
    text-align: left;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border: 1px solid #333;
    margin-bottom: 20px;
}

.consent-actions {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.btn-consent-accept,
.btn-consent-deny {
    padding: 10px 20px;
    border: 1px solid;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
    transition: 0.3s;
}

.btn-consent-accept {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.btn-consent-accept:hover {
    box-shadow: 0 0 15px var(--primary);
}

.btn-consent-deny {
    background: transparent;
    color: #888;
    border-color: #333;
}

.btn-consent-deny:hover {
    color: #fff;
    border-color: #fff;
}

/* --- FOOTER LEGAL --- */
.legal-footer {
    position: fixed;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #666;
    z-index: 50;
    pointer-events: none;
}

.legal-footer span,
.legal-footer a {
    pointer-events: auto;
}

.legal-footer a {
    color: #888;
    text-decoration: none;
    margin: 0 10px;
    transition: 0.3s;
}

.legal-footer a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
}

.separator {
    color: #444;
}

/* --- RESPONSIVE MOBILE PATCH v2 --- */
@media (max-width: 768px) {
    body {
        height: auto;
        /* Permitir scroll en móvil */
        overflow-y: auto;
    }

    .main-layout {
        flex-direction: column;
        height: auto;
    }

    /* Navegación abajo fija */
    .side-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        flex-direction: row;
        justify-content: space-around;
        background: #000;
        border-top: 1px solid var(--primary);
        z-index: 999;
        padding: 0;
    }

    .nav-btn {
        flex-direction: column;
        justify-content: center;
        padding: 0;
        border: none;
        height: 100%;
    }

    .nav-btn i {
        margin: 0 0 5px 0;
        font-size: 1.2rem;
    }

    .nav-btn span {
        display: block;
        font-size: 0.6rem;
        opacity: 1;
    }

    /* Área de contenido */
    .content-area {
        padding: 1rem;
        padding-bottom: 80px;
        /* Espacio para el menú */
        height: auto;
        overflow: visible;
    }

    /* Auth Cards Responsive */
    .auth-card {
        width: 90%;
        padding: 1.5rem;
        margin-top: 20px;
    }

    /* Textos */
    .hero-banner p,
    .mission-info p {
        text-align: left;
    }

    .status-item {
        font-size: 0.8rem;
    }
}

/* --- BLOQUES DE SCROLL HOME --- */
.scroll-block {
    min-height: 85vh;
    /* Ocupa casi toda la altura de la pantalla */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Separador sutil */
    opacity: 0;
    animation: fadeInScroll 1s forwards;
    /* Animación de aparición */
}

/* Animación simple para que aparezcan suaves */
@keyframes fadeInScroll {
    to {
        opacity: 1;
    }
}

/* Flecha animada */
.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Ajustes para el chat */
#support-chat-body::-webkit-scrollbar {
    width: 5px;
}

#support-chat-body::-webkit-scrollbar-thumb {
    background: #333;
}

/* --- ESTILOS HOME PAGE VERTICAL (5 BLOQUES) --- */

@media (max-width: 768px) {
    .home-section {
        min-height: auto;
        /* Allow content to dictate height on mobile */
        padding: 40px 15px;
    }

    .glass-panel-large {
        padding: 30px 20px;
        /* Reduce padding significantly */
    }
}

.home-section {
    min-height: 100vh;
    /* Occupy full screen */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

/* Fondo sutil alterno para distinguir secciones */
.home-section:nth-child(even) {
    background: rgba(188, 19, 254, 0.02);
}

.glass-panel-large {
    background: rgba(10, 5, 15, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--primary);
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(188, 19, 254, 0.1);
}

.container-width {
    width: 100%;
    max-width: 1200px;
}

.scroll-hint {
    margin-top: 40px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.dot-online {
    width: 8px;
    height: 8px;
    background: #0f0;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px #0f0;
    margin-right: 5px;
}

/* --- BADGES & REWARDS --- */
.badget-reward {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid var(--primary);
    /* Default to primary */
    color: var(--primary);
    /* Default to primary */
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: bold;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px inset;
}

/* --- SETTINGS MODAL SPECIFIC --- */
#settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.settings-card {
    background: var(--panel-bg);
    border: 1px solid var(--primary);
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 0 30px var(--primary-dim);
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: #ff003c;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- ANIMATIONS & DYNAMICS --- */

/* Slide In Up Animation */
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    animation: slideInUp 0.8s ease-out forwards;
}

/* Floating Card Effect on Hover */
.item-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.item-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 20px rgba(188, 19, 254, 0.3), 0 0 15px var(--primary);
    border-color: var(--primary);
}

/* Call to Action Pulse */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(188, 19, 254, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(188, 19, 254, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(188, 19, 254, 0);
    }
}

.scroll-hint span {
    animation: pulseGlow 2s infinite;
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
}

/* Staggered Animations for Grid Items */
.items-grid .item-card:nth-child(1) {
    animation: slideInUp 0.6s ease-out forwards 0.2s;
    opacity: 0;
}

.items-grid .item-card:nth-child(2) {
    animation: slideInUp 0.6s ease-out forwards 0.4s;
    opacity: 0;
}

.items-grid .item-card:nth-child(3) {
    animation: slideInUp 0.6s ease-out forwards 0.6s;
    opacity: 0;
}

.items-grid .item-card:nth-child(4) {
    animation: slideInUp 0.6s ease-out forwards 0.8s;
    opacity: 0;
}