:root {
    --bg-dark: #0a0e17;
    --bg-darker: #05070a;
    --bg-card: #131a28;
    --primary-neon: #00FF7F; /* Neon Green from logo */
    --primary-dim: rgba(0, 255, 127, 0.2);
    --text-main: #f0f4f8;
    --text-muted: #8b9bb4;
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-text {
    color: var(--primary-neon);
    text-shadow: 0 0 10px var(--primary-dim);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

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

/* Buttons */
.btn-primary {
    background: transparent;
    color: var(--primary-neon);
    border: 1px solid var(--primary-neon);
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary-neon);
    z-index: -1;
    transition: width var(--transition-smooth);
}

.btn-primary:hover {
    color: var(--bg-darker);
    box-shadow: 0 0 20px var(--primary-dim);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid #334155;
    padding: 10px 20px;
    font-family: var(--font-main);
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--primary-neon);
    color: var(--primary-neon);
}

.full-width {
    width: 100%;
}

.mt-4 { margin-top: 1.5rem; }

/* Layout Helpers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Header */
.header {
    background-color: rgba(5, 7, 10, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 127, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-neon);
}

.logo span {
    color: var(--primary-neon);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-neon);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -15px;
    background-color: var(--primary-neon);
    color: var(--bg-darker);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-neon);
}

/* SPA Views */
#app-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px - 200px);
}

.view {
    display: none;
    animation: fadeIn var(--transition-smooth);
}

.view.active-view {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Banner */
.hero-banner {
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(5,7,10,0.8), rgba(10,14,23,1)), url('https://images.unsplash.com/photo-1616469829941-c7200edec809?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-content h1 span {
    color: var(--primary-neon);
    text-shadow: 0 0 15px var(--primary-dim);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Products Section */
.products-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 255, 127, 0.3);
}

.product-img {
    height: 160px;
    background-color: #1a2332;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.1);
    position: relative;
}

.product-img.netflix { background: linear-gradient(45deg, #1a0000, #4a0000); color: #e50914; }
.product-img.spotify { background: linear-gradient(45deg, #001a00, #004a00); color: #1db954; }
.product-img.disney { background: linear-gradient(45deg, #00002a, #00005a); color: #113ccf; }
.product-img.hbo { background: linear-gradient(45deg, #1a001a, #4a004a); color: #8e24aa; }

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-neon);
}

/* Cart View */
.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: #1a2332;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cart-item-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.cart-item-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-item-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.btn-remove {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform var(--transition-fast);
}

.btn-remove:hover {
    transform: scale(1.1);
}

.cart-summary {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
}

.cart-summary h3 {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.summary-row.total {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
}

.summary-row.total span:last-child {
    color: var(--primary-neon);
}

/* Checkout View */
.checkout-box, .auth-box, .success-box, .user-dashboard {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(0, 255, 127, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.checkout-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.order-summary-checkout {
    background-color: rgba(0, 255, 127, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 255, 127, 0.2);
}

.order-summary-checkout h3 {
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-darker);
    border: 1px solid #334155;
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-main);
    transition: border-color var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-neon);
}

.binance-payment-info {
    text-align: center;
    padding: 2rem;
    background-color: #181a20; /* Binance dark */
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #333;
}

.binance-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.binance-payment-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-binance {
    display: inline-block;
    background-color: #FCD535;
    color: #181a20;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.btn-binance:hover {
    opacity: 0.9;
}

/* Success View */
.success-box {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--primary-neon);
    margin-bottom: 1.5rem;
}

.credentials-box {
    background-color: var(--bg-darker);
    border: 1px solid var(--primary-neon);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: left;
}

.credential-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #334155;
}

.credential-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.credential-item h4 {
    color: var(--primary-neon);
    margin-bottom: 0.5rem;
}

.credential-detail {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    background: #000;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

/* Auth / User View */
.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #334155;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 1rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
}

.auth-tab.active {
    color: var(--primary-neon);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-neon);
}

.auth-form {
    display: none;
}

.auth-form.active-form {
    display: block;
}

.hidden-form {
    display: none !important;
}

.user-dashboard {
    max-width: 800px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.purchases-list {
    margin-top: 1rem;
}

.purchase-card {
    background-color: var(--bg-darker);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-neon);
}

.purchase-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.purchase-items {
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 2rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.footer-col a:hover {
    color: var(--primary-neon);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-neon);
    color: var(--bg-darker);
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,255,127,0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-smooth);
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
    }
}
