:root {
    --bg: #0a0d0a;
    --panel: #12160f;
    --panel-alt: #191f16;
    --border: #263021;
    --text: #e8eaed;
    --text-muted: #9aa1ac;
    --accent: #4ade5a;
    --accent-hover: #6bef7f;
    --success: #2ecc71;
    --error: #e74c3c;
    --radius: 10px;
    --sidebar-w: 220px;
}
[data-theme="light"] {
    --bg: #f4f7f3;
    --panel: #ffffff;
    --panel-alt: #f0f3ee;
    --border: #dde3d9;
    --text: #1a1f18;
    --text-muted: #5a6357;
    --accent: #22a83e;
    --accent-hover: #1c8f34;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; transition: background 0.25s ease, color 0.25s ease; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
.text-muted { color: var(--text-muted); }

/* ---- Topbar ---- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: var(--panel); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; }
/* Group the icon cluster (theme toggle, coin pill, avatar) into one cohesive pill */
.topbar-right { background: var(--panel-alt); border: 1px solid var(--border); border-radius: 30px; padding: 5px 8px 5px 14px; gap: 12px; }
.topbar .logo { font-weight: 700; font-size: 1.25rem; color: var(--accent); }
.sidebar-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.3rem; cursor: pointer; }
.coin-pill { background: var(--panel-alt); border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; font-weight: 700; color: var(--accent); display: flex; gap: 6px; align-items: center; }
.profile-icon img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.landing-topbar nav { display: flex; gap: 12px; align-items: center; }
.btn-ghost { color: var(--text-muted); padding: 8px 16px; background: transparent; border: 1px solid var(--border); border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; font-family: inherit; transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); background: var(--panel-alt); }

/* ---- Layout with sidebar ---- */
.layout { display: flex; min-height: calc(100vh - 65px); }
.sidebar { width: var(--sidebar-w); background: var(--panel); border-right: 1px solid var(--border); flex-shrink: 0; padding: 20px 12px; position: fixed; left: 0; top: 65px; bottom: 0; overflow-y: auto; z-index: 15; display: flex; flex-direction: column; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; color: var(--text-muted); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.1px; }
.nav-item:hover { background: var(--panel-alt); color: var(--text); }
.nav-item.active { background: rgba(74,222,90,0.13); color: var(--accent); box-shadow: 0 0 0 1px rgba(74,222,90,0.25), 0 0 22px rgba(74,222,90,0.22); }
.sidebar-section-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); padding: 16px 14px 4px; opacity: 0.7; }

/* ---- Bottom-pinned daily-reward mini widget ---- */
.sidebar-bottom-widget {
    margin-top: 14px; flex-shrink: 0; position: relative; overflow: hidden;
    background: linear-gradient(160deg, rgba(74,222,90,0.16), var(--panel-alt));
    border: 1px solid rgba(74,222,90,0.35); border-radius: 14px; padding: 14px;
}
.sidebar-reward-icon { font-size: 1.5rem; margin-bottom: 6px; }
.sidebar-reward-text { display: flex; flex-direction: column; gap: 1px; margin-bottom: 10px; }
.sidebar-reward-text strong { font-size: 0.88rem; }
.sidebar-reward-text span { font-size: 0.76rem; color: var(--text-muted); }
.sidebar-reward-btn { width: 100%; padding: 9px; font-size: 0.82rem; }
.nav-icon { font-size: 1.1rem; }
.content { flex: 1; padding: 24px; max-width: 1100px; margin-left: var(--sidebar-w); }
.content-column { flex: 1; display: flex; flex-direction: column; min-width: 0; margin-left: var(--sidebar-w); }
.content-column .content { padding: 24px; max-width: none; margin-left: 0; }
.page-title { margin-top: 0; }

/* ---- Auth pages ---- */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.auth-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; width: 100%; max-width: 380px; }
.auth-card-wide { max-width: 460px; }
.auth-card h1 { color: var(--accent); margin-bottom: 4px; }
.subtitle { color: var(--text-muted); margin-top: 0; }
.auth-switch { text-align: center; margin-top: 16px; color: var(--text-muted); }

form label { display: block; margin-bottom: 14px; font-size: 0.9rem; color: var(--text-muted); }
form input, form select, form textarea { width: 100%; margin-top: 6px; padding: 10px 12px; background: var(--panel-alt); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.95rem; font-family: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,222,90,0.15); }

