:root {
    /* Premium Dashboard Theme Colors */
    --brand-blue: #003087;       /* PayPal Blue */
    --neon-blue: #0079C1;
    --neon-cyan: #4facfe;
    --neon-green: #10b981;
    --bg-deep: #0B132B;        /* Premium Dark Navy */
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #A0B3D6;
    
    /* Glassmorphism 2.0 */
    --glass-bg: rgba(11, 19, 43, 0.4);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* --- Atmospheric Backgrounds --- */
.grid-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px; height: 500px;
    background: var(--brand-blue);
    top: -150px; left: -150px;
}

.orb-2 {
    width: 400px; height: 400px;
    background: var(--neon-blue); /* Lighter PayPal blue */
    bottom: -100px; right: -100px;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.2); }
}

/* --- Layout Wrapper --- */
.app-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- Header --- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: -1px;
}
.logo span {
    color: var(--brand-blue);
    text-shadow: 0 0 10px rgba(0, 48, 135, 0.5);
}

.user-stats {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.online-dot {
    width: 8px; height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulseOnline 2s infinite;
}

@keyframes pulseOnline {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* --- Glass Card Base --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
}

/* --- Dashboard Grid --- */
.dashboard-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 850px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
}

/* --- Balance Card --- */
.faucet-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.balance-card .label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-card .amount {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 10px 0 20px 0;
    background: linear-gradient(to right, #fff, var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Progress */
.progress-wrapper {
    margin-bottom: 24px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.progress-track {
    height: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-blue), var(--brand-blue));
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 12px rgba(0, 121, 193, 0.6);
}

.min-wd-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 8px;
    text-align: right;
}

/* Buttons */
.btn-wd {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-wd:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-wd:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Claim Card (Faucet UI) --- */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.claim-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.faucet-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
}

.status-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.status-icon.ready {
    background: rgba(16, 185, 129, 0.1); /* Emerald 500 */
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.status-icon.waiting {
    background: rgba(245, 158, 11, 0.1); /* Amber */
    border: 2px solid #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    animation: spinWait 2s linear infinite;
}

@keyframes spinWait {
    100% { transform: rotate(360deg); }
}

.timer-text {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}

/* Mock Captcha */
.captcha-box {
    background: #f9f9f9;
    border-radius: 4px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #333;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 25px auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background 0.2s;
}
.captcha-box:hover {
    background: #fff;
}
.captcha-checkbox {
    width: 28px; height: 28px;
    border: 2px solid #ccc;
    border-radius: 3px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}
.captcha-checkbox.checked {
    border-color: #009688;
}
.captcha-checkbox.checked::after {
    content: '✓';
    color: #009688;
    font-size: 20px;
    font-weight: bold;
}
.captcha-box span {
    font-weight: 500;
    flex-grow: 1;
}
.captcha-logo {
    font-size: 0.7rem;
    color: #888;
    text-align: right;
}

.btn-claim {
    background: linear-gradient(135deg, var(--brand-blue), var(--neon-blue));
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 48, 135, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.btn-claim:not(:disabled):hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 48, 135, 0.6);
}
.btn-claim:disabled {
    background: #334155;
    box-shadow: none;
    color: #94a3b8;
    cursor: not-allowed;
}

/* --- Sidebar (Ads & Payouts) --- */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ad-space {
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 16px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.payouts-card {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.payout-list {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 400px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.payout-list::-webkit-scrollbar {
    width: 4px;
}
.payout-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.payout-item {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.payout-user {
    font-family: monospace;
    color: var(--text-secondary);
}
.payout-amount {
    color: var(--neon-green);
    font-weight: 700;
}
.payout-time {
    font-size: 0.75rem;
    color: #64748b;
}

/* --- SEO Content Area --- */
.seo-content-section {
    margin-top: 20px;
}
.seo-content-section h2 {
    font-family: 'Outfit', sans-serif;
    color: white;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}
.seo-article h3 {
    color: var(--brand-blue);
    margin: 25px 0 10px 0;
}
.seo-article p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}
.seo-article strong {
    color: white;
}
.faq-accordion {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
}
.faq-item h4 {
    color: white;
    margin-bottom: 8px;
}

/* --- Footer --- */
.app-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 20px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 20px;
}

/* --- Modal & Toast (Reused & Updated) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s;
}
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-content {
    width: 90%;
    max-width: 400px;
    transform: translateY(0);
    transition: transform 0.3s;
}
.modal-overlay.hidden .modal-content {
    transform: translateY(50px);
}
.btn-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}
.btn-close:hover { color: white; }
.modal-desc { margin-bottom: 20px; color: var(--text-secondary); }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; }
.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
}
.input-group input:focus {
    border-color: var(--brand-blue);
}
.withdraw-amount-display {
    background: rgba(0, 48, 135, 0.1);
    border: 1px dashed var(--brand-blue);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.withdraw-amount-display strong { color: var(--neon-cyan); font-size: 1.2rem; }
.btn-full { width: 100%; background: var(--brand-blue); color: white; border: none; }

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-green);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    z-index: 200;
    transition: all 0.3s;
}
.toast.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(50px);
}
