/* ===== VALORANT UI THEME ===== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Jura:wght@600;700&display=swap');

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

:root {
    --val-red: #FF4655;
    --val-dark: #0F1923;
    --val-white: #ECE8E1;
    --val-grey: #8B978F;
    --val-accent: #111111;
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Jura', sans-serif;
}

body {
    background-color: var(--val-accent);
    background-image: radial-gradient(circle at top right, rgba(255, 70, 85, 0.15) 0%, transparent 40%),
                      radial-gradient(circle at bottom left, rgba(15, 25, 35, 0.4) 0%, var(--val-accent) 60%);
    color: var(--val-white);
    font-family: var(--font-body);
    font-weight: 600;
    min-height: 100vh;
    overflow-x: hidden;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

/* Background Texture */
.bg-layer {
    position: fixed; top: 0; left: 0; width: 110vw; height: 110vh; z-index: -2;
    background: url('https://images.unsplash.com/photo-1622281549424-fd9aefa1a554?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    filter: blur(5px) brightness(0.2);
    transform: translate(-5%, -5%);
    animation: panBg 30s ease-in-out infinite alternate;
}

@keyframes panBg {
    0% { transform: translate(-5%, -5%) scale(1); }
    100% { transform: translate(0, 0) scale(1.1); }
}

.bg-texture {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: radial-gradient(var(--val-grey) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.05; z-index: -1;
}

.val-logo-bg {
    position: fixed; top: -10vw; right: -10vw;
    font-family: var(--font-head);
    font-size: 40vw;
    color: var(--val-red);
    opacity: 0.03; z-index: -1;
    line-height: 0.8;
}

/* ===== NAVIGATION ===== */
.val-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 4vw;
    background: rgba(15, 25, 35, 0.85);
    border-bottom: 2px solid var(--val-red);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-left { display: flex; align-items: center; gap: 3vw; }

.val-brand {
    display: flex; align-items: center; gap: 10px;
}

.val-brand img { height: 35px; }
.val-brand h1 { font-family: var(--font-head); font-size: 1.8rem; letter-spacing: 2px; text-transform: uppercase; margin:0; }

.nav-links { display: flex; gap: 2vw; }
.nav-link {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--val-grey);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    padding-bottom: 5px;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-link:hover { color: var(--val-white); }
.nav-link.active {
    color: var(--val-red);
    border-bottom: 3px solid var(--val-red);
}

.nav-right { display: flex; align-items: center; gap: 15px; }

/* VP Display */
.vp-balance {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255, 70, 85, 0.1);
    border: 1px solid rgba(255, 70, 85, 0.3);
    padding: 6px 15px;
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--val-red);
    transform: skewX(-10deg);
}

.vp-balance span { transform: skewX(10deg); }
.vp-balance img { height: 18px; transform: skewX(10deg); }

.online-status {
    font-size: 0.8rem;
    color: #00ff7f;
    display: flex; align-items: center; gap: 5px;
}
.dot { width: 6px; height: 6px; background: #00ff7f; border-radius: 50%; box-shadow: 0 0 5px #00ff7f; animation: pulse 2s infinite; }

/* ===== MAIN STORE CONTAINER ===== */
.store-container {
    max-width: 1100px; margin: 30px auto; padding: 0 20px 80px;
}

/* Auth Header */
.auth-header {
    background: var(--val-dark);
    border-left: 5px solid var(--val-red);
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex; flex-direction: column; gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative; overflow: hidden;
}

.auth-header::after {
    content: ''; position: absolute; right: 0; top: 0; width: 30%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(236, 232, 225, 0.03));
    transform: skewX(-20deg);
}

.auth-title {
    font-family: var(--font-head); font-size: 2.2rem;
    color: var(--val-white); text-transform: uppercase; letter-spacing: 1px;
}
.auth-sub { font-size: 0.9rem; color: var(--val-grey); }

/* Riot ID Input */
.riot-input-group {
    display: flex; gap: 15px; margin-top: 10px; position: relative; z-index: 2;
}

