:root {
    --bg-dark: #050505;
    --bg-card: rgba(30, 30, 30, 0.6);
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --neon-orange: #ff9f1c;
    --gold: #ffd700;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(rgba(5, 5, 5, 0.85), rgba(5, 5, 5, 0.9)), 
                      url('https://coresg-normal.trae.ai/api/ide/v1/text_to_image?prompt=PUBG%20Mobile%20dark%20tactical%20background%20neon%20orange%20and%20black%20smoke%20level%203%20helmet%20guns%20cinematic%20lighting&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-content {
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.loader-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 159, 28, 0.3);
    animation: pulse 2s infinite, float 3s ease-in-out infinite;
}

.loader-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 2px;
    line-height: 1.4;
}

.chameleon-text {
    background: linear-gradient(
        90deg,
        #ff9f1c,
        #ffd700,
        #ff00ff,
        #00ffff,
        #ff9f1c
    );
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: chameleon 3s linear infinite;
}

@keyframes chameleon {
    to {
        background-position: 200% center;
    }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 30px rgba(255, 159, 28, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(255, 159, 28, 0.5); }
    100% { transform: scale(1); box-shadow: 0 0 30px rgba(255, 159, 28, 0.3); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--neon-orange);
    padding: 30px;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 30px rgba(255, 159, 28, 0.2);
}

.modal-overlay.hidden .modal-content {
    transform: scale(0.8);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.modal-header h2 {
    color: var(--neon-orange);
    margin: 0;
}

.modal-lang-switch {
    display: flex;
    gap: 5px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.step:hover {
    background: rgba(255, 159, 28, 0.1);
    transform: translateX(5px);
}

.step-icon {
    width: 40px;
    height: 40px;
    background: var(--neon-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-text h3 {
    font-size: 1.1rem;
    margin-bottom: 3px;
    color: var(--text-main);
}

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

/* Typography */
h1, h2, h3, .logo {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

.text-neon {
    color: var(--neon-orange);
    text-shadow: 0 0 10px rgba(255, 159, 28, 0.5);
    animation: neonGlow 2s infinite alternate;
}

@keyframes neonGlow {
    from { text-shadow: 0 0 10px rgba(255, 159, 28, 0.5); }
    to { text-shadow: 0 0 20px rgba(255, 159, 28, 0.8), 0 0 10px var(--neon-orange); }
}

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

/* Header */
.glass-header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--neon-orange);
    transition: transform 0.3s ease;
}

.logo:hover .header-logo {
    transform: rotate(360deg);
}

.logo-highlight {
    color: var(--neon-orange);
}

nav {
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--neon-orange);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 5px;
    margin-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 15px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.lang-btn:hover, .lang-btn.active {
    background: var(--neon-orange);
    color: #000;
    border-color: var(--neon-orange);
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 0 40px;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Shop Interface */
.shop-interface {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    padding-bottom: 60px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--neon-orange);
    padding-left: 15px;
}

/* UC Grid */
.uc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.uc-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.uc-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-orange);
    box-shadow: 0 0 20px rgba(255, 159, 28, 0.3);
}

.uc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.uc-card:hover::before {
    left: 100%;
}

.uc-card.active {
    background: rgba(255, 159, 28, 0.15);
    border-color: var(--neon-orange);
    box-shadow: 0 0 20px rgba(255, 159, 28, 0.4);
}

.uc-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    filter: drop-shadow(0 0 5px rgba(255, 165, 0, 0.5));
    animation: float 3s ease-in-out infinite;
}

.uc-amount {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-main);
}

.uc-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Payment Summary */
.payment-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--glass-shadow);
}

.pack-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.preview-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Rajdhani', sans-serif;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.empty-state {
    color: var(--text-muted);
    font-style: italic;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-row:last-child {
    border-bottom: none;
}

.currency {
    color: var(--text-muted);
    font-weight: 500;
}

.amount {
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
}

.input-group {
    margin: 20px 0;
}

.payment-method-section {
    margin: 20px 0 30px 0;
}

.input-group label,
.payment-method-section label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.glass-input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: var(--transition);
}

.glass-input:focus {
    border-color: var(--neon-orange);
    background: rgba(0, 0, 0, 0.5);
}

.error-msg {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

.btn-telegram {
    background: #229ED9;
    color: white;
}

.btn-telegram:not(:disabled):hover {
    background: #1d8abf;
    box-shadow: 0 0 15px rgba(34, 158, 217, 0.4);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:not(:disabled):hover {
    background: #20bd5a;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

.btn-primary {
    background: var(--neon-orange);
    color: #000;
}

.btn-primary:hover {
    background: #ffb14d;
    box-shadow: 0 0 15px rgba(255, 159, 28, 0.4);
}

.hidden {
    display: none;
}

/* Footer */
.glass-footer {
    margin-top: auto;
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.footer-info p {
    margin-bottom: 5px;
    color: var(--text-muted);
}

.footer-info a {
    color: var(--neon-orange);
    text-decoration: none;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .shop-interface {
        grid-template-columns: 1fr;
    }
    
    .payment-summary {
        position: static;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
