/* =============================================
   ZexPay Faucet Script - Stylesheet
   Developed by HaseebScripts.com
   ============================================= */

:root {
    --bg-main: #f0f4ff;
    --bg-card: #ffffff;
    --bg-navbar: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #555e7a;
    --text-muted: #8892a4;
    --border-color: #e4e9f2;
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-gradient: linear-gradient(135deg, #2563eb, #4f46e5);
    --shadow-card: 0 4px 24px rgba(37,99,235,0.08);
    --shadow-hover: 0 8px 32px rgba(37,99,235,0.15);
    --input-bg: #f8faff;
    --captcha-bg: #f0f4ff;
    --captcha-selected: #2563eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --timer-bg: #eff6ff;
    --timer-text: #2563eb;
    --footer-bg: #1e293b;
    --footer-text: #94a3b8;
    --proof-bg: #f8faff;
    --step-icon-bg: #eff6ff;
    --banner-bg: #e8edff;
    --banner-text: #4f46e5;
    --navbar-shadow: 0 2px 16px rgba(37,99,235,0.07);
}

[data-theme="dark"] {
    --bg-main: #0f1117;
    --bg-card: #1a1d2e;
    --bg-navbar: #161927;
    --text-primary: #e2e8f0;
    --text-secondary: #a0aec0;
    --text-muted: #64748b;
    --border-color: #2d3748;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #6366f1);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 32px rgba(59,130,246,0.2);
    --input-bg: #1e2235;
    --captcha-bg: #252840;
    --captcha-selected: #3b82f6;
    --success-color: #10b981;
    --danger-color: #f87171;
    --warning-color: #fbbf24;
    --timer-bg: #1e2235;
    --timer-text: #60a5fa;
    --footer-bg: #0d0f1a;
    --footer-text: #64748b;
    --proof-bg: #1e2235;
    --step-icon-bg: #252840;
    --banner-bg: #252840;
    --banner-text: #818cf8;
    --navbar-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
}

/* ---- NAVBAR ---- */
.navbar {
    background: var(--bg-navbar);
    box-shadow: var(--navbar-shadow);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-brand .logo-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 18px;
}

.navbar-brand .brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.navbar-brand .brand-text span { color: var(--accent-blue); }

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.navbar-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}
.navbar-links a:hover { color: var(--accent-blue); }

/* ---- BANNER ADS ---- */
.banner-728 {
    display: flex;
    justify-content: center;
    margin: 1.5rem auto 0;
    max-width: 1240px;
    padding: 0 1rem;
}
.banner-728 .banner-slot {
    width: 728px;
    height: 90px;
    background: var(--banner-bg);
    border: 2px dashed var(--accent-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--banner-text);
    font-weight: 600;
    font-size: 1rem;
    overflow: hidden;
}
.banner-728 .banner-slot img { width: 728px; height: 90px; object-fit: cover; }

@media (max-width: 768px) { .banner-728 { display: none !important; } }

/* ---- HERO SECTION ---- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
    min-height: 460px;
}

.hero-deco {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
}
.hero-deco-left, .hero-deco-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0.85;
}
.hero-deco-left { left: 2rem; }
.hero-deco-right { right: 2rem; }

.crypto-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    animation: float 3s ease-in-out infinite;
}
.crypto-icon:nth-child(2) { animation-delay: 1s; }
.crypto-icon:nth-child(3) { animation-delay: 2s; }
.ci-btc { background: linear-gradient(135deg, #f7931a, #ffb74d); }
.ci-eth { background: linear-gradient(135deg, #627eea, #8b9ff7); }
.ci-usdt { background: linear-gradient(135deg, #26a17b, #4dd9ac); }
.ci-ltc { background: linear-gradient(135deg, #bfbbbb, #9e9e9e); }
.ci-zxp { background: var(--accent-gradient); }

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

/* ---- CLAIM CARD ---- */
.claim-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-color);
    transition: background 0.3s, box-shadow 0.3s;
}

.claim-card-logo {
    text-align: center;
    margin-bottom: 0.5rem;
}
.claim-card-logo .logo-box {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
}
.claim-card-logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
}
.claim-card-logo h1 span { color: var(--accent-blue); }
.claim-card-logo p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}
.claim-card-logo p a { color: var(--accent-blue); font-weight: 600; text-decoration: none; }

.form-group { margin-top: 1.25rem; }

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border 0.2s, background 0.3s;
    outline: none;
}
.form-input:focus { border-color: var(--accent-blue); }
.form-input::placeholder { color: var(--text-muted); }

.input-wrap { position: relative; }
.input-wrap svg {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 16px; height: 16px;
}

/* ---- CAPTCHA ---- */
.captcha-box {
    background: var(--captcha-bg);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: background 0.3s;
}
.captcha-label { font-size: 0.875rem; color: var(--text-secondary); }
.captcha-label strong { display: block; font-size: 0.875rem; color: var(--text-primary); font-weight: 600; margin-bottom: 2px; }

