:root {
    --bg: #070912;
    --bg-soft: #0d1120;
    --card: #13182c;
    --card-2: #1a2038;
    --primary: #8b5cf6;
    --primary-2: #ec4899;
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradients: linear-gradient(135deg, #af19ed 0%, #fbd300 100%)
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(19, 24, 44, 0.7);
    --success: #10b981;
    --danger: #ef4444;
    --radius: 20px;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
    --font: 'Vazirmatn', Tahoma, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-user-select: none;
    user-select: none;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.15), transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(236, 72, 153, 0.1), transparent 40%);
    background-attachment: fixed;
}

input, textarea, select {
    -webkit-user-select: text;
    user-select: text;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float { 
    0%, 100% { transform: translateY(0) rotate(0deg); } 
    50% { transform: translateY(-15px) rotate(5deg); } 
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.2); }
    50% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.5); }
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 9, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    justify-items: center;
    padding: 16px 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.logo-icon {
    font-size: 28px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}
.logo b { color: var(--primary-2); }
.header-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    justify-content: center;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.btn i { font-size: 18px; }
.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(139, 92, 246, 0.5); }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
        background: linear-gradient(135deg, #b9573a 0%, #fbd300 100%);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--card); border-color: var(--primary); color: var(--primary); }

.btn-ghost {
        background: linear-gradient(135deg, #b9573a 0%, #fbd300 100%);
    color: #fff;
    border: 1px solid rgba(175, 25, 237, 0.3);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(175, 25, 237, 0.3);
    border-color: #fbd300;
}

.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 16px; }
.btn-sm {
    padding: 10px 40px;
    margin-top: 15px;
    font-size: 15px;
    border-radius: 12px;
}
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero { position: relative; padding: 80px 0 80px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; animation: fadeInUp 0.8s ease-out; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 8px 20px; border-radius: 50px; font-size: 14px; font-weight: 600; color: var(--primary);
    margin-bottom: 24px;
}
.hero h1 { font-size: 48px; font-weight: 900; margin-bottom: 20px; line-height: 1.2; }
.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p { color: var(--text-muted); font-size: 18px; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-icons { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-float { position: absolute; opacity: 0.08; font-size: 60px; color: var(--primary); animation: float 6s ease-in-out infinite; }
.f1 { top: 15%; left: 10%; animation-delay: 0s; }
.f2 { top: 65%; left: 5%; font-size: 40px; animation-delay: 1s; color: var(--primary-2); }
.f3 { top: 25%; right: 10%; font-size: 50px; animation-delay: 2s; }
.f4 { top: 75%; right: 8%; font-size: 44px; animation-delay: 0.5s; color: var(--primary-2); }
.f5 { top: 45%; left: 50%; font-size: 32px; animation-delay: 1.5s; }

/* ===== Section Titles ===== */
.section-title { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 12px; }
.section-title i { color: var(--primary-2); }
.section-sub { text-align: center; color: var(--text-muted); font-size: 16px; margin-bottom: 48px; }

/* ===== Campaigns ===== */
.campaigns { padding: 40px 0 80px; }
.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.campaign-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.campaign-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient); opacity: 0; transition: opacity 0.3s;
}
.campaign-card:hover { transform: translateY(-8px); border-color: rgba(139, 92, 246, 0.3); box-shadow: var(--shadow-glow); }
.campaign-card:hover::before { opacity: 1; }

.campaign-icon {
    width: 60px; height: 60px; border-radius: 18px;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff; margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.25);
}
.campaign-card h3 { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.campaign-msg { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; line-height: 1.7; }

.progress-wrap { margin: 20px 0; }
.progress-bar { height: 12px; background: var(--card-2); border-radius: 50px; overflow: hidden; border: 1px solid var(--border); }
.progress-fill { 
    height: 100%; background: var(--gradient); border-radius: 50px; 
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.progress-fill::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.progress-info { display: flex; justify-content: space-between; font-size: 14px; margin-top: 10px; color: var(--text); font-weight: 700; }
.progress-goal { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

.campaign-footer {
    display: flex;
    align-items: stretch;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
    flex-direction: column;
    justify-content: space-between;
}
.campaign-footer span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.empty-state { text-align: center; color: var(--text-muted); grid-column: 1/-1; padding: 40px; background: var(--card); border-radius: var(--radius); }

/* ===== Why ===== */
.why { padding: 40px 0 100px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.why-item {
    text-align: center; background: var(--glass); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px 24px; transition: all 0.3s ease;
}
.why-item:hover { transform: translateY(-5px); border-color: var(--primary); }
.why-item i { font-size: 40px; margin-bottom: 18px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-item h4 { margin-bottom: 10px; font-size: 18px; font-weight: 700; }
.why-item p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ===== VIP Styles (Fixed & Unified for All Screens) ===== */
.vip-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 32px 0 20px;
    color: #fbbf24;
    font-weight: 700;
    font-size: 15px;
    gap: 12px;
}
.vip-divider::before,
.vip-divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px dashed rgba(245, 158, 11, 0.4);
}
.vip-divider span {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.vip-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.vip-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    animation: vipGlow 4s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}
@keyframes vipGlow {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

.vip-box:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.25);
    transform: translateY(-3px);
}
.vip-box.selected {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
    border-width: 3px;
}

.vip-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    z-index: 1;
    animation: pulse-glow 2s infinite;
}

.vip-content {
    flex: 1;
    z-index: 1;
}

.vip-title {
    font-size: 18px;
    font-weight: 800;
    color: #fbbf24;
    margin: 0 0 6px;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.vip-price {
    font-size: 15px;
    color: #d1d5db;
    margin: 0 0 12px;
}
.vip-price b {
    font-size: 20px;
    color: #fbbf24;
    font-weight: 800;
}

.vip-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 14px;
    color: #e5e7eb;
}
.vip-features span {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 500;
}
.vip-features span i {
    color: #fbbf24;
    font-size: 16px;
}

.btn-vip {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0f0f0f;
    font-weight: 800;
    border: none;
    padding: 12px 20px;
    border-radius: 14px;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.2);
}
.btn-vip i {
    font-size: 18px;
    
}
.btn-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}
.btn-vip:active {
    transform: scale(0.96);
}

