* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: #020617;
    color: #e5e7eb;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 720px;        /* was: width: 720px; */
    min-height: 720px;
    background: #020617;
    border: 1px solid #1f2933;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;      /* keep for modal */
    margin: 0 auto;          /* center on larger screens */
}


.app-header {
    background: #111827;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-title {
    font-size: 14px;
    font-weight: 600;
    color: #f9fafb;
}

.app-subtitle {
    font-size: 11px;
    color: #f97316;
}

.nav-right button {
    margin-left: 8px;
}

.btn {
    border: none;
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.btn-primary {
    background: #1d4ed8;
    color: #f9fafb;
}

.btn-secondary {
    background: #374151;
    color: #f9fafb;
}

.btn-login {
    background: #3b82f6;
    color: #f9fafb;
}

.btn-register {
    background: #ef4444;
    color: #f9fafb;
}

.btn-cashout {
    background: #16a34a;
    color: #f9fafb;
}

.btn-earn {
    background: #22c55e;
    color: #022c22;
}

.btn-need-sub {
    background: #ef4444;
    color: #fef2f2;
}

.btn-need-like {
    background: #e11d48;
    color: #fdf2f8;
}

.btn-need-watch {
    background: #f97316;
    color: #111827;
}

.btn-fund {
    background: #6366f1;
    color: #eef2ff;
}

.btn-history {
    background: #14b8a6;
    color: #022c22;
}

.btn.big {
    font-size: 14px;
    padding: 10px 18px;
    margin-top: 6px;
}

.app-main {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.center-box {
    max-width: 520px;
    margin: 20px auto 40px auto;
    text-align: center;
}

h1, h2, h3 {
    margin-bottom: 10px;
}

h1 {
    font-size: 26px;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 16px;
}

p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #cbd5f5;
}

.lead {
    font-size: 14px;
    color: #e5e7eb;
}

.form-row {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-row label {
    font-size: 13px;
    width: 40%;
    text-align: right;
    padding-right: 8px;
    color: #e5e7eb;
}

.form-row input,
.form-row select {
    width: 60%;
    padding: 7px 9px;
    border-radius: 6px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #f9fafb;
    font-size: 13px;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #3b82f6;
}

.section-card {
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.section-card.dark {
    background: #020617;
}

.section-card.green {
    background: #022c22;
}

.section-buttons {
    margin-top: 8px;
}

.section-buttons .btn {
    margin-right: 10px;
    margin-bottom: 6px;
}

.bottom-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.bottom-actions .btn {
    margin-left: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 12px;
}

table th,
table td {
    border: 1px solid #1f2937;
    padding: 5px 6px;
    text-align: center;
}

table th {
    background: #111827;
    color: #e5e7eb;
}

table td {
    background: #020617;
    color: #cbd5f5;
}

.note-bell {
    cursor: help;
    color: #facc15;
}

.note-bell-declined {
    color: #f97373;
}

.loader {
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.loader span {
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

.timer-text {
    font-size: 13px;
    color: #fde68a;
    margin-top: 6px;
}

.alert {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 8px;
}

.alert-info {
    background: #0f172a;
    color: #e5e7eb;
    border: 1px solid #1d4ed8;
}

.alert-error {
    background: #450a0a;
    color: #fee2e2;
    border: 1px solid #b91c1c;
}

.alert-success {
    background: #064e3b;
    color: #bbf7d0;
    border: 1px solid #16a34a;
}

.home-layout {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-left,
.home-right {
    flex: 1 1 0;
    min-width: 260px;
}
.header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.home-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
    margin: 10px 0;
}

.stat-card {
    background: #020617;
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid #1f2937;
}

.stat-label {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
}

.stat-value span {
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 4px;
}

.balance-highlight {
    color: #facc15;
    font-weight: 700;
}

.brand {
    color: #22c55e;
}

.steps-list {
    list-style: none;
    font-size: 13px;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
}

.steps-list li span {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #22c55e;
    color: #022c22;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 18px;
    margin-right: 6px;
    margin-top: 1px;
}

.task-row {
    border-bottom: 1px solid #1f2937;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.task-main {
    flex: 1;
    text-align: left;
    margin-right: 10px;
}

.task-title {
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
}

.task-meta {
    font-size: 13px;
    color: #9ca3af;
}

.task-actions {
    text-align: right;
}


.status-stopped {
    background: #4b5563;
    color: #e5e7eb;
}

.ads-section {
    margin-top: 10px;
}

.small-note {
    font-size: 11px;
    color: #9ca3af;
}
.center-task {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center-task .task-main {
    text-align: center;
}

.center-task .task-actions {
    text-align: center;
}
.reward-amount {
    font-weight: 700;
    color: #6ee7b7; /* Light green */
}

.two-col {
    display: flex;
    gap: 15px;
}

.col-box {
    flex: 1;
    background: #1f2937;
    color: white;
    padding: 15px;
    border-radius: 10px;
}
/* Add Fund page custom layout */
.addfund-box {
    max-width: 520px;
    text-align: left;
}

/* Consent / confirmation block */
.consent-box {
    margin-top: 12px;
}

.consent-question {
    font-size: 13px;
    margin-bottom: 6px;
    color: #e5e7eb;
}

.choice-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

/* Yes / No buttons (extend base .btn) */
.btn-yes {
    background: #16a34a;
    color: #f9fafb;
}

.btn-no {
    background: #b91c1c;
    color: #fee2e2;
}

.btn-toggle-active {
    box-shadow: 0 0 0 2px rgba(248, 250, 252, 0.25);
    transform: translateY(-1px);
}

/* Helper text inside the form */
.info-text {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
}

/* Show/Hide behavior defaults (JS will override display) */
#fundFormBlock {
    margin-top: 10px;
}

#sendMoneyNote {
    margin-top: 6px;
}



/* Overlay that sits INSIDE the app window */
.modal-overlay {
    position: absolute;      /* instead of fixed */
    top: 0;
    left: 0;
    width: 100%;             /* only inside container */
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}


.modal-content {
    background: #111827;
    border-radius: 10px;
    padding: 20px;
    width: 85%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    color: #f9fafb;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.modal-close:hover {
    color: #f97316;
}

/* Nice “choice” buttons */
.btn-choice {
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-choice-yes {
    background: #16a34a;
    color: #f9fafb;
}

.btn-choice-no {
    background: #ef4444;
    color: #fef2f2;
}

.btn-choice-active {
    box-shadow: 0 0 0 2px #facc15;
}

/* Small info box under the buttons */
.payment-info-box {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #0f172a;
    border: 1px solid #1d4ed8;
    font-size: 12px;
    color: #e5e7eb;
}
/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    position: relative;
    z-index: 2;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    display: none;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 6px 0;
    min-width: 150px;
    z-index: 999;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 14px;
    color: #e2e8f0;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #1e293b;
    color: #fff;
}




.dropdown-menu a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    border-radius: 6px;
    margin-bottom: 6px;
    transition: 0.2s ease;
}

/* Fund History Button - ORANGE */
.dropdown-menu a.fund-btn {
    background: #f97316;  /* orange */
    color: #fff7ed;
}
.dropdown-menu a.fund-btn:hover {
    background: #ea580c;
}

/* Task History Button - RED */
.dropdown-menu a.task-btn {
    background: #dc2626; /* red */
    color: #fee2e2;
}
.dropdown-menu a.task-btn:hover {
    background: #b91c1c;
}

.referral-btn {
    background: #4f46e5;   /* Indigo (change as you like) */
    color: #fff !important;
    font-weight: 600;
}


.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap; /* Prevent wrapping */
}


/* In Progress = Blue */
.status-progress {
    background: #1e3a8a;
    color: #dbeafe;
}

/* Completed = Green */
.status-complete {
    background: #065f46;
    color: #bbf7d0;
}
/* Shrink long URLs with ... */
.url-cell {
    display: inline-block;
    max-width: 180px;  /* adjust as needed */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    color: #38bdf8; /* light blue */
}

.url-cell:hover {
    text-decoration: underline;
    color: #0ea5e9;
}

/* URL popup */
#urlModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0f172a;
    padding: 18px 24px;
    border-radius: 10px;
    border: 1px solid #334155;
    color: #e2e8f0;
    display: none;
    z-index: 9999;
    width: 90%;
    max-width: 480px;
}

#urlModalClose {
    float: right;
    cursor: pointer;
    font-size: 18px;
    color: #f87171;
}

