/* ========================================= */
/* LUKUL | GATEWAY (PAYMENT) STYLES */
/* ========================================= */

* { box-sizing: border-box; }

:root {
    --gold: #e6b34a;
    --emerald: #059669;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(180, 83, 9, 0.3);
    --bg-dark: #011812;
}

body {
    background: linear-gradient(135deg, #011812 0%, #000905 100%);
    color: #E6E6E6;
    font-family: 'Manrope', sans-serif;
    margin: 0; padding: 0;
    min-height: 100vh;
}

/* --- ATMOSPHERIC CANVAS --- */
#goldDust {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* Allows users to click buttons through the canvas */
}

/* Ensure main content floats above the particles */
.gateway-container {
    max-width: 1200px;
    margin: 20px auto 40px auto; 
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 5;
}

/* Ensure footer floats above the particles */
.lukul-gateway-footer {
    position: relative;
    z-index: 5;
}

.gateway-container {
    max-width: 1200px;
    margin: 20px auto 40px auto; /* Reduced top margin to 10px */
    padding: 0 20px;
    text-align: center;
}

.gateway-title {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.gateway-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 50px;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- PRICING GRID --- */
.pricing-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch; /* Ensure equal height */
    flex-wrap: wrap;
}

.pricing-card {
    flex: 1;
    min-width: 300px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    background: var(--glass-hover);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Specific Card Styling */
.pricing-card.annual {
    border: 1px solid var(--emerald); /* Recommended */
    background: linear-gradient(180deg, rgba(5, 150, 105, 0.05) 0%, rgba(5, 150, 105, 0.01) 100%);
}

.pricing-card.lifetime {
    border: 1px solid var(--gold); /* Premium */
    background: linear-gradient(180deg, rgba(230, 179, 74, 0.05) 0%, rgba(230, 179, 74, 0.01) 100%);
}

.badge {
    position: absolute;
    top: 0; right: 0;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 12px;
    border-bottom-left-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.badge.annual { background: var(--emerald); color: #fff; }
.badge.lifetime { background: var(--gold); color: #000; }

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.plan-name {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: #fff;
    margin-bottom: 5px;
    display: block;
}

.plan-price {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
}

.plan-period {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1; /* Pushes buttons to bottom */
}

.features-list li {
    margin-bottom: 12px;
    font-size: 13px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li::before {
    content: '✦'; /* Bullet style */
    color: var(--gold);
    font-size: 10px;
}

/* Button Group inside Card */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.btn-select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-fiat {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}
.btn-fiat:hover { background: #fff; }

.btn-crypto {
    background: transparent;
    border: 1px solid rgba(230, 179, 74, 0.3);
    color: var(--gold);
}
.btn-crypto:hover {
    background: rgba(230, 179, 74, 0.1);
    border-color: var(--gold);
}

/* --- CRYPTO MODAL --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(1, 24, 18, 0.98);
    backdrop-filter: blur(20px);
    z-index: 5000;
    display: none;
    justify-content: center;
    align-items: center;
}

.crypto-box {
    width: 90%; max-width: 450px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.crypto-summary {
    background: rgba(230, 179, 74, 0.05);
    border: 1px dashed rgba(230, 179, 74, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.crypto-amount {
    font-family: 'Space Mono', monospace;
    font-size: 24px;
    color: var(--gold);
    display: block;
    margin-bottom: 5px;
}

.crypto-note {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
}

.chain-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.chain-tab {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    transition: 0.2s;
}

.chain-tab.active {
    background: rgba(230, 179, 74, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.qr-placeholder {
    width: 140px; height: 140px;
    background: #fff;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.address-display {
    background: rgba(0,0,0,0.3);
    padding: 12px;
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: #fff;
    word-break: break-all;
    cursor: pointer;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    transition: 0.2s;
}
.address-display:hover { border-color: var(--gold); color: var(--gold); }

.tx-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    margin-bottom: 15px;
}
.tx-input:focus { border-color: var(--gold); outline: none; }

.btn-verify {
    width: 100%;
    padding: 15px;
    background: var(--emerald);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s;
}
.btn-verify:hover { background: #047857; }

.close-modal {
    position: absolute; top: 15px; right: 20px;
    font-size: 24px; color: #666; cursor: pointer;
}

@media (max-width: 768px) {
    .pricing-grid { flex-direction: column; }
    .gateway-title { font-size: 28px; }
}

/* --- SURGICAL ADDITION: TIER TOGGLE --- */
.tier-toggle-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.tier-btn {
    background: transparent;
    border: 1px solid rgba(230, 179, 74, 0.3);
    color: #888;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tier-btn:hover {
    border-color: #e6b34a;
    color: #e6b34a;
    background: rgba(230, 179, 74, 0.05);
}

.tier-btn.active {
    background: #e6b34a;
    color: #011812;
    border-color: #e6b34a;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(230, 179, 74, 0.3);
}

/* Ensure grid centers nicely with 2 items */
.pricing-grid {
    justify-content: center; 
}

/* Mobile responsive fix for toggle */
@media (max-width: 480px) {
    .tier-toggle-container {
        gap: 5px;
    }
    .tier-btn {
        padding: 10px 15px;
        font-size: 10px;
    }
}

/* ========================================= */
/* MOBILE MODAL FIXES (CORRECTED)            */
/* ========================================= */

@media (max-width: 768px) {
    .modal-overlay {
        /* REMOVED: display: block !important (This was keeping it open) */
        /* ADDED: flex settings to allow scrolling */
        align-items: flex-start; 
        overflow-y: auto;          
        padding: 20px 0;           
        -webkit-overflow-scrolling: touch; 
    }

    .crypto-box {
        margin: 40px auto;         
        width: 92%;                
        max-width: 400px;
        position: relative;        
        padding: 20px;             
        margin-bottom: 50px; /* Space at bottom for scrolling */
    }

    /* Shrink text for mobile */
    .gateway-title { font-size: 24px; }
    .crypto-amount { font-size: 20px; }
    
    /* Ensure Close X is reachable */
    .close-modal {
        top: 10px; 
        right: 15px;
        font-size: 28px;
        padding: 10px;
    }
}

/* --- RETURN BUTTON STYLE --- */
.btn-cancel {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #888;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    /* Critical for mobile clicks */
    position: relative; 
    z-index: 100; 
}

.btn-cancel:hover {
    border-color: #666;
    color: #ccc;
    background: rgba(255, 255, 255, 0.02);
}