:root {
    --bg-color: #050510;
    --text-color: #ffffff;
    --neon-purple: #7d2ae8;
    --neon-cyan: #00f3ff;
    --aggressive-red: #ff003c;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Press Start 2P', cursive;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Canvas Rain Overlay */
#rain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    opacity: 0.6;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    z-index: 100;
    background: linear-gradient(180deg, rgba(5, 5, 16, 0.9) 0%, rgba(5, 5, 16, 0) 100%);
    backdrop-filter: blur(5px);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-purple);
}

.accent-text {
    color: var(--neon-cyan);
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) brightness(0.6);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(5, 5, 16, 0.6) 0%, rgba(5, 5, 16, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 20;
    display: flex;
    /* Side-by-side on desktop */
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    gap: 4rem;
    padding: 2rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.center-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(125, 42, 232, 0.3);
    border: 2px solid var(--neon-purple);
}

.hero-text {
    flex: 1;
    text-align: left;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 4px 4px 0px var(--aggressive-red);
}

.subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2.5rem;
    border-left: 3px solid var(--neon-cyan);
    padding-left: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.cta-button:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
}

/* Shop Section */
.shop-section {
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 20;
    background: linear-gradient(180deg, var(--bg-color) 0%, #0a0a1a 100%);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--aggressive-red);
    margin-bottom: 3rem;
    text-shadow: 0 0 15px rgba(255, 0, 60, 0.5);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-purple);
    box-shadow: 0 10px 30px rgba(125, 42, 232, 0.2);
}

.product-image {
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.bonus-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--aggressive-red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-heading);
    box-shadow: 0 0 10px var(--aggressive-red);
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px var(--aggressive-red);
    }

    to {
        box-shadow: 0 0 15px var(--aggressive-red);
    }
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.placeholder-img {
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-heading);
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--neon-cyan);
}

.summary-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--neon-cyan);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.summary-box p {
    margin: 0.5rem 0;
    color: #ccc;
    font-size: 0.9rem;
}

.highlight {
    color: #fff;
    font-weight: bold;
    float: right;
    font-family: var(--font-heading);
    color: var(--neon-cyan);
}

.description {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1.5rem;
}

.price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.price {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.1rem;
}

.buy-btn {
    background: var(--neon-purple);
    border: none;
    padding: 0.5rem 1.5rem;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(125, 42, 232, 0.4);
}

.buy-btn:hover:not(:disabled) {
    background: #9d4eff;
    box-shadow: 0 0 20px rgba(125, 42, 232, 0.8);
}

.buy-btn:disabled {
    background: #333;
    cursor: not-allowed;
    box-shadow: none;
    color: #666;
}

/* Footer */
#footer {
    background: #000;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #555;
}

.aggressive-slogan {
    font-size: 0.8rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.footer-contacts {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-badge {
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.discord-badge {
    background: #5865F2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.email-badge {
    background: #D44638;
    box-shadow: 0 0 15px rgba(212, 70, 56, 0.4);
}

.telegram-badge {
    background: #0088cc;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.4);
}

.contact-badge:hover {
    transform: translateY(-3px);
    border-color: #fff;
    filter: brightness(1.2);
}

.contact-badge .icon {
    font-size: 1.1rem;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.glitch-text:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--neon-purple);
    text-shadow: 2px 2px var(--aggressive-red), -2px -2px var(--neon-cyan);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        border-left: none;
        padding-left: 0;
        border-bottom: 3px solid var(--neon-cyan);
        padding-bottom: 1rem;
    }

    .center-img {
        max-width: 80%;
    }
}

/* Modals */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(10, 10, 20, 0.95);
    margin: auto;
    padding: 2rem;
    border: 1px solid var(--neon-purple);
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(125, 42, 232, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--aggressive-red);
    text-shadow: 0 0 10px var(--aggressive-red);
}

.modal h2 {
    font-family: var(--font-heading);
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pay-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 1rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: 0.3s;
}

.pay-btn:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.modal-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #888;
}

.rules-list {
    text-align: left;
    list-style: none;
    line-height: 2;
    color: #ddd;
}

.small-btn {
    margin-top: 1.5rem;
    font-size: 0.7rem;
    padding: 0.8rem 1.5rem;
}

/* Scroll Spy Active State */
.nav-links a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
}

/* Rules */
.rules-container {
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    padding-right: 10px;
}

.rules-container::-webkit-scrollbar {
    width: 5px;
}

.rules-container::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 5px;
}

.rules-container h3 {
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.rules-list li {
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: #ddd;
    line-height: 1.4;
}

.rules-list li strong {
    color: #fff;
    margin-right: 5px;
}


/* Exchange Terminal - Cyberpunk Design */
.exchange-terminal {
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.9), rgba(20, 20, 40, 0.95));
    border: 2px solid var(--neon-cyan);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.15), inset 0 0 20px rgba(0, 243, 255, 0.05);
    padding: 3rem 2rem;
    max-width: 550px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

/* Scanline effect */
.exchange-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 243, 255, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
}

.terminal-screen {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
}

.input-group label,
.output-group label {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    display: block;
    text-shadow: 0 0 5px var(--neon-cyan);
}


.amount-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #444;
}

.control-btn {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    line-height: 0;
}

.control-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.control-btn:active {
    transform: scale(0.95);
}

#amount-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #555;
    color: #fff;
    font-size: 2.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    -moz-appearance: textfield;
    /* Remove default arrows */
}

#amount-input::-webkit-outer-spin-button,
#amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#amount-input:focus {
    outline: none;
    border-bottom-color: var(--neon-cyan);
    box-shadow: 0 10px 20px -10px rgba(0, 243, 255, 0.3);
}

.conversion-arrow {
    font-size: 2.5rem;
    color: #555;
    margin: 1.5rem 0;
    animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {

    0%,
    100% {
        color: #555;
        transform: scale(1);
    }

    50% {
        color: var(--neon-cyan);
        transform: scale(1.1);
    }
}

.result-display {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    padding: 1rem;
    color: var(--neon-green);
    font-family: 'Press Start 2P', cursive;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}


.bonus-tag {
    position: absolute;
    top: -20px;
    right: -10px;
    background: #10002b;
    /* Dark purple/obsidian bg */
    border: 2px solid #ffd700;
    /* Gold border */
    color: #ffd700;
    /* Gold text */
    font-family: 'Press Start 2P', cursive;
    /* Pixel font */
    font-size: 0.6rem;
    padding: 0.5rem 0.8rem;
    image-rendering: pixelated;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    /* Hard shadow */
    text-shadow: 2px 2px #000;
    display: none;
    /* Controlled by JS */
    z-index: 10;
    animation: floatItems 2s ease-in-out infinite;
    transform: rotate(0deg);
    /* Reset rotation */
}

@keyframes floatItems {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

#terminal-nick {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    padding: 1rem;
    color: white;
    width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#terminal-nick:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(125, 42, 232, 0.3);
    outline: none;
}

.terminal-controls .buy-btn {
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
    color: #fff;
    font-size: 1.2rem;
    padding: 1.2rem;
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 2px;
    position: relative;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.terminal-controls .buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(125, 42, 232, 0.6);
}

.bonus-info {
    text-align: center;
    color: #666;
    margin-top: 2rem;
    font-size: 0.8rem;
    border-top: 1px solid #333;
    padding-top: 1rem;
}