:root {
    --bg: #05070a;
    --accent: #00f2ff;
    --accent-dim: rgba(0, 242, 255, 0.1);
    --text: #e6edf3;
    --text-muted: #8b949e;
    --panel: #0d1117;
    --border: #30363d;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== HEADER - MOBILE ========== */
/* ========== HEADER & NAVBAR ========== */
header {
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: all 0.4s ease;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-links a i {
    color: var(--accent);
    font-size: 1rem;
    opacity: 0.8;
}

.nav-links a:not(.btn-studio):hover {
    color: var(--accent);
    background: var(--accent-dim);
}

.btn-studio {
    background: var(--accent);
    color: #000 !important;
    font-family: 'Orbitron';
    font-weight: 900;
    font-size: 0.8rem !important;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
    text-transform: uppercase;
}

.btn-studio i {
    color: #000 !important;
}

.btn-studio:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.5);
    filter: brightness(1.1);
}

.btn-logout {
    color: #f85149 !important;
    border: 1px solid rgba(248, 81, 73, 0.2);
}

.btn-logout i {
    color: #f85149 !important;
}

.btn-logout:hover {
    background: rgba(248, 81, 73, 0.1) !important;
    border-color: #f85149;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1002;
    padding: 2px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.4);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    header {
        padding: 15px 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, #0d1117 0%, #05070a 100%);
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        padding: 40px;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        font-size: 1.2rem;
        padding: 15px 25px;
        justify-content: flex-start;
        border: 1px solid transparent;
    }

    .nav-links a:hover {
        transform: translateX(10px);
    }

    .btn-studio {
        margin-top: 20px;
        justify-content: center !important;
    }
}

/* ========== HERO - MOBILE ========== */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: radial-gradient(ellipse at 50% 30%, var(--accent-dim) 0%, transparent 60%);
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.15;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 320px;
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 280px;
}

.btn {
    padding: 16px 24px;
    border-radius: 10px;
    font-family: 'Orbitron';
    font-weight: 900;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========== FEATURES - MOBILE ========== */
.features {
    padding: var(--spacing-xl) var(--spacing-md);
}

.features-title {
    font-family: 'Orbitron';
    color: var(--accent);
    margin-bottom: var(--spacing-md);
    text-align: center;
    font-size: 1.4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    max-width: 380px;
    margin: 0 auto;
}

.feature-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--spacing-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
}

.feature-card h3 {
    font-family: 'Orbitron';
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.4;
    font-size: 0.85rem;
}

/* ========== SERVICES - MOBILE ========== */
.services-intro {
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
    max-width: 400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.service-card {
    background: var(--panel);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 242, 255, 0.15);
}

.service-icon {
    font-size: 2.8rem;
    margin-bottom: var(--spacing-sm);
}

.service-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

.service-tag {
    display: inline-block;
    background: rgba(0, 242, 255, 0.15);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-tag-stream {
    background: rgba(255, 165, 0, 0.2);
    color: orange;
}

/* ========== PRICING - MOBILE ========== */
.pricing {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--panel);
}

.pricing h2 {
    font-family: 'Orbitron';
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 380px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--spacing-md);
    text-align: center;
    position: relative;
}

.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.15);
}

.price-card h3 {
    font-family: 'Orbitron';
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.price {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    margin: var(--spacing-md) 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
}

.price span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: lowercase;
}

.price sup {
    font-size: 1rem;
    top: -0.4em;
    color: var(--text-muted);
    font-weight: 300;
}

.price-features {
    list-style: none;
    margin: var(--spacing-md) 0;
    text-align: left;
}

.price-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price-features li::before {
    content: "✓";
    color: var(--accent);
    margin-right: 8px;
}

/* ========== FOOTER - MOBILE ========== */
footer {
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--accent);
}