#urlModalLink {
    word-wrap: break-word;
    margin-top: 12px;
    color: #38bdf8;
}

.referral-box {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(255, 200, 0, 0.2);
}

.referral-link-box {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.ref-input {
    width: 75%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #374151;
    background: #111827;
    color: #f8fafc;
    font-size: 14px;
}

.btn-copy {
    background: #f59e0b;
    color: #111;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-copy:hover {
    background: #fbbf24;
}

.copy-msg {
    opacity: 0;
    transition: opacity 0.4s;
    color: #22c55e;
    margin-top: 8px;
    font-weight: bold;
}

/* -----------------------
   Pagination Styling
------------------------*/
.pagination {
    margin-top: 15px;
    text-align: center;
}
.pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 5px;
    background: #333;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
}
.pagination a.active {
    background: #22c55e;
    font-weight: bold;
}
.pagination a.disabled {
    background: #777;
    pointer-events: none;
}

.stat-flash {
    animation: statFlash 0.6s ease-out;
}


/* --- DASHBOARD TWO-COLUMN LAYOUT --- */
.dash-grid {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

/* Each side same width */
.dash-card {
    flex: 1 1 0;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: left;          /* left-align text */
}

/* LEFT card: Earn Money – green glow */
.dash-card-earn {
    background: radial-gradient(circle at top left, #064e3b, #020617);
    border: 1px solid #16a34a;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.25);
}

/* RIGHT card: Grow Channel – orange glow */
.dash-card-grow {
    background: radial-gradient(circle at top right, #0f172a, #111827);
    border: 1px solid #f97316;
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.35);
}

.dash-card h1,
.dash-card h2 {
    margin-bottom: 6px;
}

.dash-card p {
    margin-bottom: 10px;
}

/* Buttons: column, left aligned, full width */
.dash-card .section-buttons {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dash-card .section-buttons .btn {
    width: 100%;
    text-align: left;
    margin-right: 0;
}

/* Context-matching button colors */
.dash-card-earn .btn-earn {
    background: #22c55e;
    color: #022c22;
}

.dash-card-grow .btn-need-sub {
    background: #ef4444;
    color: #fef2f2;
}

.dash-card-grow .btn-need-like {
    background: #e11d48;
    color: #fdf2f8;
}

.dash-card-grow .btn-need-watch {
    background: #f97316;
    color: #111827;
}



@keyframes statFlash {
    0%   { background-color: rgba(34, 197, 94, 0.3); }
    100% { background-color: transparent; }
}

/* =========================================
   MOBILE / SMALL SCREEN RESPONSIVE RULES
   ========================================= */

@media (max-width: 768px) {

    body {
        padding: 10px;
    }

    .app-container {
        min-height: 100vh;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .app-main {
        padding: 16px;
    }

    /* Header layout */
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .nav-right {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-start;
    }

    .nav-right .btn,
    .nav-right .dropdown {
        flex: 1 1 48%;   /* two per row */
    }

    /* Forms: stack label + input */
    .center-box {
        max-width: 100%;
        margin: 16px auto 32px auto;
        text-align: left;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .form-row label {
        width: 100%;
        text-align: left;
        margin-bottom: 4px;
        padding-right: 0;
    }

    .form-row input,
    .form-row select {
        width: 100%;
    }

    /* Bottom actions buttons full width */
    .bottom-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bottom-actions .btn {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }

    /* Section buttons (earn / grow) full width */
    .section-buttons .btn {
        width: 100%;
        text-align: left;
    }

    /* Home / dashboard panels stack */
    .home-layout {
        flex-direction: column;
    }

    .home-left,
    .home-right {
        min-width: 100%;
    }

    /* Stats cards: 1 column */
    .home-stats {
        grid-template-columns: 1fr;
    }

    /* Tables: horizontal scroll on mobile */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 11px;
    }

    /* Dropdown menu under button, full width */
    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 4px;
    }

    .dropdown-menu a {
        width: 100%;
    }

    /* Referral link layout */
    .referral-link-box {
        flex-direction: column;
        align-items: stretch;
    }

    .ref-input,
    .btn-copy {
        width: 100%;
        text-align: center;
    }

    /* Dashboard two-column (your dash-grid) stacks */
    .dash-grid {
        flex-direction: column;
    }

    .dash-card .section-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 20px;
    }
    h2 {
        font-size: 18px;
    }
    .btn.big {
        font-size: 13px;
        padding: 8px 14px;
    }
}



