:root {
    --bg-dark: #07070a;
    --bg-light: #101015;
    --creeper-green: #39ff14;
    --creeper-green-glow: rgba(57, 255, 20, 0.25);
    --text-main: #ffffff;
    --text-muted: #9999aa;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

#bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    background-image: url('creeper_cave.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* 3D Tunnel Animation Wrapper */
#tunnel-wrapper {
    width: 100%;
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.5s ease;
    will-change: transform, opacity;
}

.tunnel-zoom-in {
    transform: scale(3);
    opacity: 0;
    pointer-events: none;
}

.tunnel-zoom-out-start {
    transition: none !important; /* Disable transition to snap to small size immediately */
    transform: scale(0.3);
    opacity: 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: transparent;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(7, 7, 10, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.logo-img {
    height: 35px;
    filter: drop-shadow(0 0 10px var(--creeper-green-glow));
}

.logo strong {
    color: var(--creeper-green);
    font-weight: 800;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--creeper-green);
    transition: var(--transition-smooth);
}

.nav-links a.active-link, .nav-links a:hover {
    color: var(--creeper-green);
}

.nav-links a.active-link::after, .nav-links a:hover::after {
    width: 100%;
    box-shadow: 0 0 10px var(--creeper-green);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.glitch-text {
    font-size: 5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-main);
    text-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
    position: relative;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    font-weight: 300;
}

/* IP Box Area */
.ip-container {
    position: relative;
    display: inline-block;
}

.ip-box {
    display: flex;
    align-items: center;
    background: rgba(10, 15, 10, 0.6);
    border: 1px solid rgba(57, 255, 20, 0.4);
    border-radius: 50px;
    padding: 6px 6px 6px 25px;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.1);
    backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
}

.ip-box:hover {
    box-shadow: 0 0 40px rgba(57, 255, 20, 0.3);
    transform: translateY(-2px);
    border-color: var(--creeper-green);
}

.ip-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-right: 20px;
    color: #fff;
    font-family: monospace;
}

.copy-btn {
    background: var(--creeper-green);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.copy-btn:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--creeper-green-glow);
}

.toast {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--creeper-green);
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.arrow {
    width: 15px;
    height: 15px;
    border-right: 2px solid var(--creeper-green);
    border-bottom: 2px solid var(--creeper-green);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* Main Sections */
.section {
    padding: 100px 20px;
    position: relative;
    background-color: rgba(7, 7, 10, 0.75);
    backdrop-filter: blur(5px);
}

.dark-section {
    background-color: rgba(16, 16, 21, 0.8);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 0 0 15px rgba(57,255,20,0.1);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--creeper-green);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.2rem;
}

/* Glass Cards with Antigravity Glow */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass-card, .store-card, .rule-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before, .store-card::before, .rule-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(57, 255, 20, 0.15), transparent 40%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.glass-card:hover::before, .store-card:hover::before, .rule-item:hover::before {
    opacity: 1;
}

.glass-card > *, .store-card > *, .rule-item > * {
    position: relative;
    z-index: 2;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(57, 255, 20, 0.4);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

/* Rules Section */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.rule-item {
    display: flex;
    align-items: center;
    text-align: left;
    border-left: 3px solid var(--creeper-green);
    border-radius: 0 15px 15px 0;
    padding: 25px;
}

.rule-item:hover {
    transform: translateX(10px);
    background: rgba(255,255,255,0.02);
}

.rule-number {
    font-size: 3rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(57, 255, 20, 0.6);
    margin-right: 30px;
}

.rule-content h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #fff;
}

/* Store Section */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.store-card.premium {
    background: linear-gradient(to bottom, #111a10, var(--bg-light));
    border-color: rgba(57, 255, 20, 0.4);
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(57, 255, 20, 0.1);
}

.store-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(57, 255, 20, 0.6);
}

.store-card.premium:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 50px rgba(57, 255, 20, 0.2);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--creeper-green);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
}

.store-card h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--creeper-green);
    margin-bottom: 30px;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features {
    list-style: none;
    margin-bottom: 40px;
}

.features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    color: #d0d0d0;
}

.features li:last-child {
    border-bottom: none;
}

.buy-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid var(--creeper-green);
    color: var(--creeper-green);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-fast);
}

.buy-btn:hover {
    background: var(--creeper-green);
    color: #000;
}

