:root {
    --primary: #d99a00;
    --primary-light: #f0a500;
    --accent: #f2a516;
    --accent2: #f2a516;
    --success: #16a34a;
    --error: #dc2626;
    --bg: #000000;
    --card-bg: #ffffff;
    --border: #2a2a2a;
    --text: #000000;
    --text-muted: #a9a39a;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(160deg, #000000 0%, #e9e4ff 40%, #1f1708 100%);
    color: var(--text);
    min-height: 100vh;
}
.container { max-width: 960px; margin: 0 auto; padding: 24px 16px 60px; }

/* ===== Preloader ===== */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(135deg, #d99a00, #f2a516);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s ease;
}
#preloader.preloader-hide { opacity: 0; pointer-events: none; }
.preloader-dollar {
    font-size: 4em;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.85), 0 0 40px rgba(255, 215, 0, 0.45);
    animation: dollar-gold-pulse 1.1s ease-in-out infinite;
}
@keyframes dollar-gold-pulse {
    0%, 100% { transform: scale(1); opacity: 0.85; text-shadow: 0 0 14px rgba(255, 215, 0, 0.7); }
    50% { transform: scale(1.35); opacity: 1; text-shadow: 0 0 34px rgba(255, 215, 0, 1), 0 0 54px rgba(255, 215, 0, 0.6); }
}
@keyframes dollar-spin {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
}

/* ===== Navbar ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #d99a00, #f0a500 60%, #f2a516);
    padding: 16px 24px;
    box-shadow: 0 4px 14px rgba(217, 154, 0, 0.25);
}
.navbar .logo { font-weight: 800; font-size: 1.4em; color: #fff; text-decoration: none; letter-spacing: 0.5px; display: inline-flex; align-items: center; }
.navbar .logo .site-logo-img { height: 34px; width: auto; display: block; }
@media (max-width: 480px) {
    .navbar .logo .site-logo-img { height: 28px; }
}
.navbar nav a { margin-left: 18px; text-decoration: none; color: #f4efe6; font-size: 0.95em; transition: color 0.2s, transform 0.2s; display: inline-block; }
.navbar nav a:hover { color: #fff; transform: translateY(-2px); }
.navbar nav a.btn-nav { background: var(--accent2); color: #fff; padding: 8px 16px; border-radius: 8px; box-shadow: 0 4px 0 #a86f00; }
.navbar nav a.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #a86f00; }
.admin-navbar { background: linear-gradient(90deg, #000000, #6b4b00); }

.hero { text-align: center; padding: 60px 20px; }
.hero h1 { font-size: 2.4em; margin-bottom: 8px; background: linear-gradient(90deg, #d99a00, #f2a516); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-muted); margin: 6px 0; }

/* ===== 3D Buttons ===== */
.btn, button.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    padding: 13px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    margin-top: 16px;
    box-shadow: 0 5px 0 #6b4b00, 0 8px 16px rgba(217, 154, 0, 0.3);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 7px 0 #6b4b00, 0 12px 20px rgba(217, 154, 0, 0.35); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #6b4b00, 0 4px 8px rgba(217, 154, 0, 0.3); }
.btn:disabled { background: #3a3a3a; box-shadow: 0 5px 0 #2a2a2a; cursor: not-allowed; filter: none; transform: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 24px; }
.card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(217, 154, 0, 0.1);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(217, 154, 0, 0.18); }

/* ===== Stat cards (colorful, alternating accents) ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 22px 0; }
.stat-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(217, 154, 0, 0.12);
    border-top: 4px solid var(--primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 14px 24px rgba(217, 154, 0, 0.2); }
.stat-card:nth-child(4n+1) { border-top-color: #d99a00; }
.stat-card:nth-child(4n+2) { border-top-color: #f2a516; }
.stat-card:nth-child(4n+3) { border-top-color: #f2a516; }
.stat-card:nth-child(4n+4) { border-top-color: #16a34a; }
.stat-label { display: block; color: var(--text-muted); font-size: 0.85em; margin-bottom: 6px; }
.stat-value { display: block; font-size: 1.6em; font-weight: 800; color: var(--primary); }

/* ===== Password show/hide toggle ===== */
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 46px !important; }
.toggle-password {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    font-size: 1.25em;
    line-height: 1;
    padding: 6px;
    margin: 0;
    color: var(--text-muted);
    transition: color 0.15s;
}
.toggle-password:hover { color: var(--primary); }
.toggle-password:active { transform: translateY(-50%); box-shadow: none; }

/* Login and Register buttons should look and size identically */
.form-page button.btn { width: 100%; text-align: center; }

