
/* =========================================================
   EARNHUB — PREMIUM BLUE / WHITE / GREEN DESIGN
   Complete Responsive Stylesheet
   No Animations — Performance Focused
========================================================= */

/* =========================
   1. ROOT & GLOBAL
========================= */

:root {
    --bg: #071426;
    --bg-deep: #050e1c;

    --surface: #0d1e35;
    --surface-2: #122945;
    --surface-3: #183654;

    --blue: #1769e8;
    --blue-light: #3185ff;
    --blue-dark: #1053c5;

    --green: #16a36a;
    --green-light: #20c782;
    --green-dark: #08784b;

    --white: #ffffff;
    --off-white: #f4f7fb;
    --gray-100: #e9eef5;
    --gray-200: #d4deea;
    --gray-300: #aebdd0;
    --gray-400: #8294aa;
    --gray-500: #61758e;

    --text: #f4f7fb;
    --text-muted: #a8b8cc;
    --text-dark: #15243a;

    --border: rgba(164, 190, 220, 0.15);
    --border-light: rgba(255, 255, 255, 0.1);

    --success-bg: rgba(22, 163, 106, 0.12);
    --blue-bg: rgba(23, 105, 232, 0.13);
    --danger: #ef5350;
    --warning: #f5ad35;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;

    --shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    --shadow-strong: 0 15px 40px rgba(0, 0, 0, 0.28);

    --container: 1240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
input,
select,
textarea {
    font-size: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--blue-light);
    text-decoration: none;
}

a:hover {
    color: var(--green-light);
}

img {
    max-width: 100%;
}

.hidden,
[hidden] {
    display: none !important;
}

.muted {
    color: var(--text-muted);
    font-size: 13px;
}

.section {
    width: min(var(--container), calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
    padding-top: 75px;
    padding-bottom: 75px;
}

.eyebrow {
    display: inline-block;
    color: var(--green-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    color: var(--white);
    line-height: 1.25;
    font-weight: 750;
}

h1 {
    font-size: clamp(36px, 5vw, 60px);
}

h2 {
    font-size: clamp(23px, 3vw, 30px);
}

h3 {
    font-size: 19px;
}

p {
    color: var(--text-muted);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--green-light);
    outline-offset: 3px;
}

/* =========================
   2. NAVBAR
========================= */

.navbar {
    width: 100%;
    min-height: 78px;
    padding: 12px max(25px, calc((100% - 1240px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: #091a30;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

#navButtons {
    display: flex;
    align-items: center;
    gap: 9px;
}

#navButtons button,
.whatsapp-nav-btn {
    border: 1px solid transparent;
    background: transparent;
    color: #e5edf8;
    padding: 10px 15px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

#navButtons button:hover {
    background: var(--surface-3);
    color: var(--white);
}

#navButtons button.primary {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

#navButtons button.primary:hover {
    background: var(--green-dark);
}

.whatsapp-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(22, 163, 106, 0.12);
    color: #55e4a6;
    border: 1px solid rgba(22, 163, 106, 0.3);
}

.whatsapp-nav-btn:hover {
    background: var(--green);
    color: white;
}

.menu-toggle {
    display: none;
    width: 43px;
    height: 43px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 10px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 3px;
}
/* EARNHUB SIDEBAR CLICK FIX */

.menu-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99998 !important;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    pointer-events: auto !important;
}

.menu-overlay.active {
    display: block !important;
}

.main-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -310px !important;
    width: 290px !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
    pointer-events: none !important;
    transition: left 0.25s ease;
}

.main-sidebar.active {
    left: 0 !important;
    pointer-events: auto !important;
}

.main-sidebar * {
    pointer-events: auto !important;
}

.sidebar-link,
.sidebar-heading button,
.sidebar-logout {
    position: relative !important;
    z-index: 100000 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}
/* =========================
   4. HERO
========================= */

.hero {
    min-height: 570px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 65px;
    padding-top: 90px;
    padding-bottom: 90px;
}

.hero-content h1 {
    margin-top: 17px;
    margin-bottom: 22px;
    max-width: 720px;
    letter-spacing: -1.5px;
}

.hero-content h1 span {
    display: block;
    color: var(--green-light);
}

.hero-content > p {
    max-width: 650px;
    font-size: 16px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    min-height: 46px;
    padding: 12px 23px;
    border-radius: 10px;
    font-weight: 750;
    font-size: 14px;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: white;
}

.btn-secondary {
    background: var(--surface-2);
    color: white;
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--surface-3);
}

.hero-card {
    padding: 32px;
    background: linear-gradient(145deg, #122b49, #0b1b31);
    border: 1px solid rgba(49, 133, 255, 0.28);
    border-radius: 22px;
    box-shadow: var(--shadow-strong);
}

.hero-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--green);
    font-size: 28px;
    margin-bottom: 22px;
}

.hero-card h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.hero-card > p {
    line-height: 1.8;
    margin-bottom: 25px;
}

.hero-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

.hero-stat span {
    color: var(--text-muted);
}

.hero-stat strong {
    color: var(--green-light);
}

/* =========================
   5. ABOUT & FEATURES
========================= */

.section-heading {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-heading h2 {
    margin: 13px 0 17px;
}

.section-heading p {
    line-height: 1.9;
    margin-bottom: 12px;
}

.section-heading a {
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
}

.feature-grid .card {
    min-height: 230px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--blue-bg);
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-grid h3 {
    margin-bottom: 12px;
}

.feature-grid p {
    line-height: 1.8;
    font-size: 13px;
}

/* =========================
   6. DASHBOARD
========================= */

#dashboard {
    max-width: var(--container);
    margin: 0 auto;
    padding: 45px 20px 80px;
}

.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-welcome h2 {
    margin: 8px 0;
    font-size: 28px;
}

.dashboard-welcome > p {
    font-size: 13px;
}

.dashboard-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-light);
    font-size: 12px;
    margin-top: 12px;
    font-weight: 650;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-light);
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-wrapper {
    position: relative;
}

.notification-bell {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: white;
    font-size: 20px;
    position: relative;
}

.notification-bell span {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: white;
    font-size: 10px;
    border-radius: 20px;
}

.notification-panel {
    position: absolute;
    top: 58px;
    right: 0;
    width: min(350px, calc(100vw - 35px));
    z-index: 100;
    box-shadow: var(--shadow-strong);
    max-height: 400px;
    overflow-y: auto;
}

/* =========================
   7. STATISTICS
========================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 25px;
}

.stat-card {
    min-width: 0;
    padding: 23px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--blue-bg);
    border-radius: 12px;
    font-size: 21px;
    margin-bottom: 15px;
}

.stat-card > span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 650;
}

.stat-card h2 {
    font-size: clamp(20px, 2.5vw, 28px);
    margin: 7px 0;
    overflow-wrap: anywhere;
}

.stat-card small {
    color: var(--gray-400);
    font-size: 11px;
}

.earnings-card {
    border-top: 3px solid var(--green);
}

.balance-card {
    border-top: 3px solid var(--blue-light);
}

.tasks-card {
    border-top: 3px solid #8b9bb1;
}

/* =========================
   8. GENERAL PANELS
========================= */

.panel {
    min-width: 0;
    padding: 26px;
    margin-bottom: 23px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.panel-heading h2 {
    margin-top: 6px;
}

.panel-heading p {
    margin-top: 7px;
    font-size: 12px;
}

.wallet-icon,
.progress-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--blue-bg);
    border-radius: 12px;
    font-size: 22px;
}

/* =========================
   9. WALLET
========================= */

.wallet-balance-card {
    position: relative;
    overflow: hidden;
    padding: 27px;
    margin-bottom: 28px;
    border-radius: 17px;
    background: linear-gradient(125deg, #1459bd, #103b78 65%, #08784b);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.wallet-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.wallet-chip {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 10px;
}

.wallet-balance-card .muted {
    color: rgba(255, 255, 255, 0.8);
}

.wallet-balance {
    font-size: clamp(32px, 5vw, 44px);
    margin: 7px 0 18px;
    color: white;
    overflow-wrap: anywhere;
}

.wallet-balance-card h3 {
    margin: 5px 0 15px;
}

.wallet-balance-card small {
    color: rgba(255, 255, 255, 0.75);
}

.withdraw-section {
    padding: 23px;
    margin-bottom: 25px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface-2);
}

