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

:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --secondary: #eab308;
    --accent: #fbbf24;
    --dark: #0f172a;
    --darker: #0a0f1c;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-dark: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --discord: #5865f2;
}

:root[data-theme="light"] {
    --dark: #f1f5f9;
    --darker: #e2e8f0;
    --light: #0f172a;
    --gray: #475569;
    --gray-dark: #334155;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

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

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--light);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--primary);
    transform: rotate(30deg);
}

#landingPage {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 50%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

#landingPage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(234, 179, 8, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

#landingPage .container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

header {
    padding: 30px 0;
}

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

.logo-block {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(15deg) rotateY(15deg);
    animation: blockFloat 4s ease-in-out infinite;
    box-shadow: 
        inset -2px -2px 0px #b45309,
        inset 2px 2px 0px #fbbf24,
        0 10px 30px rgba(245, 158, 11, 0.4);
    border-radius: 4px;
}

.logo-block::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #d97706, #b45309);
    top: -10px;
    transform: skewX(-45deg) translateX(5px);
    border-radius: 2px 2px 0 0;
}

.logo-block::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 100%;
    background: linear-gradient(180deg, #b45309, #92400e);
    left: -10px;
    transform: skewY(-45deg) translateY(5px);
    border-radius: 2px 0 0 2px;
}

.logo-block .block-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.logo-block .block-face::before {
    content: '◆';
    font-size: 1.5rem;
    color: #fbbf24;
    filter: drop-shadow(1px 1px 0px rgba(0, 0, 0, 0.3));
}

@keyframes blockFloat {
    0%, 100% { 
        transform: rotateX(15deg) rotateY(15deg) translateY(0px);
        box-shadow: 
            inset -2px -2px 0px #b45309,
            inset 2px 2px 0px #fbbf24,
            0 10px 30px rgba(245, 158, 11, 0.4);
    }
    50% { 
        transform: rotateX(20deg) rotateY(25deg) translateY(-5px);
        box-shadow: 
            inset -2px -2px 0px #b45309,
            inset 2px 2px 0px #fbbf24,
            0 15px 40px rgba(245, 158, 11, 0.6);
    }
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.currency-selector {
    background: linear-gradient(135deg, rgba(30, 33, 56, 0.8), rgba(25, 28, 50, 0.8));
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.currency-selector label {
    display: block;
    margin-bottom: 10px;
    color: var(--light);
    font-weight: 600;
    font-size: 1.1rem;
}

.currency-selector select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 300px;
}

.currency-selector select:hover {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
}

.currency-selector select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.currency-selector select option {
    background: var(--darker);
    color: var(--light);
    padding: 10px;
}

.currency-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero {
    max-width: 800px;
    padding: 40px 0;
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--gray);
    font-weight: 400;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(245, 158, 11, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(245, 158, 11, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-2px);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(8px);
}

footer {
    text-align: center;
    padding: 30px 0;
    color: var(--gray);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.store-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

:root[data-theme="light"] .store-header {
    background: rgba(241, 245, 249, 0.8);
}

.store-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-button {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-button:hover {
    background: rgba(245, 158, 11, 0.1);
    transform: translateX(-5px);
}

.discord-connect {
    background: linear-gradient(135deg, rgba(30, 33, 56, 0.8), rgba(25, 28, 50, 0.8));
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.discord-connect h3 {
    margin-bottom: 10px;
    color: var(--discord);
    font-size: 1.4rem;
    font-weight: 700;
}

.discord-connect p {
    color: var(--gray);
    margin-bottom: 25px;
}

.discord-btn {
    background: linear-gradient(135deg, var(--discord), #4752c4);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
}

.discord-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}

.user-info {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--discord);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.logout-btn {
    background: transparent;
    color: var(--error);
    border: 2px solid var(--error);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--error);
    color: white;
}

/* Store Hero */
.store-hero {
    text-align: center;
    padding: 60px 0 40px;
}

.store-hero h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.store-hero p {
    font-size: 1.3rem;
    color: var(--gray);
}

.categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.category-btn:hover, .category-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.products-section {
    display: none;
}

.products-section.active {
    display: block;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--light);
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.product-card {
    background: linear-gradient(135deg, rgba(30, 33, 56, 0.8), rgba(25, 28, 50, 0.8));
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.rank-card .rank-header {
    padding: 30px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-header.vip {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.rank-header.mvp {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

.rank-header.elite {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.rank-header.titan {
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
}

.rank-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.rank-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.rank-price {
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.key-card .key-header {
    padding: 30px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.key-header.basic {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.key-header.epic {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.key-header.mythic {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

.key-header.divine {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.key-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.key-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.key-price {
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.product-info {
    padding: 25px;
}

.rank-features, .key-features {
    list-style: none;
    margin-bottom: 25px;
}

.rank-features li, .key-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.buy-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

.buy-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

.buy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.buy-btn:disabled:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.login-required {
    display: none;
}

.buy-btn:disabled .btn-text {
    display: none;
}

.buy-btn:disabled .login-required {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 33, 56, 0.95), rgba(25, 28, 50, 0.95));
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--light);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-modal {
    color: var(--gray);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--light);
}

.modal-body {
    padding: 25px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.payment-option {
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stripe-option {
    background: linear-gradient(135deg, #635bff, #5a54d6);
    color: white;
}

.stripe-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 91, 255, 0.4);
}

.paypal-option {
    background: linear-gradient(135deg, #0070ba, #005ea6);
    color: white;
}

.paypal-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 112, 186, 0.4);
}

.success-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
}

.hidden {
    display: none;
}

.close-success {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.close-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.store-footer {
    background: rgba(10, 15, 28, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 20px;
    backdrop-filter: blur(10px);
}

:root[data-theme="light"] .store-footer {
    background: rgba(226, 232, 240, 0.8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
    color: var(--light);
    font-weight: 700;
}

.footer-section h3 {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
}

.footer-section p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

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

@media (max-width: 768px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 16px 40px;
        font-size: 1.1rem;
    }
    
    .store-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .store-hero h2 {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .currency-selector {
        padding: 15px;
        margin: 15px 0;
    }
    
    .currency-selector select {
        max-width: 100%;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo {
        justify-content: center;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 200px;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}