/* ===== Drawer & Forms ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 90;
}
.overlay.active { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -480px;
    width: 100%;
    max-width: 460px;
    background: var(--bg-soft);
    border-left: 1px solid var(--border);
    z-index: 100;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}
.drawer.active { right: 0; }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}
.drawer-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}
.drawer-close {
    background: var(--card-2);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.2s;
}
.drawer-close:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

.drawer-body { padding: 24px; overflow-y: auto; flex: 1; scroll-behavior: smooth; }

.form-group { margin-bottom: 22px; }
.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 16px;
    border-radius: 14px;
    font-family: var(--font);
    font-size: 15px;
    transition: all 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { 
    outline: none;
    border-color: var(--primary); 
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.amount-input {
    font-size: 28px !important;
    font-weight: 800;
    text-align: center;
    letter-spacing: 1px;
    color: var(--primary);
}

.quick-amounts { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.qa-btn {
    flex: 1;
    min-width: 80px;
    background: #ed057914;
    border: 1px solid rgb(199 110 255 / 57%);
    color: #2bfbfd;
    padding: 12px 8px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.qa-btn:hover {
    border-color: var(--primary);
    color: var(--text);
    background: rgba(139, 92, 246, 0.1);
}
.qa-btn.active {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.coin-price-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text);
    padding: 16px;
    border-radius: 16px;
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 600;
}
.coin-price-badge i { color: #fbbf24; font-size: 24px; }

.total-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gradient);
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}
.total-box b { font-size: 24px; font-weight: 800; }

.form-error {
    color: var(--danger);
    font-size: 14px;
    margin-bottom: 16px;
    min-height: 0; 
    display: none;
    background: rgba(239, 68, 68, 0.1);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.form-error.active {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    background: var(--bg-soft);
}
.site-footer a { color: var(--primary-2); font-weight: 600; }

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--card-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 16px 28px;
    border-radius: 50px;
    z-index: 200;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== RESPONSIVE DESIGN (Mobile Optimized) ===== */
@media (max-width: 768px) {
    .hero { padding: 60px 0 50px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 15px; margin-bottom: 28px; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { width: 100%; }
    
    .header-inner { padding: 12px 16px; }
        .logo {
        font-size: 18px;
        margin: 15px;
        justify-content: center;
    }
    .header-actions .btn { padding: 10px 14px; font-size: 12px; }
    .header-actions .btn i { font-size: 16px; }
    
    .section-title { font-size: 24px; }
    .campaign-grid { grid-template-columns: 1fr; gap: 20px; }
    
    /* VIP Box Responsive */
    .vip-box {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 16px;
    }
    .vip-features {
        align-items: center;
    }
    .vip-features span {
        width: 100%;
        justify-content: center;
    }
    .vip-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
    .vip-title {
        font-size: 16px;
    }
    .vip-price b {
        font-size: 18px;
    }
    
    /* Mobile Bottom Sheet Drawer */
    .drawer {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        height: 85vh;
        border-radius: 28px 28px 0 0;
        border-left: none;
        border-top: 1px solid var(--border);
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .drawer.active { transform: translateY(0); }
    
    .drawer-body { padding: 20px; padding-bottom: 40px; }
    
    .amount-input { font-size: 24px !important; }
    .total-box { flex-direction: row; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
        .container {
        padding: 0 16px;
        display: revert;
        /* margin: inherit; */
    }
    
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 14px; }
    
    .why-grid { grid-template-columns: 1fr; }
    
    .vip-box { padding: 20px 16px; }
    .vip-features { gap: 8px; }
    .vip-features span { font-size: 13px; padding: 10px; }
    
    .btn-vip { padding: 14px; font-size: 14px; }
    
    .section-title { font-size: 22px; flex-wrap: wrap; }
    .section-sub { font-size: 14px; margin-bottom: 32px; }
}

@media (max-width: 380px) {
    .quick-amounts { gap: 8px; }
    .qa-btn { min-width: 60px; font-size: 12px; padding: 10px 4px; }
}