.withdraw-section .panel-heading {
    margin-bottom: 12px;
}

.withdraw-section > p {
    margin-bottom: 17px;
    font-size: 13px;
}

.withdrawal-history-panel {
    padding: 20px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.withdrawal-history-panel h3 {
    margin: 7px 0 15px;
}

.deposit-premium {
    padding: 23px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.deposit-premium > p {
    margin-bottom: 16px;
    font-size: 13px;
}

/* =========================
   10. FORMS & INPUTS
========================= */

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    margin-bottom: 13px;
    color: var(--white);
    background: #091a2e;
    border: 1px solid rgba(164, 190, 220, 0.22);
    border-radius: 9px;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #8194aa;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue-light);
}

select {
    cursor: pointer;
}

select option {
    background: #0d1e35;
    color: white;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input[type="file"] {
    padding: 9px;
    color: var(--text-muted);
}

input[type="file"]::file-selector-button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: var(--blue);
    color: white;
    cursor: pointer;
}

label {
    display: block;
    margin: 8px 0;
    color: #dce7f4;
    font-size: 13px;
    font-weight: 650;
}

form button,
#withdrawForm button,
#depositForm button {
    margin-top: 5px;
}

.full-width {
    width: 100%;
}

/* =========================
   11. AVAILABLE TASKS
========================= */

#tasks {
    margin-top: 23px;
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.task-card,
.task-item {
    min-width: 0;
    padding: 21px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 13px;
}

.task-card h3,
.task-item h3 {
    margin-bottom: 10px;
}

.task-card p,
.task-item p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.task-card button,
.task-item button {
    margin-top: 12px;
}

/* =========================
   12. REFERRAL
========================= */

.referral-panel,
.earnings-progress {
    padding: 26px;
    margin-top: 23px;
    margin-bottom: 23px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.referral-link-box {
    margin: 20px 0;
}

.referral-link-box label {
    color: var(--text-muted);
}

.referral-copy-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.referral-copy-row input {
    margin: 0;
    min-width: 0;
}

.referral-copy-row button {
    flex-shrink: 0;
    padding: 10px 18px;
    color: white;
    background: var(--blue);
    border: 0;
    border-radius: 9px;
    font-weight: 700;
}

.referral-copy-row button:hover {
    background: var(--blue-dark);
}

.referral-stats,
.progress-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.progress-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.progress-item {
    padding: 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 0;
}

.progress-item span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.progress-item h3 {
    color: var(--green-light);
    font-size: 23px;
    overflow-wrap: anywhere;
}

/* =========================
   13. PACKAGES
========================= */

.packages-panel {
    margin-top: 25px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 20px;
}

.package-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 15px;
    text-align: center;
}

.package-card h3 {
    color: var(--gray-200);
    font-size: 17px;
}

.package-card h2 {
    color: var(--green-light);
    font-size: 31px;
    margin: 15px 0;
}

.package-card p {
    font-size: 13px;
    margin-bottom: 8px;
}

.package-card button {
    width: 100%;
    min-height: 43px;
    margin-top: 17px;
    padding: 10px;
    background: var(--blue);
    color: white;
    border: 0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 750;
}

.package-card button:hover {
    background: var(--blue-dark);
}

.packages-panel > .muted {
    padding: 13px;
    background: rgba(245, 173, 53, 0.08);
    border: 1px solid rgba(245, 173, 53, 0.18);
    border-radius: 9px;
    color: #eac27e;
    line-height: 1.7;
}

/* =========================
   14. ACTIVE PACKAGE
========================= */

#currentActivePackage,
#packageHistory {
    margin-top: 23px;
}

#activePackageDetails,
#myPackageHistory {
    color: var(--text-muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

/* =========================
   15. SUBMISSIONS
========================= */

.submissions-panel {
    margin-top: 23px;
}

#mySubmissions {
    overflow-x: auto;
    color: var(--text-muted);
}

/* =========================
   16. TRANSACTION HISTORY
========================= */

.transaction-panel {
    margin-top: 23px;
}

#transactionHistory,
#withdrawalHistory,
#depositHistory {
    overflow-x: auto;
    color: var(--text-muted);
}

/* =========================
   17. TABLES
========================= */

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 550px;
    color: var(--text);
    font-size: 13px;
}

th {
    padding: 14px;
    text-align: left;
    background: var(--surface-3);
    color: white;
    font-weight: 750;
    white-space: nowrap;
}

td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

/* =========================
   18. ADMIN PANEL
========================= */

.admin-panel {
    margin-top: 30px;
    border: 1px solid rgba(49, 133, 255, 0.35);
}

.admin-label {
    padding: 7px 13px;
    background: var(--green);
    color: white;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1px;
}

.admin-analytics {
    padding: 22px;
    margin-bottom: 25px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.analytics-refresh-btn {
    padding: 10px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(49, 133, 255, 0.4);
    background: var(--blue-bg);
    color: #80b4ff;
    border-radius: 8px;
    font-weight: 700;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.analytics-card {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 11px;
    min-width: 0;
}

.analytics-card span {
    color: var(--text-muted);
    font-size: 12px;
}

.analytics-card h3 {
    margin-top: 9px;
    color: var(--green-light);
    font-size: 23px;
    overflow-wrap: anywhere;
}

.admin-form {
    padding: 22px;
    margin-bottom: 25px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.admin-form h3 {
    margin-bottom: 20px;
}

.admin-form label {
    margin-top: 12px;
}

.admin-submissions {
    padding: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.withdrawal-panel {
    background: var(--surface);
}

.admin-deposits-panel {
    margin-top: 25px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
}

/* =========================
   19. AUTH MODAL
========================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: auto;
    max-height: none;
    overflow: visible;
    flex-shrink: 0;
    margin: 0 auto 20px;
    padding: 35px;
    background: #0d1e35;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    box-sizing: border-box;
}
/* =========================
   20. FOOTER
========================= */

.site-footer {
    padding: 35px 20px;
    text-align: center;
    background: #061326;
    border-top: 1px solid var(--border);
}

.site-footer p {
    margin: 8px 0;
    font-size: 12px;
    color: var(--gray-400);
}

.site-footer a {
    color: var(--gray-200);
    font-weight: 600;
}

.site-footer a:hover {
    color: var(--green-light);
}

/* =========================
   21. FLOATING HELP BUTTON
========================= */

.eh-help-widget {
    text-decoration: none;
}

.eh-help-message {
    color: white;
}

.eh-help-icon {
    flex-shrink: 0;
}

/* =========================
   22. STATUS & GENERAL BUTTONS
========================= */

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

button:not(:disabled) {
    -webkit-tap-highlight-color: transparent;
}

#depositPaymentDetails {
    background: #091a2e !important;
    border: 1px solid var(--border);
    border-radius: 10px;
}

#depositPaymentDetails p {
    margin-bottom: 8px;
}

#depositPaymentDetails h3 {
    color: var(--green-light);
    overflow-wrap: anywhere;
}

/* =========================
   23. RESPONSIVE — TABLET
========================= */

@media (max-width: 1000px) {

    .navbar {
        padding-left: 20px;
        padding-right: 20px;
    }

    #navButtons {
        gap: 3px;
    }

    #navButtons button,
    .whatsapp-nav-btn {
        padding: 9px 10px;
        font-size: 12px;
    }

    .hero {
        gap: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .packages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-grid {
        gap: 14px;
    }
}

/* =========================
   24. RESPONSIVE — MOBILE
========================= */

@media (max-width: 700px) {

    html {
        scroll-padding-top: 75px;
    }

    body {
        font-size: 14px;
    }

    .navbar {
        min-height: 68px;
        padding: 8px 15px;
        gap: 12px;
    }

    .site-logo {
        width: 49px;
        height: 49px;
    }

    .menu-toggle {
        display: flex;
        order: 3;
        flex-shrink: 0;
    }

    #navButtons {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        padding: 15px;
        background: #091a30;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    #navButtons.active {
        display: flex;
    }

    #navButtons button,
    .whatsapp-nav-btn {
        width: 100%;
        min-height: 42px;
        justify-content: center;
        text-align: center;
    }

    .section {
        width: calc(100% - 30px);
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: auto;
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .hero-content h1 {
        font-size: clamp(35px, 10vw, 48px);
        letter-spacing: -1px;
    }

    .hero-content > p {
        font-size: 14px;
    }

    .hero-card {
        padding: 24px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid .card {
        min-height: auto;
    }

    #dashboard {
        padding: 30px 14px 55px;
    }

    .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .dashboard-welcome h2 {
        font-size: 24px;
    }

    .dashboard-actions {
        width: 100%;
        justify-content: space-between;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card h2 {
        font-size: 21px;
    }

    .stat-card > span {
        font-size: 11px;
    }

    .panel,
    .referral-panel,
    .earnings-progress {
        padding: 19px;
        border-radius: 15px;
    }

    .panel-heading h2 {
        font-size: 21px;
    }

    .wallet-balance-card {
        padding: 21px;
    }

    .withdraw-section,
    .deposit-premium {
        padding: 17px;
    }

    .task-grid {
        grid-template-columns: 1fr;
    }

    .referral-stats,
    .progress-stats {
        grid-template-columns: 1fr;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .package-card {
        padding: 22px;
    }

    .analytics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-analytics,
    .admin-form,
    .admin-submissions,
    .admin-deposits-panel {
        padding: 16px;
    }

    .referral-copy-row {
        flex-direction: column;
    }

    .referral-copy-row button {
        min-height: 44px;
    }

    .modal-content {
        padding: 27px 20px;
    }

    .eh-help-widget {
        right: 12px;
        bottom: 13px;
    }
}

/* =========================
   25. SMALL MOBILE
========================= */

@media (max-width: 390px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        display: grid;
        grid-template-columns: 45px 1fr;
        column-gap: 12px;
        align-items: center;
    }

    .stat-icon {
        grid-row: span 3;
        margin: 0;
    }

    .stat-card h2 {
        font-size: 23px;
    }

    .dashboard-actions .btn-secondary {
        padding: 10px 14px;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons button {
        width: 100%;
    }
}

/* =========================
   26. ACCESSIBILITY & PERFORMANCE
========================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .navbar,
    .main-sidebar,
    .menu-overlay,
    .eh-help-widget,
    button {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}
/* MENU TOGGLE BUTTON */
#menuToggle,
.menu-toggle,
#sidebarToggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #1769e8;
    color: #ffffff;
    border: 1px solid #3185ff;
    border-radius: 10px;
    font-size: 25px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}

#menuToggle:hover,
.menu-toggle:hover,
#sidebarToggle:hover {
    background: #16a36a;
}
/* EARNHUB TASK BUTTONS */
#availableTaskList button {
    background: #16a875 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 22px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer;
    min-height: 44px;
}