.btn-primary { display: inline-block; background: var(--accent); color: #08130a; border: none; padding: 10px 18px; border-radius: 8px; font-weight: 700; cursor: pointer; text-align: center; box-shadow: 0 2px 10px rgba(74,222,90,0.25); transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease; }
.btn-primary:hover { background: var(--accent-hover); color: #08130a; box-shadow: 0 4px 16px rgba(74,222,90,0.35); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-danger { background: var(--error); color: #fff; border: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: opacity 0.15s ease, transform 0.1s ease; }
.btn-danger:hover { opacity: 0.88; transform: translateY(-1px); }

.alert { padding: 11px 16px; border-radius: 8px; margin-bottom: 14px; font-size: 0.9rem; border-left: 3px solid transparent; }
.alert-error { background: rgba(231,76,60,0.12); color: #ff8a80; border: 1px solid rgba(231,76,60,0.3); border-left: 3px solid #e74c3c; }
.alert-success { background: rgba(46,204,113,0.12); color: #7ee8a5; border: 1px solid rgba(46,204,113,0.3); border-left: 3px solid #2ecc71; }

/* ---- Avatar picker (registration) ---- */
.avatar-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 18px; }
.avatar-option { position: relative; text-align: center; cursor: pointer; border: 2px solid var(--border); border-radius: 10px; padding: 10px 6px; background: var(--panel-alt); }
.avatar-option input { position: absolute; opacity: 0; width: 1px; }
.avatar-option img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.avatar-option span { display: block; font-size: 0.75rem; margin-top: 4px; color: var(--text-muted); }
.avatar-option:has(input:checked) { border-color: var(--accent); background: rgba(255,183,3,0.1); }

/* ---- Offer grid ---- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.offer-card { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }

/* ---- Exclusive Offers (compact card, same footprint as offerwall cards; opens a detail popup on click instead of navigating directly) ---- */
.exclusive-offer-grid { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 14px; padding-bottom: 6px; scroll-behavior: smooth; scrollbar-width: thin; }
.exclusive-offer-card {
    position: relative; width: 150px; flex: 0 0 150px; background: linear-gradient(160deg, var(--panel-alt), var(--panel)); border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; display: flex; flex-direction: column; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.exclusive-offer-card:hover { transform: translateY(-3px); border-color: rgba(255,183,3,0.4); box-shadow: var(--shadow-lg); }
.exclusive-offer-thumb-wrap { position: relative; width: 100%; height: 90px; background: var(--panel-alt); }
.exclusive-offer-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exclusive-offer-ribbon { position: absolute; top: 6px; left: 6px; background: linear-gradient(90deg, #ffb703, #ff8c42); color: #1a1200; font-size: 0.52rem; font-weight: 800; padding: 2px 6px; border-radius: 10px; letter-spacing: 0.2px; box-shadow: 0 2px 8px rgba(255,140,66,0.4); }
.exclusive-offer-body { padding: 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.exclusive-offer-body h3 { margin: 0; font-size: 0.8rem; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exclusive-offer-desc { display: none; } /* full description now lives in the popup, not the compact card */
.exclusive-offer-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.exclusive-offer-price { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 1.02rem; color: var(--accent); }
.exclusive-offer-price::before { content: '🪙'; font-size: 0.9rem; }
.exclusive-offer-tag { background: rgba(74,222,90,0.14); color: var(--accent); font-size: 0.52rem; font-weight: 800; padding: 2px 6px; border-radius: 8px; letter-spacing: 0.2px; }
.exclusive-offer-btn { display: none; } /* replaced by the popup's own Start Offer button */

/* ---- Exclusive offer detail popup ---- */
.exclusive-offer-modal-box { max-width: 460px; padding: 0; overflow: hidden; }
.exclusive-offer-modal-head { display: flex; align-items: center; gap: 14px; padding: 22px 24px 18px; border-bottom: 1px solid var(--border); }
.exclusive-offer-modal-head img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--panel-alt); flex-shrink: 0; }
.exclusive-offer-modal-head-text h2 { margin: 0 0 4px; font-size: 1.05rem; }
.exclusive-offer-modal-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.exclusive-offer-modal-body { padding: 20px 24px; }
.exclusive-offer-modal-body p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin: 0 0 18px; }
.exclusive-offer-modal-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.exclusive-offer-modal-meta-item { display: flex; align-items: center; justify-content: space-between; font-size: 0.86rem; padding: 8px 12px; background: var(--panel-alt); border-radius: 8px; }
.exclusive-offer-modal-meta-item span:last-child { font-weight: 600; text-align: right; }
.exclusive-offer-modal-price-row { display: flex; align-items: center; justify-content: space-between; background: var(--panel-alt); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.exclusive-offer-modal-price-row strong { font-size: 1.3rem; color: var(--accent); }
.offer-card img { width: 100%; border-radius: 8px; aspect-ratio: 16/9; object-fit: contain; background: var(--panel-alt); }
.offer-card h3 { font-size: 1rem; margin: 10px 0 4px; }
.offer-desc { color: var(--text-muted); font-size: 0.85rem; min-height: 32px; }
.offer-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.coin-reward { color: var(--accent); font-weight: 700; }
.empty-state { color: var(--text-muted); padding: 40px; text-align: center; grid-column: 1 / -1; }
.badge-featured { position: absolute; top: 20px; left: 20px; background: var(--accent); color: #1a1a1a; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 12px; }

/* ---- Provider tabs (Earn page) ---- */
.provider-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.tab-btn { background: var(--panel-alt); border: 1px solid var(--border); color: var(--text-muted); padding: 8px 18px; border-radius: 20px; cursor: pointer; font-weight: 700; font-size: 0.86rem; display: flex; align-items: center; gap: 6px; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.tab-btn:hover { color: var(--text); border-color: var(--text-muted); }
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #08130a; box-shadow: 0 4px 14px rgba(74,222,90,0.3); }
.provider-tabs { border-bottom: none !important; padding-bottom: 0 !important; margin-bottom: 20px !important; }
.tab-logo { width: 16px; height: 16px; border-radius: 3px; }
.offerwall-iframe { width: 100%; height: 80vh; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }

/* ---- Shop ---- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-top: 16px; }
.shop-card { background: linear-gradient(160deg, var(--panel-alt), var(--panel)); border: 1px solid var(--border); border-radius: 14px; padding: 18px 14px; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.shop-card:hover { transform: translateY(-3px); border-color: rgba(74,222,90,0.4); box-shadow: var(--shadow-lg); }
.shop-card img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 10px; border-radius: 10px; }
.shop-card h3 { font-size: 0.92rem; margin: 6px 0 2px; font-weight: 700; }

/* ---- Modal ---- */
.modal { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); color: var(--text); padding: 24px; width: 100%; max-width: 380px; }
.modal::backdrop { background: rgba(0,0,0,0.6); }
.modal-animated { opacity: 0; transform: scale(0.92) translateY(10px); transition: opacity 0.2s ease, transform 0.2s ease; }
.modal-animated.open { opacity: 1; transform: scale(1) translateY(0); }
.modal-animated::backdrop { background: rgba(0,0,0,0); transition: background 0.2s ease; }
.modal-animated.open::backdrop { background: rgba(0,0,0,0.6); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }

/* ---- Live feed ---- */
.live-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.live-feed { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 10px; max-height: 640px; overflow-y: auto; }
.live-feed li { background: var(--panel-alt); border-radius: 8px; padding: 10px 12px; font-size: 0.88rem; }
.live-user { font-weight: 700; color: var(--accent); }
.live-time { float: right; color: var(--text-muted); font-size: 0.78rem; }
.feed-item { display: flex; align-items: center; gap: 12px; background: var(--panel-alt); border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; }
.feed-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.feed-text { flex: 1; font-size: 0.88rem; line-height: 1.5; }
.feed-item-new { animation: feed-item-in 0.4s ease; }
@keyframes feed-item-in { from { opacity: 0; transform: translateY(-8px); background: rgba(74,222,90,0.15); } to { opacity: 1; transform: translateY(0); } }
#live-pulse-badge.pulse { animation: pulse-badge 0.6s ease; }
@keyframes pulse-badge { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* ---- Profile ---- */
.profile-summary { display: flex; gap: 20px; align-items: center; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--accent); object-fit: cover; }
.danger-zone { border-color: rgba(231,76,60,0.4); }

/* ---- Panels / dashboards ---- */
.panel {
    background: linear-gradient(160deg, var(--panel-alt), var(--panel));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.panel h2 { margin-top: 0; font-size: 1.05rem; letter-spacing: 0.2px; }
.panel h3 { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.4px; }

.stat-cards { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.stat-card {
    background: linear-gradient(160deg, var(--panel-alt), var(--panel));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    min-width: 160px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.16);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.stat-card:hover { transform: translateY(-2px); border-color: rgba(74,222,90,0.35); }
.stat-label { display: block; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.4px; }
.stat-value { display: block; font-size: 1.55rem; font-weight: 800; color: var(--accent); margin-top: 6px; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 0.88rem; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.data-table th { color: var(--text-muted); font-weight: 700; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.4px; background: var(--panel-alt); position: sticky; top: 0; }
.data-table tbody tr { transition: background 0.12s ease; }
.data-table tbody tr:hover { background: rgba(74,222,90,0.05); }
.data-table tbody tr:last-child td { border-bottom: none; }

.badge { padding: 4px 11px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; letter-spacing: 0.2px; }
.badge-active, .badge-success, .badge-approved { background: rgba(46,204,113,0.15); color: #7ee8a5; }
.badge-paused, .badge-pending, .badge-processing { background: rgba(255,183,3,0.15); color: var(--accent); }
.badge-rejected, .badge-declined, .badge-chargeback { background: rgba(231,76,60,0.15); color: #ff8a80; }

/* ---- Landing page ---- */
.hero { text-align: center; padding: 80px 20px 50px; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 2.4rem; line-height: 1.2; }
.accent-text { color: var(--accent); }
.hero p { color: var(--text-muted); font-size: 1.1rem; margin: 16px 0 30px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 40px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.4rem; color: var(--accent); }
.hero-stats span { color: var(--text-muted); font-size: 0.85rem; }
.landing-offers { max-width: 1100px; margin: 60px auto; padding: 0 20px; }
.landing-offers h2, .how-it-works h2 { text-align: center; margin-bottom: 24px; }
.how-it-works { max-width: 1000px; margin: 60px auto; padding: 0 20px 40px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.step-num { display: inline-block; width: 32px; height: 32px; line-height: 32px; background: var(--accent); color: #1a1a1a; border-radius: 50%; font-weight: 700; margin-bottom: 10px; }

/* ---- Footer ---- */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--border); border-radius: 20px 20px 0 0; margin-top: 40px; padding: 30px 20px; background: var(--panel); }
.site-footer::before {
    content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
    width: 480px; height: 240px; background: radial-gradient(ellipse, rgba(74,222,90,0.1), transparent 70%);
    pointer-events: none; z-index: 0;
}
.site-footer::after {
    content: ''; position: absolute; inset: 0;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 14px);
    pointer-events: none; z-index: 0;
}
.site-footer > * { position: relative; z-index: 1; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { font-weight: 700; color: var(--accent); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; width: 100%; text-align: center; }

/* ---- Provider cards (Earn page, GamersUniverse-style) ---- */
.section-band { padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.5px; margin: 34px 0 8px; color: #fff; }
.section-heading-block { margin-top: 24px; }
.section-heading-block .section-band { margin: 0 0 6px; }
.section-band-sub { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 14px; }

/* ---- Scroll-reveal fade-in ---- */
.reveal-init { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-init.reveal-in { opacity: 1; transform: translateY(0); }
.section-band-blue { background: linear-gradient(90deg, #1e5fa8, #3ab0c9); }
.section-band-pink { background: linear-gradient(90deg, #d6249f, #b91d73); }
.section-band-orange { background: #f97316; }
.section-band-green {
    background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--accent));
    color: #08130a;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(74,222,90,0.25);
}
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.provider-card {
    position: relative; background: linear-gradient(160deg, var(--panel-alt), var(--panel)); border: 1px solid var(--border); border-radius: 14px; padding: 12px;
    cursor: pointer; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between;
    overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
}
.provider-card::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 10px);
}
.provider-card:hover { border-color: rgba(74,222,90,0.5); box-shadow: 0 14px 34px rgba(0,0,0,0.4), 0 0 24px rgba(74,222,90,0.12); }

/* ---- Compact offerwall scroll card (Offerwalls/Survey/PTC rows) ---- */
.ow-scroll-section { margin: 28px 0; }
.ow-scroll-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ow-scroll-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 800; }

/* ---- Generalized dashboard scroll-section (icon box + title + subtitle + View all + nav arrows) ---- */
.dash-scroll-section {
    margin: 28px 0; background: linear-gradient(160deg, var(--panel-alt), var(--panel));
    border: 1px solid var(--border); border-radius: 18px; padding: 20px 20px 22px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dash-scroll-section:hover { border-color: rgba(74,222,90,0.25); box-shadow: var(--shadow-md), 0 0 30px rgba(74,222,90,0.05); }
.dash-scroll-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.dash-scroll-head-left { display: flex; align-items: center; gap: 12px; }
.dash-scroll-icon-box { width: 38px; height: 38px; border-radius: 10px; background: rgba(74,222,90,0.12); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.dash-scroll-title { font-size: 1.05rem; font-weight: 800; margin: 0; }
.dash-scroll-subtitle { font-size: 0.8rem; color: var(--text-muted); margin: 2px 0 0; }
.dash-scroll-head-right { display: flex; align-items: center; gap: 10px; }
.dash-scroll-viewall { font-size: 0.84rem; font-weight: 700; color: var(--text-muted); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.dash-scroll-viewall:hover { color: var(--accent); }
.ow-scroll-nav { display: flex; gap: 8px; }
.ow-scroll-nav button { width: 34px; height: 34px; border-radius: 50%; background: var(--panel-alt); border: 1px solid var(--border); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: background 0.15s ease, border-color 0.15s ease; }
.ow-scroll-nav button:hover { background: var(--border); border-color: var(--accent); }
.ow-scroll-nav button:disabled { opacity: 0.35; cursor: default; }
.ow-scroll-nav button:disabled:hover { background: var(--panel-alt); border-color: var(--border); }

.ow-scroll-track { display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none; }
.ow-scroll-track::-webkit-scrollbar { display: none; }

.ow-card { position: relative; flex: 0 0 168px; background: linear-gradient(160deg, var(--panel-alt), var(--panel)); border: 1px solid var(--border); border-radius: 16px; padding: 16px 14px 14px; cursor: pointer; overflow: hidden; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.ow-card-diagonal-shape { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ow-card > * { position: relative; z-index: 1; }
/* Grid variant (used on earn.php's "Offer Walls" section) — same card, but
   wraps into rows instead of scrolling horizontally in one strip. */
.ow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ow-grid .ow-card { flex: none; width: auto; }
.ow-card:hover { transform: translateY(-3px); border-color: rgba(74,222,90,0.45); box-shadow: 0 10px 26px rgba(0,0,0,0.35); }
.ow-card.is-hot { background: linear-gradient(160deg, #b45309, #92400e); border-color: #f59e0b; }
.ow-card.is-hot .ow-card-name, .ow-card.is-hot .ow-card-badge { color: #fff; }

.ow-card-badge { position: absolute; top: 10px; right: 10px; background: rgba(74,222,90,0.16); color: var(--accent); font-size: 0.68rem; font-weight: 800; padding: 3px 9px; border-radius: 20px; }
.ow-card.is-hot .ow-card-badge { background: rgba(0,0,0,0.3); display: flex; align-items: center; gap: 3px; }

.ow-card-icon-box { width: 100%; height: 64px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.ow-card-icon-box img { max-width: 90%; max-height: 90%; object-fit: contain; }
.ow-card-icon-box .ow-card-fallback-text { font-weight: 800; font-size: 1.1rem; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.4); }

.ow-card-name { font-weight: 700; font-size: 0.94rem; text-align: center; margin-bottom: 6px; }
.ow-card-stars { text-align: center; font-size: 0.82rem; letter-spacing: 1px; color: #4a5045; }
.ow-card-stars .filled { color: #ffb703; }

.ow-card-play-overlay { position: absolute; inset: 0; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(0,0,0,0.35); opacity: 0; transition: opacity 0.15s ease; }
.ow-card:hover .ow-card-play-overlay { opacity: 1; }
.ow-card-play-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #08130a; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: 0 4px 14px rgba(74,222,90,0.5); }
.ow-card-play-label { color: #fff; font-weight: 700; font-size: 0.8rem; }

/* ---- Admin provider card logo (admin/providers.php grid — different
   markup from the public provider-card.php template above) ---- */
.provider-logo {
    position: relative; z-index: 2; width: 100%; height: 80px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.provider-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.provider-logo-text { font-size: 1.3rem; font-weight: 800; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.6); text-align: center; word-break: break-word; }
.provider-card-bg { position: absolute; inset: 0; z-index: 0; padding: 14px; display: flex; align-items: center; justify-content: center; }
.provider-card-bg-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform 0.3s ease; }
.provider-card:hover .provider-card-bg-img { transform: scale(1.06); }
.provider-card-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.85) 100%); }
.provider-card-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; width: 100%; }
.provider-tag { background: rgba(255,183,3,0.9); border: 1px solid rgba(255,183,3,0.9); color: #1a1200; font-size: 0.55rem; font-weight: 800; padding: 2px 7px; border-radius: 20px; letter-spacing: 0.4px; }
.provider-category { background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); border: 1px solid rgba(255,255,255,0.15); color: #fff; font-size: 0.56rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; display: inline-flex; align-items: center; gap: 3px; }

/* ---- Hot/trending badge (pulsing dot) ---- */
.provider-hot-badge { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(90deg, #ff4d4d, #ff8787); color: #fff; font-size: 0.62rem; font-weight: 800; padding: 3px 9px 3px 7px; border-radius: 20px; letter-spacing: 0.3px; box-shadow: 0 2px 10px rgba(255,77,77,0.4); }
.provider-hot-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: hot-dot-pulse 1.2s ease-in-out infinite; }
@keyframes hot-dot-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.4); } }

/* ---- Premium animated glow ring ---- */
.provider-card.is-premium { position: relative; }
.provider-card.is-premium::before {
    content: ''; position: absolute; inset: -1px; border-radius: 17px; padding: 1px;
    background: linear-gradient(120deg, rgba(255,183,3,0.7), rgba(74,222,90,0.5), rgba(255,183,3,0.7));
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: premium-ring-sweep 3s linear infinite;
    pointer-events: none; z-index: 3;
}
@keyframes premium-ring-sweep { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

/* ---- Hover "Tap to Earn" CTA reveal ---- */
.provider-card-cta {
    position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center;
    background: rgba(8,19,10,0.55); backdrop-filter: blur(1px);
    color: #fff; font-weight: 800; font-size: 0.68rem; letter-spacing: 0.2px; text-align: center; padding: 8px;
    opacity: 0; transform: scale(0.95); transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.provider-card:hover .provider-card-cta { opacity: 1; transform: scale(1); }
.provider-card-cta span { display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: #08130a; padding: 5px 10px; border-radius: 16px; box-shadow: 0 4px 14px rgba(74,222,90,0.4); white-space: nowrap; }

/* ---- Staggered entrance animation ---- */
.provider-grid .provider-card { opacity: 0; animation: provider-card-in 0.4s ease forwards; }
.provider-grid .provider-card:nth-child(1) { animation-delay: 0.03s; }
.provider-grid .provider-card:nth-child(2) { animation-delay: 0.07s; }
.provider-grid .provider-card:nth-child(3) { animation-delay: 0.11s; }
.provider-grid .provider-card:nth-child(4) { animation-delay: 0.15s; }
.provider-grid .provider-card:nth-child(5) { animation-delay: 0.19s; }
.provider-grid .provider-card:nth-child(6) { animation-delay: 0.23s; }
.provider-grid .provider-card:nth-child(n+7) { animation-delay: 0.26s; }
@keyframes provider-card-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.provider-card-bottom { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.provider-name { margin: 0; font-size: 0.9rem; font-weight: 800; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.6); }

.provider-bonus {
    position: relative; overflow: hidden; display: inline-block;
    background: linear-gradient(90deg, #2563eb, #3b82f6); color: #fff; font-size: 0.66rem; font-weight: 700;
    padding: 4px 11px; border-radius: 20px; box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}
.provider-bonus-shine { position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent); animation: bonus-shine 2.6s ease-in-out infinite; }
@keyframes bonus-shine { 0% { left: -60%; } 60%, 100% { left: 130%; } }

/* ---- Offerwall modal ---- */
.offerwall-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.25s ease; }
.offerwall-modal-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.offerwall-modal { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; width: 100%; max-width: 900px; height: 85vh; display: flex; flex-direction: column; overflow: hidden; transform: scale(0.96); transition: transform 0.2s ease; box-shadow: var(--shadow-lg); }
.offerwall-modal-overlay.open .offerwall-modal { transform: scale(1); }
.offerwall-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: var(--panel); border-bottom: 1px solid var(--border); }
.offerwall-modal-header-text { display: flex; flex-direction: column; gap: 2px; }
.offerwall-modal-header-text strong { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.offerwall-modal-header-text span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.8px; color: var(--text-muted); text-transform: uppercase; }
.offerwall-modal-header button { width: 34px; height: 34px; border-radius: 50%; background: var(--panel-alt); border: 1px solid var(--border); color: var(--text); font-size: 1.15rem; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background 0.15s ease, border-color 0.15s ease; }
.offerwall-modal-header button:hover { background: var(--border); border-color: var(--accent); }
.offerwall-modal-body { position: relative; flex: 1; background: var(--panel); }
.offerwall-modal-body iframe { width: 100%; height: 100%; border: none; opacity: 0; transition: opacity 0.15s; position: relative; z-index: 1; }
.offerwall-modal-body iframe.loaded { opacity: 1; }
.offerwall-loading-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, calc(50% + 38px)); color: var(--text-muted); font-size: 0.85rem; z-index: 0; white-space: nowrap; }
.offerwall-loading-label.hidden { display: none; }
.offerwall-spinner { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; z-index: 0; }
.offerwall-spinner.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Sitewide animation ---- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.content, .auth-card, .hero, .landing-offers, .how-it-works { animation: fadeInUp 0.35s ease both; }
.offer-card, .provider-card, .shop-card, .stat-card, .step { transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.offer-card:hover, .shop-card:hover { border-color: var(--accent); box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.stat-card:hover, .step:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
a, .btn-primary, .btn-ghost, .btn-danger, .nav-item, .tab-btn { transition: all 0.15s ease; }
.btn-primary:active { transform: scale(0.97); }

/* ---- Profile dropdown ---- */
.profile-dropdown { position: relative; }
.profile-icon { background: none; border: none; padding: 0; cursor: pointer; }
.profile-dropdown-menu { position: absolute; top: calc(100% + 10px); right: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; min-width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s; z-index: 50; overflow: hidden; }
.profile-dropdown-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.profile-dropdown-header { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.85rem; display: flex; flex-direction: column; gap: 4px; }
.profile-dropdown-menu a { display: block; padding: 12px 16px; color: var(--text); font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.profile-dropdown-menu a:last-child { border-bottom: none; }
.profile-dropdown-menu a:hover { background: var(--panel-alt); color: var(--accent); }
.profile-dropdown-menu a.logout-link { color: #ff8a80; }
.profile-dropdown-menu a.logout-link:hover { background: rgba(231,76,60,0.1); }

/* ---- Admin provider edit accordion ---- */
.provider-edit-row { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.provider-edit-row summary { padding: 12px 16px; cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--panel-alt); list-style: none; }
.provider-edit-row summary::-webkit-details-marker { display: none; }
.provider-thumb { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; }
.provider-edit-row .toggle-link { margin-left: auto; font-size: 0.8rem; }
.provider-edit-form { padding: 16px; border-top: 1px solid var(--border); }

/* ---- FreeCash-style social auth ---- */
.auth-social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border-radius: 8px; font-weight: 600; font-size: 0.92rem; margin-bottom: 10px; cursor: pointer; border: none; transition: opacity 0.15s; }
.auth-social-btn:hover { opacity: 0.9; }
.auth-social-google { background: #fff; color: #1a1a1a; }
.auth-social-facebook { background: #1877f2; color: #fff; }
.auth-social-apple { background: #000; color: #fff; border: 1px solid #333; }
.auth-social-icon { width: 18px; height: 18px; flex-shrink: 0; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-muted); font-size: 0.78rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-terms { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 14px; line-height: 1.5; }
.auth-terms a { color: var(--accent); }

/* ---- Auth modal (true modal, no iframe) ---- */
.auth-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.25s ease; }
.auth-modal-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.auth-modal-box { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; padding: 28px; transform: scale(0.9); transition: transform 0.25s ease; }
.auth-modal-overlay.open .auth-modal-box { transform: scale(1); }
.auth-modal-close-btn { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--panel-alt); border: 1px solid var(--border); color: var(--text-muted); font-size: 1.2rem; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; }
.auth-modal-close-btn:hover { color: var(--text); }
.auth-modal-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.auth-modal-icon { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #ff8c42); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.auth-modal-brand h2 { margin: 0; font-size: 1.15rem; }
.auth-modal-brand p { margin: 2px 0 0; font-size: 0.82rem; }

.auth-tabs { display: flex; background: var(--panel-alt); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.auth-tab-btn { flex: 1; padding: 10px; border: none; background: transparent; color: var(--text-muted); font-weight: 700; border-radius: 8px; cursor: pointer; transition: all 0.15s; }
.auth-tab-btn.active { background: var(--accent); color: #1a1a1a; }

.input-with-button { display: flex; gap: 8px; margin-top: 6px; }
.input-with-button input { margin-top: 0; flex: 1; }
.btn-random { white-space: nowrap; background: var(--panel-alt); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 0 14px; cursor: pointer; font-size: 0.85rem; }
.btn-random:hover { border-color: var(--accent); color: var(--accent); }

.avatar-picker-compact { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.avatar-picker-compact .avatar-option { padding: 8px 4px; }
.avatar-picker-compact .avatar-option img { width: 36px; height: 36px; }
.avatar-picker-compact .avatar-option span { font-size: 0.68rem; }

.auth-checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin: 14px 0; }
.auth-checkbox-row input { width: auto; margin: 0; flex-shrink: 0; }
.auth-checkbox-row a { color: var(--accent); }

#auth-modal-errors .alert { margin-bottom: 10px; }

/* ---- Dynamic macro mapping rows ---- */
.macro-rows { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.macro-row { display: flex; gap: 8px; align-items: center; }
.macro-row select { flex: 0 0 220px; margin: 0; padding: 8px 10px; background: var(--panel-alt); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.85rem; }
.macro-row input { margin: 0; flex: 1; }
.macro-row .btn-danger { flex-shrink: 0; padding: 8px 12px; }

/* ---- Live activity ticker (scrolling marquee) ---- */
.live-ticker { background: var(--panel); border-bottom: 1px solid var(--border); overflow: hidden; white-space: nowrap; position: relative; }
.live-ticker::before, .live-ticker::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 2; pointer-events: none; }
.live-ticker::before { left: 0; background: linear-gradient(90deg, var(--panel), transparent); }
.live-ticker::after { right: 0; background: linear-gradient(270deg, var(--panel), transparent); }
.live-ticker-track { display: inline-flex; gap: 10px; padding: 10px 14px; animation: ticker-scroll 40s linear infinite; }
.live-ticker:hover .live-ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-pill { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(160deg, var(--panel-alt), var(--panel)); border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px 6px 6px; font-size: 0.82rem; flex-shrink: 0; transition: transform 0.15s ease, border-color 0.15s ease; }
.ticker-pill:hover { transform: translateY(-2px); border-color: rgba(74,222,90,0.4); }
.ticker-pill-earn .ticker-value { color: var(--accent); font-weight: 700; }
.ticker-pill-cashout { border-color: rgba(46,204,113,0.3); }
.ticker-pill-cashout .ticker-value { color: var(--success); font-weight: 700; }
.ticker-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* ---- User profile popup (from ticker click) ---- */
.user-profile-box { max-width: 420px; }
.profile-header-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar-wrap img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--success); object-fit: cover; }
.profile-level-badge { position: absolute; bottom: -4px; right: -4px; background: var(--panel); border: 1px solid var(--success); color: var(--success); font-size: 0.65rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; }
.profile-section-title { font-size: 0.95rem; margin: 20px 0 10px; display: flex; align-items: center; gap: 6px; }
.profile-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-stat-card { background: var(--panel-alt); border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; }
.profile-stat-card strong { display: block; font-size: 1.3rem; color: var(--text); }
.profile-stat-card span { font-size: 0.75rem; color: var(--text-muted); }
.profile-activity-list { display: flex; flex-direction: column; gap: 6px; }
.profile-activity-row { display: flex; align-items: center; gap: 10px; background: var(--panel-alt); border-radius: 8px; padding: 10px 12px; font-size: 0.85rem; }
.profile-activity-label { flex: 1; }
.profile-activity-time { font-size: 0.75rem; }
.profile-activity-value { font-weight: 700; color: var(--accent); }
.user-profile-loading { min-height: 120px; }

/* ---- Daily streak widget ---- */
.streak-widget { background: linear-gradient(160deg, var(--panel-alt), var(--panel)); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.streak-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.streak-header h3 { margin: 0; font-size: 1rem; }
.streak-days { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 14px; }
.streak-days::before {
    content: ''; position: absolute; top: 22px; left: 6%; right: 6%; height: 2px;
    background: linear-gradient(90deg, var(--success) var(--streak-progress, 0%), var(--border) var(--streak-progress, 0%));
    z-index: 0;
}
.streak-day { position: relative; z-index: 1; background: var(--panel-alt); border: 1px solid var(--border); border-radius: 8px; padding: 10px 4px; text-align: center; transition: transform 0.15s ease; }
.streak-day:hover { transform: translateY(-2px); }
.streak-day-num { display: block; font-size: 0.68rem; color: var(--text-muted); }
.streak-day-coin { display: block; font-size: 0.85rem; font-weight: 700; margin-top: 4px; }
.streak-day.claimed { border-color: var(--success); background: rgba(46,204,113,0.1); }
.streak-day.claimed .streak-day-coin { color: var(--success); }
.streak-day.today { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,183,3,0.3); animation: pulse-today 1.5s ease infinite; }
@keyframes pulse-today { 0%,100% { box-shadow: 0 0 0 2px rgba(255,183,3,0.3); } 50% { box-shadow: 0 0 0 5px rgba(255,183,3,0.15); } }
#streak-message .alert { margin: 10px 0 0; }

/* ---- Leaderboard ---- */
.my-rank-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, rgba(255,183,3,0.15), rgba(255,183,3,0.03)); border: 1px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.my-rank-num { font-size: 1.4rem; font-weight: 800; color: var(--accent); min-width: 50px; }
.leaderboard-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.leaderboard-rank { font-size: 1.1rem; font-weight: 700; width: 50px; }
.leaderboard-me { background: rgba(255,183,3,0.08); }

/* ---- Landing page layout (sidebar + content) ---- */
.landing-layout { display: flex; min-height: 100vh; }
.landing-sidebar { width: var(--sidebar-w); background: var(--panel); border-right: 1px solid var(--border); flex-shrink: 0; padding: 20px 12px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.landing-sidebar nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.landing-nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; color: var(--text-muted); font-weight: 600; background: none; border: none; text-align: left; cursor: pointer; font-size: 0.92rem; width: 100%; letter-spacing: 0.1px; transition: background 0.15s ease, color 0.15s ease; }
.landing-nav-item:hover { background: var(--panel-alt); color: var(--text); }
.landing-nav-item.home { background: rgba(74,222,90,0.13); color: var(--accent); font-weight: 700; box-shadow: 0 0 0 1px rgba(74,222,90,0.25), 0 0 22px rgba(74,222,90,0.22); }
.landing-daily-card { background: var(--panel-alt); border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-top: 14px; }
.landing-daily-card .label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.85rem; }
.landing-daily-card .sub { font-size: 0.75rem; color: var(--text-muted); margin: 4px 0 10px; }
.landing-content { flex: 1; min-width: 0; }

.landing-topbar-v2 { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 18px 32px; }

/* Hero split */
.hero-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding: 20px 32px 40px; align-items: start; max-width: 1280px; margin: 0 auto; }
.hero-copy h1 { font-size: 2.6rem; line-height: 1.18; margin: 14px 0 16px; letter-spacing: -0.5px; }
.hero-copy .accent-text { color: var(--accent); }
.hero-copy p { color: var(--text-muted); font-size: 1.05rem; max-width: 480px; line-height: 1.6; }
.hero-live-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(74,222,90,0.12); color: var(--accent); border: 1px solid rgba(74,222,90,0.3); border-radius: 20px; padding: 6px 16px; font-size: 0.8rem; font-weight: 700; }
.hero-earn-line { margin-top: 18px; font-size: 0.92rem; color: var(--text-muted); }
.hero-earn-line strong { color: var(--text); font-size: 1.1rem; }
.hero-offer-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.hero-offer-row { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.hero-offer-rank { font-size: 0.7rem; font-weight: 800; color: var(--accent); width: 70px; flex-shrink: 0; }
.hero-offer-thumb { width: 42px; height: 42px; border-radius: 8px; object-fit: contain; flex-shrink: 0; background: var(--panel-alt); padding: 3px; }
.hero-offer-title { font-weight: 600; font-size: 0.92rem; }
.hero-offer-coins { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.hero-offer-arrow { margin-left: auto; color: var(--text-muted); }

.signup-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.signup-card .badge-new { display: inline-block; background: rgba(74,222,90,0.15); color: var(--accent); font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 12px; margin-bottom: 12px; letter-spacing: 0.3px; }
.signup-card h2 { margin: 0 0 10px; font-size: 1.55rem; line-height: 1.25; }
.signup-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 18px; line-height: 1.5; }
.signup-perks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.signup-perk { font-size: 0.74rem; color: var(--text-muted); background: var(--panel-alt); border: 1px solid var(--border); border-radius: 14px; padding: 5px 12px; }
.signup-card .btn-primary { width: 100%; padding: 14px; font-size: 0.98rem; border-radius: 10px; }
.signup-card .signin-line { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; }
#hero-email-input { width: 100%; margin-top: 6px; padding: 10px 12px; background: var(--panel-alt); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.95rem; font-family: inherit; }
#hero-email-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,222,90,0.15); }
#hero-email-input::placeholder { color: var(--text-muted); }

/* Stats bar */
.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 32px 40px; max-width: 1280px; margin: 0 auto; }
.stats-bar-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.stats-bar-card .label { font-size: 0.8rem; color: var(--text-muted); }
.stats-bar-card .value { font-size: 1.6rem; font-weight: 800; margin-top: 6px; color: var(--accent); }

/* Steps */
.steps-section-v2 { padding: 20px 32px 44px; max-width: 1280px; margin: 0 auto; }
.steps-section-v2 h2 { text-align: center; margin-bottom: 28px; font-size: 1.7rem; }
.steps-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card-v2 { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 28px 24px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.step-icon-v2 { width: 50px; height: 50px; border-radius: 50%; background: rgba(74,222,90,0.12); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 14px; }
.step-card-v2 h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step-card-v2 p { color: var(--text-muted); font-size: 0.86rem; margin: 0; line-height: 1.5; }

/* Trusted providers band */
.providers-band { margin: 20px auto 40px; max-width: 1280px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px 32px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.providers-band .label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 16px; letter-spacing: 0.5px; }
.providers-band-logos { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; align-items: center; }
.providers-band-logos img { height: 24px; opacity: 0.85; }
.providers-band-logos span { font-weight: 700; color: var(--text-muted); font-size: 0.98rem; }

/* FAQ accordion */
.faq-section { padding: 20px 32px 44px; max-width: 760px; margin: 0 auto; }
.faq-section h2 { text-align: center; margin-bottom: 24px; font-size: 1.7rem; }
.faq-item { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.faq-item summary { padding: 18px 20px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--text-muted); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 20px 18px; color: var(--text-muted); margin: 0; font-size: 0.9rem; line-height: 1.6; }

/* Bottom CTA */
.bottom-cta { margin: 20px auto 50px; max-width: 1280px; background: linear-gradient(135deg, rgba(74,222,90,0.14), rgba(74,222,90,0.02)); border: 1px solid var(--border); border-radius: 18px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.bottom-cta h2 { margin: 0 0 8px; font-size: 1.6rem; }
.bottom-cta p { color: var(--text-muted); margin: 0; }

/* ---- Hero/signup glow polish (BountyCash-style) ---- */
.hero-split-glow { position: relative; overflow: hidden; }
.hero-split-glow::before { content: ''; position: absolute; top: -100px; left: 10%; width: 380px; height: 380px; background: radial-gradient(circle, rgba(74,222,90,0.18), transparent 70%); filter: blur(10px); pointer-events: none; z-index: 0; }
.hero-split-glow::after { content: ''; position: absolute; bottom: -120px; right: 5%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(74,222,90,0.12), transparent 70%); filter: blur(10px); pointer-events: none; z-index: 0; }
.hero-split-glow > * { position: relative; z-index: 1; }
.hero-bg-pattern { position: absolute; inset: 0; z-index: 0; opacity: 0.5;
    background-image:
        linear-gradient(rgba(74,222,90,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,222,90,0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(ellipse 60% 100% at 70% 30%, black, transparent);
    mask-image: radial-gradient(ellipse 60% 100% at 70% 30%, black, transparent);
}
.hero-bg-custom { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center right; opacity: 0.9; -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent); mask-image: linear-gradient(to bottom, black 60%, transparent); }
.signup-card-glow { box-shadow: 0 0 60px rgba(74,222,90,0.15), 0 0 0 1px rgba(74,222,90,0.15) inset; }
.signup-card-glow .btn-primary { box-shadow: 0 4px 20px rgba(74,222,90,0.35); }

/* ---- 3D Tilt Card ---- */
.tilt-card { position: relative; transform-style: preserve-3d; transition: transform 0.15s ease-out, box-shadow 0.2s ease; will-change: transform; overflow: hidden; }
.tilt-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(74,222,90,0.25); border-color: rgba(74,222,90,0.4); }
.tilt-shine { position: absolute; inset: 0; pointer-events: none; transition: background 0.1s ease; z-index: 2; border-radius: inherit; }

/* ---- Earn page header + promo carousel ---- */
.earn-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.live-count-badge { background: rgba(74,222,90,0.15); color: var(--accent); border: 1px solid rgba(74,222,90,0.35); border-radius: 20px; padding: 5px 14px; font-size: 0.78rem; font-weight: 700; }

.promo-carousel { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--border); background: var(--panel); box-shadow: var(--shadow-md); }
.promo-carousel::before {
    content: ''; position: absolute; top: -60px; right: -40px; width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(74,222,90,0.14), transparent 70%);
    pointer-events: none; z-index: 0;
}
.promo-track { position: relative; z-index: 1; display: flex; transition: transform 0.4s ease; touch-action: pan-y; user-select: none; }
.promo-slide { min-width: 100%; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 280px; }
.promo-slide-text { padding: 32px 48px 32px 56px; }
.promo-icon { font-size: 3rem; }
.promo-banner-img {
    width: 100%; height: 260px; object-fit: contain; display: block;
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%);
    mask-image: linear-gradient(to right, transparent, black 12%);
}
.promo-slide-visual {
    width: 100%; height: 280px; display: flex; align-items: center; justify-content: center; font-size: 5rem;
    background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
}
.promo-label { display: inline-block; background: rgba(0,0,0,0.3); color: var(--text-muted); font-size: 0.7rem; font-weight: 700; padding: 4px 12px; border-radius: 12px; margin-bottom: 12px; letter-spacing: 0.5px; }
.promo-slide-text h3 { margin: 0 0 10px; font-size: 1.6rem; font-weight: 800; }
.promo-slide-text p { margin: 0 0 18px; color: var(--text-muted); font-size: 0.92rem; max-width: 420px; line-height: 1.5; }
.promo-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.1); color: #fff; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; z-index: 5; }
.promo-arrow:hover { background: rgba(0,0,0,0.7); }
.promo-prev { left: 14px; }
.promo-next { right: 14px; }
.promo-progress-track { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.08); }
.promo-progress-fill { height: 100%; width: 0%; background: var(--accent); }
.promo-progress-fill.animate { animation: promo-fill 5s linear forwards; }
@keyframes promo-fill { from { width: 0%; } to { width: 100%; } }
.promo-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
.promo-dot { width: 18px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.3); border: none; cursor: pointer; padding: 0; }
.promo-dot.active { background: var(--accent); width: 26px; }

/* ---- Shop page ---- */
.shop-balance-card { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, rgba(74,222,90,0.14), var(--panel)); border: 1px solid rgba(74,222,90,0.25); border-radius: 16px; padding: 22px 28px; margin: 16px 0 20px; flex-wrap: wrap; gap: 14px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.shop-balance-card::before { content: ''; position: absolute; top: -50px; right: -30px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(74,222,90,0.15), transparent 70%); pointer-events: none; }
.shop-balance-amount { display: flex; align-items: center; gap: 8px; font-size: 1.7rem; font-weight: 800; color: var(--accent); margin: 4px 0; }
.shop-balance-rate { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.shop-balance-rate strong { color: var(--text); font-size: 1rem; }
.shop-type-badge { position: absolute; top: 12px; left: 12px; background: rgba(74,222,90,0.16); color: var(--accent); font-size: 0.64rem; font-weight: 800; padding: 3px 10px; border-radius: 10px; letter-spacing: 0.2px; }
.redeem-modal-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.redeem-modal-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; display: none; }
.redeem-modal-header h2 { margin: 0; font-size: 1.1rem; }
.redeem-quick-amounts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.quick-amount-btn { background: var(--panel-alt); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 14px; font-size: 0.85rem; cursor: pointer; }
.quick-amount-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Invite & Earn page ---- */
.invite-hero { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 32px; margin-bottom: 20px; }
.invite-hero-glow { position: absolute; top: -80px; right: -60px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(74,222,90,0.2), transparent 70%); pointer-events: none; }
.invite-hero-content { position: relative; z-index: 1; max-width: 620px; }
.invite-hero-content h2 { font-size: 1.6rem; margin: 12px 0 10px; }
.invite-hero-content p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0 0 20px; }
.referral-link-box { display: flex; gap: 10px; margin-bottom: 16px; }
.referral-link-box input {
    flex: 1; padding: 12px 14px; background: var(--panel-alt); border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); font-size: 0.9rem; font-family: inherit;
}
.referral-link-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,222,90,0.15); }
.invite-share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 10px; font-size: 0.85rem; font-weight: 600; text-decoration: none; border: 1px solid var(--border); }
.share-whatsapp { background: rgba(37,211,102,0.12); color: #25d366; border-color: rgba(37,211,102,0.3); }
.share-telegram { background: rgba(0,136,204,0.12); color: #29a9eb; border-color: rgba(0,136,204,0.3); }
.share-facebook { background: rgba(24,119,242,0.12); color: #1877f2; border-color: rgba(24,119,242,0.3); }
.share-btn:hover { filter: brightness(1.15); }

/* ---- Pagination ---- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; justify-content: center; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px; background: var(--panel-alt); border: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
.page-btn:hover { color: var(--text); border-color: var(--accent); }
.page-btn.active { background: var(--accent); color: #08130a; font-weight: 700; border-color: var(--accent); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ---- Guest-locked cards ---- */
.provider-lock, .offer-lock { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,0.55); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; z-index: 3; }
.offer-card .offer-lock { top: 10px; right: 10px; }
.guest-streak-teaser p { margin: 0 0 14px; font-size: 0.85rem; }

/* ---- Live earnings toast notifications ---- */
#live-toast-container { position: fixed; bottom: 20px; right: 16px; z-index: 200; display: flex; flex-direction: column-reverse; gap: 10px; max-width: 340px; }
.live-toast {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, var(--panel-alt), var(--panel));
    border: 1px solid rgba(74,222,90,0.35); border-radius: 16px; padding: 14px 16px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.45), 0 0 0 1px rgba(74,222,90,0.08) inset;
    opacity: 0; transform: translateY(20px) scale(0.97); transition: opacity 0.3s ease, transform 0.3s ease;
}
.live-toast.show { opacity: 1; transform: translateY(0) scale(1); }
.live-toast-thumb-wrap { position: relative; flex-shrink: 0; }
.live-toast-thumb { width: 46px; height: 46px; border-radius: 50%; object-fit: contain; background: var(--panel-alt); border: 1px solid var(--border); padding: 3px; }
.live-toast-thumb-fallback { display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.live-toast-status-dot { position: absolute; bottom: -1px; right: -1px; width: 13px; height: 13px; border-radius: 50%; background: var(--success); border: 2px solid var(--panel); }
.live-toast-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.live-toast-text strong { font-size: 0.95rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-toast-completed { color: var(--text-muted); font-size: 0.78rem; }
.live-toast-coins { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; font-size: 0.9rem; margin-top: 2px; }
.live-toast-coin-icon { font-size: 0.95rem; }
.live-toast-check { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; }

/* ---- Coin balance pulse on live update ---- */
.coin-pill.coin-pulse { animation: coin-pulse-anim 0.7s ease; }
@keyframes coin-pulse-anim {
    0% { box-shadow: 0 0 0 0 rgba(74,222,90,0.5); }
    50% { box-shadow: 0 0 0 8px rgba(74,222,90,0); transform: scale(1.06); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,90,0); transform: scale(1); }
}

/* ---- Smooth image fade-in ---- */
.img-fade { opacity: 0; transform: scale(0.98); transition: opacity 0.4s ease, transform 0.4s ease; }
.img-fade.img-fade-in { opacity: 1; transform: scale(1); }

/* ---- Page navigation loading bar ---- */
#page-loading-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-hover)); box-shadow: 0 0 10px rgba(74,222,90,0.6); z-index: 9999; opacity: 0; pointer-events: none; }

/* ---- Live chat bubble ---- */
.live-chat-bubble { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #08130a; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: 0 6px 20px rgba(74,222,90,0.4); z-index: 50; text-decoration: none; }
.live-chat-bubble:hover { background: var(--accent-hover); transform: scale(1.05); color: #08130a; }

/* ---- Best Ways to Earn ---- */
.best-ways-section { padding: 20px 32px 40px; max-width: 1280px; margin: 0 auto; }
.best-ways-section h2 { text-align: center; margin-bottom: 6px; font-size: 1.7rem; }
.section-sub { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin: 0 0 24px; }
.best-ways-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.best-way-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 26px 18px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.best-way-icon { font-size: 1.8rem; margin-bottom: 10px; }
.best-way-card h3 { margin: 0 0 6px; font-size: 0.98rem; }
.best-way-card p { margin: 0; color: var(--text-muted); font-size: 0.82rem; }

/* ---- Why Us ---- */
.why-us-section { padding: 20px 32px 40px; max-width: 1280px; margin: 0 auto; }
.why-us-copy { max-width: 700px; margin: 0 auto; }
.why-us-copy h2 { font-size: 1.7rem; margin: 12px 0 22px; }
.why-us-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-us-item { display: flex; gap: 12px; align-items: flex-start; }
.why-us-check { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: rgba(74,222,90,0.15); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; }
.why-us-item strong { display: block; font-size: 0.92rem; margin-bottom: 3px; }
.why-us-item p { margin: 0; font-size: 0.82rem; color: var(--text-muted); }

/* ---- Cashout Via ---- */
.cashout-section { padding: 20px 32px 40px; text-align: center; max-width: 1280px; margin: 0 auto; }
.cashout-section h2 { margin-bottom: 6px; font-size: 1.7rem; }
.cashout-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 20px; }
.cashout-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 120px; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.cashout-card img { height: 28px; object-fit: contain; }
.cashout-icon { font-size: 1.6rem; }
.cashout-card span:last-child { font-size: 0.8rem; color: var(--text-muted); }

/* ---- Enhanced footer ---- */
.footer-top { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 24px; }
.footer-brand-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin: 0 0 10px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 0.86rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--accent); }
.trustpilot-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-alt); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 0.78rem; color: #ffb703; margin-top: 4px; }
.trustpilot-badge span { color: var(--text-muted); }
.footer-bottom { max-width: 1100px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.footer-disclaimer { font-size: 0.74rem; color: var(--text-muted); max-width: 600px; }

/* ---- Mobile bottom nav bar (ColdGamers-style) ---- */
.mobile-bottom-nav { display: none; }
@media (max-width: 800px) {
    .mobile-bottom-nav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        background: var(--panel); border-top: 1px solid var(--border);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
    }
    .mobile-nav-item {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
        background: none; border: none; color: var(--text-muted); font-size: 0.68rem;
        padding: 6px 2px; cursor: pointer; text-decoration: none; font-family: inherit;
    }
    .mobile-nav-icon { font-size: 1.25rem; }
    .mobile-nav-item.active, .mobile-nav-item.home { color: var(--accent); }
    /* Leave room at the bottom of the page so content isn't hidden behind the fixed bar */
    body { padding-bottom: 64px; }
}

/* ---- Responsive ---- */
/* ---- Tablet (1024px) ---- */
@media (max-width: 1024px) {
    .hero-split { grid-template-columns: 1fr; }
    .steps-grid-v2 { grid-template-columns: repeat(2, 1fr); }
    .best-ways-grid { grid-template-columns: repeat(2, 1fr); }
    .why-us-list { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ---- Mobile / small tablet (800px) ---- */
@media (max-width: 800px) {
    .sidebar-toggle { display: block; }
    .sidebar { position: fixed; left: -240px; top: 65px; bottom: 0; z-index: 20; transition: left 0.2s; box-shadow: 4px 0 12px rgba(0,0,0,0.3); height: auto; }
    body.sidebar-open .sidebar { left: 0; }
    .content { margin-left: 0; }
    .content-column { margin-left: 0; }
    .live-columns { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .hero-split { grid-template-columns: 1fr; padding: 16px 18px 30px; }
    .hero-copy h1 { font-size: 1.9rem; }
    .landing-layout { flex-direction: column; }
    .landing-sidebar { display: none; }
    .landing-topbar-v2 { padding: 14px 18px; }
    .best-ways-grid { grid-template-columns: repeat(2, 1fr); }
    .why-us-list { grid-template-columns: 1fr; }
    .steps-grid-v2 { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; padding: 0 18px 30px; }
    .providers-band, .best-ways-section, .why-us-section, .cashout-section, .faq-section, .bottom-cta { padding-left: 18px; padding-right: 18px; }
    .footer-top { grid-template-columns: 1fr 1fr; padding: 0 18px 24px; }
    .bottom-cta { flex-direction: column; text-align: center; padding: 28px 20px; }
    .promo-slide { grid-template-columns: 1fr; min-height: auto; }
    .promo-slide-text { padding: 22px 20px 30px; text-align: center; }
    .promo-slide-text p { max-width: none; margin-left: auto; margin-right: auto; }
    .promo-banner-img, .promo-slide-visual { height: 140px; order: -1; }
    .promo-copy p { max-width: none; }
    .promo-arrow { display: none; }

    /* Topbar was overflowing the viewport on small phones (theme toggle +
       coin pill + avatar, or sign in/sign up buttons, didn't fit next to
       the logo) — causing the whole page to scroll horizontally. */
    .topbar { padding: 10px 12px; gap: 8px; }
    .topbar-left, .topbar-right { gap: 6px; }
    .topbar .logo { font-size: 1.05rem; }
    .topbar .logo img { height: 26px !important; }
    .theme-toggle-btn { width: 32px; height: 32px; font-size: 0.9rem; }
    .coin-pill { padding: 5px 10px; font-size: 0.85rem; gap: 4px; }
    .profile-icon img { width: 32px; height: 32px; }
    .btn-ghost { padding: 6px 10px; font-size: 0.82rem; }
    .topbar-right .btn-primary.btn-sm { padding: 6px 10px; font-size: 0.8rem; }
}

@media (max-width: 360px) {
    .topbar .logo { font-size: 0.92rem; }
    .btn-ghost { padding: 6px 8px; font-size: 0.76rem; }
    .topbar-right .btn-primary.btn-sm { padding: 6px 8px; font-size: 0.76rem; }
}

/* ---- Offerwall provider grid: 2 cards per row on mobile ---- */
@media (max-width: 700px) {
    .provider-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .provider-card { min-height: 148px; padding: 10px; border-radius: 12px; }
    .provider-card-bg { padding: 12px; }
    .provider-tag { font-size: 0.52rem; padding: 2px 7px; }
    .provider-category { font-size: 0.52rem; padding: 2px 7px; gap: 2px; }
    .provider-name { font-size: 0.82rem; }
    .provider-bonus { font-size: 0.62rem; padding: 4px 10px; }
}

@media (max-width: 400px) {
    .provider-grid { gap: 10px; }
    .provider-card { min-height: 130px; padding: 8px; }
    .provider-card-bg { padding: 8px; }
    .provider-name { font-size: 0.74rem; }
    .provider-bonus { font-size: 0.58rem; padding: 3px 8px; }
}

/* ---- Small phones (480px) ---- */
@media (max-width: 480px) {
    .best-ways-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-brand-col { align-items: center; }
    .hero-copy h1 { font-size: 1.6rem; }
    .signup-card { padding: 20px; }
    .signup-perks { justify-content: center; }
    .avatar-picker-compact { grid-template-columns: repeat(3, 1fr); }
    .live-chat-bubble { width: 48px; height: 48px; font-size: 1.2rem; bottom: 16px; right: 16px; }
    .cashout-grid { gap: 10px; }
    .cashout-card { min-width: 90px; padding: 14px 16px; }
    .tilt-card:hover { transform: none !important; }
    #live-toast-container { left: 10px; right: 10px; max-width: none; bottom: 78px; }
}

/* ---- Custom scrollbar (brand color) ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--panel); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 2px solid var(--panel); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
* { scrollbar-width: thin; scrollbar-color: var(--border) var(--panel); }

/* ---- Image skeleton shimmer (while loading, before img-fade-in) ---- */
.img-fade:not(.img-fade-in) {
    background: linear-gradient(100deg, var(--panel-alt) 30%, var(--border) 50%, var(--panel-alt) 70%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Button ripple micro-interaction ---- */
.btn-primary, .btn-danger, .quick-amount-btn, .page-btn { position: relative; overflow: hidden; }
.btn-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.45); transform: scale(0); animation: ripple-anim 0.6s ease-out forwards; pointer-events: none; }
@keyframes ripple-anim { to { transform: scale(2.5); opacity: 0; } }

/* ---- Confetti burst ---- */
.confetti-container { position: fixed; inset: 0; pointer-events: none; z-index: 500; }
.confetti-piece { position: absolute; width: 8px; height: 8px; border-radius: 2px; animation: confetti-fly 0.8s ease-out forwards; }
@keyframes confetti-fly {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* ---- Empty state with icon ---- */
.empty-state { position: relative; }
.empty-state::before { content: '📭'; display: block; font-size: 2rem; margin-bottom: 8px; opacity: 0.6; }

/* ---- Theme toggle button ---- */
.theme-toggle-btn { background: var(--panel-alt); border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; }
.theme-toggle-btn:hover { border-color: var(--accent); }/**
 * Admin panel layout styles (sidebar, content area). These live in this
 * same file — not a separate admin.css — so every admin page only ever
 * needs to load ONE stylesheet, with no risk of a second file going
 * missing or loading out of order.
 */

/* ---- Admin layout ---- */
.admin-layout { display: flex; min-height: 100vh; align-items: flex-start; }
.admin-sidebar {
    width: 240px;
    background: var(--panel);
    border-right: 1px solid var(--border);
    padding: 22px 16px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.admin-sidebar .logo { color: var(--accent); font-weight: 800; font-size: 1.05rem; margin-bottom: 22px; padding: 0 10px; letter-spacing: 0.2px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.admin-sidebar nav a {
    color: var(--text-muted);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.admin-sidebar nav a:hover { background: var(--panel-alt); color: var(--text); }
.admin-sidebar nav a.active { background: rgba(74,222,90,0.1); color: var(--accent); border-left-color: var(--accent); }
.admin-sidebar nav a[href*="logout"] { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); border-radius: 0; color: #ff8a80; }
.admin-sidebar nav a[href*="logout"]:hover { background: rgba(231,76,60,0.1); color: #ff8a80; }

.admin-content { flex: 1; padding: 32px 36px; max-width: 1200px; min-width: 0; }
.admin-content h1 { margin: 0 0 24px; font-size: 1.5rem; font-weight: 800; letter-spacing: 0.2px; }

@media (max-width: 900px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100%; height: auto; position: static; overflow-y: visible;
        border-right: none; border-bottom: 1px solid var(--border);
        padding: 14px 16px;
    }
    .admin-sidebar nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
    .admin-sidebar nav a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
    .admin-sidebar nav a.active { border-left-color: transparent; border-bottom-color: var(--accent); }
    .admin-sidebar nav a[href*="logout"] { margin-top: 0; padding-top: 10px; border-top: none; border-left: 1px solid var(--border); }
    .admin-content { padding: 20px; }
}

/* =====================================================================
   GLOBAL DESIGN REFINEMENT — a systematic pass for a more cohesive,
   premium feel across every page (typography scale, elevation, focus
   states, and small perceptual details that make a site "feel" designed
   rather than assembled). Sits at the end so it can safely refine
   existing rules without needing to touch every component individually.
   ===================================================================== */

:root {
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.14);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.22);
    --shadow-lg: 0 16px 44px rgba(0,0,0,0.32);
    --shadow-glow: 0 0 0 1px rgba(74,222,90,0.15), 0 8px 24px rgba(74,222,90,0.08);
}

/* ---- Typography scale & rhythm ---- */
body { line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; color: var(--text); }
h1 { font-size: 2rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { line-height: 1.65; }

/* ---- Text selection & focus (small perceptual-quality signals) ---- */
::selection { background: rgba(74,222,90,0.28); color: var(--text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .btn-primary:focus-visible, .btn-ghost:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Consistent elevation on interactive cards site-wide ---- */
.panel, .stat-card, .offer-card, .shop-card, .step, .step-card-v2, .signup-card,
.hero-offer-row, .stats-bar-card, .cashout-card, .providers-band, .best-way-card,
.faq-item, .bottom-cta, .invite-hero {
    box-shadow: var(--shadow-sm);
}
.provider-card, .ow-card { box-shadow: var(--shadow-md); }
.provider-card:hover, .ow-card:hover, .offer-card:hover, .shop-card:hover,
.stat-card:hover, .step:hover {
    box-shadow: var(--shadow-lg);
}

/* ---- Slightly richer primary button — small gradient instead of flat fill ---- */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    letter-spacing: 0.1px;
}

/* ---- Panel headings get a touch more presence ---- */
.panel > h2:first-child, .panel > h3:first-child { letter-spacing: -0.01em; }

/* ---- Muted text: slightly better contrast + tracking for small labels ---- */
.text-muted { letter-spacing: 0.1px; }

/* ---- Page title consistency (was set ad-hoc per-page with inline styles) ---- */
.page-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 6px; }

/* ---- Smooth, consistent page-load feel ---- */
img { color-scheme: dark; }