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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(at 20% 10%, rgba(124, 92, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 90%, rgba(0, 212, 255, 0.10) 0px, transparent 50%);
    background-attachment: fixed;
}

a { color: var(--primary); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

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

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(11, 13, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--text); }

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
}
.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, #a5a9c0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p { font-size: 18px; color: var(--text-dim); max-width: 600px; margin: 0 auto 32px; }

/* ===== CARDS ===== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.2s, border-color 0.2s;
}
.card:hover { border-color: rgba(124, 92, 255, 0.3); }

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ===== STATS ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 40px 0;
}
.stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.stat .num {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat .label { color: var(--text-dim); font-size: 13px; margin-top: 4px; }

/* ===== FAUCET PAGE ===== */
.faucet-hero {
    text-align: center;
    padding: 60px 20px 40px;
}
.faucet-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.claim-amount {
    font-size: 42px;
    font-weight: 800;
    margin: 20px 0 8px;
    color: var(--text);
}
.claim-amount .unit { color: var(--text-dim); font-size: 24px; font-weight: 500; margin-left: 8px; }
.cooldown-info { color: var(--text-dim); margin-bottom: 32px; }

/* ===== FORM ===== */
.claim-form {
    max-width: 560px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}
.form-control {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}
.form-hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

/* Honeypot field (hidden from humans, bots will fill it) */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.captcha-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.captcha-question {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 4px 12px;
    letter-spacing: 2px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124, 92, 255, 0.4); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }

/* ===== ALERTS ===== */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid;
}
.alert-success { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: #86efac; }
.alert-error   { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #fcd34d; }
.alert-info    { background: rgba(124,92,255,0.1); border-color: rgba(124,92,255,0.3); color: #c4b5fd; }

/* ===== AD SLOTS ===== */
.ad-slot {
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px;
    margin: 24px 0;
    text-align: center;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 13px;
}
.ad-slot-sidebar { min-height: 250px; }

/* ===== LAYOUT WITH SIDEBAR ===== */
.layout-with-ads {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    margin-top: 40px;
}
@media (max-width: 900px) {
    .layout-with-ads { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
    margin-top: 80px;
    font-size: 14px;
}

/* ===== TABLES (admin) ===== */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
tr:hover td { background: rgba(255,255,255,0.02); }
.status-pending { color: var(--warning); }
.status-paid { color: var(--success); }
.status-rejected { color: var(--danger); }

/* ===== ADBLOCK DETECTED OVERLAY ===== */
.adblock-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 13, 23, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.adblock-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    text-align: center;
}
.adblock-box h2 { color: var(--danger); margin-bottom: 16px; }

/* ===== RECENT CLAIMS TICKER ===== */
.ticker {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 14px;
    color: var(--text-dim);
}
.ticker strong { color: var(--text); }

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

.hidden { display: none !important; }

/* ===== BALANCE BOX (balance-mode faucets) ===== */
.balance-box {
    background: linear-gradient(135deg, rgba(124,92,255,0.1), rgba(0,212,255,0.05));
    border: 1px solid rgba(124,92,255,0.25);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.balance-label {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}
.balance-amount {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.balance-meta {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 10px;
}
.bal-progress {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}
.bal-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.4s ease;
    border-radius: 999px;
}
.bal-pending {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.3);
    color: #fcd34d;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

/* ===== REFERRAL BOX ===== */
.referral-box {
    background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(124,92,255,0.05));
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 24px 0;
}

/* ===== SHORTLINK BUTTON STATES ===== */
.shortlink-loading {
    background: rgba(124,92,255,0.1);
    border: 1px solid rgba(124,92,255,0.3);
    color: #c4b5fd;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

/* ===== PTC BOX ===== */
.ptc-box {
    background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(124,92,255,0.04));
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 16px 0;
}
.ptc-badge {
    background: var(--primary);
    color: white;
    border-radius: 999px;
    padding: 1px 10px;
    font-size: 11px;
    font-weight: 700;
    margin-left: auto;
}
.ptc-ad {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    gap: 12px;
}
.ptc-ad-info { flex: 1; min-width: 0; }
.ptc-ad-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ptc-ad-meta {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}
.ptc-ad-reward {
    color: #fcd34d;
    font-weight: 600;
}
.ptc-view-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: transform 0.1s;
}
.ptc-view-btn:hover { transform: translateY(-1px); }
.ptc-view-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.ptc-timer {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #fcd34d;
}