/* ========== DESKTOP OVERRIDES (min-width: 768px) ========== */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    :root {
        --spacing-md: 24px;
        --spacing-lg: 50px;
        --spacing-xl: 80px;
    }

    body {
        padding: 0;
    }

    header {
        padding: 15px 80px;
    }

    .logo {
        font-size: 1.8rem;
    }

    .hamburger {
        display: none !important;
    }

    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent !important;
        border: none;
        padding: 0;
        gap: 10px;
        box-shadow: none;
        transition: none;
    }

    .nav-links a {
        padding: 8px 15px;
        font-size: 1rem;
        margin-bottom: 0;
    }

    .nav-links a:hover {
        transform: translateY(-2px);
    }

    .nav-links a.btn-studio {
        margin-top: 0;
        margin-left: 15px;
        padding: 8px 20px;
    }

    .menu-overlay {
        display: none !important;
    }

    .hero {
        min-height: 80vh;
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .hero h1 {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1.3rem;
        max-width: 600px;
        margin-bottom: 40px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: row;
        width: auto;
        max-width: none;
        gap: 20px;
    }

    .btn {
        padding: 18px 40px;
        font-size: 1rem;
    }

    .features {
        padding: 80px 50px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        max-width: 1200px;
        gap: 30px;
    }

    .feature-card {
        padding: 30px;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 1rem;
    }

    .features-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        max-width: 1200px;
    }

    .feature-card {
        padding: 30px;
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-sm);
    }

    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .feature-card p {
        font-size: 1rem;
    }

    .services-intro {
        padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-md);
        max-width: 1100px;
        margin: 0 auto;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .service-card {
        padding: 40px;
        max-width: none;
    }

    .service-icon {
        font-size: 4rem;
    }

    .service-card h2 {
        font-size: 1.6rem;
    }

    .service-card p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .service-tag {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .pricing {
        padding: 80px 50px;
        max-width: none;
    }

    .pricing h2 {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }

    .pricing-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        max-width: 1200px;
        margin: 0 auto;
        gap: 20px;
    }

    .price-card {
        padding: 40px;
    }

    .price-card h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .price {
        font-size: 2.8rem;
        margin: 25px 0;
    }

    .price span {
        font-size: 1rem;
    }

    .price sup {
        font-size: 1.2rem;
    }

    .price-features li {
        padding: 10px 0;
        font-size: 1rem;
    }

    footer {
        padding: var(--spacing-lg);
        font-size: 1rem;
    }


}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }

    .hero p {
        font-size: 1.4rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1100px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
}

/* ========== MODAL ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Better for tall content */
    overflow-y: auto;
    padding: 40px 15px;
    z-index: 2000; /* Above everything */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--panel);
    padding: var(--spacing-md);
    border-radius: 20px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    margin: auto; /* Centering with flex-start */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.3s;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: var(--accent);
}

.modal h2 {
    font-family: 'Orbitron';
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
}

.modal input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: var(--spacing-sm);
    font-family: 'Rajdhani';
    font-size: 1rem;
    transition: border-color 0.3s;
}

.modal input:focus {
    outline: none;
    border-color: var(--accent);
}

.modal .btn-full {
    width: 100%;
    margin-bottom: var(--spacing-sm);
    display: block;
}

#wallet_container {
    margin-top: var(--spacing-sm);
    min-height: 50px;
}

.auth-toggle {
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-toggle span {
    color: var(--accent);
    cursor: pointer;
    font-weight: 700;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 242, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-links.active a {
    animation: fadeInSlide 0.4s ease forwards;
    opacity: 0;
}

.nav-links.active a:nth-child(1) { animation-delay: 0.1s; }
.nav-links.active a:nth-child(2) { animation-delay: 0.2s; }
.nav-links.active a:nth-child(3) { animation-delay: 0.3s; }
.nav-links.active a:nth-child(4) { animation-delay: 0.4s; }
.nav-links.active a:nth-child(5) { animation-delay: 0.5s; }
.nav-links.active a:nth-child(6) { animation-delay: 0.6s; }