/* Shared dark/light theme polish for campaign, status, refer, and my-refers pages. */
.theme-toggle,#themeBtn{
    position:fixed!important;
    top:16px!important;
    right:16px!important;
    z-index:2147483647!important;
    min-width:42px!important;
    height:42px!important;
    padding:0 13px!important;
    border:1px solid rgba(255,255,255,.18)!important;
    border-radius:999px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    color:#fff!important;
    font-size:18px!important;
    font-weight:950!important;
    line-height:1!important;
    cursor:pointer!important;
    background:linear-gradient(135deg,#2563eb,#06b6d4)!important;
    box-shadow:0 14px 32px rgba(37,99,235,.28)!important;
    backdrop-filter:blur(12px)!important;
    -webkit-backdrop-filter:blur(12px)!important;
}
body.dark-theme{
    color:#f8fafc!important;
    background:linear-gradient(180deg,#050a16 0%,#07111f 55%,#0b1220 100%)!important;
}

body.dark-theme .orb{
    opacity:.08!important;
}

body.dark-theme .card,
body.dark-theme .campaign-card,
body.dark-theme .ref-card,
body.dark-theme .ref-report-card,
body.dark-theme .panel-card,
body.dark-theme .search-panel,
body.dark-theme .user-status-card,
body.dark-theme .summary-card,
body.dark-theme .goal-detail-card,
body.dark-theme .theme-action-card,
body.dark-theme .telegram-card,
body.dark-theme .theme-terms-card,
body.dark-theme .step-card,
body.dark-theme .reward-box,
body.dark-theme .terms-text-box,
body.dark-theme .link-box,
body.dark-theme .summary-item,
body.dark-theme .ref-row,
body.dark-theme .progress-wrap,
body.dark-theme .ref-mini,
body.dark-theme .empty-box,
body.dark-theme .goal-progress-box{
    background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.06))!important;
    border-color:rgba(255,255,255,.15)!important;
    color:#f8fafc!important;
    box-shadow:0 22px 58px rgba(0,0,0,.34),inset 0 1px rgba(255,255,255,.10)!important;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme b,
body.dark-theme strong,
body.dark-theme label,
body.dark-theme .title,
body.dark-theme .section-title,
body.dark-theme .card-head h2,
body.dark-theme .input-label,
body.dark-theme .ref-title,
body.dark-theme .ref-title h3,
body.dark-theme .detail-title b,
body.dark-theme .detail-mini b,
body.dark-theme .summary-card b,
body.dark-theme .summary-item b,
body.dark-theme .goal-step strong,
body.dark-theme .goal-tile strong,
body.dark-theme .telegram-content b,
body.dark-theme .theme-action-card b,
body.dark-theme .link-box-title b,
body.dark-theme .empty-box h3{
    color:#ffffff!important;
}

body.dark-theme p,
body.dark-theme small,
body.dark-theme .sub,
body.dark-theme .ref-sub,
body.dark-theme .report-head p,
body.dark-theme .hero-head p,
body.dark-theme .user-title p,
body.dark-theme .ref-title p,
body.dark-theme .progress-head span,
body.dark-theme .detail-title small,
body.dark-theme .detail-mini small,
body.dark-theme .summary-card small,
body.dark-theme .summary-item small,
body.dark-theme .ref-mini small,
body.dark-theme .privacy-note,
body.dark-theme .step-card p,
body.dark-theme .telegram-content small,
body.dark-theme .theme-action-card small{
    color:#cbd5e1!important;
}

body.dark-theme .brand-pill,
body.dark-theme .ref-id-pill,
body.dark-theme .ref-code-pill,
body.dark-theme .info-note{
    background:rgba(37,99,235,.16)!important;
    border-color:rgba(125,211,252,.28)!important;
    color:#dbeafe!important;
}

body.dark-theme .input,
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea,
body.dark-theme .ref-input,
body.dark-theme .ref-select,
body.dark-theme .field input,
body.dark-theme .field select{
    background:rgba(2,6,23,.52)!important;
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    border-color:rgba(148,163,184,.28)!important;
    box-shadow:inset 0 1px rgba(255,255,255,.05),0 12px 28px rgba(0,0,0,.18)!important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder{
    color:#94a3b8!important;
    -webkit-text-fill-color:#94a3b8!important;
}

body.dark-theme select option{color:#0f172a!important}

body.dark-theme .goal-step,
body.dark-theme .goal-tile{
    background:rgba(250,204,21,.12)!important;
    border-color:rgba(250,204,21,.34)!important;
}

body.dark-theme .goal-step.done,
body.dark-theme .goal-tile.done{
    background:rgba(34,197,94,.15)!important;
    border-color:rgba(34,197,94,.42)!important;
}

body.dark-theme .ref-mini .amount,
body.dark-theme .amount,
body.dark-theme .money,
body.dark-theme .progress-percent,
body.dark-theme .goal-step small,
body.dark-theme .summary-item.success b{
    color:#86efac!important;
    -webkit-text-fill-color:#86efac!important;
}

body.dark-theme .summary-item.pending b{color:#fde68a!important}

body.dark-theme .info-strip,
body.dark-theme .terms-text-box{
    background:rgba(250,204,21,.11)!important;
    border-color:rgba(250,204,21,.28)!important;
    color:#fde68a!important;
}

body.dark-theme .error-msg,
body.dark-theme .upi-error{
    background:rgba(239,68,68,.14)!important;
    border-color:rgba(248,113,113,.35)!important;
    color:#fecaca!important;
}

@media(max-width:520px){
    .theme-toggle,#themeBtn{
        top:10px!important;
        right:10px!important;
        min-width:38px!important;
        height:38px!important;
        font-size:16px!important;
    }
}