.premium .buy-btn {
    background: var(--creeper-green);
    color: #000;
}

.premium .buy-btn:hover {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* Footer */
footer {
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(8px);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 30px;
    opacity: 0.5;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* No Animations Override */
body.no-animations * {
    transition: none !important;
    animation: none !important;
}
body.no-animations .glass-card:hover,
body.no-animations .store-card:hover,
body.no-animations .rule-item:hover {
    transform: none !important;
}
body.no-animations .glass-card::before,
body.no-animations .store-card::before,
body.no-animations .rule-item::before {
    display: none !important;
}

/* =========================================
   RESPONSIVE - TABLET (768px)
========================================= */
@media (max-width: 768px) {
    /* Nav links - hidden on mobile */
    .nav-links {
        display: none;
    }

    /* Hero text smaller */
    .glitch-text { font-size: 2.8rem; letter-spacing: 1px; }
    .hero p { font-size: 1rem; margin-bottom: 25px; }

    /* IP box stacking */
    .ip-box {
        flex-direction: column;
        border-radius: 15px;
        padding: 15px;
        gap: 10px;
    }
    .ip-text { font-size: 0.95rem; margin-right: 0; }
    .copy-btn { width: 100%; justify-content: center; border-radius: 10px; }

    /* Section titles */
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; }
    .section { padding: 60px 15px; }

    /* Cards grid */
    .cards-grid { grid-template-columns: 1fr; gap: 20px; }
    .glass-card, .store-card { padding: 25px; }

    /* Store grid */
    .store-grid { grid-template-columns: 1fr; gap: 20px; }
    .store-card.premium { transform: scale(1); }
    .store-card.premium:hover { transform: translateY(-5px); }

    /* Rules */
    .rule-item { padding: 15px; }
    .rule-number { font-size: 2rem; margin-right: 15px; }
    .rule-content h4 { font-size: 1.1rem; }
    .rule-content p { font-size: 0.85rem; }

    /* Auth section */
    .auth-section { margin-left: 0; }
    .user-profile { margin-left: 0; }

    /* Scroll indicator */
    .scroll-indicator { bottom: 20px; }

    /* Footer */
    .logo { font-size: 1.2rem; }
    .logo-img { height: 28px; }
}

/* =========================================
   RESPONSIVE - SMALL PHONE (480px)
========================================= */
@media (max-width: 480px) {
    .glitch-text { font-size: 2.2rem; }
    .hero p { font-size: 0.9rem; }
    .ip-text { font-size: 0.85rem; }
    .section-title { font-size: 1.7rem; }
    .glass-card, .store-card { padding: 20px; border-radius: 15px; }
    .card-icon { font-size: 2.5rem; }
    .glass-card h3 { font-size: 1.2rem; }
    .price { font-size: 2rem; }
    .store-card h3 { font-size: 1.4rem; }
    .nav-content { padding: 0 15px; }
}

/* =========================================
   RESPONSIVE - MODAL FIX
========================================= */
@media (max-width: 768px) {
    .modal-content {
        margin: 15px;
        padding: 25px;
        max-width: calc(100vw - 30px) !important;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 15px;
    }
    .modal-title { font-size: 1.4rem; }
    .modal-desc { font-size: 0.85rem; margin-bottom: 20px; }
    .settings-content {
        max-width: calc(100vw - 30px) !important;
        max-height: 85vh;
        overflow-y: auto;
    }
}

/* Mobile Background Fix removed, handled by #bg-layer */

/* =========================================
   REDEEM CODE SECTION
========================================= */
.redeem-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}
.redeem-icon {
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}
.redeem-container .input-group {
    margin-bottom: 20px;
    text-align: left;
}
.redeem-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-muted);
}
.redeem-container input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: 0.3s ease;
}
.redeem-container input:focus {
    outline: none;
    border-color: var(--creeper-green);
    box-shadow: 0 0 10px rgba(57,255,20,0.2);
}
.redeem-container button {
    width: 100%;
    margin-top: 10px;
}
.redeem-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    display: none;
}
.redeem-message.success {
    display: block;
    background: rgba(57, 255, 20, 0.1);
    color: var(--creeper-green);
    border: 1px solid var(--creeper-green);
}
.redeem-message.error {
    display: block;
    background: rgba(255, 51, 102, 0.1);
    color: #ff3366;
    border: 1px solid #ff3366;
}