.riot-input {
    flex-grow: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--val-grey);
    padding: 15px 20px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--val-white);
    outline: none;
    transition: 0.2s;
    text-transform: uppercase;
}
.riot-input:focus {
    border-color: var(--val-red);
    background: rgba(255,70,85,0.05);
    box-shadow: 0 0 15px rgba(255,70,85,0.1);
}
.riot-input::placeholder { color: rgba(139, 151, 143, 0.5); }

/* FEATURED BUNDLE */
.featured-bundle {
    position: relative;
    width: 100%; height: 300px;
    background: #000;
    margin-bottom: 30px;
    border: 1px solid var(--val-dark);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    cursor: pointer;
}

.featured-bundle img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.8; transition: transform 0.8s ease, opacity 0.3s;
}

.featured-bundle:hover img {
    transform: scale(1.05); opacity: 1;
}

.featured-info {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 40px 30px 20px;
    background: linear-gradient(0deg, rgba(15,25,35,0.9) 0%, transparent 100%);
    display: flex; justify-content: space-between; align-items: flex-end;
}

.fb-title {
    font-family: var(--font-head); font-size: 2.8rem;
    color: var(--val-white); text-transform: uppercase; line-height: 1;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

.fb-sub { color: var(--val-red); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 5px; }

/* VP PACKAGES GRID */
.store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.vp-card {
    background: var(--val-dark);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; position: relative; transition: all 0.2s; overflow: hidden;
}

.vp-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
    background: transparent; transition: 0.2s;
}

.vp-card:hover { transform: translateY(-3px); background: #15222E; border-color: rgba(255,70,85,0.4); }
.vp-card:hover::after, .vp-card.selected::after { background: var(--val-red); }
.vp-card.selected { border-color: var(--val-red); box-shadow: inset 0 0 20px rgba(255,70,85,0.1); }

.vp-icon-wrap { height: 80px; margin-bottom: 15px; }
.vp-icon-wrap img { height: 100%; filter: drop-shadow(0 5px 15px rgba(255, 70, 85, 0.4)); transition: 0.3s; }
.vp-card:hover .vp-icon-wrap img { transform: scale(1.1); }

.vp-amount { font-family: var(--font-head); font-size: 2.2rem; color: var(--val-white); line-height: 1; }
.vp-bonus { font-size: 0.8rem; color: var(--val-red); margin-top: 5px; font-weight: 700; }

.vp-price {
    margin-top: 15px; padding: 4px 15px; background: rgba(255,255,255,0.05); font-family: var(--font-head); font-size: 1.1rem;
}

.vp-card.popular .vp-price { background: var(--val-red); color: #fff; }

/* INJECTION MODAL (Vanguard Emulator) */
.inject-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center; z-index: 999;
}

.inject-modal {
    background: var(--val-dark);
    width: 600px; max-width: 90%;
    border: 1px solid var(--val-red);
    position: relative;
    box-shadow: 0 0 50px rgba(255, 70, 85, 0.2);
    display: flex; flex-direction: column;
}

/* Modals Corners Detail */
.inject-modal::before, .inject-modal::after {
    content: ''; position: absolute; width: 15px; height: 15px; border-color: var(--val-red); border-style: solid;
}
.inject-modal::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.inject-modal::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.modal-head {
    background: var(--val-red); padding: 10px 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-head h3 { font-family: var(--font-head); font-size: 1.4rem; color: #fff; text-transform: uppercase; letter-spacing: 2px; margin:0; line-height: 1;}
.vanguard-txt { font-size: 0.7rem; color: rgba(255,255,255,0.8); }

.modal-body { padding: 30px; }

.inj-target {
    display: flex; justify-content: space-between;
    padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.inj-target div span { display: block; font-size: 0.75rem; color: var(--val-grey); text-transform: uppercase; }
.inj-target div strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--val-white); letter-spacing: 1px; }
.inj-target div strong.red { color: var(--val-red); }

/* Progress Bar */
.prog-container { margin-bottom: 30px; }
.prog-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); position: relative; overflow: hidden; }
.prog-fill { height: 100%; width: 0%; background: var(--val-red); transition: width 0.2s linear; box-shadow: 0 0 10px var(--val-red); }
.prog-status { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.8rem; color: var(--val-grey); text-transform: uppercase; }