#availableTaskList button:hover {
    background: #119565 !important;
}

#availableTaskList button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* EarnHub Compact Help Button */
.eh-help-widget {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 9999;
}

.eh-help-message {
    font-size: 11px !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    background: #7657ff !important;
    color: #ffffff !important;
}

.eh-help-icon img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
}

/* ==========================================
   EARNHUB FUTURISTIC 3D THEME — PHASE 1
========================================== */

:root {
    --bg: #070b19;
    --bg-deep: #040713;
    --surface: #0d1429;
    --surface-2: #121c36;
    --surface-3: #1b2850;

    --blue: #5965ff;
    --blue-light: #7885ff;
    --blue-dark: #4148dc;

    --green: #7657ff;
    --green-light: #a18aff;
    --green-dark: #6040e8;

    --text: #f5f5ff;
    --text-muted: #a5afc9;

    --border: rgba(135, 143, 255, 0.18);
    --border-light: rgba(255,255,255,0.1);

    --shadow: 0 12px 35px rgba(0,0,0,0.3);
    --shadow-strong: 0 18px 50px rgba(0,0,0,0.45);
}

/* GLOBAL BACKGROUND */

body {
    background:
        radial-gradient(ellipse at 15% 5%, rgba(81,75,255,.13), transparent 35%),
        radial-gradient(ellipse at 90% 35%, rgba(0,145,255,.09), transparent 35%),
        #070b19;
}

/* NAVIGATION */