.captcha-icons { display: flex; gap: 0.5rem; }
.captcha-icon-btn {
    width: 46px;
    height: 46px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.2s;
    user-select: none;
}
.captcha-icon-btn:hover { border-color: var(--accent-blue); transform: scale(1.08); }
.captcha-icon-btn.selected {
    border-color: var(--captcha-selected);
    background: var(--accent-blue);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* ---- CLAIM BUTTON ---- */
.btn-claim {
    width: 100%;
    padding: 1rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.2s, transform 0.2s;
    letter-spacing: 0.02em;
}
.btn-claim:hover:not(:disabled) { opacity: 0.92; transform: translateY(-1px); }
.btn-claim:disabled { opacity: 0.7; cursor: not-allowed; }

/* ---- TIMER ---- */
.timer-box {
    background: var(--timer-bg);
    border: 1.5px solid var(--accent-blue);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-top: 1.25rem;
    display: none;
}
.timer-box .timer-label { font-size: 0.8rem; color: var(--timer-text); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.timer-box .timer-count { font-size: 2rem; font-weight: 900; color: var(--timer-text); line-height: 1; }
.timer-box .timer-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ---- ALERT ---- */
.alert-box {
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
[data-theme="dark"] .alert-success { background: #064e3b; color: #6ee7b7; border-color: #047857; }
[data-theme="dark"] .alert-error { background: #450a0a; color: #fca5a5; border-color: #7f1d1d; }
[data-theme="dark"] .alert-warning { background: #451a03; color: #fde68a; border-color: #92400e; }

/* ---- MAIN CONTENT SECTION ---- */
.main-content {
    max-width: 1240px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 1024px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }

/* ---- CONTENT CARDS ---- */
.content-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: background 0.3s, box-shadow 0.3s;
}
.content-card:hover { box-shadow: var(--shadow-hover); }

.card-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}
.card-header .card-icon {
    width: 32px; height: 32px;
    color: var(--accent-blue);
}
.card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ---- REFERRAL CARD ---- */
.ref-desc { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.5; }

.ref-link-wrap {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.ref-link-input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    background: var(--input-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    outline: none;
}
.btn-copy {
    width: 38px; height: 38px;
    background: var(--accent-blue);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.btn-copy:hover { background: var(--accent-blue-hover); }

.ref-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
}
.ref-stat {
    background: var(--proof-bg);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.ref-stat .stat-icon { font-size: 1.4rem; }
.ref-stat .stat-label { font-size: 0.72rem; color: var(--text-muted); }
.ref-stat .stat-value { font-size: 1rem; font-weight: 800; color: var(--text-primary); }

.btn-share {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1.5px solid var(--accent-blue);
    border-radius: 10px;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: all 0.2s;
}
.btn-share:hover { background: var(--accent-blue); color: white; }

/* ---- PROOF TABLE ---- */
.proof-list { display: flex; flex-direction: column; gap: 0.625rem; }
.proof-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: var(--proof-bg);
    border-radius: 10px;
    transition: background 0.3s;
}
.proof-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.proof-email { font-size: 0.8rem; color: var(--text-secondary); flex: 1; }
.proof-amount { font-weight: 700; font-size: 0.875rem; color: var(--success-color); white-space: nowrap; }
.proof-time { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }

.btn-view-more {
    width: 100%;
    padding: 0.625rem;
    background: transparent;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    margin-top: 0.75rem;
    transition: all 0.2s;
}
.btn-view-more:hover { border-color: var(--accent-blue); background: var(--timer-bg); }

/* ---- HOW IT WORKS ---- */
.how-steps { display: flex; flex-direction: column; gap: 1rem; }
.how-step { display: flex; align-items: flex-start; gap: 0.875rem; }
.how-step-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--step-icon-bg);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.how-step-icon .step-num {
    position: absolute;
    top: -6px; right: -6px;
    width: 18px; height: 18px;
    background: var(--accent-blue);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.how-step-icon svg { width: 24px; height: 24px; color: var(--accent-blue); }
.how-step-content h4 { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.how-step-content p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.45; }

/* ---- BANNER 468x60 ---- */
.banners-468 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1240px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.banner-468 {
    height: 60px;
    background: var(--banner-bg);
    border: 2px dashed var(--accent-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    gap: 0.75rem;
    overflow: hidden;
}
.banner-468 .btext { font-size: 0.875rem; font-weight: 600; color: var(--banner-text); }
.banner-468 .bbtn {
    padding: 0.375rem 1rem;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.banner-468 img { height: 60px; width: 100%; object-fit: cover; }
@media (max-width: 768px) { .banners-468 { display: none !important; } }

/* ---- MOBILE BANNER 300x250 ---- */
.banner-mobile {
    display: none;
    justify-content: center;
    padding: 1rem;
}
.banner-mobile .banner-slot-mobile {
    width: 300px;
    height: 250px;
    background: var(--banner-bg);
    border: 2px dashed var(--accent-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--banner-text);
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
}
.banner-mobile .banner-slot-mobile img { width: 300px; height: 250px; object-fit: cover; }
@media (max-width: 768px) { .banner-mobile { display: flex; } }

/* ---- FOOTER ---- */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}
.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-left, .footer-right { font-size: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-center { font-size: 0.8rem; text-align: center; }
.footer-center a { color: var(--footer-text); text-decoration: none; margin: 0 0.5rem; }
.footer-center a:hover { color: var(--accent-blue); }

/* ---- DARK MODE TOGGLE ---- */
.dark-toggle {
    background: var(--input-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.dark-toggle:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

/* ---- VPN OVERLAY ---- */
.vpn-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}
.vpn-modal {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
}
.vpn-modal .vpn-icon { font-size: 3rem; margin-bottom: 1rem; }
.vpn-modal h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--danger-color); }
.vpn-modal p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ---- LOADING SPINNER ---- */
.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- TOAST ---- */
.toast-container { position: fixed; top: 80px; right: 1.5rem; z-index: 9998; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    min-width: 250px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.toast-success { background: #10b981; }
.toast-error { background: #ef4444; }
.toast-warning { background: #f59e0b; }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .hero-deco-left, .hero-deco-right { display: none; }
    .hero-section { min-height: auto; }
}
@media (max-width: 480px) {
    .navbar { padding: 0 1rem; }
    .claim-card { padding: 1.5rem 1rem; }
    .navbar-links { gap: 0.75rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
}