/* Terminal Log */
.term-log {
    background: #090e14; border: 1px solid rgba(255,255,255,0.05); padding: 15px;
    height: 140px; overflow-y: auto; font-family: 'Courier New', Courier, monospace; font-size: 0.8rem; line-height: 1.6;
}
.t-sys { color: #8B978F; } .t-act { color: #ECE8E1; } .t-warn { color: #ffd700; } .t-err { color: var(--val-red); }

/* CPA Alert Detail inside Modal */
.cpa-alert {
    background: rgba(255, 70, 85, 0.1); border: 1px dashed var(--val-red); padding: 20px; margin-top: 20px; text-align: center; display: none;
}
.cpa-alert h4 { color: var(--val-red); font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 5px; text-transform: uppercase; }
.cpa-alert p { font-size: 0.85rem; color: var(--val-grey); margin-bottom: 15px; }

/* Valorant Button */
.btn-valo {
    background: var(--val-white); color: var(--val-dark); font-family: var(--font-head); font-size: 1.3rem;
    padding: 12px 30px; border: none; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: 0.2s;
    position: relative; overflow: hidden;
}

.btn-valo::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: rgba(0,0,0,0.1); transform: skewX(-20deg); transition: 0.3s;
}
.btn-valo:hover { background: #fff; }
.btn-valo:hover::before { left: 150%; }

.btn-valo.red { background: var(--val-red); color: #fff; }
.btn-valo.red:hover { background: #ff5e6b; box-shadow: 0 0 15px rgba(255,70,85,0.4); }
.btn-valo.red::before { background: rgba(255,255,255,0.2); }

/* LIVE FEED TICKER */
.live-ticker {
    position: fixed; bottom: 0; left: 0; width: 100%; background: var(--val-dark);
    border-top: 1px solid rgba(255,255,255,0.05); padding: 8px 0; overflow: hidden; white-space: nowrap; z-index: 100;
}
.ticker-content {
    display: inline-block; animation: ticker 25s linear infinite; font-size: 0.75rem; color: var(--val-grey); text-transform: uppercase; letter-spacing: 1px;
}
.tick-item { margin-right: 40px; }
.tick-item strong { color: var(--val-white); }
.tick-item .red { color: var(--val-red); }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

/* ALERTS/ERRORS */
.shake-err { animation: shakeErr 0.4s ease; border-color: var(--val-red) !important; background: rgba(255,70,85,0.1) !important; }
@keyframes shakeErr { 0%,100%{transform:translateX(0);} 25%{transform:translateX(-8px);} 75%{transform:translateX(8px);} }

/* RESPONSIVE */
@media (max-width: 900px) {
    .store-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 600px) {
    .val-nav { padding: 15px; }
    .nav-links { display: none; }
    .val-brand h1 { font-size: 1.4rem; }
    .vp-balance { font-size: 1rem; padding: 4px 10px; }
    
    .auth-header { padding: 15px; border-left-width: 3px; }
    .auth-title { font-size: 1.6rem; }
    .riot-input-group { flex-direction: column; gap: 10px; }
    .btn-valo { width: 100%; padding: 14px; font-size: 1.2rem; }
    
    .featured-bundle { height: 180px; }
    .fb-title { font-size: 1.8rem; }
    .fb-sub { font-size: 0.7rem; }
    
    .store-grid { grid-template-columns: repeat(2, 1fr); }
    .vp-card { padding: 15px 10px; }
    .vp-icon-wrap { height: 50px; }
    .vp-amount { font-size: 1.4rem; }
    .vp-bonus { font-size: 0.65rem; }
    .vp-price { font-size: 0.9rem; margin-top: 10px; }
    
    .inject-modal { width: 95%; }
    .modal-body { padding: 20px; }
    .term-log { height: 120px; font-size: 0.7rem; }
    .inj-target div strong { font-size: 1.2rem; }
    .cpa-alert h4 { font-size: 1.2rem; }
}