.navbar {
    background: rgba(7,11,25,.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.site-logo {
    filter: drop-shadow(0 0 12px rgba(118,87,255,.35));
}

#navButtons button.primary,
.btn-primary {
    background: linear-gradient(135deg,#7657ff,#4165ff);
    border: 1px solid rgba(174,155,255,.45);
    box-shadow: 0 5px 20px rgba(100,75,255,.25);
}

/* HERO */

.hero {
    position: relative;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: 8%;
    top: 10%;
    border-radius: 50%;
    background: rgba(104,77,255,.12);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.hero-content h1 span {
    background: linear-gradient(90deg,#a18aff,#4da9ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-card {
    background: linear-gradient(145deg,rgba(35,43,91,.9),rgba(12,19,42,.96));
    border: 1px solid rgba(132,116,255,.35);
    box-shadow: 0 20px 60px rgba(69,54,180,.2);
    transform: perspective(900px) rotateY(-3deg);
    transition: transform .3s ease, box-shadow .3s ease;
}

.hero-card:hover {
    transform: perspective(900px) rotateY(0deg) translateY(-5px);
    box-shadow: 0 25px 65px rgba(91,73,255,.25);
}

/* GLASS CARDS */

.card,
.stat-card,
.panel,
.task-card,
.task-item,
.package-card,
.referral-panel,
.earnings-progress,
.admin-analytics,
.admin-form,
.admin-submissions {
    background: linear-gradient(145deg,rgba(20,29,59,.96),rgba(10,16,35,.98));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.card,
.stat-card,
.task-card,
.task-item,
.package-card {
    transition: transform .25s ease, border-color .25s ease,
                box-shadow .25s ease;
}

.card:hover,
.stat-card:hover,
.task-card:hover,
.task-item:hover,
.package-card:hover {
    transform: translateY(-4px);
    border-color: rgba(137,117,255,.55);
    box-shadow: 0 16px 35px rgba(79,65,190,.18);
}

/* ICONS */

.hero-icon,
.feature-icon,
.stat-icon,
.wallet-icon,
.progress-icon {
    background: linear-gradient(135deg,#7657ff,#287dff);
    box-shadow: 0 5px 20px rgba(104,78,255,.25);
}

/* DASHBOARD */

.dashboard-welcome h2 {
    color: #ffffff;
}

.stat-card h2,
.progress-item h3,
.package-card h2 {
    color: #a18aff;
}

.earnings-card,
.balance-card,
.tasks-card {
    border-top: 2px solid #876cff;
}

/* WALLET */

.wallet-balance-card {
    background:
        radial-gradient(circle at 90% 10%,rgba(255,255,255,.15),transparent 35%),
        linear-gradient(125deg,#5141d9,#303fbd,#1266a8);
    box-shadow: 0 18px 45px rgba(73,65,200,.25);
    border: 1px solid rgba(177,160,255,.35);
}

/* BUTTONS */

button,
.btn-primary,
.btn-secondary {
    transition: transform .2s ease, box-shadow .2s ease,
                background .2s ease;
}

button:not(:disabled):hover,
.btn-primary:hover,
.btn-secondary:hover {
    box-shadow: 0 5px 18px rgba(110,87,255,.22);
}

.btn-secondary {
    background: #182344;
    border-color: var(--border);
}

/* INPUTS */

input,
select,
textarea {
    background: #0a1125;
    border-color: rgba(132,142,255,.22);
}

input:focus,
select:focus,
textarea:focus {
    border-color: #8974ff;
    box-shadow: 0 0 0 3px rgba(118,87,255,.12);
}

/* SIDEBAR */

.main-sidebar {
    background: rgba(8,14,31,.98);
    backdrop-filter: blur(18px);
    border-right: 1px solid var(--border);
}

.sidebar-link:hover {
    background: linear-gradient(90deg,rgba(118,87,255,.2),transparent);
}

/* MODALS */

.modal-content {
    background: linear-gradient(145deg,#151e3e,#090f21);
    border-color: rgba(137,117,255,.35);
    box-shadow: 0 25px 70px rgba(0,0,0,.55);
}

/* TABLES */

th {
    background: #1b2650;
}

tr:hover td {
    background: rgba(118,87,255,.07);
}

/* FOOTER */

.site-footer {
    background: #050918;
    border-top-color: var(--border);
}

/* MOBILE PERFORMANCE */

@media (max-width:700px) {
    .hero-card {
        transform: none;
    }

    .hero-card:hover {
        transform: none;
    }

    .card:hover,
    .stat-card:hover,
    .task-card:hover,
    .task-item:hover,
    .package-card:hover {
        transform: none;
    }

    .card,
    .stat-card,
    .task-card,
    .task-item,
    .package-card {
        backdrop-filter: none;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================
   EARNHUB — 3D FUTURISTIC REDESIGN
   Lightweight desktop + mobile effects
========================================= */

:root {
    --bg: #070b19;
    --surface: #101a32;
    --surface-2: #162342;
    --border: rgba(139, 125, 255, .25);
    --blue: #647bff;
    --purple: #9b6dff;
    --green: #25dfbd;
    --text: #f4f5ff;
    --muted: #a7b1ca;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(ellipse at 15% 10%, rgba(91, 74, 210, .20), transparent 38%),
        radial-gradient(ellipse at 90% 45%, rgba(30, 126, 190, .13), transparent 35%),
        #070b19;
    color: var(--text);
}

/* 3D depth for main sections */
.section,
#dashboard {
    perspective: 1100px;
}

.navbar {
    background: rgba(8, 13, 30, .88);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 35px rgba(0, 0, 0, .28);
    backdrop-filter: blur(16px);
}

/* HERO */
.hero {
    position: relative;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: 8%;
    top: 8%;
    border-radius: 50%;
    background: rgba(112, 83, 255, .17);
    filter: blur(65px);
    z-index: -1;
    pointer-events: none;
}

.hero-content h1 span {
    background: linear-gradient(100deg, #8b7cff, #35d9ef, #bd8aff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* GLASS + 3D CARDS */
.card,
.panel,
.hero-card,
.stat-card,
.package-card,
.wallet-balance-card,
.progress-item,
.analytics-card {
    background: linear-gradient(
        145deg,
        rgba(27, 42, 76, .96),
        rgba(12, 20, 42, .97)
    );
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .07);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Subtle lift — no mouse tracking or heavy scripts */
.card,
.stat-card,
.package-card,
.hero-card,
.progress-item,
.analytics-card {
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

@media (hover: hover) and (pointer: fine) {
    .card:hover,
    .stat-card:hover,
    .package-card:hover,
    .progress-item:hover,
    .analytics-card:hover {
        transform: translateY(-6px) rotateX(2deg);
        border-color: rgba(139, 125, 255, .65);
        box-shadow:
            0 22px 42px rgba(0, 0, 0, .38),
            0 0 22px rgba(111, 91, 255, .13);
    }

    .hero-card:hover {
        transform: translateY(-5px) rotateY(-2deg);
    }
}

/* WALLET — premium 3D surface */
.wallet-balance-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(67, 206, 255, .25), transparent 32%),
        linear-gradient(135deg, #34236e, #172d59 55%, #102c43);
    border: 1px solid rgba(165, 151, 255, .55);
    box-shadow:
        0 22px 45px rgba(0, 0, 0, .35),
        inset 0 1px 1px rgba(255, 255, 255, .18);
}

.wallet-balance-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -65px;
    bottom: -90px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(255,255,255,.025),
                0 0 0 38px rgba(255,255,255,.02);
    pointer-events: none;
}

/* ICONS */
.stat-icon,
.feature-icon,
.wallet-icon,
.progress-icon,
.hero-icon {
    filter: drop-shadow(0 5px 10px rgba(120, 100, 255, .35));
    transform: translateZ(15px);
}

/* BUTTONS */
button,
.btn-primary,
.btn-secondary {
    transition: transform .18s ease, box-shadow .18s ease;
}

.btn-primary,
#navButtons .primary {
    background: linear-gradient(115deg, #6957f5, #9b62f6);
    border: 1px solid rgba(204, 190, 255, .35);
    box-shadow: 0 7px 20px rgba(105, 87, 245, .28);
}

.btn-secondary {
    border: 1px solid rgba(140, 155, 210, .35);
    background: linear-gradient(145deg, #1d2d50, #111c35);
}

@media (hover: hover) and (pointer: fine) {
    button:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(105, 87, 245, .28);
    }
}

button:active {
    transform: scale(.98);
}

/* INPUTS */
input,
select,
textarea {
    background: rgba(7, 14, 31, .88);
    color: var(--text);
    border: 1px solid rgba(135, 151, 202, .28);
    border-radius: 12px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #8e79ff;
    box-shadow: 0 0 0 3px rgba(142, 121, 255, .14);
}

/* SIDEBAR + MODALS */
.main-sidebar,
.modal-content,
.notification-panel {
    background: linear-gradient(155deg, #172447, #0b1329);
    border: 1px solid var(--border);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .4);
}

.sidebar-link {
    border-radius: 11px;
    transition: background .2s ease, transform .2s ease;
}

.sidebar-link:hover {
    background: rgba(119, 99, 255, .15);
    transform: translateX(3px);
}

/* TABLES */
table {
    border-color: var(--border);
}

th {
    background: #182747;
    color: #c8c2ff;
}

td {
    border-color: rgba(139, 125, 255, .13);
}

/* FOOTER */
.site-footer {
    background: linear-gradient(180deg, #0d1730, #070b19);
    border-top: 1px solid var(--border);
}

/* MOBILE PERFORMANCE */
@media (max-width: 700px) {
    body {
        background:
            radial-gradient(ellipse at 50% 0%, rgba(91, 74, 210, .16), transparent 40%),
            #070b19;
    }

    .card,
    .stat-card,
    .package-card,
    .hero-card,
    .panel,
    .progress-item,
    .analytics-card {
        transform: none;
        box-shadow:
            0 8px 22px rgba(0, 0, 0, .23),
            inset 0 1px 0 rgba(255, 255, 255, .05);
    }

    .hero::before {
        width: 150px;
        height: 150px;
        filter: blur(45px);
    }

    .wallet-balance-card {
        transform: none;
    }

    .navbar {
        backdrop-filter: blur(10px);
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* EARNHUB 3D HERO ANIMATION */

.eh-3d-scene {
    height: 155px;
    max-width: 300px;
    margin: 12px auto 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 700px;
    isolation: isolate;
}

.eh-orb {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #c9baff, #7952ed 45%, #171c58 80%);
    box-shadow: 0 0 35px #805cff77, inset -12px -12px 25px #080d32;
    animation: eh-orb-float 4s ease-in-out infinite;
}

.eh-coin {
    position: absolute;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 21px;
    font-weight: 900;
    color: white;
    background: linear-gradient(145deg, #bca4ff, #6545d9 60%, #30216d);
    border: 2px solid #d5c5ff;
    box-shadow: 0 8px 18px #0008, inset 0 2px 5px #ffffff77;
    animation: eh-coin-float 3.5s ease-in-out infinite;
}

.eh-coin-one {
    left: 12%;
    top: 15px;
}

.eh-coin-two {
    right: 12%;
    top: 12px;
    animation-delay: -.9s;
}

.eh-coin-three {
    left: 28%;
    bottom: 5px;
    width: 34px;
    height: 34px;
    animation-delay: -1.8s;
}

.eh-cube {
    position: absolute;
    right: 25%;
    bottom: 4px;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: white;
    background: linear-gradient(145deg, #27d9ce, #2460bb);
    border: 1px solid #9af8ff;
    border-radius: 10px;
    box-shadow: 0 10px 20px #0008, 0 0 20px #27d9ce55;
    transform: rotateY(-22deg) rotateX(15deg);
    animation: eh-cube-float 4s ease-in-out infinite;
}

@keyframes eh-orb-float {
    0%, 100% { transform: translateY(0) rotateY(0); }
    50% { transform: translateY(-9px) rotateY(12deg); }
}

@keyframes eh-coin-float {
    0%, 100% { transform: translateY(0) rotateY(0); }
    50% { transform: translateY(-13px) rotateY(35deg); }
}

@keyframes eh-cube-float {
    0%, 100% { transform: translateY(0) rotateY(-22deg); }
    50% { transform: translateY(-10px) rotateY(25deg); }
}

@media (max-width: 700px) {
    .eh-3d-scene {
        height: 125px;
        margin: 5px auto 15px;
    }

    .eh-orb {
        width: 85px;
        height: 85px;
    }

    .eh-coin {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .eh-cube {
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eh-orb,
    .eh-coin,
    .eh-cube {
        animation: none !important;
    }
}
/* EARNHUB 3D HERO VISUAL */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.eh-3d-scene {
    position: absolute;
    right: 7%;
    top: 50%;
    width: 280px;
    height: 280px;
    transform: translateY(-50%);
    perspective: 900px;
    pointer-events: none;
    z-index: 0;
}

.hero-content,
.hero-card {
    position: relative;
    z-index: 2;
}

.eh-orb {
    position: absolute;
    width: 155px;
    height: 155px;
    top: 55px;
    left: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #c4b5fd, #7657ff 45%, #25105f 80%);
    box-shadow: 0 0 45px #7657ff88, inset -15px -15px 30px #090d1e99;
    animation: ehFloat 5s ease-in-out infinite;
}

.eh-coin {
    position: absolute;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(145deg, #a78bfa, #5132c8);
    border: 2px solid #d7c9ff;
    box-shadow: 0 8px 25px #7657ff66;
}

.eh-coin-one {
    top: 25px;
    right: 25px;
    animation: ehFloat 4s ease-in-out infinite;
}

.eh-coin-two {
    bottom: 25px;
    left: 15px;
    animation: ehFloat 4.5s ease-in-out infinite reverse;
}

.eh-cube {
    position: absolute;
    right: 20px;
    bottom: 35px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #21d4b455, #7657ff99);
    border: 1px solid #b8a5ff;
    border-radius: 13px;
    transform: rotate(35deg) skew(-8deg);
    box-shadow: 0 0 30px #21d4b455;
    animation: ehCube 8s linear infinite;
}

@keyframes ehFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-13px); }
}

@keyframes ehCube {
    from { transform: rotate(35deg) skew(-8deg); }
    to { transform: rotate(395deg) skew(-8deg); }
}

@media (max-width: 768px) {
    .eh-3d-scene {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 210px;
        height: 190px;
        margin: 15px auto;
        opacity: 0.9;
    }

    .eh-orb {
        width: 120px;
        height: 120px;
        top: 35px;
        left: 45px;
    }

    .eh-coin {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eh-orb,
    .eh-coin,
    .eh-cube {
        animation: none !important;
    }
}
/* EARNHUB — FULL SCREEN ROBOTIC GLASS WORLD */

html {
    background: #050817 !important;
}

body {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 15% 20%, #30207855, transparent 42%),
        radial-gradient(ellipse at 85% 75%, #075d7950, transparent 45%),
        #050817 !important;
    color: #f5f3ff;
}

/* ROBOTIC BACKGROUND GRID */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(#8b7cff12 1px, transparent 1px),
        linear-gradient(90deg, #8b7cff12 1px, transparent 1px),
        radial-gradient(circle at center, transparent 20%, #030611cc 100%);
    background-size: 48px 48px, 48px 48px, 100% 100%;
    transform: perspective(700px) rotateX(8deg) scale(1.15);
    transform-origin: center;
}

/* ROBOTIC LIGHTS */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 35%, #7657ff30, transparent 22%),
        radial-gradient(circle at 88% 18%, #00d9ff22, transparent 20%),
        radial-gradient(circle at 70% 85%, #7657ff25, transparent 25%);
}

/* GLASS SURFACES */
.hero-card,
.card,
.stat-card,
.dashboard-card,
.task-card,
.package-card,
.modal-content,
.auth-box,
form,
section .card {
    background: linear-gradient(
        135deg,
        #ffffff13,
        #ffffff05
    ) !important;
    border: 1px solid #a99aff35 !important;
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    box-shadow:
        0 15px 45px #00000035,
        inset 0 1px 0 #ffffff20,
        0 0 22px #7657ff12;
    border-radius: 18px;
}

/* GLASS NAVIGATION */
header,
.navbar,
nav,
.sidebar {
    background: #080d20b8 !important;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-color: #8b7cff30 !important;
}

/* 3D BUTTONS */
button,
.btn-primary,
.btn-secondary {
    border: 1px solid #b5a5ff55;
    box-shadow:
        0 7px 20px #7657ff25,
        inset 0 1px 0 #ffffff30;
    transition: transform .2s ease, box-shadow .2s ease;
}

button:active {
    transform: translateY(1px) scale(.98);
}

/* GLASS INPUTS */
input,
select,
textarea {
    background: #080d20b8 !important;
    color: #ffffff !important;
    border: 1px solid #9b8aff55 !important;
    backdrop-filter: blur(12px);
}

/* MOBILE PERFORMANCE */
@media (max-width: 768px) {
    body::before {
        background-size: 34px 34px, 34px 34px, 100% 100%;
        transform: none;
    }

    .hero-card,
    .card,
    .stat-card,
    .dashboard-card,
    .task-card,
    .package-card,
    .modal-content,
    .auth-box {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
/* EARNHUB — PREMIUM 3D GLASS PANELS */

/* Main screen sections */
.section,
#dashboard,
#about,
#publicTasks,
#packages,
#referral {
    position: relative;
    z-index: 1;
}

/* Glass cards */
.hero-card,
.card,
.stat-card,
.task-card,
.package-card,
.sidebar-profile,
.main-sidebar,
.modal,
.modal-content,
.auth-box,
.deposit-card,
.withdraw-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        rgba(30, 37, 75, .72),
        rgba(9, 14, 34, .58)
    ) !important;
    border: 1px solid rgba(167, 139, 250, .35) !important;
    border-radius: 20px !important;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, .35),
        inset 0 1px 1px rgba(255, 255, 255, .18),
        inset 0 -1px 1px rgba(118, 87, 255, .15);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

/* Glass shine */
.hero-card::before,
.card::before,
.stat-card::before,
.task-card::before,
.package-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        125deg,
        rgba(255,255,255,.12),
        transparent 35%,
        transparent 70%,
        rgba(118,87,255,.08)
    );
    border-radius: inherit;
}

/* Floating depth on desktop */
@media (hover: hover) and (pointer: fine) {
    .hero-card,
    .card,
    .stat-card,
    .task-card,
    .package-card {
        transition: transform .25s ease, box-shadow .25s ease;
    }

    .hero-card:hover,
    .card:hover,
    .stat-card:hover,
    .task-card:hover,
    .package-card:hover {
        transform: translateY(-4px);
        box-shadow:
            0 22px 50px rgba(0,0,0,.42),
            0 0 25px rgba(118,87,255,.2),
            inset 0 1px 1px rgba(255,255,255,.2);
    }
}

/* Neon glass borders */
.navbar {
    border-bottom: 1px solid rgba(139, 124, 255, .35) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.main-sidebar {
    border-right: 1px solid rgba(139,124,255,.35) !important;
}

/* Mobile: lighter glass for performance */
@media (max-width: 768px) {
    .hero-card,
    .card,
    .stat-card,
    .task-card,
    .package-card,
    .main-sidebar {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .hero-card:hover,
    .card:hover,
    .stat-card:hover,
    .task-card:hover,
    .package-card:hover {
        transform: none;
    }
}
/* EARNHUB — 3D GLASS PANELS */

main,
main > section,
#dashboard,
#wallet,
#packages,
#referral,
#publicTasks,
#about {
    position: relative;
    z-index: 1;
}

.card,
.stat-card,
.task-card,
.package-card,
.dashboard-card,
.wallet-card,
.panel,
.modal,
.modal-content,
.table-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        rgba(30, 39, 78, .72),
        rgba(8, 14, 35, .78)
    ) !important;
    border: 1px solid rgba(157, 137, 255, .38) !important;
    border-radius: 20px !important;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, .35),
        inset 0 1px 1px rgba(255, 255, 255, .18),
        inset 0 -1px 1px rgba(118, 87, 255, .15),
        0 0 24px rgba(118, 87, 255, .10) !important;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.card::before,
.stat-card::before,
.task-card::before,
.package-card::before,
.dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,.12),
        transparent 35%,
        transparent 70%,
        rgba(118,87,255,.08)
    );
}

.card:hover,
.task-card:hover,
.package-card:hover {
    border-color: rgba(174, 157, 255, .7) !important;
    box-shadow:
        0 22px 45px rgba(0, 0, 0, .42),
        inset 0 1px 1px rgba(255,255,255,.2),
        0 0 28px rgba(118,87,255,.2) !important;
}

table {
    background: transparent !important;
}

th {
    background: rgba(118, 87, 255, .18) !important;
}

td {
    background: rgba(255, 255, 255, .025) !important;
    border-color: rgba(157, 137, 255, .15) !important;
}

@media (max-width: 768px) {
    .card,
    .stat-card,
    .task-card,
    .package-card,
    .dashboard-card,
    .wallet-card,
    .panel,
    .modal-content,
    .table-container {
        border-radius: 15px !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .card:hover,
    .task-card:hover,
    .package-card:hover {
        transform: none;
    }
}
/* EARNHUB — FUTURISTIC ROBOTIC ENVIRONMENT */

body {
    background-color: #040714 !important;
}

body::before {
    background-image:
        linear-gradient(rgba(91, 112, 255, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 112, 255, .09) 1px, transparent 1px),
        radial-gradient(ellipse at 50% 50%, transparent 15%, #040714 85%) !important;
    background-size: 42px 42px, 42px 42px, 100% 100% !important;
}

/* Glowing robotic light beams */
body {
    --eh-neon-purple: rgba(118, 87, 255, .22);
    --eh-neon-blue: rgba(0, 205, 255, .16);
}

body::after {
    background:
        radial-gradient(ellipse at 10% 20%, var(--eh-neon-purple), transparent 35%),
        radial-gradient(ellipse at 90% 30%, var(--eh-neon-blue), transparent 35%),
        radial-gradient(ellipse at 50% 100%, var(--eh-neon-purple), transparent 40%) !important;
    animation: ehEnvironmentGlow 9s ease-in-out infinite alternate;
}

@keyframes ehEnvironmentGlow {
    from { opacity: .55; }
    to { opacity: 1; }
}

/* Glass panels sit above the environment */
header, nav, main, footer, section, .sidebar {
    position: relative;
    z-index: 1;
}

/* Keep the background behind all content */
body::before,
body::after {
    z-index: 0 !important;
}

body {
    isolation: isolate;
}

@media (max-width: 768px) {
    body::after {
        animation: none;
    }

    body::before {
        background-size: 32px 32px, 32px 32px, 100% 100% !important;
    }
}

/* =========================================
   EARNHUB — REAL 3D ROBOTIC BACKGROUND
========================================= */

body {
    background-color: #040714 !important;
    background-image:
        linear-gradient(
            rgba(4, 7, 20, 0.48),
            rgba(4, 7, 20, 0.68)
        ),url("robot-bg.webp") !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    isolation: isolate;
}

/* Robotic grid overlay */
body::before {
    z-index: 0 !important;
    pointer-events: none;
}

/* Neon lighting */
body::after {
    z-index: 0 !important;
    pointer-events: none;
}

/* Website content stays above background */
.navbar,
.main-sidebar,
main,
main section,
.section,
#dashboard,
.site-footer {
    position: relative;
    z-index: 1;
}

/* Glass panels */
.hero-card,
.card,
.stat-card,
.panel,
.task-card,
.task-item,
.package-card,
.progress-item,
.analytics-card {
    background: linear-gradient(
        145deg,
        rgba(19, 25, 55, 0.72),
        rgba(7, 12, 30, 0.68)
    ) !important;
    border: 1px solid rgba(157, 137, 255, 0.4) !important;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
}

/* Mobile performance */
@media (max-width: 700px) {
    body {
        background-attachment: scroll !important;
        background-position: center top !important;
    }

    .hero-card,
    .card,
    .stat-card,
    .panel,
    .task-card,
    .task-item,
    .package-card {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}
/* FIX: BACKGROUND MUST NOT BLOCK CLICKS */

body::before,
body::after,
.eh-3d-scene,
.eh-3d-scene * {
    pointer-events: none !important;
}

button,
a,
input,
select,
textarea,
.navbar,
.sidebar,
.main-sidebar,
.modal,
.menu-toggle,
#menuToggle {
    pointer-events: auto !important;
    position: relative;
    z-index: 5;
}
/* AUTH MODAL CLICK AND LAYER FIX */

#authModal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
}

#authModal .modal-content {
    position: relative !important;
    z-index: 1000000 !important;
    pointer-events: auto !important;
}

#authModal button,
#authModal input,
#authModal a {
    pointer-events: auto !important;
}
/* SIDEBAR CLICK FIX - DESIGN UNCHANGED */

.menu-overlay {
    z-index: 9998;
}

.main-sidebar {
    z-index: 9999;
}

.main-sidebar.active,
.main-sidebar.active * {
    pointer-events: auto;
}
/* =====================================
   EARNHUB SIDEBAR DESIGN RESTORE
===================================== */

.main-sidebar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    width: 290px !important;
    padding: 25px 20px !important;
    background: linear-gradient(145deg, #101d3d, #090d1e) !important;
    border-right: 1px solid rgba(150, 130, 255, 0.3) !important;
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.45) !important;
}

.main-sidebar .sidebar-heading {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 35px !important;
}

.main-sidebar .sidebar-heading h2 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 25px !important;
}

.main-sidebar .sidebar-heading h2 span {
    color: #21d4b4 !important;
}

.main-sidebar .sidebar-heading button {
    width: 35px !important;
    height: 35px !important;
    background: #202b50 !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    border-radius: 8px !important;
    font-size: 23px !important;
    cursor: pointer !important;
}

.main-sidebar .sidebar-label {
    display: block !important;
    color: #9ba9c5 !important;
    margin-bottom: 15px !important;
}

.main-sidebar .sidebar-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
    padding: 13px 14px !important;
    margin: 0 0 9px 0 !important;
    gap: 13px !important;
    color: #e0e7ff !important;
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

.main-sidebar .sidebar-link:hover,
.main-sidebar .sidebar-link.active {
    background: linear-gradient(100deg, #493b91, #164c60) !important;
    border-color: #7657ff !important;
    color: white !important;
}

.main-sidebar .sidebar-profile {
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 25px !important;
    padding: 15px 10px !important;
    border-top: 1px solid rgba(255,255,255,.15) !important;
}

.main-sidebar .sidebar-profile strong {
    color: white !important;
}

.main-sidebar .sidebar-profile small {
    color: #aab8d0 !important;
}

.main-sidebar .sidebar-logout {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 10px !important;
    padding: 12px !important;
    color: #ff9292 !important;
    background: rgba(239,83,80,.12) !important;
    border: 1px solid rgba(239,83,80,.3) !important;
    border-radius: 9px !important;
    cursor: pointer !important;
}
/* TASKS BUTTON — EARNHUB THEME */

#navButtons button:nth-of-type(3) {
    background: linear-gradient(145deg, #172443, #0b1730) !important;
    color: #e0e7ff !important;
    border: 1px solid rgba(118, 87, 255, 0.35) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
}

#navButtons button:nth-of-type(3):hover {
    background: linear-gradient(145deg, #493b91, #164c60) !important;
    color: #ffffff !important;
    border-color: #7657ff !important;
}
/* EXACT NAVBAR TASKS BUTTON COLOR FIX */

#navButtons button[onclick*="publicTasks"] {
    background: linear-gradient(145deg, #172443, #0b1730) !important;
    background-color: #172443 !important;
    background-image: linear-gradient(145deg, #172443, #0b1730) !important;
    color: #e0e7ff !important;
    border: 1px solid rgba(118, 87, 255, 0.4) !important;
    box-shadow: none !important;
}

#navButtons button[onclick*="publicTasks"]:hover {
    background: linear-gradient(145deg, #493b91, #164c60) !important;
    color: #ffffff !important;
}
/* EARNHUB START TASK BUTTON - BLUE PURPLE THEME */

#availableTaskList .card button {
    background: linear-gradient(135deg, #7657ff, #3478ff) !important;
    background-color: #7657ff !important;
    color: #ffffff !important;
    border: 1px solid rgba(160, 140, 255, 0.5) !important;
    border-radius: 12px !important;
    padding: 13px 27px !important;
    font-weight: 700 !important;
    box-shadow: 0 5px 18px rgba(95, 90, 255, 0.3) !important;
    cursor: pointer !important;
}

#availableTaskList .card button:hover {
    background: linear-gradient(135deg, #6041e8, #2464df) !important;
    box-shadow: 0 5px 22px rgba(95, 90, 255, 0.45) !important;
}
/* EARNHUB STICKY NAVBAR */

.navbar {
    position: sticky !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    z-index: 1500 !important;
    background: rgba(9, 13, 30, 0.94) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* MENU BUTTON */
.navbar .menu-toggle {
    position: relative;
    z-index: 1501 !important;
    cursor: pointer;
}
/* ROBOTIC 3D NAVBAR BACKGROUND */

.navbar {
    background:
        linear-gradient(
            90deg,
            rgba(5, 10, 30, 0.78),
            rgba(12, 18, 48, 0.72)
        ),
        url("robot-bg.png") center 45% / cover no-repeat !important;

    position: sticky !important;
    top: 0 !important;
    z-index: 1500 !important;

    border-bottom: 1px solid rgba(118, 87, 255, 0.35) !important;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* =========================================
   EARNHUB — PREMIUM 3D GLASSMORPHISM
========================================= */

/* Main navbar glass */
.navbar {
    background: rgba(10, 17, 43, 0.48) !important;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid rgba(160, 150, 255, 0.25) !important;
}

/* All main cards */
.card,
.hero-card,
.feature-card,
.stat-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.13),
        rgba(100, 110, 190, 0.07)
    ) !important;

    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);

    border: 1px solid rgba(190, 185, 255, 0.24) !important;

    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.12),
        0 12px 35px rgba(0,0,0,0.22),
        0 0 18px rgba(118,87,255,0.08) !important;

    border-radius: 22px !important;
}

/* Sidebar glass */
.main-sidebar {
    background: rgba(9, 17, 43, 0.78) !important;
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border-right: 1px solid rgba(160,150,255,0.25) !important;
}

/* Profile and dashboard panels */
.sidebar-profile,
.modal-content {
    background: rgba(255,255,255,0.07) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(190,185,255,0.2) !important;
    border-radius: 18px !important;
}

/* Glass effect on form fields */
input,
select,
textarea {
    background: rgba(255,255,255,0.07) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(170,160,255,0.25) !important;
}

/* Glass effect on task cards */
#availableTaskList .card {
    background: rgba(23, 30, 70, 0.58) !important;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

/* Maintain readable text */
.card,
.hero-card,
.feature-card,
.stat-card {
    color: #f2f4ff;
}

/* =====================================
   EARNHUB — CRYSTAL CLEAR GLASS
===================================== */

.card,
.hero-card,
.feature-card,
.stat-card,
.modal-content,
.sidebar-profile {
    background: rgba(160, 180, 255, 0.055) !important;

    backdrop-filter: blur(2px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(2px) saturate(125%) !important;

    border: 1px solid rgba(210, 220, 255, 0.28) !important;

    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.22),
        inset 0 -1px 2px rgba(100,130,255,0.12),
        0 8px 30px rgba(0,0,0,0.15) !important;

    border-radius: 22px !important;
}

/* Transparent navbar */
.navbar {
    background: rgba(12, 20, 55, 0.20) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
}

/* Transparent task cards */
#availableTaskList .card {
    background: rgba(120, 145, 220, 0.055) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
}

/* Transparent sidebar */
.main-sidebar {
    background: rgba(12, 20, 55, 0.35) !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
}

/* =========================================
   EARNHUB FINAL FIX — LOGIN + MENU + CLICKS
========================================= */

/* Login modal must stay above sidebar and overlays */
#authModal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
}

#authModal.hidden {
    display: none !important;
}

#authModal .modal-content {
    position: relative !important;
    z-index: 10000000 !important;
    pointer-events: auto !important;
}

/* Keep modal controls clickable */
#authModal button,
#authModal input,
#authModal a,
#authModal form {
    pointer-events: auto !important;
}

/* Sidebar and overlay must stay below login modal */
.menu-overlay {
    z-index: 99998 !important;
}

.main-sidebar {
    z-index: 99999 !important;
}

.main-sidebar.active {
    pointer-events: auto !important;
}

/* Sidebar links remain clickable */
.main-sidebar a,
.main-sidebar button,
.sidebar-link,
.sidebar-heading button,
.sidebar-logout {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* 3D background must never block website controls */
.eh-3d-scene,
.eh-3d-scene *,
body::before,
body::after {
    pointer-events: none !important;
}

/* Keep normal website content interactive */
.navbar,
.navbar *,
main,
main *,
#dashboard,
#dashboard *,
.site-footer,
.site-footer * {
    pointer-events: auto;
}

/* Mobile menu button */
@media (max-width: 700px) {
    .menu-toggle {
        display: flex !important;
        position: relative !important;
        z-index: 100001 !important;
        pointer-events: auto !important;
    }

    #navButtons.active {
        display: flex !important;
    }
}

/* Prevent invisible layers from covering auth form */
#authModal .modal-content input {
    position: relative;
    z-index: 1;
}

/* ======================================
   EARNHUB — 3D HISTORY DESIGN
====================================== */

#mySubmissions,
#depositHistory,
#withdrawalHistory,
#transactionHistory,
#myPackageHistory {
    width: 100%;
    overflow-x: auto;
    padding: 15px;
    background: rgba(9, 26, 46, 0.78);
    border: 1px solid rgba(49, 133, 255, 0.35);
    border-radius: 16px;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#mySubmissions table,
#depositHistory table,
#withdrawalHistory table,
#transactionHistory table,
#myPackageHistory table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0 8px;
}

#mySubmissions th,
#depositHistory th,
#withdrawalHistory th,
#transactionHistory th,
#myPackageHistory th {
    padding: 14px;
    background: linear-gradient(135deg, #1769e8, #103b78);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
}

#mySubmissions td,
#depositHistory td,
#withdrawalHistory td,
#transactionHistory td,
#myPackageHistory td {
    padding: 14px;
    background: rgba(18, 41, 69, 0.92);
    color: #e8f1ff;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
}

#mySubmissions tr:hover td,
#depositHistory tr:hover td,
#withdrawalHistory tr:hover td,
#transactionHistory tr:hover td,
#myPackageHistory tr:hover td {
    background: rgba(23, 105, 232, 0.24);
}

#mySubmissions td:first-child,
#depositHistory td:first-child,
#withdrawalHistory td:first-child,
#transactionHistory td:first-child,
#myPackageHistory td:first-child {
    border-radius: 9px 0 0 9px;
}