/* ===== Mobile bottom nav (Dashboard / Withdraw / History / Logout) ===== */
.mobile-bottom-nav { display: none; }
@media (max-width: 768px) {
    .navbar nav.desktop-nav { display: none; }
    body.has-mobile-nav { padding-bottom: 78px; }
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 500;
        background: linear-gradient(90deg, #000000, #6b4b00);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.28);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    }
    .mobile-bottom-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-decoration: none;
        color: #f4efe6;
        font-size: 0.72em;
        font-weight: 700;
        padding: 6px 2px;
        border-radius: 10px;
        transition: background 0.15s, color 0.15s;
    }
    .mobile-bottom-nav a .mnav-icon { font-size: 1.4em; line-height: 1; }
    .mobile-bottom-nav a:hover,
    .mobile-bottom-nav a.active { background: rgba(255, 255, 255, 0.14); color: #fff; }
}

.form-page { max-width: 420px; margin: 20px auto; background: var(--card-bg); padding: 30px; border-radius: 16px; box-shadow: 0 10px 30px rgba(217, 154, 0, 0.15); border: 1px solid var(--border); }
.admin-login {
    margin: 80px auto;
    background: linear-gradient(160deg, #161616, #0e0e0e);
    box-shadow: 0 12px 0 #050505, 0 20px 34px rgba(217, 154, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.8);
}
.form-page label { display: block; margin-top: 14px; margin-bottom: 4px; font-size: 0.9em; color: var(--text-muted); }
.form-page input, .form-page select, .form-page textarea,
form input[type=text], form input[type=email], form input[type=password], form input[type=number], form select, form textarea {
    width: 100%; padding: 11px; border: 1px solid var(--border); border-radius: 8px; font-size: 1em;
    transition: border-color 0.2s, box-shadow 0.2s;
}
form input:focus, form select:focus, form textarea:focus {
    outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.2);
}
form input[readonly] {
    background: #161616; color: var(--text-muted); cursor: not-allowed;
}
.hint { font-size: 0.85em; color: var(--text-muted); margin-top: 4px; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; }
.alert-error { background: #fee2e2; color: var(--error); }
.alert-success { background: #dcfce7; color: var(--success); }

.ad-slot { min-height: 250px; background: linear-gradient(135deg, #1a1a1a, #2a1f0a); border: 2px dashed #ffd75e; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 20px 0; }
.timer-box { text-align: center; }
#timer-display { font-size: 2.6em; font-weight: 800; color: var(--primary); margin-bottom: 10px; }

/* ===== Watch Ads page: progress + 75 sequential buttons ===== */
.ad-page { max-width: 620px; margin: 0 auto; }
.ad-progress { margin: 18px 0 22px; }
.ad-progress-bar { background: #2a2a2a; border-radius: 20px; height: 14px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,0.08); }
.ad-progress-fill { height: 100%; background: linear-gradient(90deg, #d99a00, #f2a516); border-radius: 20px; transition: width 0.35s ease; }
.ad-progress-label { display: block; margin-top: 6px; font-size: 0.85em; color: var(--text-muted); font-weight: 600; }

#ad-toast { position: sticky; top: 10px; z-index: 50; }
#ad-toast .alert { box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

.ad-buttons-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.ad-btn-row { display: block; }

.ad-watch-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 4px 0 #6b4b00, 0 6px 14px rgba(217, 154, 0, 0.28);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s ease, background 0.2s ease;
}
.ad-watch-btn:not(:disabled):hover { filter: brightness(1.08); transform: translateY(-1px); }
.ad-watch-btn:not(:disabled):active { transform: translateY(2px); box-shadow: 0 2px 0 #6b4b00, 0 4px 8px rgba(217, 154, 0, 0.28); }
.ad-btn-icon { font-size: 1.2em; }
.ad-btn-text { flex: 1; }
.ad-btn-timer { font-variant-numeric: tabular-nums; font-weight: 800; opacity: 0.9; }

.ad-state-locked { background: #050505; color: #2a2a2a; box-shadow: 0 4px 0 #3a3a3a; cursor: not-allowed; }
.ad-state-locked .ad-btn-icon { opacity: 0.6; }
.ad-state-cooldown { background: #1a1a1a; color: #a9a39a; box-shadow: 0 4px 0 #050505; cursor: not-allowed; }
.ad-state-cooldown .ad-btn-icon { opacity: 0.75; }
.ad-state-cooldown .ad-btn-timer { color: var(--primary); }
.ad-state-active { background: linear-gradient(135deg, var(--primary-light), var(--primary)); }
.ad-state-counting { background: linear-gradient(135deg, #f2a516, #a86f00); box-shadow: 0 4px 0 #92400e, 0 6px 14px rgba(168, 111, 0, 0.3); cursor: not-allowed; animation: ad-counting-pulse 1s ease-in-out infinite; }
.ad-state-counting .ad-btn-timer { font-size: 1.3em; }
@keyframes ad-counting-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.12); }
}
.ad-state-done { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 4px 0 #15803d, 0 6px 14px rgba(22, 163, 74, 0.28); cursor: default; }

.ad-banner-slot {
    min-height: 90px;
    margin: 12px 0;
    border: 2px dashed #ffd75e;
    border-radius: 12px;
    background: linear-gradient(135deg, #0e0e0e, #1f1708);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
}
.ad-banner-label { font-size: 0.75em; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }

/* ===== Terms checkbox + popup (register page) ===== */
.checkbox-label {
    display: flex; align-items: center; gap: 8px;
    margin-top: 16px; font-size: 0.9em; color: var(--text);
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.terms-link { color: var(--primary); font-weight: 600; text-decoration: underline; cursor: pointer; }

.modal-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0, 0, 0, 0.55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
    background: var(--card-bg); border-radius: 16px; padding: 24px;
    max-width: 380px; width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: left;
}
.modal-box h3 { margin: 0 0 10px; color: var(--primary); }
.modal-box p { margin: 0; color: var(--text); line-height: 1.5; }

.referral-box { margin-top: 30px; background: linear-gradient(135deg, #161616, #0e0e0e); padding: 22px; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 6px 16px rgba(217, 154, 0, 0.1); }
.referral-box input { width: 100%; padding: 11px; margin-top: 8px; border: 1px solid var(--border); border-radius: 8px; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 16px; background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 16px rgba(217, 154, 0, 0.08); }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.92em; }
.data-table th { background: linear-gradient(90deg, #d99a00, #f0a500); color: #fff; }
.data-table tr:hover td { background: #161616; }

.badge { padding: 4px 12px; border-radius: 20px; font-size: 0.8em; font-weight: 700; }
.badge-pending { background: #fef9c3; color: #854d0e; }
.badge-approved { background: #dcfce7; color: var(--success); }
.badge-rejected { background: #fee2e2; color: var(--error); }

.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 4px 0; }
.mini-input { width: 100px; padding: 7px; border: 1px solid var(--border); border-radius: 6px; }
.btn-sm {
    padding: 7px 14px; border-radius: 7px; border: none;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white; cursor: pointer; font-size: 0.85em; font-weight: 600;
    box-shadow: 0 3px 0 #6b4b00;
    transition: transform 0.12s, box-shadow 0.12s, filter 0.2s;
}
.btn-sm:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-sm:active { transform: translateY(2px); box-shadow: 0 1px 0 #6b4b00; }
.btn-approve { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 3px 0 #15803d; }
.btn-reject { background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 3px 0 #991b1b; }
.actions-cell { display: flex; flex-direction: column; gap: 6px; }

.ad-links-table-wrap { max-height: 620px; overflow-y: auto; margin: 16px 0; border-radius: 12px; box-shadow: 0 6px 16px rgba(217, 154, 0, 0.08); }
.ad-links-table { margin-top: 0; }
.ad-links-table th { position: sticky; top: 0; z-index: 2; }
.ad-links-table input[type="text"] { width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.92em; }

.tabs { margin: 16px 0; }
.tabs a { padding: 9px 18px; text-decoration: none; color: var(--text-muted); border-bottom: 3px solid transparent; margin-right: 6px; transition: color 0.2s, border-color 0.2s; }
.tabs a:hover { color: var(--primary); }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

.site-footer { text-align: center; padding: 22px; color: var(--text-muted); font-size: 0.85em; }

.btn-spinner {
    display: inline-block;
    animation: dollar-spin 0.8s ease-in-out infinite;
    font-weight: 800;
}

/* ===== User ID tag on dashboard ===== */
.user-uid-tag {
    display: inline-block;
    background: linear-gradient(135deg, #1a1a1a, #2a1f0a);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    color: var(--primary);
    margin: 4px 0 20px;
}

/* ===== Rain drop effect (dashboard only) ===== */
.rain-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.raindrop {
    position: absolute;
    top: -30px;
    width: 2px;
    height: 70px;
    background: linear-gradient(to bottom, transparent, #f2a516, #d99a00);
    border-radius: 2px;
    animation-name: rain-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes rain-fall {
    0% { transform: translateY(-10vh); }
    100% { transform: translateY(110vh); }
}
.dashboard, .navbar, .container { position: relative; z-index: 2; }

/* ===== Admin panel: 3D dashboard cards ===== */
.admin-3d-grid { margin-top: 22px; }
.admin-3d-card {
    position: relative;
    border-top: none;
    background: linear-gradient(160deg, #161616, #0e0e0e);
    border-radius: 16px;
    padding: 26px 20px 22px;
    box-shadow:
        0 10px 0 #050505,
        0 16px 28px rgba(217, 154, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(0);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.admin-3d-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 16px 0 #050505,
        0 26px 36px rgba(217, 154, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.admin-3d-card:active { transform: translateY(2px); box-shadow: 0 4px 0 #050505, 0 8px 16px rgba(217, 154, 0, 0.2); }
.admin-3d-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    font-size: 1.5em;
    border-radius: 50%;
    margin-bottom: 10px;
    background: linear-gradient(145deg, var(--primary-light), var(--primary));
    box-shadow: 0 4px 0 #6b4b00, 0 6px 14px rgba(217, 154, 0, 0.35);
}
.admin-navbar { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.admin-navbar a.logo { text-shadow: 0 2px 0 rgba(0,0,0,0.25); }

/* ===================================================================
   ===== Dedicated mobile layout (smart, not just "shrunk desktop") =====
   =================================================================== */
@media (max-width: 768px) {
    .container { padding: 16px 12px 90px; }

    /* Navbar: logo + Register only up top on guest pages, logged-in users
       get the bottom tab bar instead (handled above). */
    .navbar { padding: 12px 16px; flex-wrap: wrap; }
    .navbar .logo { font-size: 1.2em; }
    .navbar nav a { margin-left: 10px; font-size: 0.88em; }
    .navbar nav a.btn-nav { padding: 7px 12px; }

    /* Hero */
    .hero { padding: 34px 10px; }
    .hero h1 { font-size: 1.7em; }
    .hero p { font-size: 0.92em; }

    /* Stat cards: single column, easier to read one at a time on a phone */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-value { font-size: 1.25em; }
    .admin-3d-grid { grid-template-columns: 1fr; }

    .grid { grid-template-columns: 1fr; gap: 12px; }

    /* Forms take the full width edge-to-edge with less padding */
    .form-page { padding: 20px; margin: 12px auto; border-radius: 14px; }

    /* Watch Ads buttons: bigger tap targets, tighter spacing */
    .ad-watch-btn { padding: 14px; font-size: 0.95em; }
    .ad-btn-timer { font-size: 1.05em; }
    .ad-state-counting .ad-btn-timer { font-size: 1.2em; }
    .ad-banner-slot { min-height: 70px; }

    /* Data tables: scroll horizontally instead of squeezing/breaking */
    .data-table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .data-table th, .data-table td { padding: 10px; font-size: 0.85em; }

    /* Admin top nav: horizontal scroll instead of wrapping/overflowing */
    .admin-navbar { flex-wrap: nowrap; }
    .admin-navbar nav { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 68vw; }
    .admin-navbar nav a { flex: 0 0 auto; margin-left: 12px; font-size: 0.85em; }

    .referral-box { padding: 16px; }
    .modal-box { max-width: 92vw; padding: 20px; }
}

@media (max-width: 420px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.45em; }
}

/* ===== Ad watch countdown overlay (digital clock + animated cartoon) ===== */
.ad-countdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 24, 19, 0.72);
    backdrop-filter: blur(3px);
}
.ad-countdown-overlay.ad-countdown-visible { display: flex; }
.ad-countdown-card {
    background: linear-gradient(160deg, #161616, #0e0e0e);
    border-radius: 22px;
    padding: 32px 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border: 3px solid #f0a500;
    max-width: 90vw;
}
.ad-cartoon {
    position: relative;
    font-size: 3.2em;
    height: 1.3em;
    margin-bottom: 6px;
    animation: ad-cartoon-bounce 0.9s ease-in-out infinite;
}
.ad-cartoon-body { display: inline-block; }
.ad-cartoon-clock {
    position: absolute;
    top: -0.3em;
    right: -0.15em;
    font-size: 0.55em;
    animation: ad-clock-swing 0.9s ease-in-out infinite;
    transform-origin: 70% 20%;
}
@keyframes ad-cartoon-bounce {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}
@keyframes ad-clock-swing {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
}
.ad-digital-clock {
    display: inline-block;
    background: #0f172a;
    color: #22c55e;
    font-family: 'Courier New', monospace;
    font-weight: 800;
    font-size: 2.6em;
    letter-spacing: 4px;
    padding: 10px 26px;
    border-radius: 12px;
    box-shadow: inset 0 0 12px rgba(34, 197, 94, 0.4), 0 4px 0 #020617;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
    margin: 8px 0;
    animation: ad-digit-pulse 1s ease-in-out infinite;
}
@keyframes ad-digit-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}
.ad-countdown-hint {
    color: var(--text-muted);
    font-size: 0.9em;
    margin: 10px 0 0;
    font-weight: 600;
}

/* ===== OTP box (register.php) ===== */
.otp-box {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.otp-box input {
    flex: 1;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1em;
    letter-spacing: 2px;
}
.otp-box .btn-sm {
    white-space: nowrap;
    flex-shrink: 0;
}
.otp-status {
    font-size: 0.85em;
    margin: 6px 0 0;
    min-height: 1.2em;
    font-weight: 600;
}
.otp-status.otp-success { color: var(--success); }
.otp-status.otp-error { color: var(--error); }

/* ===== Referral tree (referrals.php) ===== */
.ref-tree {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.ref-tree-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.ref-tree-caption {
    font-size: 0.82em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}
.ref-tree-connector {
    font-size: 1.4em;
    color: var(--primary-light);
    line-height: 1;
}
.ref-tree-node {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(217, 154, 0, 0.1);
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ref-tree-node strong { color: var(--primary); font-size: 1.02em; }
.ref-tree-node span { color: var(--text); font-size: 0.9em; }
.ref-tree-node small { color: var(--text-muted); font-size: 0.75em; }
.ref-tree-node-me { border: 2px solid var(--primary); background: linear-gradient(135deg, #161616, #0e0e0e); }
.ref-tree-node.ref-tree-empty { color: var(--text-muted); font-style: italic; box-shadow: none; border-style: dashed; }
.ref-tree-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    width: 100%;
}

/* ===== Admin nav unread badge ===== */
.nav-badge {
    display: inline-block;
    background: var(--error);
    color: #fff;
    font-size: 0.7em;
    font-weight: 800;
    border-radius: 999px;
    padding: 1px 7px;
    margin-left: 3px;
    vertical-align: middle;
}

/* ===== Floating support chat widget (user side) ===== */
.pk-chat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
}
.pk-chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    font-size: 1.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(217, 154, 0, 0.4);
    position: relative;
    transition: transform 0.15s ease;
}
.pk-chat-toggle:hover { transform: scale(1.06); }
.pk-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error);
    color: #fff;
    font-size: 0.62em;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}
.pk-chat-panel {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 340px;
    max-width: calc(100vw - 32px);
    height: 460px;
    max-height: calc(100vh - 140px);
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
}
/* IMPORTANT: the [hidden] attribute only carries "display:none" via the
   browser's default (user-agent) stylesheet, which always loses to an
   author rule like ".pk-chat-panel { display: flex }" above - regardless
   of selector order or specificity, author CSS beats UA CSS. Without this
   override, JS setting panel.hidden = true/false has no visual effect and
   the panel appears to "auto-open" and "won't close". This rule restores
   hidden's intended behavior. */
.pk-chat-panel[hidden] {
    display: none !important;
}
.pk-chat-header {
    background: linear-gradient(90deg, #d99a00, #f0a500 60%, #f2a516);
    color: #fff;
    padding: 14px 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pk-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1em;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
}
.pk-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg);
}
.pk-chat-empty { color: var(--text-muted); font-size: 0.88em; text-align: center; margin-top: 20px; }
.pk-chat-msg { display: flex; }
.pk-chat-msg-out { justify-content: flex-end; }
.pk-chat-msg-in { justify-content: flex-start; }
.pk-chat-bubble {
    max-width: 78%;
    padding: 8px 12px 16px;
    border-radius: 14px;
    font-size: 0.9em;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.pk-chat-msg-out .pk-chat-bubble {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    border-bottom-right-radius: 4px;
}
.pk-chat-msg-in .pk-chat-bubble {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}
.pk-chat-msg-label {
    display: block;
    font-size: 0.72em;
    font-weight: 700;
    opacity: 0.75;
    margin-bottom: 2px;
}
.pk-chat-msg-time {
    position: absolute;
    bottom: 4px;
    right: 10px;
    font-size: 0.68em;
    opacity: 0.7;
}
.pk-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
}
.pk-chat-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9em;
    outline: none;
}
.pk-chat-form input:focus { border-color: var(--primary-light); }
.pk-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    cursor: pointer;
    font-size: 1.05em;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .pk-chat-widget { right: 14px; bottom: 90px; }
    .pk-chat-panel { right: 14px; bottom: 158px; }
}

/* ===== Admin support messages page ===== */
.chat-admin-wrap {
    display: flex;
    gap: 16px;
    margin-top: 18px;
    height: 640px;
    max-height: 75vh;
}
.chat-admin-list {
    width: 300px;
    flex-shrink: 0;
    overflow-y: auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.chat-admin-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
    width: 100%;
    background: var(--bg);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-family: inherit;
}
.chat-admin-item:hover { border-color: var(--border); }
.chat-admin-item-active { border-color: var(--primary-light); background: #0e0e0e; }
.chat-admin-item-top { display: flex; align-items: center; gap: 6px; width: 100%; }
.chat-admin-item-uid { font-size: 0.75em; color: var(--text-muted); }
.chat-admin-item-preview {
    font-size: 0.82em;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.chat-admin-unread {
    background: var(--error);
    color: #fff;
    font-size: 0.68em;
    font-weight: 800;
    border-radius: 999px;
    padding: 1px 7px;
}
.chat-admin-empty { color: var(--text-muted); font-size: 0.9em; padding: 10px; }
.chat-admin-search { position: relative; margin-bottom: 4px; }
.chat-admin-search input {
    width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.88em;
}
.chat-admin-search-results {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12); max-height: 260px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 4px; padding: 6px;
}
.chat-admin-thread {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    min-width: 0;
}
.chat-admin-thread-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    font-size: 0.92em;
}
.chat-admin-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg);
}
.chat-admin-msg { display: flex; }
.chat-admin-msg-out { justify-content: flex-end; }
.chat-admin-msg-in { justify-content: flex-start; }
.chat-admin-bubble {
    max-width: 70%;
    padding: 8px 12px 16px;
    border-radius: 14px;
    font-size: 0.9em;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.chat-admin-msg-out .chat-admin-bubble {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-admin-msg-in .chat-admin-bubble {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}
.chat-admin-msg-time {
    position: absolute;
    bottom: 4px;
    right: 10px;
    font-size: 0.68em;
    opacity: 0.7;
}
.chat-admin-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--border);
}
.chat-admin-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9em;
}
@media (max-width: 768px) {
    .chat-admin-wrap { flex-direction: column; height: auto; max-height: none; }
    .chat-admin-list { width: 100%; max-height: 220px; }
    .chat-admin-thread { height: 480px; }
}




/* =====================================================================
   AdProfitX theme layer: black, yellow, white and green, taken from the logo. Loaded last; restyles components without changing
   their markup. Edit the tokens below to re-theme quickly.
   ===================================================================== */
:root {
    --primary: #ffc61a;
    --primary-light: #ffc61a;
    --accent: #ffc61a;
    --accent2: #22c55e;
    --bg: #000000;
    --card-bg: #0e0e0e;
    --surface-2: #161616;
    --border: #2a2a2a;
    --text: #f4efe6;
    --text-muted: #a9a39a;
    --gold: #ffc61a;
    --gold-deep: #d99a00;
    --fire: #22c55e;
    --holo: linear-gradient(120deg, #ffe27a 0%, #ffc61a 50%, #f0a500 100%);
    --font-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Hanken Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
html { color-scheme: dark; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.5; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; color: var(--text); }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ----- Preloader ----- */
#preloader { background: var(--bg); }
.preloader-coin { width: 88px; height: 88px; border-radius: 50%; animation: bw-pulse 1.3s ease-in-out infinite; box-shadow: 0 0 40px rgba(255, 198, 26, .45); }
@keyframes bw-pulse { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.1); opacity: 1; } }

/* ----- Header ----- */
.navbar {
    position: sticky; top: 0; z-index: 400;
    background: #050505; border-bottom: 1px solid var(--border); box-shadow: none;
    padding: 10px 24px;
}
.navbar .logo .site-logo-img { height: 44px; }
.navbar nav { display: flex; align-items: center; gap: 4px; }
.navbar nav a { margin-left: 0; padding: 8px 14px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .95em; }
.navbar nav a:hover { background: var(--surface-2); color: var(--gold); transform: none; }
.navbar nav a.btn-nav, .navbar nav a.btn-nav:hover { background: var(--holo); color: #1a1204; box-shadow: none; transform: none; }
.navbar nav a.btn-nav:hover { filter: brightness(1.08); }
.admin-navbar { background: #050505; position: static; }
.admin-navbar nav a { color: var(--text); }
.admin-navbar nav a:hover { background: var(--surface-2); color: var(--gold); }

/* ----- Buttons ----- */
.btn, button.btn, .btn-accent {
    background: linear-gradient(135deg, #ffe27a, #ffc61a 45%, #f0a500);
    color: #1a1204; border-radius: 12px; box-shadow: 0 0 0 rgba(255, 198, 26, 0);
    padding: 13px 26px; font-weight: 800; letter-spacing: .01em;
    transition: box-shadow .2s ease, transform .1s ease, filter .2s ease;
}
.btn:hover { background: linear-gradient(135deg, #ffe27a, #ffc61a 45%, #f0a500); color: #1a1204; filter: brightness(1.05); transform: none; box-shadow: 0 0 24px rgba(255, 198, 26, .35); }
.btn:active { transform: scale(.98); box-shadow: none; }
.btn:disabled { background: #2a2a2a; color: #6f6a62; box-shadow: none; }
.btn-ghost, .btn-ghost:hover { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold-deep); }
.btn-ghost:hover { background: rgba(255, 198, 26, .08); }
.btn-sm { background: var(--surface-2); color: var(--gold); border: 1px solid var(--border); }

/* ----- Surfaces & forms ----- */
.card { background: var(--card-bg); border-radius: 18px; box-shadow: none; transition: none; }
.card:hover { transform: none; box-shadow: none; }
.form-page { background: var(--card-bg); border-radius: 20px; box-shadow: none; max-width: 440px; border: 1px solid var(--border); }
.form-page h1 { font-size: 1.7em; margin-top: 0; }
.form-page input, .form-page select, .form-page textarea,
form input[type=text], form input[type=email], form input[type=password], form input[type=number], form select, form textarea {
    background: #080808; color: var(--text); border-color: var(--border); border-radius: 10px;
}
form input::placeholder, form textarea::placeholder { color: #6f6a62; }
form input:focus, form select:focus, form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 198, 26, .2); outline: none; }
form input[readonly] { background: var(--surface-2); color: var(--text-muted); }
.data-table { background: var(--card-bg); border-radius: 14px; box-shadow: none; border: 1px solid var(--border); }
.data-table th { background: #1a1400; color: var(--gold); font-weight: 700; }
.data-table tr:hover td { background: var(--surface-2); }
.data-table td { color: var(--text); }
.referral-box { background: var(--card-bg); border-radius: 18px; box-shadow: none; border: 1px solid var(--border); border-left: 6px solid var(--fire); }
.referral-box input { background: #080808; color: var(--text); border-color: var(--border); }
.site-footer { border-top: 1px solid var(--border); margin-top: 24px; background: #050505; }
.modal-box { background: var(--card-bg); color: var(--text); border: 1px solid var(--border); }
.alert-error { background: #2a1010; color: #fca5a5; border: 1px solid #5b2020; }
.alert-success { background: #0f2a1a; color: #86efac; border: 1px solid #1f5a35; }
.badge-pending { background: #2a2208; color: #fcd34d; }
.badge-approved { background: #0f2a1a; color: #86efac; }
.badge-rejected { background: #2a1010; color: #fca5a5; }

/* ----- Landing ----- */
.hero { text-align: left; padding: 0; }
.hero h1 { background: none; color: var(--text); -webkit-text-fill-color: currentColor; }
.landing-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding: 48px 0 28px; text-align: left; }
.landing-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.7rem); line-height: 1.05; margin: 0 0 16px; font-weight: 800; }
.landing-hero .lede { font-size: 1.08rem; color: var(--text-muted); max-width: 34em; margin: 0 0 8px; }
.landing-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.landing-cta .btn { margin-top: 0; }
.hero-coin { position: relative; display: grid; place-items: center; }
.hero-coin img {
    width: min(100%, 460px); height: auto; aspect-ratio: 1; display: block;
    border-radius: 50%;
}
.payout-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 12px; }
.payout-strip .payout-label { color: var(--text-muted); margin-right: 4px; }
.payout-strip .chip { border: 1px solid var(--border); background: var(--card-bg); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95em; }
.payout-strip .chip strong { color: var(--gold); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 20px; background: var(--card-bg); overflow: hidden; margin: 20px 0 40px; }
.steps > div { padding: 26px; }
.steps > div + div { border-left: 1px solid var(--border); }
.steps .step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--holo); color: #1a1204; font-weight: 800; font-family: var(--font-display); margin-bottom: 12px; }
.steps h3 { margin: 0 0 6px; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--text-muted); }
.section-title { font-size: 1.5rem; margin: 28px 0 0; }

/* ----- Dashboard ----- */
.dashboard h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 8px 0 4px; }
.user-uid-tag { display: inline-block; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px; font-size: .9em; margin: 0 0 8px; }
.user-uid-tag strong { color: var(--gold); }
.stats-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card { background: var(--card-bg); text-align: left; border-radius: 18px; box-shadow: none; border: 1px solid var(--border); border-top: 1px solid var(--border); padding: 18px 20px; transition: none; }
.stat-card:hover { transform: none; box-shadow: none; }
.stat-card:nth-child(n) { border-top-color: var(--border); }
.stat-value { font-family: var(--font-display); font-size: 1.5em; color: var(--text); }
.stat-card:first-child {
    grid-column: 1 / -1; padding: 26px 28px; position: relative; overflow: hidden;
    border: 1.5px solid transparent;
    background: linear-gradient(#0e0e0e, #0e0e0e) padding-box, var(--holo) border-box;
}
.stat-card:first-child::after {
    content: ''; position: absolute; right: -14px; top: 50%; width: 128px; height: 128px; transform: translateY(-50%);
    border-radius: 50%; background: url('../img/icon-192.png') center / cover; opacity: .95;
    box-shadow: 0 0 40px rgba(255, 198, 26, .35);
}
.stat-card:first-child .stat-label { color: var(--text-muted); }
.stat-card:first-child .stat-value { color: var(--gold); font-size: clamp(2.1rem, 8vw, 3.1rem); line-height: 1.1; position: relative; z-index: 1; }

/* ----- Mobile bottom nav ----- */
.mobile-bottom-nav { background: #050505 !important; border-top: 1px solid var(--border); }
.mobile-bottom-nav a { color: var(--text-muted) !important; }
.mobile-bottom-nav a:hover, .mobile-bottom-nav a.active { background: rgba(255, 198, 26, .12) !important; color: var(--gold) !important; border-radius: 12px; }

@media (max-width: 820px) {
    .landing-hero { grid-template-columns: 1fr; padding: 24px 0 20px; gap: 8px; }
    .hero-coin { order: -1; }
    .hero-coin img { width: min(78%, 320px); }
    .steps { grid-template-columns: 1fr; }
    .steps > div + div { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .stat-card { padding: 14px 12px; }
    .stat-card .stat-label { font-size: .75em; }
    .stat-card:not(:first-child) .stat-value { font-size: 1.15em; }
    .stat-card:first-child { padding: 22px 20px; }
    .stat-card:first-child::after { width: 96px; height: 96px; right: -12px; }
    .navbar { padding: 8px 14px; }
    .navbar .logo .site-logo-img { height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ----- Withdrawal OTP confirmation ----- */
.otp-input { text-align: center; font-family: var(--font-display); font-size: 1.7em !important; letter-spacing: .5em; padding: 12px 8px !important; }
.wd-summary { margin: 16px 0 8px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.wd-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.wd-summary > div + div { border-top: 1px solid var(--border); }
.wd-summary dt { color: var(--text-muted); }
.wd-summary dd { margin: 0; font-weight: 700; color: var(--gold); word-break: break-all; text-align: right; }
.wd-secondary { display: flex; gap: 10px; margin-top: 6px; }
.wd-secondary form { flex: 1; }
.wd-secondary .btn { width: 100%; margin-top: 10px; }

/* ----- Admin: manage ads / banners ----- */
.ad-admin-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 16px 0 24px; }
.ad-admin-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; }
.ad-admin-card h3 { margin: 0 0 4px; }
.ad-admin-card label { display: block; margin: 12px 0 4px; font-size: .9em; color: var(--text-muted); }
.ad-admin-card input, .ad-admin-card textarea { width: 100%; padding: 10px; background: #080808; color: var(--text); border: 1px solid var(--border); border-radius: 10px; font-size: 1em; }
.ad-admin-card .btn { margin-top: 14px; }
.ad-links-table input[type="number"] { width: 100%; padding: 9px 10px; background: #080808; color: var(--text); border: 1px solid var(--border); border-radius: 6px; }
.ad-links-table input[type="text"] { background: #080808; color: var(--text); }
.banner-code { width: 100%; padding: 9px 10px; background: #080808; color: var(--text); border: 1px solid var(--border); border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-size: .85em; }
.ad-row-beyond td { opacity: .55; }
.ad-remove { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--text-muted); font-size: .9em; }
.ad-btn-reward { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: rgba(255, 198, 26, .16); color: var(--gold); font-weight: 700; font-size: .85em; white-space: nowrap; }

/* ----- AdProfitX touches ----- */
.ad-watch-btn, .pk-chat-toggle, .pk-chat-header, .pk-chat-send,
.pk-chat-msg-out .pk-chat-bubble, .chat-admin-msg-out .chat-admin-bubble { color: #1a1204; }
.ad-btn-reward { background: rgba(0, 0, 0, .2); color: #1a1204; }
.payout-strip .chip::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--fire); vertical-align: middle; }
.hero-coin img { filter: drop-shadow(0 0 40px rgba(255, 198, 26, .18)); }