#mySubmissions td:last-child,
#depositHistory td:last-child,
#withdrawalHistory td:last-child,
#transactionHistory td:last-child,
#myPackageHistory td:last-child {
    border-radius: 0 9px 9px 0;
}

@media (max-width: 700px) {
    #mySubmissions,
    #depositHistory,
    #withdrawalHistory,
    #transactionHistory,
    #myPackageHistory {
        padding: 8px;
        border-radius: 12px;
    }
}

/* ======================================
   EARNHUB — 3D HISTORY PANELS
====================================== */

.submissions-panel,
.withdrawal-history-panel,
.transaction-panel,
#depositHistory,
#withdrawalHistory,
#transactionHistory,
#packageHistory,
#currentActivePackage {
    background: linear-gradient(
        145deg,
        rgba(18, 41, 69, 0.96),
        rgba(7, 20, 38, 0.96)
    );
    border: 1px solid rgba(49, 133, 255, 0.3);
    border-radius: 18px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.submissions-panel,
.transaction-panel,
.withdrawal-history-panel {
    padding: 22px;
    margin-top: 22px;
}

.submissions-panel h2,
.transaction-panel h2,
.withdrawal-history-panel h3,
#currentActivePackage h2,
#packageHistory h2 {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(49, 133, 255, 0.3);
}

@media (max-width: 700px) {
    .submissions-panel,
    .transaction-panel,
    .withdrawal-history-panel {
        padding: 13px;
    }
}

/* ======================================
   EARNHUB — 3D STATUS BADGES
====================================== */

.status,
.badge,
.status-badge,
[class*="status-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.status-approved,
.status-paid,
.status-completed,
.status-success {
    background: rgba(22,163,106,0.17);
    color: #42e6a1;
    border-color: rgba(32,199,130,0.4);
}

.status-pending {
    background: rgba(245,173,53,0.15);
    color: #ffc86b;
    border-color: rgba(245,173,53,0.4);
}

.status-rejected,
.status-failed {
    background: rgba(239,83,80,0.15);
    color: #ff8582;
    border-color: rgba(239,83,80,0.4);
}

/* 3D TASK SUBMISSION HISTORY */

.history-record {
    width: 100%;
    margin: 12px 0;
    padding: 18px;
    background: linear-gradient(145deg, rgba(19, 48, 79, .96), rgba(6, 20, 38, .98));
    border: 1px solid rgba(66, 155, 255, .32);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,.28),
                inset 0 1px 0 rgba(255,255,255,.08);
    color: #edf5ff;
    box-sizing: border-box;
}

.history-record-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.history-record-top h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.history-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: capitalize;
    background: rgba(245,173,53,.15);
    color: #ffc86b;
    border: 1px solid rgba(245,173,53,.4);
}

.history-status.status-approved,
.history-status.status-completed {
    background: rgba(22,163,106,.17);
    color: #42e6a1;
    border-color: rgba(32,199,130,.4);
}

.history-status.status-rejected {
    background: rgba(239,83,80,.15);
    color: #ff8582;
    border-color: rgba(239,83,80,.4);
}

.history-record-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.history-record-details p,
.history-proof {
    margin: 0;
    padding: 12px;
    background: rgba(255,255,255,.045);
    border-radius: 10px;
    overflow-wrap: anywhere;
}

.history-record-details span,
.history-proof span {
    display: block;
    color: #91b5dc;
    font-size: 11px;
    margin-bottom: 6px;
}

.history-record-details strong {
    color: #fff;
    font-size: 12px;
}

.history-proof {
    margin-top: 12px;
}

.history-proof p {
    margin: 0;
    color: #e0ecfb;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.history-empty {
    padding: 20px;
    text-align: center;
    color: #a9c4e3;
}

@media(max-width:600px) {
    .history-record {
        padding: 13px;
    }

    .history-record-details {
        grid-template-columns: 1fr;
    }
}

/* =====================================
   EARNHUB — CRYSTAL GLASS SUBMISSIONS
===================================== */

#mySubmissions {
    position: relative;
    padding: 18px;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgba(100, 180, 255, 0.10),
        rgba(20, 55, 100, 0.18),
        rgba(150, 110, 255, 0.08)
    ) !important;
    border: 1px solid rgba(160, 215, 255, 0.35);
    border-radius: 22px;
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.30),
        inset 0 1px 2px rgba(255, 255, 255, 0.30),
        inset 0 -1px 2px rgba(80, 160, 255, 0.15);
}

#mySubmissions .history-record {
    position: relative;
    overflow: hidden;
    margin: 14px 0;
    padding: 20px;
    background: linear-gradient(
        145deg,
        rgba(190, 225, 255, 0.13),
        rgba(45, 95, 155, 0.13),
        rgba(125, 105, 210, 0.10)
    ) !important;
    border: 1px solid rgba(190, 225, 255, 0.38);
    border-radius: 18px;
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.28),
        inset 0 -2px 8px rgba(80, 150, 255, 0.12);
}

#mySubmissions .history-record::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.85),
        transparent
    );
    pointer-events: none;
}

#mySubmissions .history-record-top h3 {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(100, 190, 255, .45);
}

#mySubmissions .history-record-details p,
#mySubmissions .history-proof {
    background: rgba(210, 235, 255, 0.07);
    border: 1px solid rgba(190, 225, 255, 0.17);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
}

#mySubmissions .history-record-details span,
#mySubmissions .history-proof span {
    color: #a9d8ff;
}

#mySubmissions .history-record-details strong,
#mySubmissions .history-proof p {
    color: #ffffff;
}

#mySubmissions .history-status {
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 14px rgba(80, 180, 255, .12),
        inset 0 1px 1px rgba(255,255,255,.15);
}

@media(max-width:600px) {
    #mySubmissions {
        padding: 10px;
        border-radius: 16px;
    }

    #mySubmissions .history-record {
        padding: 14px;
    }
}

/* =====================================
   WITHDRAWAL HISTORY — CLEAR CRYSTAL GLASS
===================================== */

#withdrawalHistory {
    background: rgba(8, 20, 42, 0.18) !important;
    border: 1px solid rgba(170, 215, 255, 0.42) !important;
    border-radius: 22px;
    padding: 18px;
    backdrop-filter: blur(8px) saturate(145%);
    -webkit-backdrop-filter: blur(8px) saturate(145%);
    box-shadow:
        0 15px 40px rgba(0,0,0,.22),
        inset 0 1px 2px rgba(255,255,255,.25);
}

#withdrawalHistory .history-record {
    background: rgba(15, 35, 65, 0.20) !important;
    border: 1px solid rgba(190, 225, 255, 0.38) !important;
    border-radius: 18px;
    backdrop-filter: blur(7px) saturate(150%);
    -webkit-backdrop-filter: blur(7px) saturate(150%);
    box-shadow:
        0 12px 28px rgba(0,0,0,.20),
        inset 0 1px 1px rgba(255,255,255,.25);
}

#withdrawalHistory .history-record::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.9),
        transparent
    );
}

#withdrawalHistory .history-record-details p {
    background: rgba(190, 220, 255, 0.07) !important;
    border: 1px solid rgba(190, 225, 255, 0.20);
    backdrop-filter: blur(5px);
}

#withdrawalHistory h3,
#withdrawalHistory strong {
    color: #fff !important;
    text-shadow: 0 1px 10px rgba(100, 180, 255, .25);
}

#withdrawalHistory .history-record-details span {
    color: #b7d9ff;
}

@media(max-width:600px) {
    #withdrawalHistory {
        padding: 10px;
    }
}

/* WITHDRAWAL HISTORY — ACCOUNT OVERVIEW MATCH */

#withdrawalHistory {
    background: linear-gradient(
        135deg,
        rgba(13, 30, 53, 0.48),
        rgba(18, 41, 69, 0.30)
    ) !important;
    border: 1px solid rgba(120, 175, 255, 0.25) !important;
    border-radius: 20px !important;
    padding: 22px !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* WITHDRAWAL — ULTRA TRANSPARENT GLASS */

#withdrawalHistory {
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 20px !important;
    padding: 22px !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    box-shadow:
        0 10px 30px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.18) !important;
}

/* WITHDRAWAL HISTORY — EXACT EARNHUB BACKGROUND */

#withdrawalHistory {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
}

#withdrawalHistory .history-record {
   background: transparent !important;
    border: 1px solid rgba(164, 190, 220, 0.15) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: none !important;
}

#withdrawalHistory .history-record-details p {
    background: transparent !important;
    border: 1px solid rgba(164, 190, 220, 0.15) !important;
}

/* MOBILE ROBOT BACKGROUND OPTIMIZATION */

@media (max-width: 700px) {
    body {
        background-position: center center !important;
        background-size: cover !important;
        background-attachment: scroll !important;
    }

    .dashboard-card,
    .history-record,
    .stat-card,
    .content-card {
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
}

/* =====================================
   EARNHUB MOBILE PERFORMANCE BOOST
===================================== */

@media (max-width: 700px) {

    /* Smooth background rendering */
    body {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
    }

    /* Disable expensive glass blur */
    .sidebar,
    .topbar,
    .welcome-section,
    .stat-card,
    .content-card,
    .card,
    .history-record,
    .dashboard-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 5px 15px rgba(0,0,0,.16) !important;
    }

    /* Keep transparent glass appearance */
    .stat-card,
    .content-card,
    .card,
    .history-record,
    .dashboard-card {
        background-color: rgba(12, 35, 65, 0.78) !important;
    }

    /* Reduce expensive visual effects */
    * {
        text-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }

    /* Prevent horizontal overflow */
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}
@media (max-width: 700px) {
    body {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-color: #071426 !important;
    }
}
@media (max-width: 700px) {
    body {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: 100% auto !important;
        background-repeat: no-repeat !important;
    }
.sidebar,
.topbar,
.card,
.stat-card,
.content-card,
.dashboard-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* LOGIN FORM: HIDE SIGNUP FIELDS */
#authModal #usernameGroup.hidden,
#authModal #nameGroup.hidden,
#authModal #confirmPasswordGroup.hidden {
    display: none !important;
}
}
#recoveryEmailModal,
#newPasswordModal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.85) !important;
    padding: 20px !important;
    overflow-y: auto !important;
}

#recoveryEmailModal:not(.hidden),
#newPasswordModal:not(.hidden) {
    display: flex !important;
}

#recoveryEmailModal .modal-content,
#newPasswordModal .modal-content {
    position: relative !important;
    margin: auto !important;
    width: 100% !important;
    max-width: 420px !important;
}
