* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

input, textarea {
    user-select: text !important;
    -webkit-user-select: text !important;
    -webkit-touch-callout: default !important;
}

.admin-control-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-locks-table td small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 244, 214, 0.55);
}

.admin-switch-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 116px;
    cursor: pointer;
    user-select: none;
}

.admin-switch-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-switch-control span {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 42px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.3);
    border: 2px solid rgba(239, 68, 68, 0.5);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-switch-control span::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ef4444;
    transition: transform 0.2s ease, background 0.2s ease;
}

.admin-switch-control input:checked + span {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.5);
}

.admin-switch-control input:checked + span::after {
    transform: translateX(18px);
    background: #22c55e;
}

.admin-switch-control strong {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #ef4444;
    transition: color 0.2s ease;
}

.admin-switch-control input:checked ~ strong {
    color: #22c55e;
}

body {
    position: relative;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    font-size: 13px;
    background:
        radial-gradient(circle at 18% 0%, rgba(240, 200, 80, 0.2), transparent 30%),
        linear-gradient(145deg, #050b08, #1a1a0f 58%, #090b07);
    color: #fff;
    overflow-x: hidden;
}

body[data-page="user"] {
    background: #faf5ed;
    color: #222;
}

body[data-page="user"] h1,
body[data-page="user"] h2,
body[data-page="user"] h3,
body[data-page="user"] p,
body[data-page="user"] span,
body[data-page="user"] strong,
body[data-page="user"] small,
body[data-page="user"] label {
    color: #222;
}

body[data-page="user"] .eyebrow {
    color:   #00ad2b;
}

body[data-page="user"] .hero h1,
body[data-page="user"] .panel h1,
body[data-page="user"] .panel h2 {
    color: #111;
}

body[data-page="user"] .hero p {
    color: #555;
}

body[data-page="user"] .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0 12px 0 85px !important;
    height: 48px;
    display: flex;
    align-items: center;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00ad2b;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

body[data-page="user"]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: none;
}

.user-background-video {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background: #f5efe6;
    pointer-events: none;
}

.money-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.42;
}

.dollar-note {
    position: absolute;
    top: -120px;
    left: var(--x);
    width: var(--w);
    aspect-ratio: 2.15 / 1;
    border: 1px solid rgba(240, 200, 80, 0.72);
    border-radius: 7px;
    background:
        radial-gradient(circle at 50% 50%, rgba(225, 169, 3, 0.2) 0 20%, transparent 21%),
        linear-gradient(90deg, rgba(14, 65, 132, 0.95), rgba(240, 200, 80, 0.82), rgba(72, 43, 140, 0.95));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    opacity: 0.45;
    transform: rotate(var(--r));
    animation: paperDollarFall var(--d) linear infinite;
    animation-delay: var(--delay);
}

.dollar-note::before {
    content: "$";
    position: absolute;
    inset: 9px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(10, 43, 86, 0.42);
    border-radius: 5px;
    color: rgba(7, 18, 37, 0.72);
    font-size: var(--fs);
    font-weight: 900;
}

.dollar-note::after {
    content: "";
    position: absolute;
    inset: 13px 16px;
    border-left: 7px double rgba(10, 43, 86, 0.35);
    border-right: 7px double rgba(10, 43, 86, 0.35);
    border-radius: 999px;
}

.dollar-note:nth-child(1) {
    --x: 5%;
    --w: 86px;
    --fs: 24px;
    --d: 17s;
    --delay: -2s;
    --r: -14deg;
}

.dollar-note:nth-child(2) {
    --x: 18%;
    --w: 118px;
    --fs: 32px;
    --d: 22s;
    --delay: -9s;
    --r: 11deg;
}

.dollar-note:nth-child(3) {
    --x: 30%;
    --w: 76px;
    --fs: 21px;
    --d: 19s;
    --delay: -5s;
    --r: 22deg;
}

.dollar-note:nth-child(4) {
    --x: 43%;
    --w: 104px;
    --fs: 29px;
    --d: 24s;
    --delay: -14s;
    --r: -18deg;
}

.dollar-note:nth-child(5) {
    --x: 56%;
    --w: 92px;
    --fs: 26px;
    --d: 18s;
    --delay: -7s;
    --r: 8deg;
}

.dollar-note:nth-child(6) {
    --x: 68%;
    --w: 126px;
    --fs: 35px;
    --d: 26s;
    --delay: -18s;
    --r: -10deg;
}

.dollar-note:nth-child(7) {
    --x: 79%;
    --w: 72px;
    --fs: 20px;
    --d: 20s;
    --delay: -11s;
    --r: 17deg;
}

.dollar-note:nth-child(8) {
    --x: 88%;
    --w: 98px;
    --fs: 27px;
    --d: 23s;
    --delay: -4s;
    --r: -24deg;
}

.dollar-note:nth-child(9) {
    --x: 12%;
    --w: 70px;
    --fs: 20px;
    --d: 25s;
    --delay: -17s;
    --r: 19deg;
}

.dollar-note:nth-child(10) {
    --x: 63%;
    --w: 82px;
    --fs: 23px;
    --d: 21s;
    --delay: -13s;
    --r: -7deg;
}

@keyframes paperDollarFall {
    0% {
        transform: translate(-18px, -10vh) rotate(var(--r));
    }

    35% {
        transform: translate(34px, 35vh) rotate(calc(var(--r) + 120deg));
    }

    70% {
        transform: translate(-24px, 75vh) rotate(calc(var(--r) + 250deg));
    }

    100% {
        transform: translate(22px, 115vh) rotate(calc(var(--r) + 360deg));
    }
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 70px !important;
    background: rgba(225, 169, 3, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(14px);
}

.site-header .brand {
    margin-right: auto;
}

.back-button {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2000 !important;
    min-height: 32px;
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    background: #00ad2b;
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.back-button:active {
    transform: scale(0.95);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #00ad2b;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    flex-shrink: 0;
}

.brand img,
.brand-logo,
.site-header .brand img {
    display: block;
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    flex: 0 0 42px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.brand span {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    white-space: nowrap;
}

.top-nav,
.actions,
.table-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.top-nav a,
.notification-toggle,
.btn {
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    transition: 0.2s ease;
}

/* Standardized Top Nav Buttons */
.top-nav a,
.nav-search-btn {
    height: 32px;
    padding: 0 12px !important;
    font-size: 11px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    background: rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(156, 154, 43, 0.495) !important;
    color: #f0ece6 !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: none !important;
}

.top-nav a:hover,
.nav-search-btn:hover {
    background: #00ad2b !important;
    border-color: transparent !important;
    color: #00ad2b !important;
    transform: translateY(-1px);
}

.top-nav {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
}

.notification-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.notification-toggle span {
    min-width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ffd15c;
    color: #211807;
    font-size: 9px;
}

/* ── Global Nav Search ──────────────────────────────── */
.nav-search-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    color: #3d934f;
    font-weight: 900;
    font-size: 0.78rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.nav-search-btn:hover,
.nav-search-btn[aria-expanded="true"] {
    background: #00ad2b;
    color: #fff;
    border-color: transparent;
}

.nav-search-btn svg {
    flex-shrink: 0;
}

/* Overlay wrapper */
.nav-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    animation: navSearchFadeIn 0.18s ease both;
}

.nav-search-overlay[hidden] {
    display: none;
}

@keyframes navSearchFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blurred backdrop */
.nav-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(225, 169, 3, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* The floating search card */
.nav-search-box {
    position: relative;
    z-index: 1;
    width: min(680px, calc(100vw - 32px));
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(8, 25, 38, 0.98), rgba(4, 14, 22, 0.98));
    border: 1px solid rgba(214, 48, 49, 0.28);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(214, 48, 49, 0.06);
    overflow: hidden;
    animation: navSearchSlideIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes navSearchSlideIn {
    from {
        transform: scale(0.93) translateY(-16px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Input row */
.nav-search-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(225, 169, 3, 0.07);
}

.nav-search-icon {
    flex-shrink: 0;
    color: rgba(214, 48, 49, 0.6);
}

.nav-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    caret-color: #c0392b;
}

.nav-search-input::placeholder {
    color: rgba(225, 169, 3, 0.3);
}

/* hide native clear button */
.nav-search-input::-webkit-search-cancel-button {
    display: none;
}

.nav-search-close {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(225, 169, 3, 0.854);
    border-radius: 999px;
    background: rgba(225, 169, 3, 0.06);
    color: rgba(225, 169, 3, 0.6);
    font-size: 13px;
    cursor: pointer;
    transition: 0.15s ease;
    display: grid;
    place-items: center;
}

.nav-search-close:hover {
    background: rgba(225, 169, 3, 0.854);
    color: #fff;
}

/* Results list */
.nav-search-results {
    max-height: min(480px, 55vh);
    overflow-y: auto;
    padding: 8px 0;
    overscroll-behavior: contain;
}

.nav-search-results:empty::after {
    content: "Start typing to search…";
    display: block;
    padding: 24px 20px;
    color: rgba(225, 169, 3, 0.34);
    font-size: 14px;
    text-align: center;
}

.nav-search-group-label {
    padding: 10px 20px 4px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(214, 48, 49, 0.55);
}

.nav-search-result {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 20px;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.12s ease;
    text-decoration: none;
    color: #fff;
}

.nav-search-result:hover,
.nav-search-result.focused {
    background: rgba(214, 48, 49, 0.09);
}

.nav-search-result-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 15px;
    background: rgba(214, 48, 49, 0.08);
    border: 1px solid rgba(214, 48, 49, 0.14);
    color: #c0392b;
}

.nav-search-result-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nav-search-result-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-search-result-sub {
    font-size: 11px;
    color: rgba(225, 169, 3, 0.46);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-search-result-badge {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(225, 169, 3, 0.07);
    color: rgba(225, 169, 3, 0.48);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-search-no-results {
    padding: 32px 20px;
    text-align: center;
    color: rgba(225, 169, 3, 0.38);
    font-size: 14px;
    line-height: 1.6;
}

.nav-search-no-results strong {
    display: block;
    color: rgba(225, 169, 3, 0.7);
    font-size: 15px;
    margin-bottom: 6px;
}

/* highlight matched text */
.nav-search-result mark {
    background: none;
    color: #c0392b;
    font-weight: 900;
}

/* ── Admin Specific Nav Search Overrides ──────────────── */
.admin-body .nav-search-btn {
    border-color: rgba(255, 209, 92, 0.35);
    background: rgba(255, 209, 92, 0.07);
    color: #ffd15c;
}

.admin-body .nav-search-btn:hover,
.admin-body .nav-search-btn[aria-expanded="true"] {
    background: #ffd15c;
    color: #211807;
    border-color: #ffd15c;
}

.admin-body .nav-search-box {
    border-color: rgba(255, 209, 92, 0.28);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 209, 92, 0.06);
}

.admin-body .nav-search-icon {
    color: rgba(255, 209, 92, 0.6);
}

.admin-body .nav-search-input {
    caret-color: #ffd15c;
}

.admin-body .nav-search-group-label {
    color: rgba(255, 209, 92, 0.55);
}

.admin-body .nav-search-result:hover,
.admin-body .nav-search-result.focused {
    background: rgba(255, 209, 92, 0.09);
}

.admin-body .nav-search-result-icon {
    background: rgba(255, 209, 92, 0.08);
    border-color: rgba(255, 209, 92, 0.14);
    color: #ffd15c;
}

.admin-body .nav-search-result mark {
    color: #ffd15c;
}

.notification-panel {
    position: fixed;
    top: 84px;
    right: max(14px, 4vw);
    z-index: 45;
    width: min(390px, calc(100vw - 28px));
    max-height: calc(100vh - 110px);
    display: grid;
    gap: 14px;
    padding: 18px;
    overflow: auto;
    border: 1px solid #e0d9ce;
    border-radius: 16px;
    background: rgba(255, 247, 234);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.notification-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    position: sticky;
    top: -18px;
    margin: -18px -18px 0;
    padding: 18px;
    background: rgba(255, 247, 234);
    z-index: 1;
    border-bottom: 1px solid #e0d9ce;
}

.notification-head h2 {
    margin-top: 4px;
    font-size: 18px;
    color: #222;
}

.notification-head .eyebrow {
    color: #a96b29;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.panel-close {
    width: 34px;
    height: 34px;
    border: 1px solid #e0d9ce;
    border-radius: 999px;
    background: #f5efe6;
    color: #a96b29;
    cursor: pointer;
    font-weight: 900;
}

.notification-list,
.support-list {
    display: grid;
    gap: 10px;
}

.notification-item,
.support-ticket,
.referral-panel {
    display: grid;
    gap: 8px;
    padding: 13px;
    border: 1px solid #e0d9ce;
    border-radius: 10px;
    background: #f5efe6;
}

.bonus-tier-card {
    padding: 14px;
    border-radius: 12px;
    background: #f5efe6;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}
.bonus-tier-card.active {
    border: 2px solid #00ad2b;
    box-shadow: 0 2px 12px rgba(240,181,50,0.2);
}
.bonus-tier-card.completed {
    opacity: 0.85;
}
.bonus-tier-card.completed::after {
    content: "\2713";
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 1rem;
    font-weight: 900;
    color: #2d8a4e;
}
.bonus-tier-card.locked {
    opacity: 0.6;
    background: #eee;
}
.bonus-tier-card.locked::after {
    content: "\1F512";
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 0.9rem;
}
.bonus-tier-progress {
    height: 5px;
    background: rgba(0,0,0,0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}
.bonus-tier-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}
body.light-theme .bonus-tier-card { background: #f5efe6 !important; }
body.light-theme .bonus-tier-card strong { color: #1a1a2e !important; }
body.light-theme .bonus-tier-card span { color:   #00ad2b !important; }
.theme-dark .bonus-tier-card { background: rgba(255, 255, 242, 0.96) !important; backdrop-filter: blur(16px) !important; -webkit-backdrop-filter: blur(16px) !important; border: 1px solid rgba(225, 169, 3, 0.85) !important; }
.theme-dark .bonus-tier-card strong { color: #3928ff !important; }
.theme-dark .bonus-tier-card span { color: #0ef43d !important; }

.notification-item strong,
.support-ticket strong,
.referral-panel strong {
    color: #222;
    overflow-wrap: anywhere;
}

.notification-item p,
.support-ticket p {
    color: #3d934f;
    line-height: 1.55;
}

.notification-item small,
.support-ticket small,
.referral-panel span {
    color:   #00ad2b;
    font-weight: 900;
}

.notification-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.notification-chat {
    border-left: 3px solid #3b82f6;
}

.notification-chat-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    background: #3b82f6;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.notification-chat-btn:hover {
    background: #2563eb;
}

body[data-page="user"] .notification-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body[data-page="user"] .notification-chat {
    border-left: 3px solid #3b82f6;
}

body[data-page="user"] .notification-chat-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    background: #3b82f6;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
body[data-page="user"] .notification-chat-btn:hover {
    background: #2563eb;
}

html body[data-page="user"].theme-dark .notification-chat {
    border-left-color: #60a5fa;
}

html body[data-page="user"].theme-dark .notification-chat-btn {
    background: #60a5fa;
    color: #0f172a;
}
html body[data-page="user"].theme-dark .notification-chat-btn:hover {
    background: #93bbfd;
}

.app-shell {
    position: relative;
    z-index: 2;
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 70px 0 96px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.hero,
.panel,
.card,
.metric,
.coin-card,
.product-card,
.plan,
.user-admin-info {
    background: rgba(225, 169, 3, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.hero {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 48px;
}

.hero.compact {
    min-height: 240px;
}
.market-hero {
    min-height: auto;
    padding: 12px 16px;
}
.market-hero h1 {
    margin: 4px 0 6px;
    font-size: 1.3rem;
}
.market-hero p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.3;
}
.market-hero .market-status {
    margin-top: 4px;
    font-size: 0.7rem;
}

#market-schedules .hero.compact,
#guide .hero.compact {
    min-height: auto;
    padding: 12px 16px;
}

.eyebrow {
    color: #ffd15c;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero h1 {
    margin: 8px 0 16px;
    color: #c0392b;
    font-size: 2.7rem;
    line-height: 1.05;
}

.hero p,
.panel p,
.card p {
    max-width: 760px;
    color: rgba(225, 169, 3, 0.78);
    line-height: 1.7;
}

.actions {
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 12px 20px;
    border: 0;
    cursor: pointer;
}

.primary {
    background: #00ad2b;
    color: #fff;
}

.outline {
    background: transparent;
    border: 2px solid rgba(214, 48, 49, 0.4);
    color: #00ad2b;
}

.danger {
    background: #c49b00;
    color: #fff;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    filter: none;
}

.feature-grid,
.metric-grid,
.coin-grid,
.product-grid,
.profile-grid,
.support-grid {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.feature-grid,
.coin-grid,
.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.market-category-section {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(225, 169, 3, 0.85);
}

.category-header h2 {
    font-size: 1.1rem;
    color: #c0392b;
    margin: 0;
}

.category-profit-badge {
    padding: 2px 6px;
    background: rgba(214, 48, 49, 0.1);
    color: #c0392b;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: bold;
    border: 1px solid rgba(214, 48, 49, 0.2);
}

.product-sub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
@media (min-width: 600px) {
    .product-sub-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .product-sub-grid { grid-template-columns: repeat(4, 1fr); }
}

.profile-grid {
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
}

.support-grid {
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
}

.chat-page .chat-shell {
    min-height: 72vh;
}

.chat-shell {
    display: grid;
    gap: 14px;
}

.chat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.chat-head h2 {
    margin-top: 4px;
}

.chat-head>span {
    align-self: center;
    padding: 7px 10px;
    border: 1px solid rgba(214, 48, 49, 0.24);
    border-radius: 999px;
    color: #c0392b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.chat-list {
    height: min(56vh, 520px);
    min-height: 320px;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 14px;
    overflow: auto;
    border: 1px solid rgba(225, 169, 3, 0.85);
    border-radius: 12px;
    background: rgba(3, 8, 12, 0.38);
}

.chat-message {
    width: min(680px, 92%);
    display: grid;
    gap: 9px;
    justify-self: start;
    padding: 12px;
    border: 1px solid rgba(225, 169, 3, 0.851);
    border-radius: 10px;
    background: rgba(225, 169, 3, 0.07);
}

.chat-message.is-own {
    justify-self: end;
    border-color: rgba(214, 48, 49, 0.26);
    background: rgba(214, 48, 49, 0.11);
}

.chat-message.is-admin {
    border-color: rgba(255, 209, 92, 0.26);
}

.chat-message.is-ai {
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.08);
}
.chat-message.is-ai .chat-message-meta strong {
    color: #22d3ee;
}
.chat-message.is-ai .chat-message-meta span {
    color: rgba(34, 211, 238, 0.6);
}

.ai-toggle-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.12);
    color: #22d3ee;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.ai-toggle-btn:hover {
    background: rgba(34, 211, 238, 0.25);
}
.ai-toggle-btn.is-off {
    border-color: rgba(156, 154, 43, 0.495);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.4);
}

.chat-message-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: rgba(225, 169, 3, 0.66);
    font-size: 11px;
    font-weight: 900;
}

.chat-message-meta strong {
    color: #fff;
    overflow-wrap: anywhere;
}

.chat-message p {
    color: rgba(225, 169, 3, 0.84);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.chat-attachments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 9px;
}

.chat-attachment {
    width: 100%;
    max-height: 260px;
    border: 1px solid rgba(225, 169, 3, 0.852);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.16);
}

.chat-attachment.image {
    display: block;
    overflow: hidden;
}

.chat-attachment.image img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
}

.chat-attachment.audio {
    min-height: 42px;
}

.chat-attachment.file {
    display: grid;
    place-items: center;
    min-height: 70px;
    padding: 10px;
    color: #c0392b;
    font-weight: 900;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.chat-form {
    display: grid;
    gap: 10px;
}

.chat-form textarea {
    width: 100%;
    min-height: 92px;
    resize: vertical;
    padding: 13px;
    border: 1px solid rgba(225, 169, 3, 0.854);
    border-radius: 10px;
    background: rgba(3, 8, 12, 0.72);
    color: #fff;
    outline: none;
}

.chat-form textarea:focus {
    border-color: rgba(214, 48, 49, 0.66);
    box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.1);
}

.chat-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.chat-form-actions .btn.primary,
.chat-form-actions button[type="submit"] {
    min-height: 42px;
    padding: 10px 28px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ffc64f, #f59e0b);
    color: #1a0a00;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 18px rgba(255, 198, 79, 0.45);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-form-actions .btn.primary:hover,
.chat-form-actions button[type="submit"]:hover {
    background: linear-gradient(135deg, #ffd96a, #ffc64f);
    box-shadow: 0 6px 24px rgba(255, 198, 79, 0.6);
    transform: translateY(-2px);
}

.chat-form-actions .btn.primary:active,
.chat-form-actions button[type="submit"]:active {
    transform: none;
    box-shadow: 0 2px 10px rgba(255, 198, 79, 0.3);
}

.chat-file-picker {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid rgba(214, 48, 49, 0.3);
    border-radius: 999px;
    color: #c0392b;
    cursor: pointer;
    font-weight: 900;
}

.chat-file-picker input {
    display: none;
}

.chat-attachment-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chat-attachment-preview span {
    max-width: 100%;
    padding: 7px 9px;
    border: 1px solid rgba(225, 169, 3, 0.85);
    border-radius: 999px;
    color: rgba(225, 169, 3, 0.78);
    font-size: 11px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.chat-attachment-preview small {
    color: rgba(225, 169, 3, 0.52);
}

.helpline-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.helpline-grid a {
    display: grid;
    gap: 7px;
    min-height: 86px;
    align-content: center;
    padding: 13px;
    border: 1px solid rgba(214, 48, 49, 0.22);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.16);
    text-decoration: none;
}

.helpline-grid span {
    color: rgba(225, 169, 3, 0.64);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.helpline-grid strong {
    color: #c0392b;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.dashboard-page {
    --dashboard-bg: rgba(7, 16, 37, 0.24);
    --dashboard-panel: rgba(9, 20, 42, 0.34);
    --dashboard-panel-soft: rgba(180, 130, 20, 0.13);
    --dashboard-border: rgba(240, 200, 80, 0.34);
    --dashboard-primary: #f0c850;
    --dashboard-secondary: #c084fc;
    --dashboard-text: #f8fbff;
    --dashboard-muted: rgba(226, 240, 255, 0.72);
    min-height: 72vh;
}

.dashboard-glass {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--dashboard-border);
    border-radius: 16px;
    background: var(--dashboard-bg);
    box-shadow: 0 24px 70px rgba(3, 10, 28, 0.24);
}

.dashboard-glass::before {
    display: none;
}

.dashboard-layout,
.dashboard-head,
.dashboard-plan-stack,
.user-admin-info {
    position: relative;
    z-index: 1;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
}

.dashboard-main,
.dashboard-side,
.quick-action-panel,
.dashboard-activity-card {
    display: grid;
    gap: 14px;
}

.dashboard-main,
.dashboard-side {
    min-width: 0;
}

.dashboard-head h1 {
    margin: 8px 0 8px;
    color: var(--dashboard-primary, #c0392b);
    font-size: 2rem;
    line-height: 1.05;
}

.dashboard-head p {
    max-width: 620px;
    color: var(--dashboard-muted);
    line-height: 1.6;
}

.wallet-info-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 20px;
}

.wallet-info-heading .eyebrow {
    color: var(--dashboard-muted);
}

.balance-panel,
.quick-action-panel,
.dashboard-activity-card,
.dashboard-plan-row {
    border: 1px solid var(--dashboard-border);
    border-radius: 12px;
    background: var(--dashboard-panel);
}

.balance-panel {
    min-height: auto;
    display: grid;
    align-content: end;
    gap: 8px;
    padding: 14px;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(192, 132, 252, 0.12)),
        rgba(8, 18, 43, 0.32);
}

.balance-panel>span,
.quick-action-panel .eyebrow,
.dashboard-activity-card .eyebrow {
    color: var(--dashboard-muted);
    font-weight: 900;
    text-transform: uppercase;
}

.balance-panel strong {
    color: var(--dashboard-text);
    font-size: 44px;
    line-height: 1;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.dashboard-metrics {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    margin-top: 0;
}

.dashboard-metrics .metric {
    min-height: 112px;
    padding: 18px;
    border-radius: 12px;
    background: var(--dashboard-panel-soft);
}

.dashboard-metrics .earn-card {
    border: 1px solid rgba(192, 132, 252, 0.28);
    background:
        linear-gradient(135deg, rgba(192, 132, 252, 0.18), rgba(240, 200, 80, 0.1)),
        rgba(8, 18, 43, 0.34);
}

.dashboard-metrics .withdrawable-card {
    border: 1px solid rgba(240, 200, 80, 0.3);
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(240, 200, 80, 0.08)),
        rgba(8, 18, 43, 0.34);
}

.dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-action-grid .btn {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
}

#dashboard .primary {
    background: var(--dashboard-primary);
    color: #071225;
}

#dashboard .outline {
    border-color: rgba(240, 200, 80, 0.72);
    color: var(--dashboard-text);
}

#dashboard .metric span {
    color: var(--dashboard-muted);
    font-size: 12px;
    line-height: 1.2;
}

#dashboard .metric strong {
    color: var(--dashboard-text);
    overflow-wrap: anywhere;
}

.quick-action-panel,
.dashboard-activity-card {
    padding: 18px;
}

.dashboard-activity-card {
    align-content: start;
}

.dashboard-activity-card h2 {
    margin-top: 4px;
    color: var(--dashboard-text);
    font-size: 18px;
}

.dashboard-activity-list {
    display: grid;
    gap: 9px;
}

.dashboard-activity-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 11px;
    border: 1px solid rgba(240, 200, 80, 0.18);
    border-radius: 10px;
    background: rgba(8, 18, 43, 0.26);
}

.dashboard-activity-item strong,
.dashboard-activity-item span {
    color: var(--dashboard-text);
    font-weight: 900;
}

.dashboard-activity-item small {
    display: block;
    margin-top: 4px;
    color: rgba(226, 240, 255, 0.62);
}

.dashboard-activity-item span {
    color: var(--dashboard-primary);
}

.dashboard-plan-stack {
    display: grid;
    gap: 16px;
}

.dashboard-plan-row {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-color: rgba(240, 200, 80, 0.26);
}

.dashboard-plan-row.roi-row {
    border-color: rgba(192, 132, 252, 0.3);
}

.dashboard-investment-panel,
.dashboard-portfolio-panel,
.market-portfolio-panel,
.investment-plan-section {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(240, 200, 80, 0.26);
    border-radius: 12px;
    background: rgba(9, 20, 42, 0.3);
}

.investment-plan-section.roi-row {
    border-color: rgba(192, 132, 252, 0.3);
}

.plan-row-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-row-title>span {
    width: 56px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--dashboard-primary);
    color: #071225;
    font-weight: 900;
}

.roi-row .plan-row-title>span {
    background: var(--dashboard-secondary);
    color: #160823;
}

.plan-row-title h2 {
    margin-bottom: 3px;
    color: var(--dashboard-text);
    font-size: 18px;
}

.plan-row-title p {
    color: var(--dashboard-muted);
    line-height: 1.5;
}

.live-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.investment-field {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.live-plan-card {
    position: relative;
    display: grid;
    gap: 10px;
    min-height: 178px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(225, 169, 3, 0.854);
    border-radius: 12px;
    background: rgba(225, 169, 3, 0.07);
}

.live-plan-card::before {
    content: "LIVE";
    justify-self: start;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(240, 200, 80, 0.18);
    color: var(--dashboard-primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
}

.live-plan-card small {
    color: #b7c5d5;
    font-weight: 900;
    text-transform: uppercase;
}

.live-plan-card strong {
    color: #fff;
    font-size: 20px;
    line-height: 1.15;
}

.live-plan-card span {
    color: var(--dashboard-secondary, #ffd15c);
    font-weight: 900;
}

.live-plan-card .btn {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
}

.ongoing-investment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.ongoing-investment-card {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(240, 200, 80, 0.18);
    border-radius: 12px;
    background: rgba(8, 18, 43, 0.28);
}

.ongoing-investment-card small {
    color: var(--dashboard-muted, rgba(225, 169, 3, 0.66));
    font-weight: 900;
    text-transform: uppercase;
}

.ongoing-investment-card strong,
.ongoing-investment-card span {
    color: #fff;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.ongoing-investment-card span {
    color: var(--dashboard-primary, #c0392b);
    font-size: 18px;
}

.ongoing-investment-card p {
    color: rgba(226, 240, 255, 0.72);
    line-height: 1.45;
}

.ongoing-investment-card b {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(192, 132, 252, 0.18);
    color: var(--dashboard-secondary, #ffd15c);
    font-size: 12px;
}

.inv-date-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(225, 169, 3, 0.08);
}

.inv-date-range div {
    min-width: 0;
}

.inv-date-range small {
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
}

.ongoing-investment-card .inv-date-range time {
    display: block;
    color: rgba(226, 240, 255, 0.88);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}
.daily-earnings-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(0, 173, 43, 0.1);
    color: #00ad2b;
    font-size: 11px;
    font-weight: 700;
}
.daily-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ad2b;
    display: inline-block;
    animation: dailyPulse 1.5s infinite;
}
@keyframes dailyPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.type-badge.type-daily {
    background: rgba(0, 173, 43, 0.15);
    color: #00ad2b;
    border: 1px solid rgba(0, 173, 43, 0.3);
}
.ongoing-investment-card[style]::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.08) 45%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.08) 55%, transparent 70%);
    animation: mineralShimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.ongoing-investment-card[style] > * {
    position: relative;
    z-index: 1;
}
@keyframes mineralShimmer {
    0%, 100% { transform: translateX(-60%) rotate(0deg); }
    50% { transform: translateX(60%) rotate(2deg); }
}
.type-badge.type-roi {
    background: rgba(192, 132, 252, 0.15);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.3);
}

.dashboard-portfolio-panel,
.market-portfolio-panel {
    margin-top: 18px;
}

.portfolio-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.portfolio-summary-grid article {
    min-height: 86px;
    display: grid;
    align-content: center;
    gap: 7px;
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(240, 200, 80, 0.18);
    border-radius: 10px;
    background: rgba(8, 18, 43, 0.3);
}

.portfolio-summary-grid span,
.portfolio-position-values span {
    color: rgba(226, 240, 255, 0.66);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.portfolio-summary-grid strong,
.portfolio-position strong {
    color: #fff;
    overflow-wrap: anywhere;
}

.portfolio-up strong:last-child,
.portfolio-card strong {
    color: #c0392b;
}

.portfolio-down strong:last-child {
    color: #ff9c9c;
}

.portfolio-holdings {
    display: grid;
    gap: 10px;
}

.portfolio-holdings.compact {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.portfolio-position {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(240, 200, 80, 0.18);
    border-radius: 10px;
    background: rgba(5, 11, 24, 0.52);
}

.portfolio-position-main {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
}

.portfolio-position-main>span {
    width: 46px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #ffd15c;
    color: #2f2300;
    font-weight: 900;
}

.portfolio-position-main small {
    display: block;
    margin-top: 4px;
    color: rgba(226, 240, 255, 0.68);
    overflow-wrap: anywhere;
}

.portfolio-position-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.portfolio-position-values p {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 9px;
    border-radius: 8px;
    background: rgba(255, 255, 242, 0.965);
}

.market-order-form,
.portfolio-sell-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.market-order-form input,
.portfolio-sell-form input {
    width: 100%;
    min-height: 42px;
    min-width: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: #f5efe6;
    color: #101820;
}

.market-order-form .btn,
.portfolio-sell-form .btn,
.portfolio-manage-link {
    min-height: 42px;
    padding: 10px 12px;
    white-space: nowrap;
}

.portfolio-allocation,
.crypto-order-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.allocation-row,
.crypto-order {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(240, 200, 80, 0.16);
    border-radius: 10px;
    background: rgba(5, 11, 24, 0.46);
}

.allocation-row header,
.crypto-order {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.allocation-row strong,
.crypto-order strong {
    color: #fff;
}

.allocation-row span,
.crypto-order small {
    color: rgba(226, 240, 255, 0.68);
    font-size: 12px;
}

.allocation-bar {
    height: 8px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(225, 169, 3, 0.08);
}

.allocation-bar i {
    display: block;
    width: var(--allocation, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c0392b, #00ad2b);
}

.crypto-order.buy {
    border-color: rgba(214, 48, 49, 0.24);
}

.crypto-order.sell {
    border-color: rgba(255, 209, 92, 0.26);
}

.crypto-order div,
.crypto-order span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.crypto-order span {
    color: #c0392b;
    font-weight: 900;
    text-align: right;
}

.crypto-order.sell span {
    color: #ffd15c;
}

.profile-portfolio {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.profile-portfolio-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-actions,
.history-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.profile-actions {
    margin-bottom: 10px;
}

.card,
.metric,
.coin-card,
.panel,
.user-admin-info {
    padding: 22px;
}

.metric span,
.coin-card span {
    display: block;
    color: rgba(225, 169, 3, 0.66);
    font-weight: 900;
}

.metric strong {
    display: block;
    margin-top: 12px;
    color: #fff;
    font-size: 20px;
}

.user-admin-info {
    margin-top: 18px;
    border-color: rgba(255, 209, 92, 0.35);
}

.user-admin-info h2 {
    margin: 8px 0;
    color: #ffd15c;
    font-size: 1.35rem;
}

.user-admin-info p:last-child {
    color: rgba(225, 169, 3, 0.82);
    line-height: 1.7;
    white-space: pre-line;
}

.coin-card {
    display: grid;
    gap: 12px;
}

.coin-card span,
.plan span {
    width: 54px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #c0392b;
    color: #fff;
    font-weight: 900;
}

.coin-card strong {
    color: #ffd15c;
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.product-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0;
    min-width: 0;
    padding: 4px;
    overflow: hidden;
}

.product-card-media {
    position: relative;
    min-height: 70px;
    overflow: hidden;
    background: rgba(240, 200, 80, 0.12);
}

.product-card-media img,
.product-investment-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-image-fallback {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: grid;
    place-items: center;
    padding: 14px;
    background: linear-gradient(135deg, rgba(214, 48, 49, 0.22), rgba(240, 200, 80, 0.18));
    color: #fff;
    font-weight: 900;
    text-align: center;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    min-width: 0;
}

.product-card-head {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
}

.product-card-head small {
    min-width: 0;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(214, 48, 49, 0.16);
    color: #c0392b;
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-head h3 {
    margin: 0;
    font-size: 10px;
    line-height: 1.2;
    color: #fff;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-body strong {
    font-size: 11px;
    font-weight: 800;
    display: block;
}

.product-card-body p {
    margin: 0;
    font-size: 8px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-name-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.product-name-price h3 {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-name-price strong {
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-total-payout {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding-top: 3px;
    border-top: 1px solid #e0dcd6;
}

.product-total-payout span {
    font-size: 8px;
    color:   #00ad2b;
    font-weight: 600;
}

.product-total-payout strong {
    font-size: 10px;
    font-weight: 800;
}

.product-info-rows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.product-info-row span {
    font-size: 8px;
    font-weight: 600;
}

body[data-page="user"] .product-info-row span {
    color: var(--info-color, #94a3b8) !important;
}

.product-info-row strong {
    font-size: 9px;
    font-weight: 700;
    text-align: right;
}

body[data-page="user"] .product-info-row strong {
    color: var(--price-color, #e2e8f0) !important;
}

.product-info-row.product-info-total {
    border-bottom: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 3px;
}

body[data-page="user"] .product-info-row.product-info-total span {
    color: var(--info-color, #22c55e) !important;
}

body[data-page="user"] .product-info-row.product-info-total strong {
    color: var(--price-color, #fbbf24) !important;
    font-size: 10px;
    font-weight: 800;
}

.product-card h3 {
    color: #fff;
    font-size: 9px;
    line-height: 1.15;
}

.product-card strong {
    color: #ffd15c;
    font-size: 9px;
}

.product-invest-btn {
    width: 100%;
    min-height: 22px;
    padding: 3px 4px;
    font-size: 0.65rem;
    margin-top: 2px;
}

.product-investment-list {
    align-items: stretch;
}

.product-investment-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(240, 200, 80, 0.18);
    border-radius: 10px;
    background: rgba(5, 11, 24, 0.52);
}

.product-investment-media {
    aspect-ratio: 1 / 1;
    min-height: 92px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(225, 169, 3, 0.08);
}

.product-investment-body {
    display: grid;
    align-content: center;
    gap: 5px;
    min-width: 0;
}

.product-investment-body strong {
    color: #fff;
    overflow-wrap: anywhere;
}

.product-investment-body b {
    color: #c0392b;
    font-size: 12px;
}

.product-activity-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.product-activity {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(214, 48, 49, 0.2);
    border-radius: 10px;
    background: rgba(5, 11, 24, 0.46);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.product-activity div,
.product-activity span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.product-activity strong {
    color: #fff;
}

.product-activity small {
    color: rgba(226, 240, 255, 0.68);
    font-size: 12px;
}

.product-activity span {
    color: #c0392b;
    font-weight: 900;
    text-align: right;
}

.plan-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.plan {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.panel.narrow {
    width: min(520px, 100%);
    margin: 0 auto;
}

.panel h2 {
    margin: 8px 0 8px;
    color: #fff;
    font-size: 22px;
}

.form {
    display: grid;
    gap: 13px;
    margin-top: 18px;
}

.withdraw-settings-grid {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.withdraw-setting-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    background: rgba(225, 169, 3, 0.04);
}

.wallet-field-group {
    display: grid;
    gap: 13px;
}

.wallet-field-group.hidden {
    display: none !important;
}

.saved-wallet-summary {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid rgba(85, 255, 194, 0.24);
    border-radius: 12px;
    background: rgba(85, 255, 194, 0.08);
    color: var(--text);
}

.saved-wallet-summary strong {
    color: #55ffc2;
}

.saved-wallet-summary span {
    color: var(--muted);
    font-size: 0.92rem;
}

.form-note {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
}

.compact-actions {
    margin-top: 10px;
}

.form h3 {
    margin-top: 8px;
    color: #ffd15c;
    font-size: 14px;
}

.form input:not([type="checkbox"]):not([type="radio"]),
.form select,
.form textarea,
#adminSearch,
.money-input {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    background: #f5efe6;
    color: #101820;
}

.form textarea {
    min-height: 132px;
    resize: vertical;
    line-height: 1.45;
}

.deposit-method-panel {
    display: grid;
    gap: 11px;
    padding: 14px;
    border: 1px solid rgba(214, 48, 49, 0.18);
    border-radius: 12px;
    background: rgba(225, 169, 3, 0.06);
}

.deposit-method-panel h3 {
    margin-top: 0;
}

.pending-panel {
    display: grid;
    gap: 14px;
}

.pending-detail {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(214, 48, 49, 0.18);
    border-radius: 12px;
    background: rgba(225, 169, 3, 0.06);
    line-height: 1.5;
}

.pending-detail p {
    overflow-wrap: anywhere;
}

#withdrawForm .btn.primary {
    width: 100%;
    margin-top: 6px;
    border: 2px solid rgba(225, 169, 3, 0.22);
    box-shadow: 0 14px 32px rgba(214, 48, 49, 0.28);
}

#withdrawForm .btn.primary:focus-visible,
.pending-panel .btn:focus-visible {
    outline: 3px solid #ffd15c;
    outline-offset: 3px;
}

@media (max-width: 720px) {
    #withdrawForm .btn.primary {
        position: sticky;
        bottom: 48px;
        z-index: 35;
    }
}

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(3, 8, 12, 0.72);
    backdrop-filter: blur(10px);
}

.payment-modal-card {
    position: relative;
    width: min(460px, 100%);
    display: grid;
    gap: 14px;
    padding: 26px;
    border: 1px solid rgba(214, 48, 49, 0.24);
    border-radius: 16px;
    background: #101820;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.payment-modal-card .panel-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.payment-modal-card h2 {
    color: #fff;
    font-size: 21px;
}

.payment-summary {
    display: grid;
    gap: 8px;
}

.payment-summary article {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(225, 169, 3, 0.07);
}

.payment-summary span {
    color: rgba(225, 169, 3, 0.68);
    font-weight: 800;
}

.payment-summary strong {
    color: #c0392b;
    text-align: right;
    overflow-wrap: anywhere;
}

#adminSearch {
    max-width: 780px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#adminSearch:focus,
#adminSearch.is-searching {
    outline: 0;
    border: 1px solid rgba(214, 48, 49, 0.72);
    background: #f5efe6;
    box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.16);
}

.admin-panel.is-searching {
    border-color: rgba(214, 48, 49, 0.34);
}

.admin-user-row.search-match {
    box-shadow: inset 3px 0 0 #c0392b;
}

.admin-user-row.search-match td {
    background: rgba(214, 48, 49, 0.035);
}

.admin-user-row.search-match td:last-child {
    background: #252d2b;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(225, 169, 3, 0.86);
    font-weight: 900;
}

.message {
    min-height: 22px;
    color: #ffd15c;
    font-weight: 900;
}

.message.success {
    color: #1a7a3a;
}

.message.error {
    color: #ff9c9c;
}

.text-link {
    display: inline-block;
    color: #c0392b;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.15);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    margin: 4px 0;
}
.text-link:hover {
    background: rgba(192, 57, 43, 0.18);
    border-color: rgba(192, 57, 43, 0.35);
    color: #e74c3c;
}

.admin-auth-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at 22% 8%, rgba(255, 195, 77, 0.18), transparent 28%),
        linear-gradient(145deg, #111318, #1f2228 62%, #17191f);
}

.admin-auth-shell {
    width: min(520px, 100%);
}

.admin-auth-panel {
    display: grid;
    gap: 14px;
    padding: 34px;
    border: 1px solid rgba(225, 169, 3, 0.852);
    border-radius: 8px;
    background: rgba(23, 25, 31, 0.94);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.admin-auth-tabs {
    display: flex;
    gap: 0;
    border: 1px solid rgba(225, 169, 3, 0.85);
    border-radius: 8px;
    overflow: hidden;
}

.admin-auth-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: rgba(225, 169, 3, 0.04);
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-auth-tab.active {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.admin-auth-tab:hover:not(.active) {
    background: rgba(225, 169, 3, 0.08);
    color: #cbd5e1;
}

.admin-auth-panel h1 {
    font-size: 28px;
    line-height: 1.1;
}

.admin-auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
}

.admin-auth-brand span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #ffc34d;
    color: #08090d;
}

.admin-auth-brand img {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.admin-auth-form input {
    border: 1px solid transparent;
}

.admin-auth-form input.is-valid {
    border-color: rgba(214, 48, 49, 0.86);
    box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.12);
}

.admin-auth-form input.is-invalid {
    border-color: rgba(255, 156, 156, 0.86);
    box-shadow: 0 0 0 3px rgba(255, 115, 115, 0.12);
}

.admin-auth-form input:focus {
    outline: 0;
    border-color: #ffc34d;
    box-shadow: 0 0 0 3px rgba(255, 195, 77, 0.16);
}

.admin-password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-password-rules span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid rgba(214, 48, 49, 0.22);
    border-radius: 999px;
    color: rgba(225, 169, 3, 0.78);
    font-size: 11px;
    font-weight: 900;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-password-rules span::before {
    content: "";
    width: 9px;
    height: 9px;
    border: 2px solid currentColor;
    border-radius: 999px;
    opacity: 0.72;
}

.admin-password-rules span.is-valid {
    border-color: rgba(214, 48, 49, 0.72);
    background: rgba(214, 48, 49, 0.14);
    color: #c0392b;
}

.admin-password-rules span.is-valid::before {
    content: "";
    border-color: #c0392b;
    background: #c0392b;
}

.admin-password-rules span.is-invalid {
    border-color: rgba(255, 156, 156, 0.46);
    background: rgba(255, 115, 115, 0.1);
    color: #ffb8b8;
}

.admin-password-strength {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(225, 169, 3, 0.852);
}

.admin-password-strength span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #ff9c9c;
    transition: width 0.22s ease, background 0.22s ease;
}

.admin-password-strength span[data-strength="medium"] {
    background: #ffd15c;
}

.admin-password-strength span[data-strength="strong"] {
    background: #c0392b;
}

.admin-server-warning {
    padding: 11px 12px;
    border: 1px solid rgba(255, 156, 156, 0.42);
    border-radius: 8px;
    background: rgba(255, 115, 115, 0.12);
    color: #ffb8b8;
    font-weight: 900;
    line-height: 1.4;
}

.history-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    max-height: 440px;
    overflow: auto;
}

.admin-body .invest-tabs button {
    border-color: rgba(225, 169, 3, 0.2);
    color: rgba(225, 169, 3, 0.6);
    background: transparent;
}
.admin-body .invest-tabs button.active,
.admin-body .invest-tabs button:hover {
    background: #ffc64f;
    color: #19130a;
    border-color: #ffc64f;
}

.history-tabs button,
.invest-tabs button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: transparent;
    color: #3d934f;
    cursor: pointer;
    font-weight: 900;
}

.history-tabs button.active,
.history-tabs button:hover,
.invest-tabs button.active,
.invest-tabs button:hover {
    background: #00ad2b;
    color: #fff;
}

.invest-tabs {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    overflow-x: auto;
    padding-bottom: 4px;
}

.invest-tab-content.hidden {
    display: none !important;
}

.history-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(240, 200, 80, 0.28);
    border-radius: 10px;
    background: rgba(5, 11, 24, 0.82);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(4px);
}

.history-item strong {
    color: #fff;
}

.history-item small,
.admin-table small,
.admin-activity-list small {
    display: block;
    margin-top: 4px;
    color: rgba(226, 240, 255, 0.78);
}

.history-item span {
    color: #c0392b;
    font-weight: 900;
}

.referral-panel {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.team-summary,
.team-columns {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.team-summary {
    grid-template-columns: 1fr;
}
.team-summary .team-commission-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.team-summary article,
.team-column {
    border: 1px solid rgba(225, 169, 3, 0.852);
    border-radius: 12px;
    background: rgba(225, 169, 3, 0.06);
}

.team-summary article {
    min-height: 92px;
    display: grid;
    align-content: center;
    gap: 9px;
    padding: 16px;
}

.team-summary span,
.team-column small {
    color: #b7c5d5;
    font-weight: 900;
}

.team-summary strong {
    color: #fff;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.team-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-column {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px;
}

.team-column h3 {
    color: #ffd15c;
    font-size: 18px;
}

.team-column strong {
    color: #c0392b;
}

.team-member {
    display: grid;
    gap: 5px;
    padding: 11px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
}

.team-member span {
    color: #fff;
    font-weight: 900;
}

.team-member small {
    overflow-wrap: anywhere;
}

.empty-state {
    color: rgba(225, 169, 3, 0.65);
}

/* ── Consolidated Bottom Nav & Ticker ── */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    background: #f0ebe3 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08), 0 -1px 0 #e0d9ce !important;
    height: 56px;
    border: none !important;
}

.bottom-nav a {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #5a5045 !important;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.bottom-nav a .nav-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

.bottom-nav a .nav-label {
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bottom-nav a:hover {
    color: #a96b29 !important;
}

.bottom-nav a.active {
    color: #a96b29 !important;
}

.bottom-nav a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #a96b29;
    border-radius: 0 0 4px 4px;
}

body.guest .bottom-nav {
    display: none;
}

footer {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: #198754;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .dollar-note {
        animation: none;
        top: auto;
        bottom: var(--still-y, 12%);
    }

    .dollar-note:nth-child(odd) {
        --still-y: 18%;
    }
}

.admin-body {
    display: block;
    min-height: 100vh;
    background: #111318;
    color: #fff;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 35px 24px 28px;
    background: #17191f;
    border-right: 1px solid #2a2d35;
    overflow-y: auto;
    z-index: 100;
}

.admin-brand {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 10px;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.admin-brand span {
    width: 34px;
    height: 34px;
    grid-row: span 2;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #ffc34d;
    color: #08090d;
    font-weight: 900;
    font-size: 14px;
}

.admin-brand img {
    display: block;
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    min-width: 34px;
    min-height: 34px;
    flex: 0 0 34px;
    grid-row: span 2;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
}

.admin-brand strong {
    align-self: end;
    font-size: 18px;
    line-height: 1;
}

.admin-brand small,
.admin-topbar p,
.panel-header p {
    color: rgba(225, 169, 3, 0.72);
}

.admin-menu {
    display: grid;
    gap: 12px;
    margin-top: 1px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.admin-menu a {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: #f7f8ff;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
}

.admin-menu a:last-child {
    margin-top: auto;
}

.admin-menu a span {
    width: 24px;
    flex: 0 0 24px;
    color: #fff;
    font-weight: 900;
    text-align: center;
}

.admin-menu-badge {
    min-width: 22px;
    height: 22px;
    margin-left: auto;
    padding: 0 7px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 209, 92, 0.16);
    color: #ffd15c;
    font-size: 11px;
    font-weight: 900;
}

.admin-menu-badge.has-alerts {
    background: #ff7373;
    color: #fff;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: #75561f;
    border-left: 4px solid #ffc64f;
    color: #ffd15c;
    padding-left: 14px;
}

.admin-main {
    min-width: 0;
    margin-left: 220px;
    padding: 28px 32px 46px;
    background: #1f2228;
    overflow-x: hidden;
    overflow-y: auto;
    max-width: calc(100vw - 220px);
    height: 100vh;
}

.admin-topbar,
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-control-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    max-width: 100%;
}

.admin-control-actions input[type="search"] {
    min-width: 140px;
    flex: 1 1 140px;
}

.admin-topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 30;
    margin: 0 -32px;
    padding: 12px 32px;
    border-bottom: 1px solid rgba(17, 212, 0, 0.41);
    background: rgba(31, 29, 30, 0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    flex-shrink: 0;
}

.admin-topbar h1 {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 1.1;
}

.admin-date {
    color: #b7c5d5;
    font-weight: 900;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gift-all-btn,
.deduct-all-btn,
.clear-all-btn,
.admin-back-btn,
.card-reset-btn {
    border: 1px solid rgba(255, 115, 115, 0.55);
    border-radius: 8px;
    background: rgba(255, 115, 115, 0.12);
    color: #ffaaaa;
    cursor: pointer;
    font-weight: 900;
}

.gift-all-btn,
.deduct-all-btn,
.clear-all-btn,
.admin-back-btn {
    min-height: 38px;
    padding: 8px 13px;
}

.admin-back-btn {
    border-color: rgba(88, 166, 255, 0.55);
    background: rgba(88, 166, 255, 0.12);
    color: #9dcbff;
}

.gift-all-btn {
    border-color: rgba(214, 48, 49, 0.55);
    background: rgba(214, 48, 49, 0.13);
    color: #c0392b;
}

.deduct-all-btn {
    border-color: rgba(255, 209, 92, 0.58);
    background: rgba(255, 209, 92, 0.13);
    color: #ffd15c;
}

.card-reset-btn {
    width: fit-content;
    min-height: 30px;
    padding: 5px 9px;
    font-size: 11px;
}

.approve-deposit-btn,
.approve-withdrawal-btn {
    width: 100%;
    min-height: 34px;
    border: 1px solid rgba(255, 198, 79, 0.42);
    border-radius: 8px;
    background: rgba(255, 198, 79, 0.13);
    color: #ffd96a;
    cursor: pointer;
    font-weight: 900;
}

.approve-deposit-btn:hover,
.approve-withdrawal-btn:hover {
    background: #ffc64f;
    color: #181104;
}

.card-reset-btn:hover,
.gift-all-btn:hover,
.deduct-all-btn:hover,
.clear-all-btn:hover,
.admin-back-btn:hover {
    background: #ff7373;
    color: #fff;
}

.admin-back-btn:hover {
    background: #00ad2b;
    color: #aabac9;
}

.gift-all-btn:hover {
    background: #c0392b;
    color: #fff;
}

.deduct-all-btn:hover {
    background: #ffd15c;
    color: #211807;
}

.admin-action-message {
    min-height: 20px;
    margin-top: 12px;
    font-weight: 800;
}

.admin-action-message.success {
    color: #c0392b;
}

.admin-action-message.warning {
    color: #ffd15c;
}

.admin-panel,
.admin-section {
    scroll-margin-top: 110px;
}

.admin-panel {
    margin-top: 24px;
    padding: 24px 24px 24px;
    border: 1px solid #343840;
    border-radius: 16px;
    background: #22252b;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.admin-panel .panel-header,
#activity {
    display: block;
}

.admin-panel .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-panel .panel-header p,
.admin-sync-status {
    color: #b7c5d5;
}

.admin-sync-status {
    margin: -6px 0 16px;
    font-size: 13px;
}

.live-sync-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: -4px 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 209, 92, 0.3);
    border-radius: 10px;
    background: rgba(255, 209, 92, 0.09);
    color: rgba(225, 169, 3, 0.8);
}

.live-sync-note strong {
    color: #ffd15c;
}

.live-sync-note b {
    color: #fff;
}

.admin-inquiry-alert-panel {
    border-color: rgba(255, 115, 115, 0.32);
}

.admin-inquiry-alert-panel.has-open-inquiries {
    box-shadow: 0 18px 40px rgba(255, 115, 115, 0.08);
}

.admin-inquiry-count {
    min-width: 82px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 209, 92, 0.14);
    color: #ffd15c;
    text-align: center;
    font-size: 13px;
}

.admin-inquiry-alert-panel.has-open-inquiries .admin-inquiry-count {
    background: rgba(255, 115, 115, 0.18);
    color: #ff9d9d;
}

.admin-inquiry-alerts {
    display: grid;
    gap: 12px;
}

.admin-inquiry-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(225, 169, 3, 0.08);
    border-radius: 10px;
    background: rgba(8, 9, 13, 0.26);
}

.admin-inquiry-main h3 {
    margin: 6px 0;
    color: #fff;
    font-size: 16px;
}

.admin-inquiry-main p {
    margin: 0 0 8px;
    color: rgba(225, 169, 3, 0.76);
    line-height: 1.45;
}

.admin-inquiry-main small {
    color: rgba(225, 169, 3, 0.58);
}

.admin-inquiry-pill {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 115, 115, 0.16);
    color: #ffadad;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-inquiry-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 38px;
    overflow: visible;
}

/* ── Card Name Badge ─────────────────────────────────── */
.admin-stat-card[data-card-name],
.admin-plan-card[data-card-name] {
    position: relative;
    overflow: visible;
}

.admin-stat-card[data-card-name]::before,
.admin-plan-card[data-card-name]::before {
    content: attr(data-card-name);
    position: absolute;
    top: -13px;
    left: 14px;
    z-index: 2;
    padding: 2px 10px;
    border: 1px solid rgba(255, 198, 79, 0.5);
    border-radius: 20px;
    background: #1b1c1f;
    color: #ffc94f;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.admin-stat-card,
.admin-plan-card {
    border: 1px solid #3b3f47;
    border-radius: 16px;
    background: linear-gradient(145deg, #262930, #222329);
    box-shadow: none;
}

.admin-stat-card {
    min-height: 198px;
    display: grid;
    align-content: space-between;
    gap: 14px;
    padding: 22px;
}

.admin-stat-card div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.admin-stat-card small {
    color: #b7c5d5;
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    font-weight: 900;
}

.stat-icon.gold,
.stat-icon.amber {
    background: #5e5235;
    color: #ffd65b;
}

.stat-icon.green {
    background: #1d6047;
    color: #37e291;
}

.stat-icon.purple {
    background: #4f3d6f;
    color: #af8aff;
}

.stat-icon.blue {
    background: #334f75;
    color: #00ad2b;
}

.stat-icon.rose {
    background: #6b364d;
    color: #ff709d;
}

.stat-icon.orange {
    background: #65432c;
    color: #ff8b3d;
}

.stat-icon.cyan {
    background: #236266;
    color: #48e1e6;
}

.admin-stat-card label {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 8px;
}

.admin-stat-card label span {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.admin-stat-card input,
.admin-plan-card input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 900;
    outline: 0;
}

.admin-stat-card input {
    font-size: 20px;
    line-height: 1.05;
}

.admin-stat-card>input {
    width: 100%;
}

.admin-stat-card .stat-value {
    color: #fff;
    font-size: 22px;
    line-height: 1.05;
}

.admin-stat-card .money-stat {
    font-size: 1.15rem;
}

.admin-money-card-actions {
    display: flex;
    gap: 6px;
    width: 100%;
    margin-top: 4px;
}

.admin-money-card-actions .btn {
    flex: 1;
    min-height: 26px;
    padding: 4px 6px;
    font-size: 0.68rem;
}

.admin-stat-card strong,
.admin-plan-card strong {
    color: rgba(225, 169, 3, 0.78);
    font-size: 13px;
}

.admin-plan-card {
    min-height: 74px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
}

.admin-plan-card input {
    display: inline;
    width: 42px;
    padding: 0;
    font-size: 13px;
}

.admin-plan-card [data-plan-count],
.admin-plan-card [data-stat-key] {
    display: inline-block;
    margin-right: 4px;
    color: #fff;
    font-weight: 900;
}

.admin-plan-card .card-reset-btn {
    align-self: center;
}

.admin-plan-actions {
    display: grid;
    gap: 6px;
    justify-items: stretch;
}

.admin-plan-actions button {
    width: 100%;
    min-height: 30px;
}

.admin-review-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(70px, 1fr));
    gap: 6px;
    min-width: 180px;
}

.admin-review-actions .compact {
    min-height: 28px;
    padding: 5px 7px;
    font-size: 10px;
}

.admin-plan-card small {
    color: rgba(225, 169, 3, 0.68);
}

.table-wrap {
    max-height: calc(100vh - 230px);
    margin-top: 0;
    overflow: auto;
    scrollbar-color: #d7d7d7 #f1f1f1;
    scrollbar-width: auto;
}

.admin-table {
    width: 100%;
    min-width: 1500px;
    border-collapse: collapse;
    text-align: left;
}

.admin-table thead {
    display: table-header-group;
    background: #191c21;
}

.admin-info-panel {
    border-color: rgba(255, 209, 92, 0.34);
}

.admin-info-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.admin-info-form label {
    display: grid;
    gap: 7px;
    color: rgba(225, 169, 3, 0.72);
    font-weight: 900;
}

.admin-info-form input,
.admin-info-form select,
.admin-info-form textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #4d525b;
    border-radius: 9px;
    background: #30333a;
    color: #fff;
    padding: 10px 12px;
    outline: none;
}

.admin-info-form textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
}

.admin-info-message-field {
    grid-column: 1 / -1;
}

.admin-info-status {
    min-height: 20px;
    margin-top: 12px;
    color: #ffd15c;
    font-weight: 800;
}

.admin-table th,
.admin-table td {
    padding: 18px 8px;
    border-bottom: 1px solid #3b3f47;
    vertical-align: middle;
}

.admin-table td:first-child {
    width: 120px;
}

/* Micro-labels inside table cells */
.cell-field-label {
    display: block;
    margin-bottom: 1px;
    color: #ffd15c;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.user-name-cell,
.user-login-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-table td:nth-child(2) {
    width: 135px;
}

.admin-table td:nth-child(3),
.admin-table td:nth-child(4),
.admin-table td:nth-child(5),
.admin-table td:nth-child(6) {
    width: 180px;
}

.admin-table td:nth-child(7) {
    width: 96px;
}

.admin-table td:nth-child(8) {
    width: 104px;
}

.referral-summary {
    width: fit-content;
    max-width: 92px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1px 4px;
    padding: 4px 6px;
    border: 1px solid rgba(214, 48, 49, 0.24);
    border-radius: 6px;
    background: rgba(214, 48, 49, 0.08);
}

.referral-summary strong {
    color: #c0392b;
    font-size: 11px;
    line-height: 1;
}

.referral-summary span {
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.referral-summary small {
    grid-column: 1 / -1;
    max-width: 100%;
    margin-top: 2px;
    overflow: hidden;
    color: rgba(225, 169, 3, 0.58);
    font-size: 9px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-table td:nth-child(9),
.admin-table th:nth-child(9) {
    width: 110px;
    white-space: nowrap;
}

.admin-table th:last-child,
.admin-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 3;
    padding: 18px 4px 18px 4px;
    background: #22252b;
    box-shadow: -12px 0 18px rgba(0, 0, 0, 0.28);
}

.admin-table th:last-child {
    z-index: 5;
    background: #191c21;
}

.admin-user-row.is-shaded td:last-child {
    background: #2a2d32;
}

.admin-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: 15px;
    padding-bottom: 15px;
    background: #191c21;
    color: #ffd15c;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.users-admin-table {
    min-width: 1360px;
    table-layout: fixed;
}

.users-admin-table .users-col-user {
    width: 78px;
}

.users-admin-table .users-col-login {
    width: 170px;
}

.users-admin-table .users-col-money {
    width: 150px;
}

.users-admin-table .users-col-commission {
    width: 180px;
}

.users-admin-table .users-col-income {
    width: 118px;
}

.users-admin-table .users-col-status {
    width: 104px;
}

.users-admin-table .users-col-referral {
    width: 118px;
}

.users-admin-table .users-col-activity {
    width: 170px;
}

.users-admin-table .users-col-actions {
    width: 204px;
}

.users-admin-table th,
.users-admin-table td {
    padding: 12px 8px;
}

.users-admin-table th:last-child,
.users-admin-table td:last-child {
    position: static;
    min-width: 0;
    box-shadow: none;
}

.users-admin-table .money-control,
.users-admin-table .cell-action-buttons {
    width: 100% !important;
}

.users-admin-table .table-actions {
    gap: 5px;
    align-content: start;
}

.users-admin-table .table-actions button {
    min-height: 28px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1;
}

.users-admin-table .referral-summary {
    max-width: 100%;
}

.users-admin-table .status-badge {
    padding: 6px 8px;
    font-size: 11px;
}
.admin-user-row {
    min-height: 112px;
}

.admin-user-row.is-shaded {
    background: #2a2d32;
    box-shadow: inset 0 1px 0 #373b42, inset 0 -1px 0 #373b42;
}

.admin-user-row strong {
    display: block;
    color: #fff;
    font-size: 13px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.admin-user-row small {
    display: block;
    margin-top: 5px;
    color: #b7c5d5;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.admin-user-row small.live-user {
    color: #19a463;
    font-weight: 800;
}

.admin-empty-users {
    display: grid;
    gap: 10px;
    padding: 24px 12px;
    color: #fff;
}

.admin-empty-users strong {
    font-size: 14px;
}

.admin-empty-users span {
    color: rgba(225, 169, 3, 0.68);
}

.admin-empty-users a {
    width: fit-content;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: #c0392b;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.money-control {
    width: 168px;
    min-height: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(214, 48, 49, 0.22);
    border-radius: 7px;
    background: rgba(225, 169, 3, 0.03);
}

.money-input {
    min-width: 0;
    min-height: 32px;
    padding: 6px 2px 6px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    appearance: textfield;
}

.money-input::-webkit-outer-spin-button,
.money-input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.money-control span {
    padding: 0 5px 0 3px;
    color: #ffcf4d;
    font-size: 9px;
    font-weight: 900;
}

.status-badge {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.status-pending,
.pending-status {
    color: #c0392b !important;
    background: rgba(192, 57, 43, 0.12) !important;
}

.status-verified {
    color: #3ad9db;
    background: rgba(58, 217, 219, 0.16);
}

.status-suspended {
    color: #ff8f8f;
    background: rgba(255, 143, 143, 0.16);
}

.status-completed,
.status-processed,
.status-approved,
.status-active {
    color: #1a7a3a !important;
    background: rgba(40, 167, 69, 0.15) !important;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 800;
}

/* Live Payout Ticker */
/* === Live Payout Ticker === */
.payout-ticker {
    width: 100%;
    height: 220px;
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #111d33 50%, #0a1628 100%);
    border: 1px solid rgba(0, 173, 43, 0.25);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}
.payout-ticker-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 173, 43, 0.08);
    border-bottom: 1px solid rgba(0, 173, 43, 0.15);
    flex-shrink: 0;
}
.payout-ticker-icon {
    font-size: 1.1rem;
}
.payout-ticker-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4ade80;
}
.payout-ticker-badge {
    margin-left: auto;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    background: #22c55e;
    padding: 2px 8px;
    border-radius: 10px;
    animation: payoutLivePulse 2s ease-in-out infinite;
}
@keyframes payoutLivePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.payout-ticker-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}
.payout-ticker-track {
    position: absolute;
    width: 100%;
    will-change: transform;
}
.payout-ticker-track.scrolling {
    animation: payoutScrollUp linear infinite;
}
@keyframes payoutScrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.payout-ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.3s;
}
.payout-ticker-item:hover {
    background: rgba(255,255,255,0.03);
}
.payout-ticker-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}
.payout-ticker-info {
    flex: 1;
    min-width: 0;
}
.payout-ticker-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.payout-ticker-detail {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.payout-ticker-amount {
    font-size: 0.85rem;
    font-weight: 900;
    color: #4ade80;
    white-space: nowrap;
}
.payout-ticker-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 480px) {
    .payout-ticker { height: 200px; margin-bottom: 18px; }
    .payout-ticker-item { padding: 8px 16px; gap: 10px; }
    .payout-ticker-avatar { width: 32px; height: 32px; font-size: 0.7rem; }
    .payout-ticker-name { font-size: 0.78rem; }
    .payout-ticker-amount { font-size: 0.8rem; }
}

/* Rank Badges */
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rank-novice { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }
.rank-pro { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.rank-elite { background: rgba(240, 181, 50, 0.15); color: #00ad2b; border: 1px solid rgba(255, 247, 234); }
.rank-legend { background: rgba(240, 181, 50, 0.15); color: #00ad2b; border: 1px solid rgba(255, 247, 234); box-shadow: 0 0 10px rgba(240, 181, 50, 0.2); }

/* Theme Switcher Styles */
/* ==== Light Theme (user page) ==== */
body.light-theme {
    background: #f5efe6 !important;
    color: #222 !important;
}
body.light-theme .site-header { background: #f0ebe4 !important; border-bottom: 1px solid rgba(0,0,0) !important; }
body.light-theme .site-header .brand, body.light-theme .site-header .brand span { color: #a96b29 !important; }
body.light-theme .site-header nav a, body.light-theme .nav-search-btn { background: rgba(0,0,0,0.04) !important; color: #444 !important; border: 1px solid rgba(0,0,0,0.08) !important; border-radius: 10px !important; }
body.light-theme .bottom-nav { background: #f0ebe3 !important; border: none !important; box-shadow: 0 -2px 10px rgba(0,0,0,0.08), 0 -1px 0 #e0d9ce !important; }
body.light-theme .bottom-nav a { color: #5a5045 !important; }
body.light-theme .bottom-nav a.active { color: #a96b29 !important; }
body.light-theme .bottom-nav a.active::before { background: #a96b29 !important; }
body.light-theme .panel, body.light-theme .card, body.light-theme .hero, body.light-theme .metric { background: rgba(255, 247, 234) !important; border: none !important; box-shadow: 0 2px 8px rgba(0,0,0) !important; }
body.light-theme h1, body.light-theme h2, body.light-theme h3, body.light-theme strong { color: #111 !important; }
body.light-theme p, body.light-theme span, body.light-theme label, body.light-theme small { color: #444 !important; }
body.light-theme .balance-panel { background: rgba(255, 247, 234) !important; }
body.light-theme input, body.light-theme select, body.light-theme textarea { background: #f9f9f9 !important; border: 1px solid #ddd !important; color: #111 !important; }
body.light-theme .plan-row-title span { background: #a96b29 !important; color: #f0ece6 !important; }
body.light-theme .live-plan-card, body.light-theme .product-card, body.light-theme .ongoing-investment-card:not(.dashboard-promo-card) { background: rgba(255, 247, 234) !important; border: none !important; color: #222 !important; box-shadow: 0 2px 8px rgba(0,0,0) !important; }
body.light-theme .admin-activity-item, body.light-theme .history-item { background: rgba(255, 247, 234) !important; border: none !important; box-shadow: 0 2px 8px rgba(0,0,0) !important; }
body.light-theme .admin-info-panel, body.light-theme .notification-panel, body.light-theme .referral-panel { background: rgba(255, 247, 234) !important; border: 1px solid #e0d9ce !important; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important; }
body.light-theme #withdrawTermsCardList { color: #444 !important; }
body.light-theme .withdraw-terms-card { background: rgba(255, 247, 234) !important; border-color: #e8e8e8 !important; }
body.light-theme .withdraw-terms-card h3 { color: #111 !important; }
body.light-theme #withdrawTermsInfo { background: #f9f9f9 !important; border-color: #ddd !important; color: #00ad2b !important; }
body.light-theme #withdrawTermsInfo h4 { color: #111 !important; }
body.light-theme .withdraw-terms-link-btn { background: #f0f0f0 !important; color: #555 !important; border-color: #ddd !important; }
body.light-theme #withdrawTermsInfoContent { color: #00ad2b !important; }
body.light-theme #withdrawTermsInfoContent strong { color: #111 !important; }
body.light-theme .withdraw-min-notice { background: rgba(255,180,60,0.12) !important; border-color: rgba(255,180,60,0.3) !important; color: #8B6914 !important; }
body.light-theme .context-balance-card { background: rgba(255, 247, 234) !important; border: none !important; box-shadow: 0 2px 8px rgba(0,0,0) !important; color: #00ad2b !important; }
.wallet-stat-card {
    --metric-color-start: #356ae6;
    --metric-color-end: #193a97;
    background: linear-gradient(135deg, var(--metric-color-start), var(--metric-color-end));
    border-radius: 10px;
    padding: 8px 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 3px 10px rgba(20, 30, 60, 0.25), inset 0 1px 0 rgba(255,255,255,0.18);
    overflow: hidden;
    min-width: 0;
}

.mining-stop-terms,
.mining-stop-note {
    margin-top: 10px;
    color: rgba(255,255,255,.58);
    font-size: .72rem;
    line-height: 1.45;
}

.stop-mining-btn {
    margin-top: 8px;
    border-color: rgba(255, 193, 7, .55);
    color: #ffd15c;
}
.wallet-stat-card::after { content: ""; position: absolute; width: 70px; height: 70px; right: -28px; top: -36px; border-radius: 50%; background: rgba(255,255,255,0.13); pointer-events: none; }
.wallet-stat-card { position: relative; isolation: isolate; }
.wallet-stat-card > * { position: relative; z-index: 1; }
.wallet-stat-card.metric-deposit { --metric-color-start: #0891b2; --metric-color-end: #0e7490; }
.wallet-stat-card.metric-withdrawable { --metric-color-start: #16a34a; --metric-color-end: #15803d; }
.wallet-stat-card.metric-mining { --metric-color-start: #7c3aed; --metric-color-end: #6d28d9; }
.wallet-stat-card.metric-profit { --metric-color-start: #059669; --metric-color-end: #047857; }
.wallet-stat-card.metric-earnings { --metric-color-start: #0d9488; --metric-color-end: #0f766e; }
.wallet-stat-card.metric-daily-income { --metric-color-start: #f59e0b; --metric-color-end: #d97706; }
.wallet-stat-card.metric-withdrawals { --metric-color-start: #e11d48; --metric-color-end: #be123c; }
.wallet-stat-card.metric-transfers { --metric-color-start: #4f46e5; --metric-color-end: #4338ca; }
.wallet-stat-card[role="button"] { cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease; }
.wallet-stat-card[role="button"]:hover { transform: translateY(-2px); filter: saturate(1.08) brightness(1.05); box-shadow: 0 7px 15px rgba(20, 30, 60, 0.3), inset 0 1px 0 rgba(255,255,255,0.2); }
.wallet-stat-card[role="button"]:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.wallet-stat-card div { font-size: 1rem !important; margin-bottom: 4px !important; color: #fff !important; }
/* The user-page theme has a broad green-text rule. These selectors are more
   specific so all wording stays high-contrast on the coloured metric cards. */
html body[data-page="user"] .wallet-stat-card strong { color: #fff !important; font-size: 1rem !important; line-height: 1.2; font-weight: 900 !important; letter-spacing: 0.35px; text-shadow: 0 2px 3px rgba(0,0,0,0.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
html body[data-page="user"] .wallet-stat-card span { color: rgba(255,255,255,0.96) !important; font-size: 0.73rem !important; line-height: 1.25; font-weight: 800 !important; letter-spacing: 0.25px; margin-top: 4px !important; text-shadow: 0 1px 2px rgba(0,0,0,0.25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
html body[data-page="user"] .wallet-stat-card .money-ugx { color: #fff !important; font-size: inherit !important; font-weight: inherit !important; text-shadow: inherit; }
html body[data-page="user"] .wallet-stat-card .money-usd { color: rgba(255,255,255,0.92) !important; font-size: 0.76rem !important; font-weight: 800 !important; line-height: 1.25; margin-top: 3px; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

@media (max-width: 480px) {
    .wallet-metrics { grid-template-columns: repeat(3, 1fr) !important; gap: 5px !important; min-width: 0; }
    .wallet-stat-card { padding: 6px 6px !important; border-radius: 8px !important; overflow: hidden; min-width: 0; }
    .wallet-stat-card div { font-size: 0.82rem !important; }
    html body[data-page="user"] .wallet-stat-card strong { font-size: 0.8rem !important; }
    html body[data-page="user"] .wallet-stat-card span { font-size: 0.62rem !important; margin-top: 3px !important; }
    html body[data-page="user"] .wallet-stat-card .money-usd { font-size: 0.62rem !important; }
}
@media (max-width: 340px) {
    .wallet-metrics { grid-template-columns: repeat(2, 1fr) !important; gap: 4px !important; }
    .wallet-stat-card { padding: 5px 4px !important; }
    html body[data-page="user"] .wallet-stat-card strong { font-size: 0.7rem !important; }
    html body[data-page="user"] .wallet-stat-card span { font-size: 0.55rem !important; }
    html body[data-page="user"] .wallet-stat-card .money-usd { font-size: 0.55rem !important; }
}

.theme-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 14px;
    transition: all 0.2s;
}
body.light-theme .theme-toggle-btn {
    border-color: rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.03);
    color: #444;
}

/* ==== Glass Dark Theme (user page) ==== */
html body[data-page="user"].theme-dark {
    background: #faf5ed !important;
    color: #222 !important;
}

}
html body[data-page="user"].theme-dark .panel, html body[data-page="user"].theme-dark .card, html body[data-page="user"].theme-dark .metric,
html body[data-page="user"].theme-dark .hero, html body[data-page="user"].theme-dark .context-balance-card,
html body[data-page="user"].theme-dark .deposit-method-panel, html body[data-page="user"].theme-dark .wizard-step,
html body[data-page="user"].theme-dark .method-select-card, html body[data-page="user"].theme-dark .pending-panel,
html body[data-page="user"].theme-dark .withdraw-terms-card, html body[data-page="user"].theme-dark .withdraw-setting-card,
html body[data-page="user"].theme-dark .saved-wallet-summary, html body[data-page="user"].theme-dark .payment-dest-card,
html body[data-page="user"].theme-dark .withdraw-fee-summary, html body[data-page="user"].theme-dark .live-plan-card,
html body[data-page="user"].theme-dark .product-card, html body[data-page="user"].theme-dark .coin-card,
html body[data-page="user"].theme-dark .plan, html body[data-page="user"].theme-dark .user-admin-info,
html body[data-page="user"].theme-dark .history-item, html body[data-page="user"].theme-dark .dashboard-glass,
html body[data-page="user"].theme-dark .ongoing-investment-card:not(.dashboard-promo-card), html body[data-page="user"].theme-dark .portfolio-position,
html body[data-page="user"].theme-dark .product-investment-card, html body[data-page="user"].theme-dark .product-activity,
html body[data-page="user"].theme-dark .allocation-row, html body[data-page="user"].theme-dark .crypto-order,
html body[data-page="user"].theme-dark .withdraw-terms-info, html body[data-page="user"].theme-dark .payment-modal-card,
html body[data-page="user"].theme-dark .feature-grid .card, html body[data-page="user"].theme-dark .feature-grid .card:nth-child(1),
html body[data-page="user"].theme-dark .feature-grid .card:nth-child(2), html body[data-page="user"].theme-dark .feature-grid .card:nth-child(3),
html body[data-page="user"].theme-dark #deposit .panel.narrow, html body[data-page="user"].theme-dark #withdraw .panel.narrow,
html body[data-page="user"].theme-dark .admin-info-panel,
html body[data-page="user"].theme-dark .notification-panel,
html body[data-page="user"].theme-dark .referral-panel {
    background: rgba(255, 255, 242, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(225, 169, 3, 0.85) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25) !important;
}
html body[data-page="user"].theme-dark input, html body[data-page="user"].theme-dark select, html body[data-page="user"].theme-dark textarea {
    background: rgba(225, 169, 3, 0.06) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(225, 169, 3, 0.852) !important;
    color: #0010ff !important;
}
html body[data-page="user"].theme-dark #withdrawTermsCardList { color: #fb0000ed !important; }
html body[data-page="user"].theme-dark #withdrawTermsCardList li { color: #fb0000ed !important; }
html body[data-page="user"].theme-dark .withdraw-terms-card h3 { color: #00ad2b !important; }
html body[data-page="user"].theme-dark #withdrawTermsInfo { background: rgba(255,255,255,0.04) !important; backdrop-filter: blur(12px) !important; border-color: rgba(156, 154, 43, 0.49) !important; color: rgba(43, 125, 45) !important; }
html body[data-page="user"].theme-dark #withdrawTermsInfo h4 { color: #680505 !important; }
html body[data-page="user"].theme-dark .withdraw-terms-link-btn { background: rgba(255,255,255,0.06) !important; color: rgba(255, 0, 0) !important; border-color: rgba(156, 154, 43, 0.49) !important; }
html body[data-page="user"].theme-dark #withdrawTermsInfoContent { color: rgba(43, 125, 45) !important; }
html body[data-page="user"].theme-dark #withdrawTermsInfoContent strong { color: #9a3828 !important; }
html body[data-page="user"].theme-dark .withdraw-min-notice { background: rgba(255,180,60,0.1) !important; border-color: rgba(255,180,60,0.3) !important; color: rgba(255,220,140,0.9) !important; }
html body[data-page="user"].theme-dark .site-header {
    background: rgba(106, 99, 71) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(225, 169, 3, 0.08) !important;
}
html body[data-page="user"].theme-dark .bottom-nav {
    background: #f0ebe3 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: 1px solid #e0d9ce !important;
}
html body[data-page="user"].theme-dark .bottom-nav a {
    color: #5a5045 !important;
}
html body[data-page="user"].theme-dark .nav-search-overlay {
    background: rgba(15, 25, 35, 0.8) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(225, 169, 3, 0.08) !important;
}
html body[data-page="user"].theme-dark .feature-grid .card:nth-child(1),
html body[data-page="user"].theme-dark .balance-panel,
html body[data-page="user"].theme-dark .hero {
    background: rgba(169, 107, 41, 0.12) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(240, 181, 50, 0.25) !important;
}

/* Remaining user page element overrides for glass dark */
html body[data-page="user"].theme-dark .team-summary article,
html body[data-page="user"].theme-dark .team-column,
html body[data-page="user"].theme-dark .dashboard-investment-panel,
html body[data-page="user"].theme-dark .dashboard-portfolio-panel,
html body[data-page="user"].theme-dark .market-portfolio-panel,
html body[data-page="user"].theme-dark .investment-plan-section,
html body[data-page="user"].theme-dark .invest-tabs button,
html body[data-page="user"].theme-dark .pending-detail,
html body[data-page="user"].theme-dark .portfolio-summary-grid article,
html body[data-page="user"].theme-dark #profile .panel,
html body[data-page="user"].theme-dark #profile a[href="#wallet-settings"],
html body[data-page="user"].theme-dark #profile button,
html body[data-page="user"].theme-dark .notification-item,
html body[data-page="user"].theme-dark .support-ticket,
html body[data-page="user"].theme-dark .dashboard-activity-item,
html body[data-page="user"].theme-dark .market-page .product-card,
html body[data-page="user"].theme-dark .context-balance-card:nth-child(1),
html body[data-page="user"].theme-dark .context-balance-card:nth-child(2),
html body[data-page="user"].theme-dark .context-balance-card:nth-child(3),
html body[data-page="user"].theme-dark .product-active-inv,
html body[data-page="user"].theme-dark .usd-input-wrap input,
html body[data-page="user"].theme-dark .chat-message {
    background: rgba(255, 255, 242, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(225, 169, 3, 0.85) !important;
    color: #0010ff !important;
}
html body[data-page="user"].theme-dark .invest-tabs button.active,
html body[data-page="user"].theme-dark .invest-tabs button:hover {
    background: rgba(169, 107, 41, 0.35) !important;
    border-color: rgba(169, 107, 41, 0.5) !important;
    color: #9a3828 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
html body[data-page="user"].theme-dark .plan span,
html body[data-page="user"].theme-dark .market-page .product-card-head span:not(.type-badge):not(.upgrade-badge),
html body[data-page="user"].theme-dark .market-page .category-profit-badge {
    background: rgba(169, 107, 41, 0.2) !important;
    color: #00ad2b !important;
}
html body[data-page="user"].theme-dark .market-page .product-card-head .type-badge {
    font-size: 7px !important;
    padding: 1px 5px !important;
}
html body[data-page="user"].theme-dark .market-page .product-card .btn {
    background: rgba(169, 107, 41, 0.6) !important;
    color: #9a3828 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
html body[data-page="user"].theme-dark .section-label.ongoing-label { color: #00ad2b !important; }
html body[data-page="user"].theme-dark .section-label.completed-label { color: #34d97a !important; }

/* Dark theme accent colors */
html body[data-page="user"].theme-dark .site-header .brand span,
html body[data-page="user"].theme-dark .bottom-nav a.active,
html body[data-page="user"].theme-dark .bottom-nav a.active svg,
html body[data-page="user"].theme-dark .brand span,
html body[data-page="user"].theme-dark .context-balance-card:nth-child(1) strong,
html body[data-page="user"].theme-dark .live-plan-card strong,
html body[data-page="user"].theme-dark .rank-legend,
html body[data-page="user"].theme-dark .toast strong {
    color: #00ad2b !important;
}
html body[data-page="user"].theme-dark .bottom-nav a.active { border-top-color: #00ad2b !important; }
html body[data-page="user"].theme-dark .btn-primary, html body[data-page="user"].theme-dark .btn-submit, html body[data-page="user"].theme-dark button[type="submit"],
html body[data-page="user"].theme-dark .btn, html body[data-page="user"].theme-dark .btn-primary, html body[data-page="user"].theme-dark .btn-submit { background: #a96b29 !important; border-color: #a96b29 !important; }


.transaction-status {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    text-align: right;
}

.dashboard-note {
    margin-top: 14px;
    color: rgba(225, 169, 3, 0.7);
    font-weight: 700;
}

.table-actions button {
    min-height: 30px;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.details-btn,
.activity-btn {
    background: #00ad2b;
    color: #aabac9;
}

.activity-btn {
    background: #3ad9db;
}

.approve-btn {
    background: #38e08c;
    color: #101712;
}

.suspend-btn {
    background: #ffd15c;
    color: #211807;
}

.gift-btn {
    background: #c0392b;
    color: #fff;
}

.bonus-btn {
    background: #1a7a2e;
    color: #fff;
}

.deduct-btn {
    background: #c0392b;
    color: #fff;
}

.reset-btn {
    background: #00ad2b;
    color: #aabac9;
}

.delete-btn {
    background: #ff7373;
    color: #fff;
}

.team-btn {
    background: #8b5cf6;
    color: #fff;
}

.hidden {
    display: none !important;
}

/* Full-screen support information shown once after each user login. */
.dashboard-support-overlay {
    position: fixed;
    inset: 0;
    z-index: 100010;
    display: block;
    padding: 0;
    background: var(--support-notice-bg, #fff9ec);
}

.dashboard-support-card {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 30px 26px 24px;
    border: 0;
    border-radius: 0;
    background: var(--support-notice-bg, #fff9ec);
    color: var(--support-notice-color, #008d24);
    font-family: var(--support-notice-font-family, system-ui, sans-serif);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.dashboard-support-card .eyebrow { 
    color: var(--support-notice-eyebrow-color, #008d24) !important;
    font-size: var(--support-notice-eyebrow-size, 12px);
}

.dashboard-support-card h1 { color: var(--support-notice-color, #008d24) !important; }

.dashboard-support-card h1 {
    margin: 8px 28px 12px;
    font-size: var(--support-notice-title-size, 2rem);
    line-height: 1.15;
}

.dashboard-support-card #dashboardSupportBody {
    flex: 1 1 auto;
    margin: 0 0 18px;
    overflow: auto;
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.65;
    font-size: var(--support-notice-body-size, 1rem);
    text-align: left;
    color: var(--support-notice-body-color, #b00000) !important;
}

.dashboard-support-icon { font-size: 2rem; margin-top: 12px; }

.dashboard-support-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    color: var(--support-notice-color, #008d24);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}

.dashboard-support-action { width: 100%; margin-top: 22px; }

[hidden] {
    display: none !important;
}

.detail-row td {
    background: rgba(0, 0, 0, 0.18);
}

.detail-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(225, 169, 3, 0.85);
    border-radius: 12px;
    background: rgba(225, 169, 3, 0.04);
}

.detail-panel h3 {
    margin-bottom: 9px;
    color: #ffd15c;
}

.detail-panel p {
    overflow-wrap: anywhere;
}

.user-activity-panel {
    grid-template-columns: minmax(220px, 0.55fr) minmax(420px, 1.45fr);
}

.full-user-activity {
    max-height: 420px;
    overflow: auto;
    padding-right: 4px;
}

.admin-activity-list {
    display: grid;
    gap: 10px;
    list-style: none;
}

.admin-activity-list li,
.admin-activity-list>div {
    display: grid;
    gap: 4px;
    padding: 11px;
    border: 1px solid rgba(225, 169, 3, 0.08);
    border-radius: 10px;
    background: rgba(225, 169, 3, 0.045);
}

.admin-activity-list span {
    display: block;
    color: rgba(225, 169, 3, 0.72);
    margin-top: 4px;
    font-size: 13px;
}

/* Activity table scroll container */
.activity-table-wrap {
    max-height: 540px;
    overflow-y: auto;
    overflow-x: auto;
}

#adminActivityTable {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
}

#adminActivityTable th,
#adminActivityTable td {
    padding: 8px 6px;
    white-space: nowrap;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}

#adminActivityTable td {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.3;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

#adminActivityTable td:nth-child(1) { width: 10%; }
#adminActivityTable td:nth-child(2) { width: 10%; }
#adminActivityTable td:nth-child(3) { width: 7%; }
#adminActivityTable td:nth-child(4) { width: 18%; }
#adminActivityTable td:nth-child(5) { width: 11%; text-align: right; }
#adminActivityTable td:nth-child(6) { width: 11%; text-align: right; }
#adminActivityTable td:nth-child(7) { width: 8%; }
#adminActivityTable td:nth-child(8) { width: 6%; }
#adminActivityTable td:nth-child(9) { width: 9%; }
#adminActivityTable td:nth-child(10) { width: 8%; }

#adminActivityTable th:nth-child(5),
#adminActivityTable th:nth-child(6) { text-align: right; }

#adminActivityTable td strong {
    font-size: 0.85rem;
    color: #fff;
}

#adminActivityTable td small {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
}

#adminActivityTable th {
    padding: 10px 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffd35a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    background: #191c21;
}

#adminActivityTable tr {
    line-height: 1.2;
    border-left: none !important;
}

#adminActivityTable tr.is-shaded {
    background: rgba(255,255,255,0.02);
}

.activity-table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.activity-controls,
.feed-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.activity-controls select {
    min-height: 42px;
    border: 1px solid #4d525b;
    border-radius: 9px;
    background: #30333a;
    color: #fff;
}

.feed-actions {
    margin-top: 4px;
}

.admin-table td:last-child .active-view-btn,
.admin-table td:last-child button {
    box-sizing: border-box;
}

.feed-actions button {
    min-height: 28px;
    padding: 4px 9px;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 900;
    font-size: 11px;
}


.admin-body {
    grid-template-columns: 220px minmax(0, 1fr);
    font-size: 11px;
}

.admin-sidebar {
    gap: 14px;
    padding: 18px 14px;
}

.admin-brand {
    grid-template-columns: 34px 1fr;
    column-gap: 9px;
}

.admin-brand span {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 12px;
}

.admin-brand strong {
    font-size: 15px;
}

.admin-brand small {
    font-size: 10px;
}

.admin-menu {
    gap: 5px;
}

.admin-menu a {
    min-height: 38px;
    gap: 9px;
    padding: 0 10px;
    font-size: 12px;
}

.admin-menu a span {
    width: 18px;
    flex-basis: 18px;
}

.admin-menu a:hover,
.admin-menu a.active {
    border-left-width: 3px;
    padding-left: 7px;
}

.admin-main {
    padding: 14px 18px 22px;
}

.admin-topbar {
    margin: -14px -18px 0;
    padding: 14px 18px 10px;
}

.admin-topbar,
.panel-header {
    gap: 10px;
}

.admin-topbar h1 {
    font-size: 18px;
}

.admin-topbar p,
.panel-header p {
    font-size: 11px;
}

.admin-top-actions {
    gap: 6px;
}

.gift-all-btn,
.deduct-all-btn,
.clear-all-btn {
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 11px;
}

.admin-action-message {
    min-height: 14px;
    margin-top: 6px;
    font-size: 11px;
}
.admin-body #adminActionMessage:empty {
    display: none;
}
.admin-body #adminActionMessage {
    position: sticky;
    top: 72px;
    z-index: 31;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin: 0 42px 4px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}
.admin-body #adminActionMessage.warning {
    background: rgba(253, 230, 138, 0.15);
    border-color: rgba(253, 230, 138, 0.3);
    color: #fde68a;
}
.admin-body #adminActionMessage.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.admin-metrics {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.admin-stat-card {
    min-height: 112px;
    gap: 7px;
    padding: 10px;
}

.admin-plan-card {
    min-height: 48px;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 8px 10px;
}

.stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 11px;
}

.admin-stat-card .stat-value {
    font-size: 16px;
}

.admin-stat-card .money-stat {
    font-size: 1rem;
}

.admin-stat-card strong,
.admin-plan-card strong {
    font-size: 11px;
}

.admin-stat-card small,
.admin-plan-card small {
    font-size: 10px;
}

.card-reset-btn {
    min-height: 23px;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 10px;
}

.admin-panel {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
}

.admin-panel .panel-header {
    gap: 10px;
    margin-bottom: 10px;
}

#adminSearch {
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 12px;
}

.table-wrap {
    max-height: calc(100vh - 155px);
    overflow-x: auto;
}

.admin-table {
    min-width: 1240px;
}

.admin-table th,
.admin-table td {
    padding: 10px 6px;
}

.admin-table th {
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 10px;
}

.admin-table td:first-child {
    width: 65px;
}

.admin-table td:nth-child(2) {
    width: 75px;
}

.admin-table td:nth-child(3),
.admin-table td:nth-child(4),
.admin-table td:nth-child(5),
.admin-table td:nth-child(6) {
    width: 95px;
}

.admin-table td:nth-child(7) {
    width: 50px;
}

.admin-table td:nth-child(8) {
    width: 60px;
}

.referral-summary {
    max-width: 55px;
    gap: 1px 2px;
    padding: 1px 3px;
    border-radius: 4px;
}

.referral-summary strong {
    font-size: 8px;
}

.referral-summary span,
.referral-summary small {
    font-size: 7px;
}

.admin-table td:nth-child(9) {
    width: 80px;
}

.admin-table td:nth-child(10) {
    width: 125px;
    min-width: 125px;
}

.admin-user-row {
    min-height: 54px;
}

.admin-user-row strong {
    font-size: 9px;
}

.admin-user-row small {
    margin-top: 2px;
    font-size: 8px;
}

.money-control {
    width: 136px;
    min-height: 28px;
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 5px;
}

.money-input {
    min-height: 26px;
    padding: 4px 2px 4px 5px;
    font-size: 11px;
}

.money-control span {
    padding: 0 5px 0 2px;
    font-size: 10px;
}

.status-badge {
    padding: 5px 7px;
    font-size: 10px;
}

.table-actions {
    gap: 5px;
}

.table-actions button {
    min-height: 25px;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 10px;
}

.detail-panel {
    grid-template-columns: minmax(180px, 0.75fr) minmax(260px, 1.25fr);
    gap: 10px;
    padding: 10px;
    border-radius: 7px;
}

.detail-panel h3 {
    margin-bottom: 5px;
    font-size: 13px;
}

.user-activity-panel {
    grid-template-columns: minmax(180px, 0.55fr) minmax(300px, 1.45fr);
}

.full-user-activity {
    max-height: 300px;
}

.admin-activity-list,
.activity-feed {
    gap: 6px;
}

.admin-activity-list>div,
.feed-item {
    gap: 3px;
    padding: 7px;
    border-radius: 7px;
}

.admin-activity-list span,
.feed-item p {
    font-size: 11px;
}

.activity-controls,
.feed-actions {
    gap: 5px;
}

.activity-controls select {
    min-height: 31px;
    border-radius: 6px;
    font-size: 11px;
}

.feed-actions button {
    min-height: 25px;
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 10px;
}

@media (max-width: 920px) {

    .site-header,
    .admin-topbar,
    .panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    body[data-page="user"] .site-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    body[data-page="user"] .top-nav {
        width: auto !important;
        flex-direction: row !important;
    }

    .admin-top-actions {
        justify-content: flex-start;
    }

    .top-nav {
        width: 100%;
    }
    body[data-page="user"] .top-nav {
        width: auto !important;
    }

    .top-nav a {
        flex: 1 1 auto;
        text-align: center;
    }

    .notification-toggle {
        flex: 1 1 auto;
        justify-content: center;
    }

    .hero {
        min-height: 300px;
        padding: 30px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .profile-grid,
    .support-grid,
    .plan,
    .detail-panel {
        grid-template-columns: 1fr;
    }
    .team-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .team-summary {
        grid-template-columns: 1fr;
    }

    .team-summary article {
        min-height: 70px;
        padding: 10px;
    }

    .team-summary strong {
        font-size: 14px;
    }

    .dashboard-glass {
        padding: 18px;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-side {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }

    .live-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
    }

    .admin-main {
        padding: 24px 16px 34px;
    }

    .admin-metrics {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .bottom-nav {
        bottom: 0;
        gap: 3px;
        padding: 5px 4px;
    }

    .bottom-nav a {
        min-height: 28px;
        font-size: 9px;
    }
}

@media (max-width: 560px) {

    .dashboard-metrics,
    .dashboard-action-grid,
    .portfolio-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-side,
    .portfolio-position-values,
    .market-order-form,
    .portfolio-sell-form,
    .allocation-row header,
    .crypto-order {
        grid-template-columns: 1fr;
    }

    .crypto-order span {
        text-align: left;
    }

    .balance-panel {
        min-height: 160px;
        padding: 18px;
    }

    .balance-panel strong {
        font-size: 32px;
    }

    .dashboard-plan-row {
        padding: 14px;
    }

    .plan-row-title {
        align-items: flex-start;
    }

    .live-plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .helpline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Admin readability refresh */
.admin-body,
.admin-auth-body {
    background:
        radial-gradient(circle at top left, rgba(52, 211, 153, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.12), transparent 30%),
        linear-gradient(135deg, #07111f 0%, #101827 46%, #182033 100%);
    color: #f8fafc;
    text-rendering: optimizeLegibility;
}

.admin-body *,
.admin-auth-body * {
    letter-spacing: 0;
}

.admin-main {
    background: transparent;
    color: #f8fafc;
}

.admin-sidebar,
.admin-auth-panel,
.admin-panel,
.admin-stat-card,
.admin-plan-card,
.detail-panel {
    border-color: rgba(226, 232, 240, 0.16);
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.28);
}

.admin-sidebar {
    background: rgba(8, 13, 26, 0.98);
}

.admin-topbar,
.admin-panel .panel-header {
    color: #f8fafc;
}

.admin-topbar h1,
.admin-panel h2,
.admin-auth-panel h1,
.admin-brand strong,
.admin-auth-brand strong,
.admin-user-row strong,
.admin-empty-users strong,
.admin-stat-card .stat-value,
.admin-stat-card .money-stat,
.admin-plan-card [data-plan-count],
.admin-plan-card [data-stat-key] {
    color: #f0ece6;
    font-weight: 800;
}

.admin-brand small,
.admin-auth-panel .eyebrow,
.admin-topbar p,
.admin-date,
.admin-panel .panel-header p,
.admin-sync-status,
.admin-stat-card small,
.admin-plan-card small,
.admin-user-row small,
.admin-table small,
.admin-activity-list small,
.feed-item p,
.live-sync-note,
.admin-empty-users span {
    color: #dbeafe;
}

.admin-menu a {
    background: rgba(225, 169, 3, 0.035);
    color: #f8fafc;
    font-weight: 700;
}

.admin-menu a span,
.admin-brand span,
.admin-auth-brand span {
    background: #facc15;
    color: #111827;
    font-weight: 900;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: rgba(250, 204, 21, 0.18);
    color: #fde68a;
    border-color: rgba(250, 204, 21, 0.42);
}

.admin-table {
    color: #f8fafc;
}

.admin-table thead,
.admin-table th,
.admin-table th:last-child {
    background: #0b1220;
    color: #fef3c7;
}

.admin-table th,
.admin-table td {
    border-color: rgba(226, 232, 240, 0.12);
}

.admin-user-row,
.admin-table td:last-child {
    background: rgba(15, 23, 42, 0.9);
}

.admin-user-row.is-shaded,
.admin-user-row.is-shaded td:last-child {
    background: rgba(30, 41, 59, 0.96);
}

.admin-user-row.search-match td {
    background: rgba(20, 184, 166, 0.16);
}

.admin-user-row.search-match td:last-child {
    background: rgba(20, 184, 166, 0.22);
}

.admin-user-row small.live-user {
    color: #86efac;
    font-weight: 800;
}

.admin-auth-form input,
.admin-info-form input,
.admin-info-form select,
.admin-info-form textarea,
#adminSearch,
.activity-controls select,
.money-control,
.money-input {
    border-color: rgba(226, 232, 240, 0.28);
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
}

.admin-auth-form input::placeholder,
.admin-info-form input::placeholder,
.admin-info-form textarea::placeholder,
#adminSearch::placeholder {
    color: #475569;
    opacity: 1;
}

.admin-auth-form input:focus,
.admin-info-form input:focus,
.admin-info-form select:focus,
.admin-info-form textarea:focus,
#adminSearch:focus,
.activity-controls select:focus,
.money-input:focus {
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.24);
    outline: none;
}

.admin-info-form label,
.check-row,
.admin-password-rules span {
    color: #f8fafc;
    font-weight: 700;
}

.admin-password-rules span {
    background: rgba(225, 169, 3, 0.08);
}

.admin-password-rules span.is-valid {
    color: #bbf7d0;
}

.admin-password-rules span.is-invalid,
.admin-server-warning {
    color: #fecaca;
}

.live-sync-note,
.admin-activity-list>div,
.feed-item {
    border-color: rgba(226, 232, 240, 0.14);
    background: rgba(30, 41, 59, 0.84);
    color: #f8fafc;
}

.admin-action-message.success {
    color: #bbf7d0;
}

.admin-action-message.warning,
.admin-info-status {
    color: #fde68a;
}

.admin-body {
    font-size: 9px;
}

.admin-sidebar,
.admin-panel,
.admin-stat-card,
.admin-plan-card,
.admin-table,
.admin-auth-panel {
    font-size: 0.7rem;
}

.admin-menu a,
.admin-stat-card strong,
.admin-plan-card strong,
.admin-table th,
.admin-table td,
.table-actions button,
.card-reset-btn,
.feed-actions button,
.activity-controls select {
    font-size: 0.65rem;
}

.admin-brand small,
.admin-topbar p,
.admin-panel .panel-header p,
.admin-stat-card small,
.admin-plan-card small,
.admin-user-row small,
.admin-table small,
.feed-item p,
.admin-activity-list span {
    font-size: 0.62rem;
    line-height: 1.25;
}

.admin-plan-card {
    gap: 12px;
}

.admin-plan-card div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-plan-card strong,
.admin-plan-card span,
.admin-plan-card small {
    overflow-wrap: anywhere;
}

.admin-plan-card [data-plan-count],
.admin-plan-card [data-stat-key] {
    display: block;
    margin-left: 0;
}

/* Keep Admin Information contained */
.admin-info-panel {
    width: min(980px, 100%);
    overflow: hidden;
}

.admin-info-panel .panel-header {
    align-items: center;
    flex-wrap: wrap;
}

.admin-info-panel .panel-header>div {
    min-width: 0;
}

.admin-info-panel .panel-header .btn {
    flex: 0 0 auto;
}

.admin-info-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

.admin-info-form input,
.admin-info-form select,
.admin-info-form textarea {
    min-width: 0;
}

.admin-info-form .btn {
    width: fit-content;
    max-width: 100%;
}

.admin-info-form .btn.primary {
    min-width: 240px;
    border: 2px solid rgba(225, 169, 3, 0.28);
    background: #ffd15c;
    color: #111827;
    box-shadow: 0 14px 34px rgba(250, 204, 21, 0.26);
}

.admin-info-form .btn.primary:hover,
.admin-info-form .btn.primary:focus-visible {
    background: #c0392b;
    color: #052e1d;
    outline: 3px solid rgba(240, 200, 80, 0.7);
    outline-offset: 3px;
}

.admin-info-status {
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .admin-info-panel {
        width: 100%;
    }

    .admin-info-panel .panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-info-panel .panel-header .btn,
    .admin-info-form .btn {
        width: 100%;
    }

    .admin-info-form {
        grid-template-columns: 1fr;
    }

    .admin-info-message-field {
        grid-column: auto;
    }
}

/* Separate admin dashboard workspaces */
.admin-main {
    scroll-behavior: smooth;
}

.admin-body {
    min-height: 100vh;
}

.admin-sidebar {
    max-height: 100vh;
    overflow: hidden;
}

.admin-menu {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
}

.admin-main {
    min-width: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.admin-info-panel {
    width: 100%;
    scroll-margin-top: 110px;
}

.admin-dashboard-spaces {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.admin-section {
    display: grid;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.16);
    scroll-margin-top: 110px;
}

.admin-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.admin-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}

.admin-section-heading span {
    display: block;
    margin-bottom: 5px;
    color: #fde68a;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 1.08rem;
    line-height: 1.15;
}

.admin-section-heading p {
    max-width: 520px;
    margin: 0;
    color: #dbeafe;
    line-height: 1.45;
    text-align: right;
}

.admin-section .admin-metrics {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-top: 0;
}

.admin-section .admin-metrics-tight {
    grid-template-columns: repeat(auto-fit, minmax(220px, 340px));
}

.admin-section .admin-stat-card,
.admin-section .admin-plan-card {
    min-height: 126px;
}

.admin-section .admin-plan-card {
    min-height: 74px;
}

#users,
#activity {
    scroll-margin-top: 18px;
}

@media (max-width: 920px) {
    .admin-dashboard-spaces {
        gap: 24px;
    }

    .admin-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-section-heading p {
        max-width: none;
        text-align: left;
    }

    .admin-section .admin-metrics,
    .admin-section .admin-metrics-tight {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .admin-dashboard-spaces {
        gap: 20px;
    }

    .admin-section .admin-metrics,
    .admin-section .admin-metrics-tight {
        grid-template-columns: 1fr;
    }
}

.admin-user-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1 1 680px;
    min-width: 360px;
}

.admin-user-tools #adminSearch {
    flex: 1 1 420px;
    max-width: none;
    min-width: 180px;
    min-height: 40px;
}

.same-folder-signup-btn {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgba(214, 48, 49, 0.52);
    border-radius: 999px;
    background: #c0392b;
    color: #073b2b;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.same-folder-signup-btn:hover,
.same-folder-signup-btn:focus {
    background: #a7f3d0;
    color: #052e22;
    outline: none;
}

.same-folder-signup-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.26);
}

@media (max-width: 920px) {
    .admin-user-tools {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .admin-user-tools #adminSearch {
        flex: 1 1 280px;
    }
}

@media (max-width: 560px) {
    .admin-user-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-user-tools #adminSearch,
    .same-folder-signup-btn {
        width: 100%;
    }

    .same-folder-signup-btn {
        white-space: normal;
    }
}

/* Admin dashboard color match */
.admin-body {
    background: #1a1919;
    color: #fffaf0;
}

.admin-body .admin-main {
    background: #1f1d1e;
    color: #fffaf0;
}

.admin-body .admin-sidebar,
.admin-body .admin-panel,
.admin-body .admin-stat-card,
.admin-body .admin-plan-card,
.admin-body .detail-panel {
    border-color: rgba(255, 198, 79, 0.14);
    background: rgba(31, 29, 32, 0.94);
    color: #fffaf0;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.admin-body .admin-sidebar {
    background: rgba(18, 18, 20, 0.98);
    border-right-color: rgba(255, 198, 79, 0.18);
}

.admin-body .admin-topbar {
    border-bottom-color: rgba(255, 198, 79, 0.12);
    background: rgba(24, 22, 22, 0.97);
}

.admin-body .admin-topbar h1,
.admin-body .admin-section-heading h2 {
    color: var(--admin-text);
    text-shadow: none;
}

.admin-body .admin-brand small,
.admin-body .admin-topbar p,
.admin-body .admin-date,
.admin-body .admin-panel .panel-header p,
.admin-body .admin-sync-status,
.admin-body .admin-stat-card small,
.admin-body .admin-plan-card small,
.admin-body .admin-user-row small,
.admin-body .admin-table small,
.admin-body .admin-activity-list small,
.admin-body .feed-item p,
.admin-body .live-sync-note,
.admin-body .admin-empty-users span,
.admin-body .admin-section-heading p {
    color: rgba(255, 244, 214, 0.68);
}

.admin-body .admin-menu a {
    background: rgba(225, 169, 3, 0.025);
    color: rgba(255, 250, 240, 0.92);
}

.admin-body .admin-menu a span,
.admin-body .admin-brand span {
    background: #ffc64f;
    color: #19130a;
}

.admin-body .admin-menu a:hover,
.admin-body .admin-menu a.active {
    background: rgba(126, 84, 39, 0.82);
    color: #ffd96a;
    border-color: #ffc64f;
}

.admin-body .admin-section {
    border-top-color: rgba(255, 198, 79, 0.14);
}

.admin-body .admin-section-heading span,
.admin-body .admin-action-message.warning,
.admin-body .admin-info-status {
    color: #ffd96a;
}

.admin-body .admin-table {
    color: #fffaf0;
}

.admin-body .admin-table thead,
.admin-body .admin-table th,
.admin-body .admin-table th:last-child {
    background: #171618;
    color: #ffd96a;
}

.admin-body .admin-table th,
.admin-body .admin-table td {
    border-color: rgba(255, 198, 79, 0.12);
}

.admin-body .admin-user-row,
.admin-body .admin-table td:last-child {
    background: rgba(30, 28, 31, 0.94);
}

.admin-body .admin-user-row.is-shaded,
.admin-body .admin-user-row.is-shaded td:last-child,
.admin-body .live-sync-note,
.admin-body .admin-activity-list>div,
.admin-body .feed-item {
    background: rgba(40, 36, 36, 0.9);
}

.admin-body .admin-user-row.search-match td,
.admin-body .admin-user-row.search-match td:last-child {
    background: rgba(255, 198, 79, 0.14);
}

.admin-body .admin-auth-form input,
.admin-body .admin-info-form input,
.admin-body .admin-info-form select,
.admin-body .admin-info-form textarea,
.admin-body #adminSearch,
.admin-body .activity-controls select,
.admin-body .money-control,
.admin-body .money-input {
    border-color: rgba(255, 198, 79, 0.24);
    background: rgba(21, 20, 22, 0.96);
    color: #fffaf0;
}

.admin-body .admin-info-form input::placeholder,
.admin-body .admin-info-form textarea::placeholder,
.admin-body #adminSearch::placeholder {
    color: rgba(255, 244, 214, 0.48);
}

.admin-body .admin-info-form input:focus,
.admin-body .admin-info-form select:focus,
.admin-body .admin-info-form textarea:focus,
.admin-body #adminSearch:focus,
.admin-body .activity-controls select:focus,
.admin-body .money-input:focus {
    border-color: #ffc64f;
    box-shadow: 0 0 0 3px rgba(255, 198, 79, 0.24);
}

.admin-body .primary,
.admin-body .same-folder-signup-btn {
    border-color: rgba(255, 198, 79, 0.52);
    background: #ffc64f;
    color: #19130a;
}

.admin-body .btn {
    display: inline-flex !important;
    min-height: 44px !important;
    padding: 12px 20px !important;
    cursor: pointer !important;
    border-radius: 8px !important;
}
.admin-body .btn.primary {
    background: #ffc64f !important;
    color: #19130a !important;
    border: 1px solid rgba(255, 198, 79, 0.52) !important;
}
.admin-body .btn.outline {
    background: transparent !important;
    color: #ffd96a !important;
    border: 1px solid #ffc64f !important;
}
.admin-body .referral-level-btn.active {
    background: #ffc64f !important;
    color: #19130a !important;
    border-color: #ffc64f !important;
    font-weight: 700;
}

#btnFlwTestConnection {
    display: inline-flex !important;
    min-height: 44px !important;
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
    background: transparent !important;
    color: #ffd96a !important;
    border: 1px solid #ffc64f !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}

.admin-body .outline {
    border-color: #ffc64f;
    background: rgba(255, 198, 79, 0.08);
    color: #ffd96a;
}

.admin-body .same-folder-signup-btn:hover,
.admin-body .same-folder-signup-btn:focus,
.admin-body .gift-all-btn:hover {
    background: #ffd96a;
    color: #19130a;
}

.admin-body .gift-all-btn {
    border-color: rgba(255, 198, 79, 0.48);
    background: rgba(255, 198, 79, 0.12);
    color: #ffd96a;
}

.admin-body .deduct-all-btn {
    border-color: rgba(204, 132, 55, 0.5);
    background: rgba(204, 132, 55, 0.14);
    color: #ffb15f;
}

.admin-body .stat-icon.gold,
.admin-body .stat-icon.amber {
    background: rgba(255, 198, 79, 0.16);
    color: #ffd96a;
}

.admin-body .stat-icon.green {
    background: rgba(26, 123, 83, 0.35);
    color: #54e3a1;
}

.admin-body .stat-icon.purple {
    background: rgba(93, 71, 126, 0.38);
    color: #b99bff;
}

.admin-body .stat-icon.blue {
    background: rgba(56, 90, 133, 0.38);
    color: #78b6ff;
}

.admin-body .stat-icon.rose {
    background: rgba(124, 61, 82, 0.4);
    color: #ff86aa;
}

.admin-body .stat-icon.orange {
    background: rgba(126, 84, 39, 0.42);
    color: #ffad62;
}

.admin-body .stat-icon.cyan {
    background: rgba(42, 102, 106, 0.36);
    color: #61e6eb;
}

.admin-body .status-pending,
.admin-body .money-control span {
    color: #ffd96a;
}

.admin-body .status-pending {
    background: rgba(255, 198, 79, 0.14);
}

.admin-body .admin-user-row small.live-user,
.admin-body .status-verified,
.admin-body .status-completed,
.admin-body .status-processed,
.admin-body .status-approved,
.admin-body .status-active,
.admin-body .admin-action-message.success {
    color: #54e3a1;
}

/* Context Balance Widget styling */
.context-balance-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
    width: 100%;
}

.context-balance-card {
    position: relative;
    overflow: hidden;
    padding: 16px 15px 15px;
    min-height: 84px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 247, 0.98), rgba(255, 247, 224, 0.96));
    border: 1px solid rgba(225, 169, 3, 0.34);
    box-shadow: 0 8px 18px rgba(71, 52, 17, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.context-balance-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #00ad2b, #f0b532);
}

.context-balance-card::after {
    content: "";
    position: absolute;
    width: 72px;
    height: 72px;
    right: -28px;
    bottom: -34px;
    border-radius: 50%;
    background: rgba(240, 181, 50, 0.12);
}

.context-balance-card span {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: #087f2a;
    letter-spacing: 0.5px;
}

.context-balance-card strong {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 900;
    color: #1f2937;
    overflow-wrap: anywhere;
    word-break: break-all;
    overflow: visible;
}

.context-balance-card:nth-child(1) {
    background: linear-gradient(145deg, #f4fff6, #e4f8ea);
    border-color: rgba(0, 173, 43, 0.35);
}

.context-balance-card:nth-child(2) {
    background: linear-gradient(145deg, #fffdf2, #fff1c9);
    border-color: rgba(225, 169, 3, 0.45);
}

.context-balance-card:nth-child(3) {
    background: linear-gradient(145deg, #f1fffb, #dff7ed);
    border-color: rgba(18, 145, 96, 0.35);
}

.context-balance-card:nth-child(1)::before {
    background: linear-gradient(90deg, #00ad2b, #41cf72);
}

.context-balance-card:nth-child(2)::before {
    background: linear-gradient(90deg, #d99a00, #f4c542);
}

.context-balance-card:nth-child(3)::before {
    background: linear-gradient(90deg, #0d9b68, #49d39a);
}

.context-balance-card:nth-child(1) strong {
    color: #087f2a;
}

.context-balance-card:nth-child(2) strong {
    color: #a96b29;
}

.context-balance-card:nth-child(3) strong {
    color: #07875b;
}

@media (max-width: 600px) {
    .context-balance-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Marketplace Category & Timeframe Styling */
.product-grid {
    display: flex !important;
    flex-direction: column;
    gap: 36px;
    margin-top: 22px;
}

.market-category-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(225, 169, 3, 0.08);
}

.category-header h2 {
    font-size: 12px;
    font-weight: 700;
    color: #c0392b;
    letter-spacing: 0.5px;
}

.category-profit-badge {
    padding: 6px 12px;
    background: rgba(214, 48, 49, 0.12);
    color: #c0392b;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(214, 48, 49, 0.2);
}

.product-sub-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.market-page .product-card {
    border: 1px solid rgba(255, 209, 92, 0.24);
    background:
        linear-gradient(180deg, rgba(225, 169, 3, 0.07), rgba(225, 169, 3, 0.025)),
        rgba(8, 19, 28, 0.86);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.market-page .product-card-head span:not(.type-badge) {
    background: rgba(255, 209, 92, 0.14);
    color: #ffd15c;
    border: 1px solid rgba(255, 209, 92, 0.24);
}

.market-page .product-card-body p {
    color: rgba(226, 240, 255, 0.82);
    font-size: 8px;
}

.market-page .category-header h2 {
    color: #ffd15c;
    font-size: 1rem;
}

.market-page .category-profit-badge {
    background: rgba(240, 200, 80, 0.13);
    color: #9be7ff;
    border-color: rgba(240, 200, 80, 0.25);
}

/* Product info grid (new compact card) */
.product-info-grid {
    display: grid;
    gap: 3px;
}
.product-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 0;
    border-bottom: 1px solid rgba(255, 255, 242, 0.96);
}
.product-info-row:last-child {
    border-bottom: none;
    padding-top: 2px;
    border-top: 1px solid rgba(255, 209, 92, 0.15);
}
.product-info-label {
    font-size: 0.55rem;
    color: rgba(225, 169, 3, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}
.product-info-val {
    font-size: 0.6rem;
    color: rgba(225, 169, 3, 0.9);
    text-align: right;
}
.product-info-val .money-usd {
    font-size: 0.6em;
}
.product-rate {
    color: rgba(255, 209, 92, 0.7);
    font-size: 0.5rem;
}
.product-dates {
    font-size: 0.65rem;
    color: rgba(255, 209, 92, 0.8);
    font-weight: 600;
}

.product-active-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 4px 0 10px;
}

.product-active-inv {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #ffd15c;
    background: rgba(255, 209, 92, 0.1);
    border: 1px solid rgba(255, 209, 92, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: bold;
}

.active-badge-dot {
    width: 8px;
    height: 8px;
    background-color: #ffd15c;
    border-radius: 50%;
    display: inline-block;
    animation: badge-pulse 1.5s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 209, 92, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 209, 92, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 209, 92, 0);
    }
}

/* ── Investment Timeline Bar ── */
.inv-timeline {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inv-timeline-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(225, 169, 3, 0.08);
    overflow: hidden;
}

.inv-timeline-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width 1s linear;
}

.inv-timeline-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.inv-timeline-remaining {
    color: #ffd15c;
    font-weight: 700;
}

.inv-timeline-pct {
    color: rgba(225, 169, 3, 0.5);
    font-size: 10px;
}

.inv-timeline-sm .inv-timeline-track {
    height: 4px;
}

.inv-timeline-sm .inv-timeline-labels {
    font-size: 10px;
}

.active-inv-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.hidden {
    display: none !important;
}

/* Admin Tabs and Active View Highlight Styles */
.admin-tabs-container {
    margin-top: 18px;
    background: rgba(30, 28, 31, 0.94);
    border: 1px solid rgba(255, 198, 79, 0.14);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.admin-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    background: rgba(18, 18, 20, 0.98);
    border-bottom: 1px solid rgba(255, 198, 79, 0.14);
    padding: 0 10px;
}

.admin-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255, 244, 214, 0.6);
    padding: 12px 18px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.admin-tab-btn:hover {
    color: #ffd96a;
    background: rgba(225, 169, 3, 0.02);
}

.admin-tab-btn.active {
    color: #ffd96a;
    border-bottom-color: #ffc64f;
    background: rgba(255, 198, 79, 0.06);
}

.admin-tabs-content {
    padding: 16px;
}

.admin-tab-pane {
    display: block;
}

.admin-tab-pane.hidden {
    display: none !important;
}

/* Row Highlight Animation */
@keyframes row-highlight-glow {
    0% {
        background-color: rgba(255, 198, 79, 0.45);
        box-shadow: inset 0 0 10px rgba(255, 198, 79, 0.5);
    }

    100% {
        background-color: transparent;
        box-shadow: inset 0 0 0 transparent;
    }
}

.highlight-glow {
    animation: row-highlight-glow 2.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.highlight-glow td {
    border-top-color: rgba(255, 198, 79, 0.5);
    border-bottom-color: rgba(255, 198, 79, 0.5);
}

/* Close/Hide Button & Panel Headers Style */
.detail-panel-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.14);
    margin-bottom: 12px;
}

.detail-panel-header h2 {
    font-size: 14px;
    color: #ffc64f;
    margin: 0;
    font-weight: 800;
}

.pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(11, 18, 32, 0.6);
    border-bottom: 1px solid rgba(226, 232, 240, 0.12);
    border-radius: 8px 8px 0 0;
    margin-bottom: 14px;
}

.pane-header h3 {
    font-size: 12px;
    font-weight: 700;
    color: #ffc64f;
    margin: 0;
}

.close-detail-btn {
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.38);
    color: #fca5a5;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-detail-btn:hover {
    background: rgba(239, 68, 68, 0.28);
    border-color: rgba(239, 68, 68, 0.55);
    color: #fecaca;
    transform: translateY(-1px);
}

.close-detail-btn:active {
    transform: none;
}

/* =====================================================
   Withdraw Wizard — Step-by-step form
   ===================================================== */

.withdraw-wizard {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Progress bar */
.wizard-progress {
    margin-bottom: 20px;
}

.wizard-progress-track {
    position: relative;
    height: 4px;
    background: rgba(225, 169, 3, 0.08);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 10px;
}

.wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent, #ffd15c), #ffb300);
    border-radius: 99px;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px;
}

.wiz-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(225, 169, 3, 0.07);
    border: 1.5px solid rgba(225, 169, 3, 0.852);
    color: rgba(225, 169, 3, 0.35);
    transition: all 0.3s ease;
    user-select: none;
}

.wiz-dot.active {
    background: rgba(255, 209, 92, 0.15);
    border-color: var(--accent, #ffd15c);
    color: var(--accent, #ffd15c);
}

.wiz-dot.current {
    background: var(--accent, #ffd15c);
    border-color: var(--accent, #ffd15c);
    color: #1a1000;
    box-shadow: 0 0 12px rgba(255, 209, 92, 0.45);
    transform: scale(1.15);
}

/* Step card */
.wizard-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(225, 169, 3, 0.025);
    border: 1px solid rgba(225, 169, 3, 0.08);
    border-radius: 8px;
    padding: 22px 20px;
    animation: wizardStepIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wizard-step.hidden {
    display: none !important;
}

@keyframes wizardStepIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step header */
.wizard-step-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(225, 169, 3, 0.06);
}

.wizard-step-header .step-num {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent, #ffd15c);
    opacity: 0.85;
}

.wizard-step-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
}

/* Fields container */
.wizard-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Action row */
.wizard-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.wizard-actions .btn,
.wizard-actions a.btn {
    flex: 1;
    min-height: 46px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.92rem;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.wizard-actions .btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none;
}

.wizard-actions .btn.hidden {
    display: none !important;
}

/* =====================================================
   USD Amount Input + UGX Equivalent Chip
   ===================================================== */

.usd-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.usd-input-wrap .currency-badge {
    position: absolute;
    left: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #43e97b;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.usd-input-wrap input {
    width: 100%;
    padding-left: 36px !important;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 2px solid rgba(67, 233, 123, 0.35) !important;
    background: rgba(67, 233, 123, 0.04) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.usd-input-wrap input:focus {
    border-color: rgba(67, 233, 123, 0.75) !important;
    box-shadow: 0 0 0 3px rgba(67, 233, 123, 0.12) !important;
    outline: none;
}

.ugx-equivalent {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 9px 14px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.10), rgba(56, 189, 248, 0.08));
    border: 1px solid rgba(67, 233, 123, 0.25);
    animation: fadeSlideIn 0.22s ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ugx-label {
    font-size: 1rem;
    color: rgba(225, 169, 3, 0.5);
    font-weight: 600;
}

.ugx-equivalent strong {
    font-size: 1rem;
    font-weight: 700;
    color: #43e97b;
    letter-spacing: 0.01em;
}

.ugx-rate-note {
    font-size: 0.72rem;
    color: rgba(225, 169, 3, 0.42);
    margin-left: auto;
    white-space: nowrap;
}

/* Method Select Cards */
.method-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

@media (max-width: 480px) {
    .method-selector-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

.method-select-card {
    background: linear-gradient(135deg, rgba(225, 169, 3, 0.03), rgba(225, 169, 3, 0.005));
    border: 1px solid rgba(225, 169, 3, 0.08);
    border-radius: 10px;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff;
    width: 100%;
}

.method-select-card:hover {
    background: linear-gradient(135deg, rgba(225, 169, 3, 0.07), rgba(225, 169, 3, 0.02));
    border-color: var(--accent, #ffd15c);
    box-shadow: 0 8px 20px rgba(255, 209, 92, 0.1);
    transform: translateY(-2px);
}

.method-select-card:active {
    transform: translateY(0);
}

.method-select-card .method-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(225, 169, 3, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent, #ffd15c);
    border: 1px solid rgba(225, 169, 3, 0.06);
    transition: all 0.25s ease;
}

.method-select-card:hover .method-icon {
    background: rgba(255, 209, 92, 0.1);
    border-color: var(--accent, #ffd15c);
    color: #fff;
}

.method-select-card .method-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.method-select-card .method-details h4 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 650;
    color: #fff;
}

.method-select-card .method-details p {
    margin: 2px 0 0;
    font-size: 0.62rem;
    color: rgba(225, 169, 3, 0.55);
}

/* Custom spacing for saved cards in amount steps */
.withdraw-wizard .deposit-method-panel {
    background: rgba(225, 169, 3, 0.015);
    border: 1px solid rgba(225, 169, 3, 0.06);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.withdraw-wizard .deposit-method-panel h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--accent, #ffd15c);
}

.withdraw-wizard .deposit-method-panel p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(225, 169, 3, 0.75);
    line-height: 1.4;
}

/* =====================================================
   Deposit Wizard layout style
   ===================================================== */
.deposit-wizard {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* =====================================================
   App Download Section in User Profile
   ===================================================== */
.app-download-card {
    display: flex;
    flex-direction: column;
}

.app-download-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

@media (min-width: 480px) {
    .app-download-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

.app-download-buttons a.btn {
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    min-height: 40px;
    padding: 10px 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-download-buttons a.btn.primary {
    background: linear-gradient(135deg, #c0392b, #4ade80);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(214, 48, 49, 0.2);
}

.app-download-buttons a.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 48, 49, 0.45);
    filter: brightness(1.1);
}

.app-download-buttons a.btn.outline {
    background: rgba(225, 169, 3, 0.02);
    border: 1px solid rgba(225, 169, 3, 0.855);
    color: rgba(225, 169, 3, 0.85);
}

.app-download-buttons a.btn.outline:hover {
    border-color: #ffd15c;
    color: #ffd15c;
    background: rgba(255, 209, 92, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 209, 92, 0.15);
}

.app-download-buttons a.btn svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.app-download-buttons a.btn:hover svg {
    transform: translateY(1px);
}
/* Final Manage Users table alignment override */
#users .table-wrap {
    overflow-x: auto;
}

#users .users-admin-table {
    width: max-content;
    min-width: 1670px;
    table-layout: fixed;
}

#users .users-admin-table col.users-col-user,
#users .users-admin-table th:nth-child(1),
#users .users-admin-table td:nth-child(1) { width: 118px !important; }
#users .users-admin-table col.users-col-login,
#users .users-admin-table th:nth-child(2),
#users .users-admin-table td:nth-child(2) { width: 170px !important; }
#users .users-admin-table col.users-col-money,
#users .users-admin-table th:nth-child(3),
#users .users-admin-table td:nth-child(3),
#users .users-admin-table th:nth-child(4),
#users .users-admin-table td:nth-child(4),
#users .users-admin-table th:nth-child(5),
#users .users-admin-table td:nth-child(5),
#users .users-admin-table th:nth-child(6),
#users .users-admin-table td:nth-child(6) { width: 160px !important; }
#users .users-admin-table col.users-col-income,
#users .users-admin-table th:nth-child(7),
#users .users-admin-table td:nth-child(7) { width: 132px !important; }
#users .users-admin-table col.users-col-commission,
#users .users-admin-table th:nth-child(8),
#users .users-admin-table td:nth-child(8),
#users .users-admin-table th:nth-child(9),
#users .users-admin-table td:nth-child(9) { width: 180px !important; }
#users .users-admin-table col.users-col-status,
#users .users-admin-table th:nth-child(10),
#users .users-admin-table td:nth-child(10) { width: 118px !important; }
#users .users-admin-table col.users-col-referral,
#users .users-admin-table th:nth-child(11),
#users .users-admin-table td:nth-child(11) { width: 140px !important; }
#users .users-admin-table col.users-col-activity,
#users .users-admin-table th:nth-child(12),
#users .users-admin-table td:nth-child(12) { width: 210px !important; }
#users .users-admin-table col.users-col-actions,
#users .users-admin-table th:nth-child(13),
#users .users-admin-table td:nth-child(13) { width: 230px !important; }

#users .users-admin-table th,
#users .users-admin-table td {
    min-width: 0 !important;
    padding: 12px 8px;
    vertical-align: top;
}

#users .users-admin-table td.user-name-cell,
#users .users-admin-table td.user-login-cell {
    display: table-cell !important;
}

#users .users-admin-table th:last-child,
#users .users-admin-table td:last-child {
    position: static !important;
    right: auto !important;
    z-index: auto !important;
    min-width: 0 !important;
    background: inherit;
    box-shadow: none !important;
}

#users .users-admin-table thead th:last-child {
    background: #171618;
}

#users .users-admin-table .money-control,
#users .users-admin-table .cell-action-buttons {
    width: 100% !important;
}

#users .users-admin-table .table-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: flex-start;
}

#users .users-admin-table .table-actions button {
    min-height: 28px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1;
}
/* Refund button for Manage Users actions */
.refund-btn {
    background: #22d3ee;
    color: #05252d;
}

/* Product Management Table */
.admin-products-table {
    width: 100%;
    min-width: 1100px; /* Added to ensure all inputs fit without squashing */
    border-collapse: collapse;
    font-size: 13px;
}
.admin-products-table th {
    text-align: left;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-products-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: middle;
}
.admin-products-table tr:hover {
    background: rgba(255,255,255,0.04);
}
.admin-products-table td:last-child {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: 180px; /* Lock the width for action buttons */
}

.btn-save, .btn-pause, .btn-resume, .admin-products-table .delete-btn {
    flex: 1;
    min-width: 50px;
    max-width: 65px;
    height: 30px;
    padding: 0 4px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px !important;
    white-space: nowrap;
}
.product-edit-input {
    width: 100%;
    max-width: 130px;
    padding: 4px 2px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 11px; /* Reduced for better fit */
    text-align: center;
}

/* Hide spin buttons to save space inside small boxes */
.product-edit-input::-webkit-outer-spin-button,
.product-edit-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.product-edit-input[type=number] {
    -moz-appearance: textfield;
}

select.product-edit-input {
    text-align: left;
    padding-right: 4px;
    cursor: pointer;
}

.product-edit-input::placeholder {
    color: rgba(225, 169, 3, 0.3);
    font-size: 10px;
}
.product-edit-input:focus {
    outline: none;
    border-color: #c0392b;
    background: rgba(255,255,255,0.1);
}
.badge-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.badge-ok {
    background: rgba(255,71,87,0.15);
    color: #c0392b;
}
.badge-warn {
    background: rgba(255,200,50,0.15);
    color: #ffc832;
}
.btn-resume {
    background: #22d3ee;
    color: #05252d;
    font-weight: 700;
}
.btn-resume:hover {
    filter: brightness(1.15);
}
.btn-pause {
    background: rgba(255,143,143,0.15);
    color: #ff8f8f;
    border: 1px solid rgba(255,143,143,0.3);
}
.btn-pause:hover {
    background: rgba(255,143,143,0.25);
}
.btn-save {
    background: rgba(255,71,87,0.18);
    color: #c0392b;
    border: 1px solid rgba(255,71,87,0.35);
    font-weight: 700;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 8px;
    cursor: pointer;
}
.admin-terms-save-btn {
    background: #c0392b;
    color: #fff;
    font-weight: 700;
    padding: 10px 22px;
    font-size: 13px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}
.admin-terms-save-btn:hover {
    filter: brightness(1.1);
}
.admin-terms-reset-btn {
    background: transparent;
    color: #aaa;
    font-weight: 600;
    padding: 10px 22px;
    font-size: 13px;
    border: 1px solid #555;
    border-radius: 8px;
    cursor: pointer;
}
.admin-terms-reset-btn:hover {
    border-color:   #00ad2b;
    color: #ddd;
}
.btn-save:hover {
    background: rgba(255,71,87,0.32);
}
.product-duration-group {
    display: flex;
    gap: 4px; /* Reduced gap to fit all 4 inputs */
    align-items: flex-end;
}
.product-duration-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.product-duration-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}
.product-duration-input {
    width: 36px !important; /* Narrower to fit the 4-column group */
    max-width: 36px !important;
    text-align: center;
    padding: 4px 2px !important; /* Minimal padding */
    font-size: 11px !important; /* Smaller font for small boxes */
    border-radius: 4px !important;
}

.admin-locks-table {
    min-width: 0;
    width: 100%;
}
.admin-locks-table thead {
    position: static;
}
.admin-locks-table th,
.admin-locks-table th:last-child {
    position: static !important;
    z-index: auto !important;
    background: #191c21 !important;
    box-shadow: none !important;
    min-width: auto !important;
}
.admin-locks-table td,
.admin-locks-table td:last-child {
    position: static !important;
    z-index: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    min-width: auto !important;
}
.admin-locks-table td,
.admin-locks-table th {
    white-space: nowrap;
    padding: 10px 12px;
}

/* Alert pill colors */
.pill-deposit { background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.pill-withdrawal { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.pill-investment { background: rgba(168,85,247,0.15); color: #a855f7; border: 1px solid rgba(168,85,247,0.3); }
.pill-referral { background: rgba(240,181,50,0.15); color: #00ad2b; border: 1px solid rgba(240,181,50,0.3); }
.pill-support { background: rgba(234,179,8,0.15); color: #eab308; border: 1px solid rgba(234,179,8,0.3); }
.pill-admin { background: rgba(99,102,241,0.15); color: #6366f1; border: 1px solid rgba(99,102,241,0.3); }
.pill-reward { background: rgba(34,211,238,0.15); color: #22d3ee; border: 1px solid rgba(34,211,238,0.3); }
.pill-deduction { background: rgba(249,115,22,0.15); color: #f97316; border: 1px solid rgba(249,115,22,0.3); }
.pill-account { background: rgba(156,163,175,0.15); color: #9ca3af; border: 1px solid rgba(156,163,175,0.3); }
.pill-default { background: rgba(156,163,175,0.15); color: #9ca3af; border: 1px solid rgba(156,163,175,0.3); }

.admin-alert-count {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    padding: 0 0 10px;
}

.alert-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.alert-card.is-shaded {
    background: rgba(255,255,255,0.05);
}
.alert-activity-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

/* Cache bust */

/* Dual currency display (UGX + USDT) */
.money-ugx {
    display: block;
    line-height: 1.2;
}
.money-usd {
    display: block;
    color: rgba(225, 169, 3, 0.45);
    font-size: 0.65em;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 0px;
}
td .money-usd,
th .money-usd {
    font-size: 0.6em;
}
.stat-value .money-usd {
    font-size: 0.55em;
}
.total-bal-val .money-usd,
.deposited-bal-val .money-usd,
.withdrawable-bal-val .money-usd {
    font-size: 0.6em;
}
.btn .money-usd,
button .money-usd {
    display: none;
}

/* Product card income details (kept for admin cards) */

/* === Admin Alert Popup Notification === */
.admin-alert-popup {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 8000;
    width: min(420px, calc(100vw - 36px));
    border: 1px solid rgba(255, 115, 115, 0.4);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 12, 14, 0.98), rgba(20, 6, 10, 0.98));
    box-shadow: 0 24px 60px rgba(255, 60, 60, 0.18), 0 8px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    animation: adminAlertSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    overflow: hidden;
}
.admin-alert-popup[hidden] {
    display: none;
}
@keyframes adminAlertSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
@keyframes adminAlertSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
}
.admin-alert-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 0;
}
.admin-alert-popup-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff7373;
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    flex-shrink: 0;
    animation: adminAlertPulse 1.2s ease-in-out infinite;
}
@keyframes adminAlertPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 115, 115, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(255, 115, 115, 0); }
}
.admin-alert-popup-title {
    flex: 1;
    color: #ffb4b4;
    font-size: 14px;
    font-weight: 800;
}
.admin-alert-popup-close {
    background: transparent;
    border: 0;
    color: rgba(225, 169, 3, 0.5);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.admin-alert-popup-close:hover {
    color: #fff;
}
.admin-alert-popup-body {
    padding: 10px 16px 0;
    color: rgba(225, 169, 3, 0.85);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}
.admin-alert-popup-actions {
    display: flex;
    gap: 8px;
    padding: 14px 16px 14px;
}
.admin-alert-popup-view-btn {
    flex: 1;
    background: #ff7373;
    color: #1a0505;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}
.admin-alert-popup-view-btn:hover {
    filter: brightness(1.1);
}
.admin-alert-popup-dismiss-btn {
    background: transparent;
    color: rgba(225, 169, 3, 0.55);
    font-size: 13px;
    padding: 9px 14px;
    border: 1px solid rgba(225, 169, 3, 0.85);
    border-radius: 8px;
    cursor: pointer;
}
.admin-alert-popup-dismiss-btn:hover {
    border-color: rgba(225, 169, 3, 0.3);
    color: #fff;
}

/* =============================================
   USER PAGE COMPLETE STYLING OVERHAUL
   - Squared cards with solid distinct colors
   - Bright red top & bottom nav
   - High-contrast readable text
   - Clear deposit/withdraw panels
   ============================================= */

/* ── Top nav bright red ── */
body[data-page="user"] .site-header {
    background: #a96b29 !important;
    border-bottom: none !important;
    box-shadow: 0 2px 12px rgba(240,181,50,0.25);
}
body[data-page="user"] .site-header .brand,
body[data-page="user"] .site-header .brand {
    flex-direction: row !important;
    align-items: center !important;
    align-self: center !important;
    gap: 0px !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    line-height: 1 !important;
}
body[data-page="user"] .site-header .brand span {
    color: #f0ece6 !important;
    font-size: 1.3rem !important;
    font-weight: 900 !important;
    letter-spacing: 1px;
    opacity: 1;
}
body[data-page="user"] .brand-logo,
body[data-page="user"] .site-header .brand img {
    box-shadow: none !important;
    background: rgba(255,255,255,0.35);
    padding: 2px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.5);
}
body[data-page="user"] .top-nav a {
    color: #f0ece6 !important;
    border-color: rgba(0,0,0,0.3) !important;
    background: rgba(0,0,0,0.35) !important;
    font-size: 12px !important;
    padding: 0 !important;
    letter-spacing: 0.3px;
}
body[data-page="user"] .top-nav a:hover,
body[data-page="user"] .top-nav a.active {
    background: rgba(0,0,0,0.55) !important;
    color: #00ad2b !important;
    border-color: transparent !important;
}
body[data-page="user"] .nav-search-btn {
    border-color: rgba(255,255,255,0.3) !important;
    color: #f0ece6 !important;
    background: transparent !important;
}
body[data-page="user"] .nav-search-btn:hover,
body[data-page="user"] .nav-search-btn[aria-expanded="true"] {
    background: rgba(255,255,255,0.2) !important;
    color: #f0ece6 !important;
    border-color: rgba(255,255,255,0.5) !important;
}

/* ── Top nav menu button & dropdown ── */
.menu-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.35);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.menu-btn:hover,
.menu-btn[aria-expanded="true"] {
    background: rgba(0,0,0,0.55) !important;
    border-color: transparent !important;
}
body.light-theme .menu-btn {
    background: #1a1a2e;
    border-color: rgba(0,0,0,0.12);
    color: #fff;
}
.menu-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    min-width: 150px;
}
.top-nav .menu-dropdown a,
.top-nav .menu-dropdown button:not(.theme-toggle-btn) {
    padding: 8px 12px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    border: none !important;
    background: transparent !important;
    color: #f0ece6 !important;
    height: auto !important;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    white-space: nowrap;
}
body[data-page="user"] .top-nav .menu-dropdown a:hover,
body[data-page="user"] .top-nav .menu-dropdown button:not(.theme-toggle-btn):hover {
    background: rgba(255,255,255,0.1) !important;
    color: #f0ece6 !important;
    border-color: transparent !important;
}
body.light-theme .menu-dropdown {
    background: #f5efe6;
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
body.light-theme .top-nav .menu-dropdown a,
body.light-theme .top-nav .menu-dropdown button:not(.theme-toggle-btn) {
    color: #222 !important;
}
body.light-theme .top-nav .menu-dropdown a:hover,
body.light-theme .top-nav .menu-dropdown button:not(.theme-toggle-btn):hover {
    background: rgba(0,0,0) !important;
}
.top-nav .menu-dropdown .theme-toggle-btn {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    flex-shrink: 0;
}

/* ── User page dashboard metrics 3-col grid ── */
body[data-page="user"] .dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
@media (max-width: 560px) {
    body[data-page="user"] .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 380px) {
    body[data-page="user"] .dashboard-metrics {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    body[data-page="user"] .dashboard-metrics .metric span {
        white-space: normal;
    }
}
body[data-page="user"] .dashboard-metrics .metric {
    min-height: unset;
    padding: 10px 12px;
    overflow: visible;
}
body[data-page="user"] .dashboard-metrics .metric span {
    font-size: 0.7rem;
    color: #555;
    display: block;
    white-space: nowrap;
    line-height: 1.2;
}
body[data-page="user"] .dashboard-metrics .metric strong {
    font-size: 1rem;
    color: #111;
    display: block;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ── User page product summary 3-col grid ── */
body[data-page="user"] .portfolio-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
@media (max-width: 560px) {
    body[data-page="user"] .portfolio-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 380px) {
    body[data-page="user"] .portfolio-summary-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
body[data-page="user"] .team-summary article {
    min-height: unset;
    padding: 12px 14px;
    gap: 4px;
    background: rgba(176, 186, 138, 0.95);
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(149, 15, 15);
}
body[data-page="user"] .team-summary .team-total-card {
    grid-column: 1 / -1;
}
.team-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.team-level-item {
    text-align: center;
    padding: 6px 4px;
    border-radius: 8px;
    background: rgba(0,0,0,0.05);
}
.team-level-item .level-name {
    font-size: 0.65rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 4px;
}
.team-level-item .level-stat {
    font-size: 0.6rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    padding: 1px 4px;
}
.team-level-item .level-stat strong {
    font-size: 0.65rem;
    color: #111;
}
.team-earning-table {
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,173,43,0.3);
    background: rgba(176, 186, 138, 0.95);
    box-shadow: 0 2px 8px rgba(149,15,15);
}
.earning-section {
    padding: 12px 14px;
}
.earning-section + .earning-section {
    border-top: 1px solid rgba(0,0,0,0.1);
}
.earning-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.earning-subtitle {
    font-size: 0.65rem;
    color: #666;
    margin-bottom: 8px;
}
.earning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.earning-col {
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    background: rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.earning-level {
    font-size: 0.8rem;
    font-weight: 900;
    color: #111;
}
.earning-rate {
    font-size: 0.9rem;
    font-weight: 800;
    color: #00ad2b;
}
body[data-page="user"] .team-summary article:nth-child(2) {
    border-color: #27ae60;
}
body[data-page="user"] .team-summary article:nth-child(3) {
    border-color: #8e44ad;
}
body[data-page="user"] .team-summary .team-commission-card {
    min-height: 70px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 12px 14px;
    background: rgba(176, 186, 138, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(149, 15, 15);
}
body[data-page="user"] .team-summary .team-commission-card span {
    font-size: 0.6rem;
    color: #666;
}
body[data-page="user"] .team-summary .team-commission-card strong {
    font-size: 13px;
    color: #111;
}
body[data-page="user"] .team-summary span {
    font-size: 0.6rem;
    color: #666;
}
body[data-page="user"] .team-summary strong {
    font-size: 13px;
    color: #111;
}
body[data-page="user"] .team-column {
    padding: 12px 14px;
    gap: 6px;
    background: rgba(163, 188, 72, 0.95);
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(149, 15, 15);
}
body[data-page="user"] .team-column:nth-child(2) {
    border-color: #27ae60;
}
body[data-page="user"] .team-column:nth-child(3) {
    border-color: #8e44ad;
}
body[data-page="user"] .team-column h3 {
    font-size: 13px;
    color: #111;
}
body[data-page="user"] .team-column strong {
    font-size: 13px;
    color: #111;
}
body[data-page="user"] .team-column small {
    font-size: 0.6rem;
}
body[data-page="user"] .team-member {
    padding: 5px 8px;
    gap: 1px;
}
body[data-page="user"] .team-member span {
    font-size: 0.7rem;
}
body[data-page="user"] .team-member small {
    font-size: 0.6rem;
}

/* Referral list card readability */
body[data-page="user"] #teamReferralList > div {
    background: #0f172a !important;
    border-color: rgba(147, 197, 253, 0.25) !important;
}
body[data-page="user"] #teamReferralList > div div[style*="rgba(255,255,255,0.5)"],
body[data-page="user"] #teamReferralList > div div[style*="#94a3b8"] {
    color: #cbd5e1 !important;
}
body[data-page="user"] #teamReferralList > p {
    color: #94a3b8 !important;
}

/* ── Bottom nav removal (now consolidated above) ── */

/* ── All cards/tables squared ── */
body[data-page="user"] .card,
body[data-page="user"] .panel,
body[data-page="user"] .hero,
body[data-page="user"] .metric,
body[data-page="user"] .context-balance-card,
body[data-page="user"] .deposit-method-panel,
body[data-page="user"] .wizard-step,
body[data-page="user"] .method-select-card,
body[data-page="user"] .pending-panel,
body[data-page="user"] .withdraw-terms-card,
body[data-page="user"] .withdraw-setting-card,
body[data-page="user"] .saved-wallet-summary,
body[data-page="user"] .payment-dest-card,
body[data-page="user"] .withdraw-fee-summary,
body[data-page="user"] .live-plan-card,
body[data-page="user"] .product-card,
body[data-page="user"] .coin-card,
body[data-page="user"] .plan,
body[data-page="user"] .user-admin-info,
body[data-page="user"] .history-item,
body[data-page="user"] .dashboard-glass,
body[data-page="user"] .ongoing-investment-card:not(.dashboard-promo-card),
body[data-page="user"] .portfolio-position,
body[data-page="user"] .product-investment-card,
body[data-page="user"] .product-activity,
body[data-page="user"] .allocation-row,
body[data-page="user"] .crypto-order,
body[data-page="user"] .withdraw-terms-info,
body[data-page="user"] .payment-modal-card,
body[data-page="user"] .chat-panel,
body[data-page="user"] .support-ticket-card,
body[data-page="user"] .referral-panel,
body[data-page="user"] .notification-panel,
body[data-page="user"] .dashboard-activity-card,
body[data-page="user"] .dashboard-portfolio-panel,
body[data-page="user"] .dashboard-investment-panel,
body[data-page="user"] .support-ticket,
body[data-page="user"] .notification-item,
body[data-page="user"] .metric,
body[data-page="user"] .context-balance-card,
body[data-page="user"] .wizard-step,
body[data-page="user"] .method-select-card,
body[data-page="user"] .pending-panel,
body[data-page="user"] .deposit-method-panel,
body[data-page="user"] .coin-card,
body[data-page="user"] .feature-grid .card {
    background: rgba(255, 247, 234) !important;
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0) !important;
}

/* ── Hero solid white ── */
body[data-page="user"] .hero {
    background: rgba(255, 247, 234);
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0);
}

body[data-page="user"] .feature-grid .card {
    background: rgba(255, 247, 234);
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0);
}
body[data-page="user"] .feature-grid .card:nth-child(1) {
    border-left: 6px solid #00ad2b;
}
body[data-page="user"] .feature-grid .card:nth-child(2) {
    border-left: 6px solid #7a6850;
}
body[data-page="user"] .feature-grid .card:nth-child(3) {
    border-left: 6px solid #6b8f5e;
}

/* ── Remove ALL glass/blur/gradient effects on user pages ── */
body[data-page="user"] .site-header,
body[data-page="user"] .notification-panel,
body[data-page="user"] .nav-search-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body[data-page="user"] .method-select-card:hover {
    background: rgba(255, 247, 234) !important;
}
body[data-page="user"] .ugx-equivalent {
    background: rgba(255, 247, 234) !important;
}
body[data-page="user"] .panel-close {
    background: #c0392b !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
}
body[data-page="user"] .panel-close:hover {
    background: #a93226 !important;
    transform: scale(1.1);
}
body[data-page="user"] .menu-btn {
    background: #c0392b !important;
    border-color: #fff !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(192,57,43,0.5) !important;
}
body[data-page="user"] .menu-btn:hover {
    background: #a93226 !important;
}

/* ── Metrics panel solid ── */
body[data-page="user"] .metric {
    background: rgba(255, 247, 234);
    border: none;
}
body[data-page="user"] .balance-panel {
    background: rgba(255, 247, 234);
    border: none;
    padding: 12px;
    gap: 6px;
}

/* ── Context balance cards - solid distinct colors ── */
body[data-page="user"] .context-balance-card {
    border-width: 0;
    border-radius: 16px !important;
}
body[data-page="user"] .context-balance-card:nth-child(1) {
    background: rgba(255, 247, 234);
    border-color: transparent;
}
body[data-page="user"] .context-balance-card:nth-child(2) {
    background: rgba(255, 247, 234);
    border-color: transparent;
}
body[data-page="user"] .context-balance-card:nth-child(3) {
    background: rgba(255, 247, 234);
    border-color: transparent;
}
body[data-page="user"] .context-balance-card:nth-child(3) strong {
    color: #2e7d32 !important;
}

/* ── Dashboard glass panel ── */
body[data-page="user"] .dashboard-glass {
    background: rgba(255, 247, 234) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body[data-page="user"] .dashboard-glass::before {
    display: none !important;
}

/* ── Live plan cards ── */
body[data-page="user"] .live-plan-card {
    background: rgba(255, 247, 234);
    border: none;
}
body[data-page="user"] .live-plan-card::before {
    background: #00ad2b;
    color: #fff;
    border-radius: 0;
}
body[data-page="user"] .live-plan-card strong {
    color: #00ad2b !important;
}

/* ── Deposit / Withdraw panels ── */
body[data-page="user"] #deposit .panel.narrow,
body[data-page="user"] #withdraw .panel.narrow {
    background: #d2c9b021;
    border: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0);
    border-radius: 16px !important;
}
body[data-page="user"] .wizard-step {
    background: rgba(255, 247, 234);
    border: none;
}
body[data-page="user"] .wizard-step-header .step-num {
    color: #00ad2b !important;
}
body[data-page="user"] .wizard-step-header h3 {
    color: #222 !important;
    font-weight: 700;
}
body[data-page="user"] .wizard-progress-fill {
    background: #00ad2b !important;
}
body[data-page="user"] .wiz-dot.active,
body[data-page="user"] .wiz-dot.current {
    background: #00ad2b !important;
    border-color: transparent !important;
    color: #f0ece6 !important;
}
body[data-page="user"] .method-select-card {
    background: rgba(252, 255, 155, 0.4) !important;
    border: none;
    border-radius: 16px !important;
}
body[data-page="user"] .method-select-card:hover {
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(240,181,50,0.12);
}
body[data-page="user"] .method-select-card .method-details h4 {
    color: #222 !important;
}
body[data-page="user"] .deposit-method-panel {
    background: rgba(255, 247, 234);
    border: none;
}

/* ── Form fields more visible ── */
body[data-page="user"] .form input:not([type="checkbox"]):not([type="radio"]),
body[data-page="user"] .form select,
body[data-page="user"] .form textarea {
    border: 1px solid #ddd !important;
    background: #f5efe6 !important;
    color: #111 !important;
    border-radius: 12px !important;
}
body[data-page="user"] .form input:not([type="checkbox"]):not([type="radio"]):focus,
body[data-page="user"] .form select:focus,
body[data-page="user"] .form textarea:focus {
    border-color: transparent !important;
    box-shadow: 0 0 0 3px rgba(240,181,50,0.12) !important;
    outline: none !important;
}
body[data-page="user"] .form label {
    color: #00ad2b !important;
    font-weight: 700 !important;
}

/* ── Buttons more visible ── */
body[data-page="user"] .btn.primary {
    background: #00ad2b;
    color: #fff;
    border: none;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(240,181,50,0.2);
}
body[data-page="user"] .btn.outline {
    border: none;
    color: #00ad2b;
    background: transparent;
    border-radius: 16px !important;
}
body[data-page="user"] .btn.outline:hover {
    background: #00ad2b;
    color: #fff;
}
body[data-page="user"] #withdrawForm .btn.primary {
    border: none !important;
}

/* ── Highlight all text - darker, bolder, more visible ── */
body[data-page="user"] h1,
body[data-page="user"] h2,
body[data-page="user"] h3 {
    color: #111 !important;
    font-weight: 800 !important;
}
body[data-page="user"] p,
body[data-page="user"] span,
body[data-page="user"] label,
body[data-page="user"] .eyebrow,
body[data-page="user"] small,
body[data-page="user"] strong,
body[data-page="user"] .message {
    color: #00ad2b !important;
}
body[data-page="user"] .eyebrow {
    color: #00ad2b !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
}
body[data-page="user"] .hero p,
body[data-page="user"] .hero h1,
body[data-page="user"] .panel h1,
body[data-page="user"] .panel h2 {
    color: #111 !important;
}
body[data-page="user"] .hero p {
    color: #444 !important;
}
body[data-page="user"] .message {
    color: #00ad2b !important;
    font-weight: 700 !important;
}
body[data-page="user"] .message.success {
    color: #2e7d32 !important;
    background: rgba(46, 125, 50, 0.08);
}
body[data-page="user"] .message.pending-status {
    color: #c0392b !important;
    background: rgba(192, 57, 43, 0.08);
}
body[data-page="user"] .message.error {
    color: #c49b00 !important;
}
body[data-page="user"] .status-completed,
body[data-page="user"] .status-processed,
body[data-page="user"] .status-approved,
body[data-page="user"] .status-active,
body[data-page="user"] .transaction-status.status-completed,
body[data-page="user"] .transaction-status.status-processed,
body[data-page="user"] .transaction-status.status-approved,
body[data-page="user"] .transaction-status.status-active {
    color: #1a7a3a !important;
    background: rgba(40, 167, 69, 0.15) !important;
}
body[data-page="user"] .card p,
body[data-page="user"] .metric span {
    color: #444 !important;
}
body[data-page="user"] .balance-panel strong {
    color: #00ad2b !important;
    font-size: 1.6rem !important;
}
body[data-page="user"] .balance-panel > span {
    color: #666 !important;
}

/* ── Dashboard / Investment panels ── */
body[data-page="user"] .dashboard-investment-panel,
body[data-page="user"] .dashboard-portfolio-panel,
body[data-page="user"] .market-portfolio-panel,
body[data-page="user"] .investment-plan-section {
    background: rgba(255, 247, 234);
    border: none;
    border-radius: 16px !important;
}
body[data-page="user"] .section-label {
    font-size: 13px;
    font-weight: 700;
    padding: 10px 12px 6px;
    margin: 0;
}
body[data-page="user"] .section-label.ongoing-label {
    color: #1a73e8;
}
body[data-page="user"] .section-label.completed-label {
    color: #2e7d32;
}
body[data-page="user"] .plan-row-title h2 {
    color: #222 !important;
}
body[data-page="user"] .plan-row-title p {
    color: #3d934f !important;
}
body[data-page="user"] .plan-row-title > span {
    background: #00ad2b;
    color: #fff;
    border-radius: 0;
}
body[data-page="user"] .roi-row .plan-row-title > span {
    background: #1a73e8;
    color: #fff;
}
body[data-page="user"] .ongoing-investment-card:not(.dashboard-promo-card) {
    background: rgba(255, 247, 234);
    border: none;
}
body[data-page="user"] .ongoing-investment-card:not(.dashboard-promo-card) small {
    color: #00ad2b !important;
}
body[data-page="user"] .ongoing-investment-card:not(.dashboard-promo-card) strong {
    color: #111 !important;
}
body[data-page="user"] .ongoing-investment-card:not(.dashboard-promo-card) span {
    color: #00ad2b !important;
}
body[data-page="user"] .ongoing-investment-card:not(.dashboard-promo-card) p {
    color: #3d934f !important;
}

#users .users-admin-table .column-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    margin-top: 6px;
    padding: 4px 8px;
    border: 1px solid rgba(58, 217, 219, 0.38);
    border-radius: 5px;
    background: rgba(58, 217, 219, 0.1);
    color: #9ffcff;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

#users .users-admin-table .column-action-btn:hover {
    background: rgba(58, 217, 219, 0.24);
    border-color: #3ad9db;
}
body[data-page="user"] .inv-date-range {
    background: rgba(0, 173, 43, 0.08);
}
body[data-page="user"] .ongoing-investment-card .inv-date-range time {
    color: #3d934f !important;
}
body[data-page="user"] .completed-inv-card {
    background: rgba(255, 247, 234);
    border-color: #2e7d32;
    opacity: 0.85;
}
body[data-page="user"] .completed-inv-card .inv-timeline-fill {
    background: linear-gradient(90deg, #2e7d32, #1b5e20) !important;
}
body[data-page="user"] .completed-inv-card .inv-timeline-remaining {
    color: #2e7d32 !important;
}
body[data-page="user"] .completed-inv-card small {
    color: #2e7d32 !important;
}
body[data-page="user"] .inv-timeline-track {
    background: #e0e0e0 !important;
}
body[data-page="user"] .inv-timeline-fill {
    background: linear-gradient(90deg, #00ad2b, #e6a020) !important;
}
body[data-page="user"] .inv-timeline-remaining {
    color: #e6a020 !important;
}
body[data-page="user"] .inv-timeline-pct {
    color: #999 !important;
}

/* Compact active-mining cards: keep every value visible while using dashboard space efficiently. */
body[data-page="user"] .dashboard-investment-panel {
    gap: 10px;
    padding: 14px;
}
body[data-page="user"] .ongoing-investment-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 14px;
}
body[data-page="user"] .mining-period-upgrade {
    min-width: 0;
    overflow: hidden;
}
body[data-page="user"] .mining-period-upgrade > div {
    flex-wrap: wrap;
}
body[data-page="user"] .mining-period-upgrade select {
    min-width: 0;
    flex: 1 1 170px !important;
}
body[data-page="user"] .mining-period-upgrade .increase-mining-period-btn {
    flex: 1 0 auto;
    width: auto;
}
body[data-page="user"] .completed-mining-toggle {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(0, 173, 43, .18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0,173,43,.14), rgba(212,155,20,.14));
    color: #087f3d;
    font-size: .82rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 10px rgba(25,45,40,.08);
}
body[data-page="user"] .completed-mining-toggle:hover {
    border-color: rgba(0, 173, 43, .34);
    background: linear-gradient(135deg, rgba(0,173,43,.2), rgba(212,155,20,.18));
}
body[data-page="user"] .completed-mining-panel {
    display: grid;
    gap: 10px;
}
body[data-page="user"] .completed-mining-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}
body[data-page="user"] .ongoing-investment-card {
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(25, 45, 40, .16);
}
body[data-page="user"] .ongoing-investment-card > div:first-child {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    line-height: 1.2;
}
body[data-page="user"] .ongoing-investment-card > div:first-child small {
    font-size: .72rem;
    letter-spacing: .02em;
}
body[data-page="user"] .ongoing-investment-card > div:first-child strong {
    font-size: 1rem;
}
body[data-page="user"] .ongoing-investment-card > span {
    display: block;
    font-size: 1.22rem;
    line-height: 1.15;
}
body[data-page="user"] .ongoing-investment-card .money-ugx {
    font-size: inherit;
    line-height: inherit;
}
body[data-page="user"] .ongoing-investment-card br {
    display: none;
}
body[data-page="user"] .ongoing-investment-card .money-usd {
    display: inline;
    margin-left: 6px;
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
}
body[data-page="user"] .ongoing-investment-card > p {
    margin: 0;
    font-size: .76rem;
    line-height: 1.3;
}
body[data-page="user"] .ongoing-investment-card .daily-earnings-row {
    gap: 4px;
    padding: 7px 8px;
    font-size: .72rem;
    line-height: 1.25;
}
body[data-page="user"] .ongoing-investment-card .inv-date-range {
    gap: 6px;
    padding: 7px 8px;
}
body[data-page="user"] .ongoing-investment-card .inv-date-range small {
    margin-bottom: 1px;
    font-size: .62rem;
}
body[data-page="user"] .ongoing-investment-card .inv-date-range time {
    font-size: .68rem;
    line-height: 1.25;
}
body[data-page="user"] .ongoing-investment-card .inv-timeline {
    gap: 3px;
}
body[data-page="user"] .ongoing-investment-card .inv-timeline-track {
    height: 5px;
}
body[data-page="user"] .ongoing-investment-card .inv-timeline-labels {
    font-size: .82rem;
}
body[data-page="user"] .ongoing-investment-card .inv-timeline-pct {
    font-size: .72rem;
}

/* Readable mining layout: active products contain financial values and must
   remain scannable instead of being compressed into many narrow columns. */
@media (min-width: 900px) {
    body[data-page="user"] .ongoing-investment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 601px) and (max-width: 899px) {
    body[data-page="user"] .ongoing-investment-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
body[data-page="user"] .ongoing-investment-card:not(.dashboard-promo-card) {
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(0, 173, 43, .28) !important;
    box-shadow: 0 5px 16px rgba(25, 45, 40, .18);
}
body[data-page="user"] .ongoing-investment-card > div:first-child small {
    font-size: .8rem;
}
body[data-page="user"] .ongoing-investment-card > div:first-child strong {
    font-size: 1.15rem;
}
body[data-page="user"] .ongoing-investment-card > span {
    font-size: 1.45rem;
}
body[data-page="user"] .ongoing-investment-card > p {
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.45;
}
body[data-page="user"] .ongoing-investment-card .daily-earnings-row {
    padding: 10px 12px;
    font-size: .86rem;
    line-height: 1.45;
}
body[data-page="user"] .ongoing-investment-card .inv-date-range {
    padding: 10px 12px;
}
body[data-page="user"] .ongoing-investment-card .inv-date-range small {
    font-size: .7rem;
}
body[data-page="user"] .ongoing-investment-card .inv-date-range time {
    font-size: .8rem;
}
body[data-page="user"] .mining-period-upgrade {
    padding: 13px !important;
}
body[data-page="user"] .mining-period-upgrade > strong {
    font-size: .9rem !important;
}
body[data-page="user"] .mining-period-upgrade > small {
    font-size: .78rem;
    line-height: 1.4;
}
body[data-page="user"] .mining-period-upgrade > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px !important;
}
body[data-page="user"] .mining-period-upgrade select,
body[data-page="user"] .mining-period-upgrade .increase-mining-period-btn {
    min-height: 40px;
    font-size: .82rem !important;
}
/* Native select menus otherwise inherit the application's green/blue text
   styling, which is hard to read against the browser's dropdown surface. */
body[data-page="user"] .mining-period-upgrade select {
    color: #173d25 !important;
    background: #ffffff !important;
    border: 2px solid #d39a1f !important;
    font-weight: 800 !important;
}
body[data-page="user"] .mining-period-upgrade select option {
    color: #172b1d !important;
    background-color: #ffffff !important;
    font-weight: 700 !important;
}
body[data-page="user"] .mining-period-upgrade select option:checked,
body[data-page="user"] .mining-period-upgrade select option:hover {
    color: #ffffff !important;
    background-color: #167a33 !important;
}

/* Team rank cards: clear visual groups for progress, reward, and commission details. */
body[data-page="user"] #bonusTierCards {
    gap: 14px !important;
}
body[data-page="user"] .bonus-tier-card {
    padding: 18px;
    border: 1px solid #e4c15b !important;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffdf4, #f7f1df) !important;
    box-shadow: 0 7px 16px rgba(92, 69, 19, .1);
    opacity: 1;
}
body[data-page="user"] .bonus-tier-card.active {
    border: 2px solid #11a85d !important;
    background: linear-gradient(135deg, #f3fff8, #e8f8ee) !important;
    box-shadow: 0 10px 22px rgba(17, 168, 93, .16);
}
body[data-page="user"] .bonus-tier-card.locked {
    background: linear-gradient(135deg, #fffdf6, #f5f0e5) !important;
    opacity: .86;
}
body[data-page="user"] .bonus-tier-card.completed::after,
body[data-page="user"] .bonus-tier-card.locked::after { display:none; }
body[data-page="user"] .bonus-tier-main { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; }
body[data-page="user"] .bonus-tier-icon { width:52px; height:52px; display:grid; place-items:center; border-radius:15px; background:#fff3c9; font-size:1.72rem; }
body[data-page="user"] .bonus-tier-content { min-width:0; }
body[data-page="user"] .bonus-tier-heading { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
body[data-page="user"] .bonus-tier-name { color:#182b45 !important; font-size:1.18rem !important; letter-spacing:-.01em; }
body[data-page="user"] .bonus-tier-requirement { padding:5px 9px !important; border-radius:999px !important; font-size:.78rem !important; font-weight:800 !important; }
body[data-page="user"] .bonus-tier-description { margin:6px 0 0 !important; color:#245638 !important; font-size:.94rem !important; font-weight:600; line-height:1.48 !important; }
body[data-page="user"] .bonus-tier-reward { min-width:115px; padding-left:14px; border-left:1px solid #e2ddcb; text-align:right; }
body[data-page="user"] .bonus-tier-reward strong { display:block; color:#087d42 !important; font-size:1.13rem !important; white-space:nowrap; }
body[data-page="user"] .bonus-tier-reward strong span { font-size:.88rem !important; }
body[data-page="user"] .bonus-tier-reward > span { display:block; margin-top:4px; color:#356548 !important; font-size:.8rem !important; font-weight:800; }
body[data-page="user"] .bonus-tier-card.locked .bonus-tier-reward strong,
body[data-page="user"] .bonus-tier-card.locked .bonus-tier-reward > span { color:#7b7b7b !important; }
body[data-page="user"] .bonus-tier-progress { height:7px; margin-top:14px; background:#e9e5d9; border-radius:999px; }
body[data-page="user"] .bonus-tier-progress-fill { border-radius:999px; }
body[data-page="user"] .bonus-tier-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; }
body[data-page="user"] .bonus-tier-status { font-size:.88rem !important; }
body[data-page="user"] .bonus-tier-commission { color:#245638 !important; font-size:.83rem !important; font-weight:600; text-align:right; }
@media (max-width: 540px) {
    body[data-page="user"] .bonus-tier-card { padding:14px; }
    body[data-page="user"] .bonus-tier-main { grid-template-columns:auto minmax(0,1fr); gap:10px; }
    body[data-page="user"] .bonus-tier-reward { grid-column:2; min-width:0; padding:8px 0 0; border-left:0; border-top:1px solid #e2ddcb; text-align:left; }
    body[data-page="user"] .bonus-tier-footer { align-items:flex-start; flex-direction:column; gap:4px; }
    body[data-page="user"] .bonus-tier-commission { text-align:left; }
}

/* Team earnings overview and commission cards. */
body[data-page="user"] .team-summary { gap:16px; }
body[data-page="user"] .team-summary .team-total-card {
    min-height:0;
    padding:22px 18px 16px;
    border:1px solid #d9b23f !important;
    border-radius:16px;
    background:linear-gradient(125deg,#fffef4,#fff5ca) !important;
    box-shadow:0 8px 20px rgba(128,95,16,.14);
}
body[data-page="user"] .team-overview-stats { display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:stretch; }
body[data-page="user"] .team-overview-stat { display:grid; gap:5px; align-content:center; min-height:64px; padding:10px 14px; border-radius:12px; background:rgba(255,255,255,.7); }
body[data-page="user"] .team-overview-stat > span { color:#54713d !important; font-size:.78rem !important; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
body[data-page="user"] .team-overview-stat > strong { color:#173b2b !important; font-size:1.3rem !important; line-height:1.1; }
body[data-page="user"] .team-overview-commission { background:linear-gradient(135deg,#126c60,#1b9d7d); box-shadow:0 5px 12px rgba(22,112,89,.2); }
body[data-page="user"] .team-overview-commission > span,
body[data-page="user"] .team-overview-commission > strong { color:#fff !important; }
body[data-page="user"] .team-overview-commission .money-ugx { font-size:1.3rem; }
body[data-page="user"] .team-overview-commission .money-usd { display:inline; margin-left:5px; color:rgba(255,255,255,.82); font-size:.7rem; }
body[data-page="user"] .team-overview-commission br { display:none; }
body[data-page="user"] .team-summary .team-commission-row { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
body[data-page="user"] .team-summary .team-commission-card { position:relative; overflow:hidden; min-height:100px; padding:17px 18px; border:0; border-radius:14px; background:linear-gradient(135deg,#315e9a,#417dc1); box-shadow:0 8px 18px rgba(41,80,135,.2); }
body[data-page="user"] .team-summary .team-commission-card::after { content:""; position:absolute; width:100px; height:100px; right:-38px; top:-48px; border:18px solid rgba(255,255,255,.12); border-radius:50%; }
body[data-page="user"] .team-summary .team-commission-card:nth-child(2) { background:linear-gradient(135deg,#9a581e,#d58b28); }
body[data-page="user"] .team-summary .team-commission-card span { position:relative; z-index:1; color:rgba(255,255,255,.83) !important; font-size:.8rem !important; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
body[data-page="user"] .team-summary .team-commission-card strong { position:relative; z-index:1; color:#fff !important; font-size:1.22rem !important; }
body[data-page="user"] .team-summary .team-commission-card .money-usd { display:block; margin-top:5px; color:rgba(255,255,255,.8); font-size:.7rem; }
@media (max-width:540px) {
    body[data-page="user"] .team-overview-stats,
    body[data-page="user"] .team-summary .team-commission-row,
    body[data-page="user"] .team-levels { grid-template-columns:1fr; gap:10px; }
    body[data-page="user"] .team-overview-stat { min-height:56px; }
}
body[data-page="user"] .product-active-inv {
    background: rgba(252, 255, 155, 0.4) !important;
    border-color: transparent !important;
    color: #00ad2b !important;
}
body[data-page="user"] .active-badge-dot {
    background-color: #22c55e !important;
}
body[data-page="user"] .countdown-val {
    color: #111 !important;
}
body[data-page="user"] .empty-state {
    color:   #00ad2b !important;
    font-weight: 600;
}

/* ── History items ── */
body[data-page="user"] .history-item {
    background: rgba(255, 247, 234);
    border: none;
}
body[data-page="user"] .history-item strong {
    color: #222 !important;
}
body[data-page="user"] .history-item span {
    color: #00ad2b !important;
}

/* ── Invest tabs ── */
body[data-page="user"] .invest-tabs button {
    border: none;
    color: #666;
    background: #f5efe6;
    border-radius: 16px !important;
}
body[data-page="user"] .invest-tabs button.active,
body[data-page="user"] .invest-tabs button:hover {
    border-color: transparent;
    color: #fff;
    background: #00ad2b;
}

/* ── Market tabs ── */
body[data-page="user"] .market-page .product-card {
    border: 1px solid #e0dcd6 !important;
    border-radius: 12px !important;
    background: rgba(252, 255, 155, 0.4) !important;
    box-shadow: 0 2px 8px rgba(0,0,0) !important;
    transition: transform 0.15s, box-shadow 0.15s;
    overflow: hidden;
}
body[data-page="user"] .market-page .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0) !important;
}
body[data-page="user"] .market-page .product-card-media {
    background: #f0ebe0 !important;
    min-height: 70px !important;
}
body[data-page="user"] .market-page .product-card-head h3 {
    font-size: 11px !important;
    color: var(--title-color, #111) !important;
    font-weight: 700 !important;
}
body[data-page="user"] .market-page .product-card strong {
    color: var(--price-color, #c0392b) !important;
}
body[data-page="user"] .market-page .product-card-head span:not(.type-badge):not(.upgrade-badge) {
    background: rgba(240,181,50,0.15) !important;
    color: var(--badge-color, #b8860b) !important;
    border: 1px solid rgba(240,181,50,0.3) !important;
    font-size: 7px !important;
    padding: 1px 5px !important;
}
body[data-page="user"] .market-page .product-card-head .type-badge {
    font-size: 7px !important;
    padding: 1px 5px !important;
}
body[data-page="user"] .product-card-body p,
body[data-page="user"] .product-info-label,
body[data-page="user"] .product-info-val {
    color: var(--text-color, #00ad2b) !important;
    font-size: 9px !important;
}
body[data-page="user"] .market-page .product-card-body p {
    color: var(--text-color, #3d934f) !important;
    font-size: 9px !important;
}
body[data-page="user"] .market-page .product-card .btn {
    color: #111 !important;
    border: none !important;
    font-weight: 700 !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    margin-top: 4px !important;
}
body[data-page="user"] .market-page .category-header h2 {
    color: #111 !important;
    border-bottom-color: #e0e0e0 !important;
}
body[data-page="user"] .market-page .category-profit-badge {
    background: rgba(240,181,50,0.15) !important;
    color: var(--badge-color, #b8860b) !important;
    border-color: rgba(240,181,50,0.3) !important;
}
body[data-page="user"] .market-page .product-info-grid {
    color: var(--info-color, #00ad2b) !important;
    gap: 2px !important;
}
body[data-page="user"] .market-page .product-info-grid span {
    color: var(--text-color, #3d934f) !important;
    font-size: 8px !important;
}
body[data-page="user"] .market-page .product-info-grid strong {
    color: var(--price-color, #111) !important;
}
body[data-page="user"] .market-page .product-card-body {
    padding: 4px 6px !important;
    gap: 2px !important;
}
body[data-page="user"] .market-page .product-info-row {
    padding: 2px 0 !important;
    border-bottom-color: rgba(0,0,0,0.08) !important;
}
body[data-page="user"] .product-card {
    border: 1px solid #e0dcd6;
    border-radius: 12px;
    background: rgba(255, 247, 234);
    box-shadow: 0 2px 8px rgba(0,0,0);
    overflow: hidden;
}
body[data-page="user"] .product-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0);
}
body[data-page="user"] .product-card-media {
    background: #f0ebe0;
    min-height: 100px;
}
body[data-page="user"] .product-card-head h3,
body[data-page="user"] .product-card h3 {
    font-size: 10px;
    color: var(--title-color, #111) !important;
    font-weight: 700;
}
body[data-page="user"] .product-card strong {
    color: var(--price-color, #c0392b) !important;
    font-size: 11px;
}
body[data-page="user"] .product-card p {
    color: var(--text-color, #3d934f) !important;
    font-size: 8px;
    margin: 0;
}
body[data-page="user"] .product-card .btn {
    background: var(--btn-color, #00ad2b) !important;
    color: #111 !important;
    border: none;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 9px;
    margin-top: auto;
}
body[data-page="user"] .product-card-head small {
    background: rgba(240,181,50,0.15);
    color: var(--text-color, #b8860b) !important;
    border: 1px solid rgba(240,181,50,0.3);
}
body[data-page="user"] .product-name-price h3 {
    color: var(--title-color, #111) !important;
}
body[data-page="user"] .product-name-price strong {
    color: var(--price-color, #c0392b) !important;
}
body[data-page="user"] .product-total-payout strong {
    color: var(--title-color, #111) !important;
}
body[data-page="user"] .product-total-payout span {
    color: var(--text-color, #666) !important;
}
body[data-page="user"] .market-page .product-info-row:last-child {
    border-top-color: rgba(0,0,0,0.1) !important;
}
body[data-page="user"] .market-page .product-info-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--info-color, #00ad2b) !important;
}
body[data-page="user"] .market-page .product-info-val {
    font-weight: 600 !important;
    color: var(--price-color, #222) !important;
}
body[data-page="user"] .market-page .product-card .type-badge,
body[data-page="user"] .market-page .product-card .upgrade-badge {
    color: var(--badge-color, #f0b532) !important;
}
html body[data-page="user"].theme-dark .market-page .product-card .type-badge,
html body[data-page="user"].theme-dark .market-page .product-card .upgrade-badge,
html body[data-page="user"].theme-light .market-page .product-card .type-badge,
html body[data-page="user"].theme-light .market-page .product-card .upgrade-badge {
    color: var(--badge-color, #f0b532) !important;
    background: rgba(240, 181, 50, 0.15) !important;
    border-color: rgba(240, 181, 50, 0.3) !important;
}

/* ── Withdraw terms ── */
body[data-page="user"] #withdrawTermsInfo {
    border-radius: 16px !important;
    background: rgba(255, 247, 234);
    border: none;
}

/* ── Pending panel ── */
body[data-page="user"] .pending-panel {
    background: rgba(255, 247, 234);
    border: none;
}
body[data-page="user"] .pending-detail {
    background: rgba(255, 247, 234);
    border: none;
    border-radius: 16px !important;
}

/* ── User admin info ── */
body[data-page="user"] .user-admin-info {
    background: rgba(255, 247, 234);
    border: 2px solid #f9a825;
}

/* ── Payment modal ── */
body[data-page="user"] .payment-modal-card {
    background: rgba(255, 247, 234);
    border: none;
}

/* ── Coin cards ── */
body[data-page="user"] .coin-card {
    background: rgba(255, 247, 234);
    border: none;
}

/* ── Withdraw fee summary ── */
body[data-page="user"] .withdraw-fee-summary {
    background: rgba(255, 247, 234);
    border: none;
}
body[data-page="user"] .withdraw-fee-summary strong {
    color: #00ad2b !important;
}

/* ── USD input styling for user page ── */
body[data-page="user"] .usd-input-wrap input {
    border-color: #2e7d32 !important;
    background: #f0faf4 !important;
}

/* ── Terms card ── */
body[data-page="user"] .withdraw-terms-card {
    background: rgba(255, 247, 234);
    border: none;
    border-radius: 16px !important;
}

/* ── Portfolio / Product positions ── */
body[data-page="user"] .portfolio-position {
    background: rgba(255, 247, 234);
    border: none;
}
body[data-page="user"] .product-investment-card {
    background: rgba(255, 247, 234);
    border: none;
}
body[data-page="user"] .product-activity {
    background: rgba(255, 247, 234);
    border: none;
}
body[data-page="user"] .allocation-row {
    background: rgba(255, 247, 234);
    border: none;
}
body[data-page="user"] .portfolio-summary-grid article {
    background: rgba(255, 247, 234);
    border: none;
    border-radius: 16px !important;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
}
body[data-page="user"] .portfolio-summary-grid article span {
    color:   #00ad2b !important;
    font-size: 0.7rem;
    white-space: nowrap;
    line-height: 1.2;
}
body[data-page="user"] .portfolio-summary-grid article strong {
    color: #222 !important;
    font-size: 1rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Back button consolidated ── */

/* ── Profile section ── */
body[data-page="user"] #profile .panel {
    background: rgba(255, 247, 234);
    border: none;
}
body[data-page="user"] #profile a[href="#wallet-settings"],
body[data-page="user"] #profile > .panel > div > button,
body[data-page="user"] #profile > .panel > button {
    border-radius: 16px !important;
    border: none !important;
    background: rgba(255, 247, 234) !important;
    color: #00ad2b !important;
}
body[data-page="user"] .history-tabs button {
    background: rgba(0,0,0,0.06) !important;
    color: #3d934f !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
}
body[data-page="user"] .history-tabs button.active,
body[data-page="user"] .history-tabs button:hover {
    background: #00ad2b !important;
    color: #fff !important;
}

/* ── Notification panel ── */
body[data-page="user"] .notification-panel {
    border-radius: 16px !important;
    background: rgba(255, 247, 234) !important;
    border: 1px solid #e0d9ce !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0) !important;
}
body[data-page="user"] .notification-item {
    border-radius: 16px !important;
    background: #f5efe6 !important;
    border: 1px solid #e0d9ce !important;
}
body[data-page="user"] .notification-item strong {
    color: #222 !important;
}
body[data-page="user"] .notification-item p {
    color: #3d934f !important;
}
body[data-page="user"] .notification-item small {
    color:   #00ad2b !important;
}

/* Ensure notification panel is fully opaque even in dark theme */
html body[data-page="user"].theme-dark .notification-panel,
html body[data-page="user"].theme-dark .notification-item {
    background: rgba(255, 247, 234) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #e0d9ce !important;
    box-shadow: 0 2px 8px rgba(0,0,0) !important;
}

/* ── Support section ── */
body[data-page="user"] .support-ticket {
    border-radius: 16px !important;
    background: rgba(255, 247, 234);
    border: none;
}
body[data-page="user"] .chat-message {
    border-radius: 16px !important;
}

/* ── Dashboard activity items ── */
body[data-page="user"] .dashboard-activity-item {
    border-radius: 16px !important;
    background: rgba(255, 247, 234);
    border: none;
}
body[data-page="user"] .dashboard-activity-item strong {
    color: #222 !important;
}
body[data-page="user"] .dashboard-activity-item span {
    color: #00ad2b !important;
}

/* ── Plan cards ── */
body[data-page="user"] .plan {
    background: rgba(255, 247, 234);
    border: none;
    border-radius: 16px !important;
}

body[data-page="user"] .plan span {
    background: #00ad2b;
    color: #fff;
    border-radius: 0;
}

/* =============================================
   MOBILE OPTIMIZATION - Small screens (<420px)
   ============================================= */
@media (max-width: 420px) {

    .site-header {
        padding: 4px 8px 4px 0 !important;
        height: auto;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    .brand span {
        font-size: 0.9rem !important;
    }
    .brand-logo,
    .site-header .brand img {
        width: 28px !important;
        height: 28px !important;
        flex: 0 0 28px;
    }

    .top-nav a, .nav-search-btn {
        font-size: 10px !important;
        padding: 0 8px !important;
        height: 28px !important;
    }

    .bottom-nav {
        height: 52px;
    }
    .bottom-nav a {
        font-size: 8px;
    }
    .bottom-nav a .nav-icon svg {
        width: 18px;
        height: 18px;
    }
    .bottom-nav a .nav-label {
        font-size: 8px;
    }

    .panel {
        padding: 14px 12px;
    }
    .panel.narrow {
        max-width: 100%;
        padding: 16px 12px;
    }

    input, select, textarea, .btn {
        font-size: 16px !important;
    }
    .btn {
        min-height: 44px;
        padding: 10px 16px;
    }
    .form input:not([type="checkbox"]):not([type="radio"]), .form select {
        padding: 12px 10px;
    }

    .hero {
        padding: 20px 16px !important;
        min-height: 220px !important;
    }
    .hero h1 {
        font-size: 1.5rem !important;
    }
    .hero p {
        font-size: 0.8rem !important;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .dashboard-metrics,
    .dashboard-action-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .dashboard-side {
        grid-template-columns: 1fr !important;
    }

    .deposit-panel, .withdraw-panel {
        padding: 16px 12px;
    }
    .deposit-panel .btn, .withdraw-panel .btn {
        width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table td, table th {
        white-space: nowrap;
        padding: 8px 6px;
        font-size: 12px;
    }

    .message {
        font-size: 13px;
        padding: 8px 10px;
    }

    .balance-panel {
        min-height: 140px;
        padding: 14px;
    }
    .balance-panel strong {
        font-size: 1.6rem;
    }

    .payment-modal-card {
        padding: 18px 14px;
    }
    .payment-modal {
        padding: 10px;
    }

    .context-balance-grid {
        grid-template-columns: 1fr;
    }

    .badge, .tag {
        font-size: 10px;
        padding: 2px 6px;
    }

    .history-item {
        padding: 10px 8px;
        font-size: 12px;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .live-plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid,
    .coin-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wizard-step {
        padding: 14px 10px;
    }

}

@media (max-width: 360px) {
    .bottom-nav a {
        font-size: 8px;
    }
    .bottom-nav a .nav-icon {
        font-size: 16px;
    }
    .bottom-nav a .nav-label {
        font-size: 7px;
    }
    .site-header {
        padding: 4px 6px 4px 0 !important;
        height: auto;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    body[data-page="user"] .site-header {
        padding: 4px 6px 4px 0 !important;
    }
    .brand-logo,
    .site-header .brand img {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px;
    }
    .top-nav a, .nav-search-btn {
        font-size: 9px !important;
        padding: 0 6px !important;
        height: 26px !important;
    }
    #notificationToggle,
    #navSearchBtn {
        top: 9px !important;
    }
    body[data-page="user"] #navSearchBtn,
    body:not([data-page="user"]) #navSearchBtn {
        right: 6px !important;
    }
    body[data-page="user"] #notificationToggle,
    body:not([data-page="user"]) #notificationToggle {
        right: 38px !important;
    }
}

/* ── Small devices: compact dashboard content ── */
@media (max-width: 480px) {
    .dashboard-glass { padding: 14px; gap: 12px; }
    .dashboard-head h1 { font-size: 1.3rem; margin: 4px 0; }
    .dashboard-head p { font-size: 0.8rem; }
    .dashboard-layout { gap: 12px; }
    .dashboard-main, .dashboard-side { gap: 10px; }
    .dashboard-metrics { gap: 8px; }
    .dashboard-metrics .metric { padding: 10px; min-height: 70px; }
    body[data-page="user"] .dashboard-metrics .metric { min-height: 70px; padding: 10px; }
    body[data-page="user"] .dashboard-metrics .metric strong { font-size: 0.85rem; }
    .balance-panel { min-height: 120px; padding: 14px; }
    .balance-panel strong { font-size: 1.5rem; }
    .dashboard-action-grid { gap: 6px; }
    .dashboard-action-grid .btn { min-height: 36px; padding: 8px 10px; font-size: 0.75rem !important; }
    .dashboard-activity-card { padding: 12px; }
    .dashboard-activity-card h2 { font-size: 15px; }
    .dashboard-activity-item { padding: 8px; gap: 6px; font-size: 0.75rem; }
    .dashboard-plan-row { padding: 12px; gap: 10px; }
    .dashboard-plan-row .plan-row-title h2 { font-size: 15px; }
    .dashboard-investment-panel { padding: 12px; gap: 10px; }
    .card, .panel { padding: 14px; }
}

@media (max-width: 380px) {
    .dashboard-glass { padding: 10px; gap: 8px; }
    .dashboard-head h1 { font-size: 1.1rem; }
    .dashboard-head p { font-size: 0.7rem; }
    .dashboard-metrics { gap: 6px; }
    .dashboard-metrics .metric { padding: 8px; min-height: 60px; }
    body[data-page="user"] .dashboard-metrics .metric { min-height: 60px; padding: 8px; }
    body[data-page="user"] .dashboard-metrics .metric span { font-size: 0.6rem; }
    body[data-page="user"] .dashboard-metrics .metric strong { font-size: 0.75rem; }
    .balance-panel { min-height: 100px; padding: 10px; gap: 6px; }
    .balance-panel strong { font-size: 1.2rem; }
    .balance-panel > span { font-size: 0.65rem; }
    .dashboard-action-grid .btn { min-height: 32px; padding: 6px 8px; font-size: 0.7rem !important; }
    .payout-ticker { height: 160px; margin-bottom: 12px; }
    .dashboard-activity-card { padding: 10px; }
    .dashboard-activity-card h2 { font-size: 13px; }
    .dashboard-activity-item { padding: 6px; gap: 4px; font-size: 0.7rem; }
    .dashboard-plan-row { padding: 10px; gap: 8px; }
    .dashboard-plan-row .plan-row-title h2 { font-size: 13px; }
    .dashboard-investment-panel { padding: 10px; gap: 8px; }
    .card, .panel { padding: 10px; }
    .context-balance-card { padding: 10px; }
    .context-balance-card strong { font-size: 15px; }
    .context-balance-card span { font-size: 10px; }
    .portfolio-summary-grid article { padding: 10px; }
    .portfolio-summary-grid span { font-size: 10px; }
    .portfolio-summary-grid strong { font-size: 14px; }
    .live-plan-card { padding: 10px; }
    .live-plan-card strong { font-size: 16px; }
    .plan-row-title { flex-wrap: wrap; gap: 4px; }
    .dashboard-layout { gap: 8px; }
    .dashboard-main, .dashboard-side { gap: 8px; }
}

/* ── Safe area insets for notched phones (iPhone X+) ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        height: calc(56px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
    #toastContainer {
        top: 48px !important;
    }
    .site-header {
        padding-top: env(safe-area-inset-top) !important;
    }
    .back-button {
        top: calc(8px + env(safe-area-inset-top)) !important;
        left: 0px !important;
    }
}

/* ── Lock user team columns at every breakpoint ── */
body[data-page="user"] .team-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    overflow: hidden;
}
body[data-page="user"] .team-column {
    overflow: hidden;
    word-break: break-word;
}
body[data-page="user"] .team-summary {
    grid-template-columns: 1fr !important;
}
body[data-page="user"] .team-summary .team-commission-row {
    display: grid;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px;
}

/* ── Lock user nav buttons at every breakpoint ── */
body[data-page="user"] .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 48px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 100px 0 85px !important;
    z-index: 1000 !important;
}

body[data-page="user"] .top-nav {
    position: relative !important;
    width: auto !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    margin: 0 !important;
}

body[data-page="user"] .brand span {
    display: inline-block !important;
}

/* ── Lock notification & search buttons to top-right corner ── */
#notificationToggle,
#navSearchBtn {
    position: fixed !important;
    z-index: 1001 !important;
    top: 8px !important;
}
body[data-page="user"] #navSearchBtn {
    right: 12px !important;
}
body[data-page="user"] #notificationToggle {
    right: 50px !important;
}
body:not([data-page="user"]) #navSearchBtn {
    right: 12px !important;
    top: 8px !important;
}
body:not([data-page="user"]) #notificationToggle {
    right: 50px !important;
    top: 8px !important;
}

@media (max-width: 480px) {
    body[data-page="user"] .brand span {
        display: inline-block !important;
    }
}

/* Global dark theme fills entire browser viewport */
html.theme-dark {
    color-scheme: dark;
}
html.theme-dark,
body.theme-dark {
    background: #0d1117;
    color: #c9d1d9;
}
body[data-page="user"].theme-dark {
    background: #faf5ed !important;
    color: #222 !important;
}
html.theme-dark ::selection {
    background: rgba(255, 247, 234) !important;
}
html.theme-dark ::-webkit-scrollbar {
    width: 8px;
    background: #0d1117;
}
html.theme-dark ::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

/* === Welcome Page Overlay === */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: #0b0e14;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: welcomeFadeIn 0.4s ease;
}
.welcome-overlay.hidden {
    display: none !important;
}
@keyframes welcomeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.welcome-overlay-inner {
    width: 100%;
    max-width: 520px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, #111812 0%, #0d110e 50%, #111310 100%);
    position: relative;
}
.welcome-overlay-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 16px;
    background: linear-gradient(180deg, rgba(169,107,41,0.12) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.welcome-overlay-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(169,107,41,0.25);
    flex-shrink: 0;
}
.welcome-overlay-header h1 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: #00ad2b;
    letter-spacing: 0.5px;
}
.welcome-overlay-header p {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}
.welcome-overlay-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.welcome-overlay-scroll::-webkit-scrollbar {
    width: 4px;
}
.welcome-overlay-scroll::-webkit-scrollbar-thumb {
    background: rgba(169,107,41,0.4);
    border-radius: 2px;
}
.welcome-section {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.welcome-section:last-child {
    border-bottom: none;
}
.welcome-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(169,107,41,0.15);
    color: #00ad2b;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.welcome-section h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #00ad2b;
}
.welcome-section p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 0, 0);
}
.welcome-section img {
    width: 100%;
    border-radius: 12px;
    margin-top: 12px;
    object-fit: cover;
    max-height: 200px;
}
.welcome-overlay-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.welcome-overlay-footer small {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    transition: opacity 0.3s;
}
.welcome-overlay-footer small.welcome-hidden {
    opacity: 0;
}
.welcome-overlay-footer .btn {
    width: 100%;
    max-width: 320px;
    padding: 13px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
}
.welcome-overlay-footer .btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
.welcome-overlay-footer .btn:not(:disabled) {
    background: linear-gradient(135deg, #00ad2b, #d4941e);
    color: #111;
    box-shadow: 0 4px 16px rgba(240,181,50,0.3);
}
.welcome-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.4);
}
.welcome-empty h3 {
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

/* Launch Page Overlay */
.launch-overlay {
    position: fixed;
    inset: 0;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: launchFadeIn 0.4s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.launch-overlay.hidden {
    display: none !important;
}
@keyframes launchFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.launch-overlay-inner {
    text-align: center;
    padding: 40px 30px;
    max-width: 420px;
    width: 90%;
}
.launch-overlay-logo {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(169,107,41,0.35);
    margin-bottom: 24px;
    animation: launchPulse 2s infinite ease-in-out;
}
@keyframes launchPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 12px 40px rgba(169,107,41,0.35); }
    50% { transform: scale(1.05); box-shadow: 0 16px 50px rgba(169,107,41,0.5); }
}
.launch-overlay-inner h1 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 900;
    color: #f0b532;
    letter-spacing: 0.5px;
}
.launch-subtitle {
    margin: 0 0 28px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}
.launch-countdown-ring {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(240,181,50,0.08);
    border: 3px solid rgba(240,181,50,0.3);
    margin: 0 auto 24px;
    position: relative;
    animation: launchRingPulse 1s infinite ease-in-out;
}
@keyframes launchRingPulse {
    0%, 100% { border-color: rgba(240,181,50,0.3); }
    50% { border-color: rgba(240,181,50,0.7); }
}
.launch-countdown-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: #f0b532;
    line-height: 1;
    letter-spacing: -1px;
}
.launch-countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.35);
    margin-top: 2px;
}
.launch-msg {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
}

/* Admin Welcome Page Panel */
.welcome-admin-sections {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}
.welcome-admin-section-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    align-items: flex-start;
}
.welcome-admin-section-card .section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(169,107,41,0.15);
    color: #00ad2b;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}
.welcome-admin-section-card .section-body {
    flex: 1;
    min-width: 0;
}
.welcome-admin-section-card .section-body strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 3px;
}
.welcome-admin-section-card .section-body small {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.welcome-admin-section-card .section-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.welcome-admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
    padding-bottom: 10px;
}
.welcome-admin-section-card label.btn:hover {
    background: rgba(169,107,41,0.15);
    border-color: rgba(169,107,41,0.4);
}

/* === Sync / Refresh Button === */
#syncRefreshBtn {
    position: fixed;
    bottom: 80px;
    left: 16px;
    z-index: 9990;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #00ad2b, #d4941e);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(240,181,50,0.35);
    cursor: grab;
    transition: box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    user-select: none;
}
#syncRefreshBtn:hover {
    box-shadow: 0 6px 24px rgba(240,181,50,0.5);
}
#syncRefreshBtn:active {
    cursor: grabbing;
}
#syncRefreshBtn.syncing svg {
    animation: syncSpin 0.8s linear infinite;
}
@keyframes syncSpin {
    to { transform: rotate(360deg); }
}
.float-dragging {
    transition: none !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
    transform: scale(1.1);
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Internal Transfer */
.transfer-recipient-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f0ece6;
    border: 1px solid rgba(240, 181, 50, 0.25);
    border-radius: 14px;
    padding: 16px;
    margin: 14px 0;
}
.transfer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ad2b, #e8a020);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}
.transfer-recipient-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.transfer-recipient-info strong {
    color: #1a1a2e;
    font-size: 1.05rem;
}
.transfer-recipient-info small {
    color:   #00ad2b;
    font-size: 0.85rem;
}
.transfer-recipient-info .status-badge {
    width: fit-content;
    margin-top: 2px;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 8px;
}
.online-status {
    display: block;
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 500;
}
.online-status.online {
    color: #27ae60;
}
.online-status.offline {
    color: #7f8c8d;
}
.transfer-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}
#transferForm .wizard-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    font-size: 1rem;
    background: #f5efe6;
    color: #1a1a2e;
    margin-bottom: 8px;
}

/* Transfer cooldown countdown */
#transferCountdown {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #c0392b;
    background: rgba(192, 57, 43, 0.1);
    border: 1px solid rgba(192, 57, 43, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 10px 0;
}

/* Transfer success countdown */
#transferSuccessCountdown {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin-top: 12px;
}

@keyframes bell-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

#agentRequestBadge:not([style*="display: none"]) ~ .bell-icon,
#agentRequestBellBtn:has(#agentRequestBadge:not([style*="display: none"])) {
    animation: bell-pulse 0.8s ease-in-out infinite;
}

#agentRequestBadge[style*="flex"] {
    animation: bell-pulse 1s ease-in-out infinite;
}

/* ─── Custom Numeric Dialpad ───────────────────────────── */
#customDialpad {
    box-shadow: 0 -4px 24px rgba(0,0,0,0.6);
    transition: transform 0.2s ease;
}
#customDialpad button:active {
    transform: scale(0.92);
    opacity: 0.85;
}
#dialpadInputPreview:empty::before {
    content: '---';
    color: #334;
    letter-spacing: 4px;
}
body.dialpad-open {
    padding-bottom: 200px !important;
}

/* ─── Market Tab Live Signal ───────────────────────────── */
.market-signal-dot {
    width: 14px;
    height: 14px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    animation: market-signal-pulse 1.5s infinite;
}
@keyframes market-signal-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}


/* Support Icon Links */
.support-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    background: linear-gradient(135deg, rgba(169,107,41,0.1), rgba(240,181,50,0.06));
    border: 1px solid rgba(169,107,41,0.2);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s;
    min-width: 80px;
}
.support-icon-link:hover {
    background: linear-gradient(135deg, rgba(169,107,41,0.2), rgba(240,181,50,0.12));
    border-color: #f0b532;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(240,181,50,0.2);
}
.support-icon {
    font-size: 1.8rem;
    line-height: 1;
}
.support-icon-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #a96b29;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ─── Bank Locked State ─────────────────────────────── */
#dashboardBankBtn.bank-locked {
    opacity: 0.55;
    position: relative;
    filter: grayscale(0.5);
}
#dashboardBankBtn.bank-locked::after {
    content: "🔒";
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 14px;
    background: #333;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    z-index: 3;
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

/* ─── Bank Signal Badge ─────────────────────────────── */
.bank-signal {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2.5px solid #fff;
    animation: bankSignalPulse 1.4s ease-in-out infinite;
    z-index: 2;
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
}
@keyframes bankSignalPulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); transform: scale(1); }
    50% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); transform: scale(1.25); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); transform: scale(1); }
}

/* ─── Bank / Savings Page ─────────────────────────────── */
.bank-hero {
    background: linear-gradient(135deg, #d4a017, #a96b29);
    color: #fff;
    min-height: 0 !important;
    height: auto !important;
    max-height: none;
    padding: 10px 14px 8px !important;
    margin: 0 !important;
    border-radius: 0 0 12px 12px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(169, 107, 41, 0.25);
}
.bank-hero-inner {
    max-width: 100%;
}
.bank-hero h1 {
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0;
}
.bank-hero p {
    font-size: 0.55rem;
    opacity: 0.85;
    margin-top: 1px;
}
@media (min-width: 768px) {
    .bank-hero {
        padding: 12px 18px 10px !important;
        border-radius: 12px;
        max-width: 500px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .bank-hero h1 {
        font-size: 1rem;
    }
    .bank-hero p {
        font-size: 0.6rem;
    }
}
.bank-balance-card {
    background: linear-gradient(135deg, #d4a017, #a96b29);
    color: #fff;
    padding: 12px 10px;
    border-radius: 7px;
    text-align: center;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(169, 107, 41, 0.3);
}
.bank-balance-label {
    font-size: 0.39rem;
    opacity: 0.85;
    margin: 0 0 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bank-balance-amount {
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0 0 2px;
}
.bank-balance-interest {
    font-size: 0.375rem;
    opacity: 0.7;
    margin: 0;
}
.bank-timer-card {
    background: #f5efe6;
    border: 1px solid #e0dcd6;
    border-radius: 6px;
    padding: 8px 9px;
    margin-top: 7px;
    text-align: center;
}
.bank-timer-card.hidden {
    display: none;
}
.bank-timer-label {
    font-size: 0.375rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0 0 3px;
}
.bank-timer-display {
    font-size: 0.75rem;
    font-weight: 800;
    color: #a96b29;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}
.bank-timer-earned {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 0.41rem;
    color: #555;
}
.bank-timer-earned strong {
    color: #2d8a4e;
}
.bank-timer-progress {
    height: 3px;
    background: #e8e4de;
    border-radius: 1.5px;
    overflow: hidden;
    margin-top: 5px;
}
.bank-timer-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4a017, #a96b29);
    border-radius: 1.5px;
    transition: width 1s linear;
}
.bank-timer-next {
    font-size: 0.36rem;
    color: #999;
    margin: 4px 0 0;
}
.bank-action-card {
    background: #f5efe6;
    border: 1px solid #e0dcd6;
    border-radius: 6px;
    padding: 8px 9px;
    margin-top: 7px;
}
.bank-action-card h3 {
    font-size: 0.44rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px;
}
.bank-action-card p {
    font-size: 0.39rem;
    color: #888;
    margin: 0;
}
.bank-input-row {
    display: flex;
    gap: 4px;
    align-items: center;
}
.bank-withdraw-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 5px;
}
.bank-withdraw-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.41rem;
    color: #555;
}
.bank-deposit-row{
	color: #fff;
}

.bank-withdraw-row strong {
    font-weight: 700;
}
.bank-history-card {
    background: #f5efe6;
    border: 1px solid #e0dcd6;
    border-radius: 6px;
    padding: 8px 9px;
    margin-top: 7px;
}
.bank-history-card h3 {
    font-size: 0.44rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px;
}
.bank-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f0ece6;
}
.bank-history-item:last-child {
    border-bottom: none;
}
.bhi-type {
    font-size: 0.41rem;
    font-weight: 600;
    color: #333;
}
.bhi-date {
    font-size: 0.35rem;
    color: #999;
}
.bhi-amount {
    font-size: 0.425rem;
    font-weight: 700;
}
.bhi-amount.credit {
    color: #2d8a4e;
}
.bhi-amount.debit {
    color: #c0392b;
}
.bank-plan-selector {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bank-plan-card {
    background: #f9f7f4;
    border: 2px solid #e0dcd6;
    border-radius: 5px;
    padding: 7px;
    position: relative;
    transition: all 0.2s ease;
}
.bank-plan-card.selectable {
    cursor: pointer;
}
.bank-plan-card.selectable:hover {
    border-color: #a96b29;
    background: #fdf8f0;
}
.bank-plan-card.selected {
    border-color: #a96b29;
    background: #fdf3e4;
    box-shadow: 0 0 0 1px #a96b29;
}
.bank-plan-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.bpc-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}
.bpc-icon {
    font-size: 0.65rem;
}
.bpc-name {
    font-size: 0.45rem;
    font-weight: 700;
    color: #333;
}
.bpc-details {
    display: flex;
    gap: 6px;
    align-items: baseline;
    flex-wrap: wrap;
}
.bpc-rate {
    font-size: 0.55rem;
    font-weight: 800;
    color: #a96b29;
}
.bpc-rate span {
    font-size: 0.36rem;
    font-weight: 600;
    color: #888;
}
.bpc-duration {
    font-size: 0.39rem;
    font-weight: 600;
    color: #555;
    background: #eee8e0;
    padding: 1px 4px;
    border-radius: 3px;
}
.bpc-min {
    font-size: 0.36rem;
    color: #999;
}
.bpc-desc {
    font-size: 0.36rem;
    color: #888;
    margin: 3px 0 0;
    line-height: 1.3;
}
.bpc-active-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #2d8a4e;
    color: #fff;
    font-size: 0.325rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
}
.bank-plan-badge {
    background: #a96b29;
    color: #fff;
    font-size: 0.325rem;
    font-weight: 700;
    padding: 1.5px 5px;
    border-radius: 3px;
}

/* Readable Bank page sizing */
#bank .bank-hero { padding: 24px 24px 48px !important; gap: 12px; background:linear-gradient(135deg, #163d77 0%, #176a88 54%, #1ba77d 100%); border-radius:0 0 26px 26px; box-shadow:none; }
#bank .bank-hero h1 { font-size: 1.7rem; letter-spacing:-0.02em; }
#bank .bank-hero p { font-size: 0.96rem; margin-top: 5px; }
#bank .bank-content { max-width: 650px; margin: -31px auto 0; padding: 0 16px 30px; position:relative; z-index:1; }
#bank .bank-balance-card { position:relative; overflow:hidden; padding: 22px 22px 16px; min-height: 178px; border-radius: 20px; margin-top:0; text-align:left; background:linear-gradient(125deg, #102b60 0%, #195c9a 52%, #0b9f91 100%); border:1px solid rgba(255,255,255,.28); box-shadow:0 16px 34px rgba(10, 49, 94, .28); }
#bank .bank-balance-card::before { content:""; position:absolute; width:190px; height:190px; border-radius:50%; right:-68px; top:-88px; background:rgba(255,255,255,.12); }
#bank .bank-balance-card::after { content:""; position:absolute; width:128px; height:128px; border-radius:50%; right:35px; bottom:-88px; border:28px solid rgba(255,255,255,.07); }
#bank .bank-balance-topline, #bank .bank-card-footer { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; }
#bank .bank-balance-label { font-size:0.78rem; font-weight:700; opacity:.87; margin:0; letter-spacing:.1em; }
#bank .bank-card-mark { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; font-size:1.25rem; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.28); }
#bank .bank-balance-amount { position:relative; z-index:1; font-size:clamp(2rem, 8vw, 2.65rem); line-height:1.1; letter-spacing:-.04em; margin:20px 0 8px; text-shadow:0 2px 10px rgba(0,0,0,.12); }
#bank .bank-balance-interest { position:relative; z-index:1; font-size:0.94rem; font-weight:600; opacity:.91; }
#bank .bank-card-footer { margin-top:20px; padding-top:12px; border-top:1px solid rgba(255,255,255,.19); font-size:.66rem; letter-spacing:.14em; font-weight:700; opacity:.86; }
#bank .bank-card-chip { width:27px; height:20px; border-radius:5px; background:linear-gradient(135deg,#f5db88,#c8912d); box-shadow:inset 0 0 0 1px rgba(113,73,3,.24); }
#bank .bank-timer-card, #bank .bank-action-card, #bank .bank-history-card { padding: 16px; border-radius: 12px; margin-top: 14px; }
#bank .bank-timer-label { font-size: 0.72rem; margin-bottom: 6px; }
#bank .bank-timer-display { font-size: 1.25rem; letter-spacing: 1.5px; }
#bank .bank-timer-earned, #bank .bank-withdraw-row { font-size: 0.88rem; margin-top: 10px; }
#bank .bank-timer-progress { height: 6px; margin-top: 10px; border-radius: 4px; }
#bank .bank-timer-next { font-size: 0.76rem; margin-top: 7px; }
#bank .bank-action-card h3, #bank .bank-history-card h3 { font-size: 1rem; margin-bottom: 10px; }
#bank .bank-action-card p { font-size: 0.85rem; line-height: 1.45; }
#bank .bank-input-row { gap: 8px; }
#bank .bank-plan-selector { gap: 10px; }
#bank .bank-plan-card { padding:16px; border:0; border-radius:14px; overflow:hidden; color:#fff; box-shadow:0 7px 16px rgba(18, 49, 84, .12); }
#bank .bank-plan-card::before { content:""; position:absolute; width:105px; height:105px; right:-34px; top:-48px; border:19px solid rgba(255,255,255,.15); border-radius:50%; }
#bank .bank-plan-card.plan-color-0 { background:linear-gradient(135deg,#2454a8,#287fc1); }
#bank .bank-plan-card.plan-color-1 { background:linear-gradient(135deg,#08776e,#17a786); }
#bank .bank-plan-card.plan-color-2 { background:linear-gradient(135deg,#7d3aa2,#b151b2); }
#bank .bank-plan-card.plan-color-3 { background:linear-gradient(135deg,#bd671f,#e39b2d); }
#bank .bank-plan-card.selectable:hover { transform:translateY(-2px); border:0; background:inherit; box-shadow:0 12px 20px rgba(18, 49, 84, .2); }
#bank .bank-plan-card.selected { border:2px solid #fff; background:inherit; box-shadow:0 0 0 3px #1ba77d, 0 10px 20px rgba(18,49,84,.22); }
#bank .bpc-header { gap: 8px; margin-bottom: 6px; }
#bank .bpc-icon { font-size: 1.2rem; }
#bank .bpc-name { position:relative; z-index:1; font-size:1rem; color:#fff; }
#bank .bpc-details { gap: 10px; }
#bank .bpc-rate { position:relative; z-index:1; font-size:1.1rem; color:#fff; }
#bank .bpc-rate span { color:rgba(255,255,255,.8); }
#bank .bpc-duration { position:relative; z-index:1; padding:3px 7px; color:#fff; background:rgba(255,255,255,.18); }
#bank .bpc-min, #bank .bpc-desc { position:relative; z-index:1; color:rgba(255,255,255,.86); font-size:.78rem; }
#bank .bpc-desc { margin-top:6px; line-height:1.45; }
#bank .bpc-active-badge, #bank .bank-plan-badge { font-size: 0.7rem; padding: 4px 7px; border-radius: 5px; }
#bank .bank-history-item { padding: 10px 0; }
#bank .bhi-type { font-size: 0.9rem; }
#bank .bhi-date { font-size: 0.75rem; }
#bank .bhi-amount { font-size: 0.95rem; }

@media (min-width: 768px) {
    #bank .bank-hero { max-width:none; padding-left:calc((100% - 600px)/2) !important; padding-right:calc((100% - 600px)/2) !important; }
    #bank .bank-content { padding-left:20px; padding-right:20px; }
}
.empty-state {
    text-align: center;
    color: #999;
    font-size: 0.82rem;
    padding: 20px 0;
    margin: 0;
}
.message {
    font-size: 0.78rem;
    margin-top: 8px;
}
.message.success {
    color: #2d8a4e;
}
.message.error {
    color: #c0392b;
}

/* ─── Admin Hamburger Button ───────────────────────── */
.admin-hamburger {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.3rem;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
}

/* ─── Admin Mobile Responsive ───────────────────────── */
@media (max-width: 860px) {
    .admin-hamburger {
        display: block;
    }
    .admin-sidebar {
        position: fixed;
        left: -220px;
        transition: left 0.3s ease;
        z-index: 200;
        width: 220px;
    }
    .admin-sidebar.open {
        left: 0;
    }
    .admin-main {
        margin-left: 0 !important;
        padding: 60px 12px 34px !important;
    }
    .admin-topbar {
        left: 0 !important;
        margin: 0 !important;
        padding: 14px 12px 12px !important;
        flex-wrap: wrap;
    }
    .admin-topbar h1 {
        font-size: 16px;
    }
    .admin-topbar p {
        font-size: 0.65rem;
    }
    .admin-top-actions {
        flex-wrap: wrap;
        gap: 4px;
    }
    .admin-top-actions button {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    .admin-control-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .admin-control-actions input[type="search"] {
        min-width: 120px !important;
        width: 100% !important;
    }
    .admin-control-actions .btn {
        font-size: 0.65rem;
        padding: 5px 8px;
    }
    .panel-header {
        flex-direction: column;
        gap: 10px;
    }
    .admin-table {
        font-size: 0.6rem;
    }
    .admin-table th,
    .admin-table td {
        padding: 6px 4px;
    }
    .table-wrap {
        max-height: calc(100vh - 200px);
    }
    .admin-stat-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .admin-stat-card {
        padding: 10px !important;
    }
    .admin-metrics {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .admin-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 199;
    }
    .admin-sidebar.open ~ .admin-sidebar-overlay {
        display: block;
    }
}
@media (max-width: 480px) {
    .admin-top-actions .gift-all-btn,
    .admin-top-actions .deduct-all-btn,
    .admin-top-actions .clear-all-btn,
    .admin-top-actions .admin-back-btn {
        display: none;
    }
    .admin-stat-cards {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ─── Guide & Market Schedules (Mobile) ─── */
@media (max-width: 480px) {
    .market-hero {
        padding: 8px 10px !important;
    }
    .market-hero h1 {
        font-size: 1rem !important;
    }
    .market-hero p {
        font-size: 0.68rem !important;
    }
    #guide .hero.compact,
    #market-schedules .hero.compact {
        padding: 8px 10px;
    }
    #guide .hero.compact h1,
    #market-schedules .hero.compact h1 {
        font-size: 0.9rem;
    }
    #guide .hero.compact p,
    #market-schedules .hero.compact p {
        font-size: 0.68rem;
    }
    #guideContent .bank-action-card {
        padding: 10px;
    }
    #guideContent .bank-action-card h3 {
        font-size: 0.95rem;
    }
    #guideContent .bank-action-card p {
        font-size: 0.82rem;
    }
    #marketScheduleContent table {
        font-size: 0.62rem !important;
    }
    #marketScheduleContent th,
    #marketScheduleContent td {
        padding: 3px 2px !important;
    }
    #marketScheduleContent h3 {
        font-size: 0.72rem;
    }
    .product-sub-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    .product-card {
        margin: 0 4px;
    }
    .product-card-body {
        padding: 8px;
    }
    .product-card-body h3 {
        font-size: 0.9rem;
    }
    .product-card-body p {
        font-size: 0.72rem;
    }
    .product-name-price strong {
        font-size: 0.85rem;
    }
    .hero {
        min-height: 180px;
        padding: 24px 16px;
    }
    .hero.compact {
        min-height: auto;
        padding: 10px 12px;
    }
}

@media (max-width: 500px) {
    .schedule-table {
        font-size: 0.68rem;
        min-width: 0;
        width: 100%;
    }
    .schedule-table th,
    .schedule-table td {
        padding: 4px 3px;
        font-size: 0.65rem;
        white-space: normal;
        word-break: break-word;
    }
}

/* =====================================================================
   Admin clarity pass — a compact, high-contrast workspace
   ===================================================================== */
.admin-body {
    --admin-page: #10151d;
    --admin-surface: #18212c;
    --admin-surface-raised: #202b38;
    --admin-border: #35465a;
    --admin-text: #f5f8fc;
    --admin-muted: #b7c5d5;
    --admin-accent: #ffd15c;
    --admin-focus: #66b5ff;
    background: var(--admin-page);
    color: var(--admin-text);
    font-size: 15px;
    line-height: 1.45;
}

.admin-sidebar {
    width: 248px;
    gap: 20px;
    padding: 26px 16px 18px;
    background: #121a24;
    border-color: var(--admin-border);
}

.admin-brand { padding: 0 8px; }
.admin-brand small,
.admin-topbar p,
.panel-header p,
.admin-panel .panel-header p,
.admin-sync-status,
.admin-user-row small,
.admin-inquiry-main p,
.admin-inquiry-main small,
.admin-plan-card small {
    color: var(--admin-muted);
}

.admin-menu { gap: 3px; }
.admin-menu a {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 0 10px;
    color: #dce6f0;
    font-size: 13px;
    font-weight: 750;
}
.admin-menu a span { color: #9fb3c8; font-size: 11px; }
.admin-menu a:hover,
.admin-menu a.active {
    border-left: 1px solid rgba(255, 209, 92, 0.6);
    background: rgba(255, 209, 92, 0.14);
    color: #fff2bd;
    padding-left: 10px;
}
.admin-menu a:hover span,
.admin-menu a.active span { color: var(--admin-accent); }

.admin-main {
    margin-left: 248px;
    max-width: calc(100vw - 248px);
    height: auto;
    min-height: 100vh;
    padding: 22px 28px 48px;
    background: var(--admin-page);
    overflow: visible;
}
.admin-topbar {
    margin: 0 -28px 22px;
    padding: 16px 28px;
    border-bottom-color: var(--admin-border);
    background: rgba(16, 21, 29, 0.96);
}
.admin-topbar h1 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.admin-date { color: #dbe7f4; font-size: 13px; }
.admin-top-actions { gap: 8px; }
.admin-top-actions > button { min-height: 36px; }

.admin-panel {
    margin-top: 18px;
    padding: 20px;
    border-color: var(--admin-border);
    border-radius: 14px;
    background: var(--admin-surface);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}
.admin-panel .panel-header { margin-bottom: 14px; }
.admin-panel h2 { color: var(--admin-text); font-size: 1.1rem; }

.admin-metrics {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-top: 26px;
}
.admin-stat-card,
.admin-plan-card {
    border-color: var(--admin-border);
    border-radius: 12px;
    background: var(--admin-surface-raised);
}
.admin-stat-card { min-height: 158px; padding: 18px; }
.admin-stat-card small,
.admin-stat-card strong,
.admin-plan-card strong { color: var(--admin-muted); }
.admin-stat-card .stat-value,
.admin-stat-card label span,
.admin-plan-card [data-plan-count],
.admin-plan-card [data-stat-key] { color: var(--admin-text); }

.admin-info-form label { color: #d8e2ee; }
.admin-info-form input,
.admin-info-form select,
.admin-info-form textarea,
.admin-panel input:not([type="checkbox"]):not([type="radio"]),
.admin-panel select,
.admin-panel textarea {
    border-color: #4b6077 !important;
    background: #111923 !important;
    color: var(--admin-text) !important;
}
.admin-panel input::placeholder,
.admin-panel textarea::placeholder { color: #9fb0c2 !important; opacity: 1; }
.admin-panel input:focus,
.admin-panel select:focus,
.admin-panel textarea:focus {
    outline: 3px solid rgba(102, 181, 255, 0.28);
    outline-offset: 1px;
    border-color: var(--admin-focus) !important;
}
.admin-panel [style*="color:#888"],
.admin-panel [style*="color: #888"] { color: var(--admin-muted) !important; }

.admin-control-actions { gap: 8px; }
.admin-control-actions .btn,
.admin-top-actions .btn,
.admin-top-actions > button {
    white-space: nowrap;
}
.btn,
.gift-all-btn,
.deduct-all-btn,
.clear-all-btn,
.admin-back-btn {
    min-height: 38px;
}

.table-wrap {
    max-height: min(64vh, 760px);
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    background: #131c26;
    scrollbar-color: #60758e #16202b;
}
.admin-table { min-width: 1160px; }
.admin-table thead,
.admin-table th { background: #17212d; }
.admin-table th {
    color: #ffe39a;
    font-size: 11px;
}
.admin-table th,
.admin-table td { padding: 13px 10px; border-bottom-color: #314154; }
.admin-user-row.is-shaded { background: #1d2936; box-shadow: none; }
.admin-table td:last-child { background: #18222e; }
.admin-user-row.is-shaded td:last-child { background: #1d2936; }
.admin-user-row strong { color: var(--admin-text); }

@media (max-width: 860px) {
    .admin-sidebar { width: 260px; left: -260px; padding: 20px 14px; }
    .admin-main { max-width: none; padding: 14px 14px 34px !important; }
    .admin-topbar { margin: 0 -14px 16px !important; padding: 12px 14px !important; }
    .admin-top-actions { width: 100%; justify-content: flex-start; }
    .admin-top-actions .admin-date { width: 100%; }
    .admin-panel { padding: 16px; }
    .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    .admin-stat-card { min-height: 132px; padding: 14px !important; }
    .admin-stat-card .stat-value { font-size: 18px; }
    .admin-info-form { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .admin-body { font-size: 14px; }
    .admin-top-actions .nav-search-btn { flex: 1 1 150px; }
    .admin-panel { padding: 14px; border-radius: 12px; }
    .admin-metrics { grid-template-columns: 1fr !important; }
    .admin-control-actions .btn { flex: 1 1 130px; }
    .admin-control-actions input[type="search"] { flex-basis: 100%; }
    .table-wrap { margin-inline: -2px; }
}

/* Active mining cards need the full phone width: their earnings and dates are
   meaningful content, not labels that can safely be squeezed into two columns. */
@media (max-width: 600px) {
    body[data-page="user"] .ongoing-investment-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body[data-page="user"] .ongoing-investment-card {
        min-width: 0;
    }

    body[data-page="user"] .ongoing-investment-card .daily-earnings-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px 6px;
        font-size: .78rem;
        line-height: 1.35;
    }

    body[data-page="user"] .ongoing-investment-card .daily-earnings-row .money-ugx,
    body[data-page="user"] .ongoing-investment-card .daily-earnings-row .money-usd {
        display: inline;
        margin: 0;
        color: inherit !important;
        font-size: inherit;
        line-height: inherit;
        white-space: nowrap;
    }

    body[data-page="user"] .ongoing-investment-card .daily-earnings-row br {
        display: none;
    }

    body[data-page="user"] .ongoing-investment-card .daily-dot {
        flex: 0 0 6px;
    }
}

/* User bottom navigation: distinct color cues make the primary actions easier
   to recognise at a glance while retaining a calm, compact bar. */
body[data-page="user"] .bottom-nav {
    height: 64px;
    padding: 5px 6px;
    gap: 3px;
    background: rgba(255, 252, 246, 0.98) !important;
    border-top: 1px solid rgba(80, 65, 40, 0.1) !important;
    box-shadow: 0 -8px 24px rgba(61, 44, 22, 0.1) !important;
}

body[data-page="user"] .bottom-nav a {
    min-width: 0;
    border-radius: 12px;
    color: #5a5045 !important;
}

body[data-page="user"] .bottom-nav a .nav-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 27px;
    border-radius: 9px;
    background: #eee8de;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

body[data-page="user"] .bottom-nav a .nav-icon svg {
    width: 17px;
    height: 17px;
}

body[data-page="user"] .bottom-nav a .nav-label {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .35px;
}

body[data-page="user"] .bottom-nav a[data-nav="dashboard"] { color: #198754 !important; }
body[data-page="user"] .bottom-nav a[data-nav="dashboard"] .nav-icon { background: #e3f7e9; }
body[data-page="user"] .bottom-nav a[data-nav="market"] { color: #198754 !important; }
body[data-page="user"] .bottom-nav a[data-nav="market"] .nav-icon { background: #e3f7e9; }
body[data-page="user"] .bottom-nav a[data-nav="deposit"] { color: #198754 !important; }
body[data-page="user"] .bottom-nav a[data-nav="deposit"] .nav-icon { background: #e3f7e9; }
body[data-page="user"] .bottom-nav a[data-nav="withdraw"] { color: #198754 !important; }
body[data-page="user"] .bottom-nav a[data-nav="withdraw"] .nav-icon { background: #e3f7e9; }
body[data-page="user"] .bottom-nav a[data-nav="team"] { color: #198754 !important; }
body[data-page="user"] .bottom-nav a[data-nav="team"] .nav-icon { background: #e3f7e9; }
body[data-page="user"] .bottom-nav a[data-nav="profile"] { color: #198754 !important; }
body[data-page="user"] .bottom-nav a[data-nav="profile"] .nav-icon { background: #e3f7e9; }

body[data-page="user"] .bottom-nav a:hover,
body[data-page="user"] .bottom-nav a.active {
    background: rgba(255, 255, 255, .72);
}

body[data-page="user"] .bottom-nav a.active .nav-icon {
    color: #fff !important;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 5px 12px rgba(31, 41, 55, .2);
}

body[data-page="user"] .bottom-nav a[data-nav="dashboard"].active .nav-icon { background: #198754; }
body[data-page="user"] .bottom-nav a[data-nav="market"].active .nav-icon { background: #198754; }
body[data-page="user"] .bottom-nav a[data-nav="deposit"].active .nav-icon { background: #198754; }
body[data-page="user"] .bottom-nav a[data-nav="withdraw"].active .nav-icon { background: #198754; }
body[data-page="user"] .bottom-nav a[data-nav="team"].active .nav-icon { background: #198754; }
body[data-page="user"] .bottom-nav a[data-nav="profile"].active .nav-icon { background: #198754; }

body[data-page="user"] .bottom-nav a.active::before {
    width: 18px;
    height: 3px;
    background: currentColor !important;
}

/* Referral overview: keep all summary values readable in every theme. The
   total commission card above intentionally retains its existing teal design. */
body[data-page="user"] .team-overview-stat:not(.team-overview-commission) {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #effbf2, #d9f3e1) !important;
    border: 1px solid #9bd3aa;
    box-shadow: 0 5px 12px rgba(35, 134, 73, .12);
}

body[data-page="user"] .team-overview-stat:not(.team-overview-commission)::after {
    content: "👥";
    position: absolute;
    right: 13px;
    bottom: 9px;
    font-size: 1.45rem;
    opacity: .24;
}

body[data-page="user"] .team-overview-stat:not(.team-overview-commission) > span {
    color: #24613a !important;
}

body[data-page="user"] .team-overview-stat:not(.team-overview-commission) > strong {
    color: #145c32 !important;
    font-size: 1.45rem !important;
}

body[data-page="user"] .team-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

body[data-page="user"] .team-level-item {
    position: relative;
    overflow: hidden;
    border: 0 !important;
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

body[data-page="user"] .team-level-item::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    right: -28px;
    bottom: -30px;
    border: 14px solid rgba(255,255,255,.12);
    border-radius: 50%;
    pointer-events: none;
}

body[data-page="user"] .level-a-card,
.level-b-card,
.level-c-card {
    background: linear-gradient(135deg, #198754, #20c97a) !important;
}

body[data-page="user"] .level-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 8px;
}

body[data-page="user"] .level-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,.22);
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    flex-shrink: 0;
}

body[data-page="user"] .level-label {
    color: #fff !important;
    font-size: .82rem !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

body[data-page="user"] .level-card-body {
    display: flex;
    justify-content: space-between;
    padding: 0 14px 14px;
}

body[data-page="user"] .level-card-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body[data-page="user"] .level-card-stat span {
    color: rgba(255,255,255,.75) !important;
    font-size: .68rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

body[data-page="user"] .level-card-stat strong {
    color: #fff !important;
    font-size: 1.1rem !important;
    line-height: 1.1;
}

@media (max-width:540px) {
    body[data-page="user"] .team-levels {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

body[data-page="user"] .team-summary .team-commission-card {
    min-height: 108px;
    padding: 17px 18px;
    border: 0 !important;
    border-radius: 14px;
    isolation: isolate;
}

body[data-page="user"] .team-summary .team-commission-card:first-child {
    background: linear-gradient(135deg, #198754, #20c97a) !important;
    box-shadow: 0 8px 18px rgba(25, 135, 84, .25) !important;
}

body[data-page="user"] .team-summary .team-commission-card:nth-child(2) {
    background: linear-gradient(135deg, #146c43, #198754) !important;
    box-shadow: 0 8px 18px rgba(20, 108, 67, .25) !important;
}

body[data-page="user"] .team-summary .team-commission-card > span,
body[data-page="user"] .team-summary .team-commission-card > strong,
body[data-page="user"] .team-summary .team-commission-card .money-ugx,
body[data-page="user"] .team-summary .team-commission-card .money-usd {
    position: relative;
    z-index: 1;
    color: #fff !important;
}

body[data-page="user"] .team-summary .team-commission-card > span {
    font-size: .78rem !important;
    font-weight: 800;
    letter-spacing: .05em;
}

body[data-page="user"] .team-summary .team-commission-card > strong,
body[data-page="user"] .team-summary .team-commission-card .money-ugx {
    font-size: 1.3rem !important;
    line-height: 1.15;
}

body[data-page="user"] .team-summary .team-commission-card .money-usd {
    display: block;
    margin-top: 6px;
    font-size: .74rem !important;
    font-weight: 700;
    opacity: .88;
}

body[data-page="user"] .team-summary .team-commission-card br {
    display: none;
}

/* Referral actions: prominent labels and touch-friendly targets. */
body[data-page="user"] #team .referral-panel .inline-actions {
    gap: 12px;
}

body[data-page="user"] #team .referral-panel .inline-actions .btn {
    min-height: 50px;
    padding: 12px 22px;
    border: 0 !important;
    border-radius: 14px;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.2;
    box-shadow: 0 6px 14px rgba(35, 35, 35, .18);
}

body[data-page="user"] #copyTeamReferralBtn {
    background: linear-gradient(135deg, #a95d17, #d38a2d) !important;
}

body[data-page="user"] #copyTeamInvitationCodeBtn {
    background: linear-gradient(135deg, #087f5b, #19a977) !important;
}

body[data-page="user"] #openTeamReferralBtn {
    background: linear-gradient(135deg, #225ec2, #3e82e6) !important;
}

body[data-page="user"] #team .referral-panel .inline-actions .btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

body[data-page="user"] #team .referral-panel .inline-actions .btn:disabled {
    background: #a9a9a9 !important;
    color: rgba(255, 255, 255, .8) !important;
    box-shadow: none;
}

body[data-page="user"] #teamReferralMessage {
    min-height: 1.35em;
    margin: 2px 0 0;
    color: #145c32 !important;
    font-size: .95rem !important;
    font-weight: 800;
}

/* Keep the most important referral total immediately legible on its teal card. */
body[data-page="user"] .team-overview-commission > strong,
body[data-page="user"] .team-overview-commission .money-ugx {
    color: #fff !important;
    font-size: 1.65rem !important;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: .015em;
    text-shadow: 0 1px 2px rgba(0, 61, 48, .28);
}

body[data-page="user"] .team-overview-commission .money-usd {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, .88) !important;
    font-size: .82rem !important;
    font-weight: 800;
}

@media (max-width: 600px) {
    body[data-page="user"] #team .referral-panel .inline-actions .btn {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* Dashboard account and wallet cards: finished coloured surfaces with readable text. */
html body[data-page="user"] .dashboard-member-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    margin: 8px 0 18px;
    background:
        radial-gradient(circle at 8% 0%, rgba(255,255,255,.22), transparent 28%),
        linear-gradient(135deg, #10875f 0%, #116378 48%, #243f9f 100%) !important;
    border: 1px solid rgba(255,255,255,.26) !important;
    border-radius: 12px;
    box-shadow: 0 9px 22px rgba(20,30,60,.18), inset 0 1px 0 rgba(255,255,255,.18);
    overflow: hidden;
}
html body[data-page="user"] .dashboard-member-info .dmi-divider { display: none; }
html body[data-page="user"] .dashboard-member-info .dmi-item {
    --dmi-tint: rgba(255,255,255,.12);
    min-height: 58px;
    padding: 10px 12px;
    gap: 9px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--dmi-tint), rgba(255,255,255,.045));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
html body[data-page="user"] .dashboard-member-info .dmi-item:nth-child(1) { --dmi-tint: rgba(55,126,232,.28); }
html body[data-page="user"] .dashboard-member-info .dmi-item:nth-child(3) { --dmi-tint: rgba(22,170,171,.28); }
html body[data-page="user"] .dashboard-member-info .dmi-item:nth-child(5) { --dmi-tint: rgba(228,165,12,.28); }
html body[data-page="user"] .dashboard-member-info .dmi-item:nth-child(7) { --dmi-tint: rgba(32,172,108,.28); }
html body[data-page="user"] .dashboard-member-info .dmi-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,.18);
    font-size: 1rem;
}
html body[data-page="user"] .dashboard-member-info .dmi-label,
html body[data-page="user"] .dashboard-member-info .dmi-text strong {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.28);
}
html body[data-page="user"] .dashboard-member-info .dmi-label {
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .08em;
}
html body[data-page="user"] .dashboard-member-info .dmi-text strong {
    display: block;
    margin-top: 2px;
    font-size: .82rem;
    font-weight: 900;
}

html body[data-page="user"] .wallet-balance-card {
    position: relative;
    padding: 16px !important;
    gap: 12px !important;
    background:
        radial-gradient(circle at 92% 8%, rgba(0,173,43,.12), transparent 30%),
        linear-gradient(135deg, #fff5e6 0%, #f2dfc3 58%, #e9d0ac 100%) !important;
    border: 1px solid rgba(169,107,41,.24) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 28px rgba(79,55,24,.16), inset 0 1px 0 rgba(255,255,255,.7) !important;
    overflow: hidden;
}
html body[data-page="user"] .wallet-balance-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #00ad2b, #d49b14, #6b5b95);
}
html body[data-page="user"] .wallet-balance-card > span,
html body[data-page="user"] .wallet-balance-card #dashboardActivityStatus,
html body[data-page="user"] .wallet-balance-card #nextPayoutProgress span {
    color: #5f5a52 !important;
    font-weight: 900;
    text-shadow: none;
}
html body[data-page="user"] .wallet-balance-card > span {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.56);
    letter-spacing: .08em;
}
html body[data-page="user"] .wallet-balance-card #dashboardBalance,
html body[data-page="user"] .wallet-balance-card #dashboardBalance .money-ugx {
    color: #00ad2b !important;
    font-size: 2rem !important;
    font-weight: 900;
    text-shadow: 0 2px 0 rgba(255,255,255,.9), 0 5px 12px rgba(0,0,0,.16);
}
html body[data-page="user"] .wallet-balance-card #dashboardBalance .money-usd {
    color: #00ad2b !important;
    font-size: .8rem !important;
    font-weight: 800;
    text-shadow: none;
}
html body[data-page="user"] .wallet-balance-card #nextPayoutProgress {
    padding: 10px 12px !important;
    background: rgba(106,92,72,.35) !important;
    border: 1px solid rgba(255,255,255,.36);
    border-radius: 8px !important;
}
html body[data-page="user"] .wallet-balance-card #payoutPctLabel { color: #00ad2b !important; }
html body[data-page="user"] .wallet-balance-card .inv-timeline-track {
    background: rgba(255,255,255,.28) !important;
    border-radius: 999px;
}
html body[data-page="user"] .wallet-balance-card .inv-timeline-fill {
    background: linear-gradient(90deg, #facc15, #22c55e) !important;
    border-radius: 999px;
}
html body[data-page="user"] .wallet-balance-card .wallet-balance-actions {
    gap: 8px !important;
    margin-top: 12px !important;
}
html body[data-page="user"] .wallet-balance-card a,
html body[data-page="user"] .wallet-balance-card button {
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 4px 10px rgba(0,0,0,.12);
    color: #fff !important;
    font-size: .78rem !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.28);
}
html body[data-page="user"] .wallet-balance-card a:active,
html body[data-page="user"] .wallet-balance-card button:active {
    transform: translateY(1px);
}

@media (max-width: 640px) {
    html body[data-page="user"] .dashboard-member-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 10px;
    }
    html body[data-page="user"] .dashboard-member-info .dmi-item { min-height: 52px; padding: 8px 9px; }
    html body[data-page="user"] .dashboard-member-info .dmi-label { font-size: .57rem; }
    html body[data-page="user"] .dashboard-member-info .dmi-text strong { font-size: .69rem; }
    html body[data-page="user"] .wallet-balance-card #dashboardBalance,
    html body[data-page="user"] .wallet-balance-card #dashboardBalance .money-ugx { font-size: 1.4rem !important; }
    html body[data-page="user"] .wallet-balance-card a,
    html body[data-page="user"] .wallet-balance-card button { min-height: 38px; }
}

.admin-metric-ctrl {
    display: flex;
    justify-content: center;
}
.admin-metric-btn {
    width: 28px;
    height: 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #fff;
    transition: opacity 0.15s;
}
.admin-metric-btn.credit {
    background: #2d8a4e;
}
.admin-metric-btn.deduct {
    background: #c0392b !important;
}
.admin-metric-btn:active {
    opacity: 0.6;
}

/* Sticky shortcuts keep both commission histories within reach while records scroll. */
body[data-page="user"] .commission-history-nav {
    position: sticky;
    top: 68px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding: 10px 12px;
    border: 1px solid #d9c28d;
    border-radius: 12px;
    background: rgba(255, 251, 238, .96);
    box-shadow: 0 6px 16px rgba(68, 52, 19, .14);
    backdrop-filter: blur(8px);
}
body[data-page="user"] .commission-history-nav-label {
    color: #594315;
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}
body[data-page="user"] .commission-history-nav-actions {
    display: flex;
    gap: 7px;
}
body[data-page="user"] .commission-history-nav-btn {
    min-height: 34px;
    padding: 7px 11px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: .73rem;
    font-weight: 800;
    cursor: pointer;
}
body[data-page="user"] .commission-history-nav-btn.daily { background: #b56d0b; }
body[data-page="user"] .commission-history-nav-btn.deposit { background: #087f69; }
body[data-page="user"] #dailyCommissionHistory,
body[data-page="user"] #depositCommissionHistory { scroll-margin-top: 128px; }

@media (max-width: 560px) {
    body[data-page="user"] .commission-history-nav { top: 58px; align-items: stretch; flex-direction: column; }
    body[data-page="user"] .commission-history-nav-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body[data-page="user"] .commission-history-nav-btn { padding-inline: 7px; font-size: .68rem; }
}
/* Limited-time mineral promotions */
.dashboard-promo-section{margin:16px 0;padding:16px;border:1px solid rgba(240,181,50,.42);border-radius:16px;background:linear-gradient(135deg,#21190b,#3b280b);color:#fff;box-shadow:0 8px 22px rgba(125,83,5,.18)}
.dashboard-promo-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.dashboard-promo-heading h2{margin:3px 0 0;font-size:1.05rem}.dashboard-promo-live{font-size:.68rem;font-weight:800;color:#ffe8a3}.dashboard-promo-live i,.dashboard-promo-signal{display:inline-block;width:8px;height:8px;border-radius:50%;background:#ff4b4b;box-shadow:0 0 0 0 rgba(255,75,75,.75);animation:promoPulse 1.4s infinite}.dashboard-promo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-promo-card{position:relative;padding:10px;border-radius:12px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);overflow:hidden}.dashboard-promo-signal{position:absolute;right:13px;top:13px}.dashboard-promo-badge{font-size:.57rem;font-weight:900;letter-spacing:.08em;color:#231606;background:#ffd35a;border-radius:20px;padding:4px 6px}.dashboard-promo-card h3{margin:4px 0 2px;font-size:.95rem;color:#ffffff}.dashboard-promo-card p{margin:0;min-height:auto;font-size:.72rem;line-height:1.35;color:#e0e0e0}.dashboard-promo-meta{display:flex;flex-direction:column;gap:1px;margin:6px 0 4px}.dashboard-promo-meta strong{font-size:.85rem;color:#ffd35a}.dashboard-promo-meta span,.dashboard-promo-countdown{font-size:.7rem}.dashboard-promo-countdown{font-weight:800;margin-bottom:8px;color:#e0e0e0}.dashboard-promo-btn{width:100%;border:0;border-radius:8px;padding:9px;background:#ffd35a;color:#241806;font-weight:900;cursor:pointer}.dashboard-promo-btn span{float:right}@keyframes promoPulse{70%{box-shadow:0 0 0 9px rgba(255,75,75,0)}100%{box-shadow:0 0 0 0 rgba(255,75,75,0)}}
.promotion-manager{margin:0 0 24px;padding:18px;border-radius:12px;border:1px solid rgba(240,181,50,.35);background:linear-gradient(135deg,rgba(240,181,50,.1),rgba(255,255,255,.03))}.promotion-manager-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px}.promotion-manager-head h3{margin:0 0 4px;color:#f5c34c}.promotion-manager-head p{margin:0;color:rgba(255,255,255,.66);font-size:.78rem}.promotion-manager-head>span{height:max-content;padding:4px 8px;border-radius:99px;background:#f5c34c;color:#29200b;font-size:.7rem;font-weight:900}.promotion-manager-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.promotion-slot{display:grid;gap:8px;padding:13px;border-radius:10px;background:rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.08)}.promotion-slot input{min-width:0;width:100%;box-sizing:border-box;padding:8px;border-radius:6px;border:1px solid rgba(255,255,255,.15);background:rgba(0,0,0,.25);color:#fff}.promotion-slot label{font-size:.72rem;color:rgba(255,255,255,.72)}.promotion-slot-title{display:flex;justify-content:space-between;align-items:center}.promotion-slot-title label{display:flex;gap:5px;align-items:center}.promotion-slot-title input{width:auto}.promotion-slot-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.promotion-slot .btn{justify-self:start}.promotion-slot input[type="color"]{height:36px;padding:2px;cursor:pointer;min-width:60px}.promotion-slot select{width:100%;box-sizing:border-box;padding:8px;border-radius:6px;border:1px solid rgba(255,255,255,.15);background:rgba(0,0,0,.25);color:#fff;font-size:.75rem}.promotion-style-section{margin-top:8px;padding:10px;border-radius:8px;background:rgba(0,0,0,.15);border:1px solid rgba(255,255,255,.08)}.promotion-style-section strong{display:block;margin-bottom:8px;color:#f5c34c;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em}.cp-wrap{display:flex;align-items:center;gap:6px}.cp-swatch{width:36px;height:36px;border-radius:8px;border:2px solid rgba(255,255,255,.2);cursor:pointer;flex-shrink:0;transition:transform .15s}.cp-swatch:hover{transform:scale(1.08);border-color:rgba(255,255,255,.45)}
.dashboard-promo-return{display:flex;flex-direction:column;gap:1px;margin:0 0 6px}.dashboard-promo-return span{font-size:.65rem;color:inherit;opacity:.6}.dashboard-promo-return strong{font-size:.82rem;font-weight:800;color:inherit}
.promo-countdown{display:flex;align-items:center;justify-content:center;gap:4px;margin:8px 0 10px;padding:6px 0;border-radius:8px;background:rgba(0,0,0,.3);border:1px solid rgba(255,255,255,.08)}.promo-countdown.ended{justify-content:center}.promo-countdown.ended span{font-size:.75rem;font-weight:700;color:#ff6b6b}.promo-cd-block{display:flex;flex-direction:column;align-items:center;min-width:40px}.promo-cd-num{display:block;font-size:1.1rem;font-weight:900;color:#fff;line-height:1.1;font-variant-numeric:tabular-nums}.promo-cd-label{font-size:.5rem;font-weight:600;color:rgba(255,255,255,.5);text-transform:uppercase;letter-spacing:.04em}.promo-cd-sep{font-size:1rem;font-weight:900;color:rgba(255,255,255,.35);margin-top:-6px}
@media(max-width:620px){.dashboard-promo-grid,.promotion-manager-grid{grid-template-columns:1fr}}


/* Pulse Envelope */
.pulse-envelope-cta{display:inline-flex;align-items:flex-start;gap:4px;cursor:pointer;transition:transform .2s;flex-shrink:0}.pulse-envelope-cta:hover{transform:scale(1.05)}.pulse-envelope-cta.hidden{display:none}.pulse-envelope-cta.received{display:none}.pulse-arrow-group{display:inline-flex;align-items:center;animation:pulseArrowBounce .8s ease-in-out infinite}.pulse-envelope-content{display:flex;flex-direction:column;align-items:center;gap:2px}.pulse-envelope-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px 5px 6px;border-radius:20px;background:linear-gradient(135deg,#ff6b35,#ff4444);box-shadow:0 2px 12px rgba(255,68,68,.45)}.pulse-envelope-icon{font-size:18px;line-height:1;z-index:2;filter:drop-shadow(0 1px 2px rgba(0,0,0,.3))}.pulse-envelope-label{font-size:8px;font-weight:900;color:white !important;letter-spacing:.5px;white-space:nowrap;text-shadow:0 1px 3px rgba(0,0,0,.5);text-align:center;line-height:1.1}.pulse-envelope-tooltip{position:fixed;top:120px;right:20px;background:#1f2937;color:#fff;padding:10px 14px;border-radius:10px;font-size:12px;white-space:nowrap;box-shadow:0 4px 20px rgba(0,0,0,.5);z-index:9999;pointer-events:auto;border:1px solid rgba(255,255,255,.1)}.pulse-envelope-tooltip::before{content:'';position:absolute;top:-6px;right:14px;width:12px;height:12px;background:#1f2937;border-left:1px solid rgba(255,255,255,.1);border-top:1px solid rgba(255,255,255,.1);transform:rotate(45deg)}.pulse-envelope-tooltip .pulse-claim-btn{display:block;margin-top:8px;width:100%;padding:7px;border:0;border-radius:6px;background:#ffd35a;color:#1a1a1a;font-weight:900;font-size:12px;cursor:pointer}.pulse-envelope-tooltip .pulse-claim-btn:disabled{opacity:.5;cursor:default}.pulse-envelope-tooltip .pulse-received-msg{color:#4ade80;font-weight:700;text-align:center;padding:4px 0}.pulse-envelope-badge.received .pulse-envelope-icon{font-size:14px}.pulse-envelope-badge.received .pulse-envelope-label{display:none}.pulse-arrow-tail{width:12px;height:2px;background:#ff2222;border-radius:1px;flex-shrink:0}.pulse-arrow-head{width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:7px solid #ff2222;flex-shrink:0}@keyframes pulseArrowBounce{0%,100%{transform:translateX(0);opacity:1}50%{transform:translateX(6px);opacity:.7}}


/* === Mobile Responsive Fixes === */
@media(max-width:560px){
    /* Pulse Envelope badge: smaller on mobile, no clip */
    .pulse-envelope-badge{padding:3px 8px 3px 5px;overflow:visible}
    .pulse-envelope-icon{font-size:14px}
    .pulse-envelope-label{font-size:8px;padding:2px 0 0 0}
    .pulse-envelope-badge.received .pulse-envelope-icon{font-size:11px}
    .pulse-envelope-tooltip{
        top:auto!important;bottom:16px!important;left:16px!important;right:16px!important;
        width:auto!important;white-space:normal;border-radius:12px;font-size:13px;
        box-shadow:0 -4px 24px rgba(0,0,0,.6);
    }
    .pulse-envelope-tooltip::before{display:none}
    .pulse-envelope-tooltip .pulse-claim-btn{padding:10px;font-size:13px}
    .pulse-envelope-badge.received .pulse-envelope-tooltip{display:none!important}
    /* Admin pulse panel: stack grid to single column */
    .pulse-input-row{grid-template-columns:1fr!important}
    #pulse-envelope .pulse-cancel-btn{font-size:10px!important;padding:2px 6px!important}
    /* Activity feed: allow horizontal scroll */
    .activity-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media(max-width:480px){
    .pulse-envelope-badge{padding:3px 7px 3px 4px;overflow:visible}
    .pulse-envelope-icon{font-size:13px}
    .pulse-envelope-label{font-size:7px;padding:2px 0 0 0}
    .pulse-envelope-tooltip{padding:12px 16px;font-size:13px}
}
@keyframes promo-daily-glow {
    0% { box-shadow: 0 0 15px rgba(255,211,90,0.6), inset 0 0 10px rgba(255,211,90,0.2); }
    50% { box-shadow: 0 0 35px rgba(255,211,90,0.9), inset 0 0 20px rgba(255,211,90,0.4); border-color: rgba(255,211,90,0.8); }
    100% { box-shadow: 0 0 0 transparent, inset 0 0 0 transparent; }
}
.promo-glow-active {
    animation: promo-daily-glow 3s ease-in-out !important;
}
.promo-glow-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.65);
    border-radius: 12px;
    font-size: 1rem; font-weight: 700;
    color: #ffd35a;
    text-shadow: 0 0 10px rgba(255,211,90,0.5);
    pointer-events: none;
    z-index: 10;
}
.promo-glow-show {
    display: flex !important;
    animation: promo-glow-fade 4s forwards;
}
@keyframes promo-glow-fade {
    0%, 65% { opacity: 1; }
    100% { opacity: 0; }
}
#login input:not([type="checkbox"]):not([type="radio"]), #signup input:not([type="checkbox"]):not([type="radio"]), #pin-login input:not([type="checkbox"]):not([type="radio"]), #pin-verify input:not([type="checkbox"]):not([type="radio"]), #pin-create input:not([type="checkbox"]):not([type="radio"]), #forgot-password input:not([type="checkbox"]):not([type="radio"]) {
    touch-action: manipulation !important;
    -webkit-appearance: none !important;
}
#login input:focus, #signup input:focus, #pin-login input:focus, #pin-verify input:focus, #pin-create input:focus, #forgot-password input:focus {
    outline: none !important;
}

/* ── Login Page: Dark Emerald / Green Theme ── */
#login .panel.narrow {
    background: linear-gradient(145deg, #064e3b, #065f46) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    box-shadow: 0 8px 32px rgba(6, 78, 59, 0.35) !important;
}
#login .panel.narrow .form input:not([type="checkbox"]):not([type="radio"]) {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}
#login .panel.narrow .form input:not([type="checkbox"]):not([type="radio"])::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}
#login .panel.narrow .form input:not([type="checkbox"]):not([type="radio"]):focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
    outline: none !important;
}
#login .panel.narrow .btn.primary {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}
#login .panel.narrow .btn.primary:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
    filter: brightness(1.1) !important;
}
#login .panel.narrow .check-row input[type="checkbox"] {
    accent-color: #10b981 !important;
}
#login .panel.narrow #savedLoginCard {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

/* ── Signup Page: Warm Coral / Orange Theme ── */
#signup .panel.narrow {
    background: linear-gradient(145deg, #7c2d12, #9a3412) !important;
    border: 1px solid rgba(251, 146, 60, 0.25) !important;
    box-shadow: 0 8px 32px rgba(124, 45, 18, 0.35) !important;
}
#signup .panel.narrow .form input:not([type="checkbox"]):not([type="radio"]) {
    background: rgba(251, 146, 60, 0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(251, 146, 60, 0.25) !important;
}
#signup .panel.narrow .form input:not([type="checkbox"]):not([type="radio"])::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}
#signup .panel.narrow .form input:not([type="checkbox"]):not([type="radio"]):focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2) !important;
    outline: none !important;
}
#signup .panel.narrow .btn.primary {
    background: linear-gradient(135deg, #ea580c, #f97316) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35) !important;
}
#signup .panel.narrow .btn.primary:hover {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5) !important;
    filter: brightness(1.1) !important;
}
#signup .panel.narrow .check-row input[type="checkbox"] {
    accent-color: #f97316 !important;
}

/* ── All text white on Login & Signup ── */
#login .panel.narrow *,
#signup .panel.narrow * {
    color: #fff !important;
}
#login .panel.narrow .form input:not([type="checkbox"]):not([type="radio"])::placeholder,
#signup .panel.narrow .form input:not([type="checkbox"]):not([type="radio"])::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ── Login/Signup Theme Overrides (dark/light mode) ── */
html body[data-page="user"].theme-dark #login .panel.narrow,
html body[data-page="user"].theme-light #login .panel.narrow {
    background: linear-gradient(145deg, #064e3b, #065f46) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}
html body[data-page="user"].theme-dark #signup .panel.narrow,
html body[data-page="user"].theme-light #signup .panel.narrow {
    background: linear-gradient(145deg, #7c2d12, #9a3412) !important;
    border: 1px solid rgba(251, 146, 60, 0.25) !important;
}
html body[data-page="user"].theme-dark #login .panel.narrow *,
html body[data-page="user"].theme-light #login .panel.narrow *,
html body[data-page="user"].theme-dark #signup .panel.narrow *,
html body[data-page="user"].theme-light #signup .panel.narrow * {
    color: #fff !important;
}
html body[data-page="user"].theme-dark #login .panel.narrow .form input:not([type="checkbox"]):not([type="radio"]),
html body[data-page="user"].theme-light #login .panel.narrow .form input:not([type="checkbox"]):not([type="radio"]) {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}
html body[data-page="user"].theme-dark #signup .panel.narrow .form input:not([type="checkbox"]):not([type="radio"]),
html body[data-page="user"].theme-light #signup .panel.narrow .form input:not([type="checkbox"]):not([type="radio"]) {
    background: rgba(251, 146, 60, 0.1) !important;
    border: 1px solid rgba(251, 146, 60, 0.25) !important;
}
html body[data-page="user"].theme-dark #login .panel.narrow .btn.primary,
html body[data-page="user"].theme-light #login .panel.narrow .btn.primary {
    background: linear-gradient(135deg, #059669, #10b981) !important;
}
html body[data-page="user"].theme-dark #signup .panel.narrow .btn.primary,
html body[data-page="user"].theme-light #signup .panel.narrow .btn.primary {
    background: linear-gradient(135deg, #ea580c, #f97316) !important;
}

@keyframes pulseArrowBounce {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(6px); opacity: .7; }
}

/* ══════════════════════════════════════════════════════════════
   ADMIN DASHBOARD — THEMEABLE COLOR SYSTEM
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties (Dark Purple default) ────────── */
.admin-body {
    --adm-accent: #8b5cf6;
    --adm-accent-dim: rgba(139, 92, 246, 0.12);
    --adm-accent-glow: rgba(139, 92, 246, 0.06);
    --adm-accent-bright: #a78bfa;
    --adm-accent-text: #c4b5fd;
    --adm-secondary: #6366f1;
    --adm-teal: #10b981;
    --adm-amber: #f59e0b;
    --adm-card-border: rgba(255, 255, 255, 0.06);
    --adm-panel-bg: linear-gradient(180deg, rgba(139, 92, 246, 0.04), rgba(34, 37, 43, 1));
    --adm-panel-border-top: linear-gradient(90deg, var(--adm-accent), var(--adm-secondary), transparent);
    --adm-topbar-gradient: linear-gradient(90deg, var(--adm-accent), var(--adm-amber), var(--adm-teal), #3b82f6);
    --adm-heading-text: linear-gradient(135deg, var(--adm-accent-text), var(--adm-accent-bright));
    --adm-sidebar-tint-1: rgba(139, 92, 246, 0.08);
    --adm-sidebar-tint-2: rgba(59, 130, 246, 0.06);
    --adm-sidebar-tint-3: rgba(16, 185, 129, 0.04);
    --adm-menu-hover: linear-gradient(90deg, var(--adm-accent-dim), rgba(59, 130, 246, 0.10), transparent);
    --adm-menu-active: linear-gradient(90deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.12), transparent);
    --adm-brand-gradient: linear-gradient(135deg, #c084fc, #60a5fa, #34d399);
    --adm-scrollbar: linear-gradient(180deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.3));
    --adm-scrollbar-hover: linear-gradient(180deg, rgba(139, 92, 246, 0.6), rgba(59, 130, 246, 0.5));
    --adm-input-bg: rgba(139, 92, 246, 0.06);
    --adm-input-border: rgba(139, 92, 246, 0.15);
    --adm-input-focus: rgba(139, 92, 246, 0.5);
    --adm-input-focus-glow: rgba(139, 92, 246, 0.12);
    --adm-tab-active: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.15));
    --adm-table-head: linear-gradient(90deg, rgba(139, 92, 246, 0.12), rgba(59, 130, 246, 0.08));
    --adm-table-head-border: rgba(139, 92, 246, 0.2);
    --adm-table-row-hover: rgba(139, 92, 246, 0.06);
    --adm-table-row-border: rgba(139, 92, 246, 0.06);
    --adm-card-badge-bg: linear-gradient(135deg, #1e1b4b, #1a1f2e);
    --adm-card-badge-border: rgba(139, 92, 246, 0.3);
    --adm-title-gradient: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    --adm-btn-tab-border: rgba(139, 92, 246, 0.1);
    --adm-btn-tab-hover-bg: rgba(139, 92, 246, 0.1);
    --adm-chat-list-bg: linear-gradient(180deg, rgba(59, 130, 246, 0.03), rgba(3, 8, 12, 0.38));
    --adm-chat-msg-bg: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(3, 8, 12, 0.38));
}

/* ── Body: deep gradient background ──────────────────────── */
.admin-body {
    background:
        radial-gradient(ellipse at 0% 0%, var(--adm-accent-dim) 0%, transparent 40%),
        radial-gradient(ellipse at 100% 100%, rgba(245, 158, 11, 0.10) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, var(--adm-sidebar-tint-3) 0%, transparent 60%),
        linear-gradient(160deg, #0e0f14, #161820 40%, #111318);
}

/* ── Sidebar: gradient accent ────────────────────────────── */
.admin-sidebar {
    background:
        linear-gradient(180deg, var(--adm-sidebar-tint-1) 0%, var(--adm-sidebar-tint-2) 50%, var(--adm-sidebar-tint-3) 100%),
        linear-gradient(180deg, #15171e, #13151b);
    border-right: 1px solid var(--adm-accent-dim);
}

.admin-brand strong {
    background: var(--adm-brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: var(--adm-menu-hover);
    border-left: 4px solid var(--adm-accent-bright);
    color: var(--adm-accent-text);
    padding-left: 14px;
}

.admin-menu a.active {
    background: var(--adm-menu-active);
    border-left-color: var(--adm-accent);
    color: #e0d4ff;
}

.admin-menu a:hover .stat-icon,
.admin-menu a.active .stat-icon {
    color: var(--adm-accent-text);
}

/* ── Topbar: gradient bottom border ──────────────────────── */
.admin-topbar {
    background:
        linear-gradient(90deg, var(--adm-accent-dim), rgba(245, 158, 11, 0.06), var(--adm-sidebar-tint-3)),
        rgba(22, 24, 32, 0.98);
    border-bottom: 2px solid transparent;
    border-image: var(--adm-topbar-gradient) 1;
}

.admin-topbar h1 {
    background: var(--adm-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Main area: subtle tint ──────────────────────────────── */
.admin-main {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(251, 191, 36, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, var(--adm-accent-glow) 0%, transparent 50%),
        #1f2228;
}

/* ── Panel sections: colorful top borders ─────────────────── */
.admin-panel {
    border: 1px solid var(--adm-accent-dim);
    border-top: 3px solid transparent;
    border-image: var(--adm-panel-border-top) 1;
    background: var(--adm-panel-bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.admin-panel:hover {
    border-color: rgba(139, 92, 246, 0.22);
    box-shadow: 0 8px 32px var(--adm-accent-glow);
}

.admin-panel .panel-header h2 {
    background: var(--adm-heading-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Stat cards: colored left borders & tints ────────────── */
.admin-stat-card,
.admin-plan-card {
    border: 1px solid var(--adm-card-border);
    border-left: 4px solid var(--adm-accent);
    background: linear-gradient(145deg, var(--adm-accent-dim), rgba(34, 37, 43, 0.95));
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
}

.admin-stat-card:hover,
.admin-plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--adm-accent-glow);
}

/* Color variations for different card types (always rainbow) */
.admin-stat-card:nth-child(1) { border-left-color: #f59e0b; background: linear-gradient(145deg, rgba(245, 158, 11, 0.08), rgba(34, 37, 43, 0.95)); }
.admin-stat-card:nth-child(1):hover { box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12); }
.admin-stat-card:nth-child(2) { border-left-color: #f97316; background: linear-gradient(145deg, rgba(249, 115, 22, 0.08), rgba(34, 37, 43, 0.95)); }
.admin-stat-card:nth-child(2):hover { box-shadow: 0 8px 24px rgba(249, 115, 22, 0.12); }
.admin-stat-card:nth-child(3) { border-left-color: #22c55e; background: linear-gradient(145deg, rgba(34, 197, 94, 0.08), rgba(34, 37, 43, 0.95)); }
.admin-stat-card:nth-child(3):hover { box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12); }
.admin-stat-card:nth-child(4) { border-left-color: #3b82f6; background: linear-gradient(145deg, rgba(59, 130, 246, 0.08), rgba(34, 37, 43, 0.95)); }
.admin-stat-card:nth-child(4):hover { box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12); }
.admin-stat-card:nth-child(5) { border-left-color: #ec4899; background: linear-gradient(145deg, rgba(236, 72, 153, 0.08), rgba(34, 37, 43, 0.95)); }
.admin-stat-card:nth-child(5):hover { box-shadow: 0 8px 24px rgba(236, 72, 153, 0.12); }
.admin-stat-card:nth-child(6) { border-left-color: #14b8a6; background: linear-gradient(145deg, rgba(20, 184, 166, 0.08), rgba(34, 37, 43, 0.95)); }
.admin-stat-card:nth-child(6):hover { box-shadow: 0 8px 24px rgba(20, 184, 166, 0.12); }

.admin-stat-card .stat-value { color: #fff; }

.admin-stat-card[data-card-name]::before,
.admin-plan-card[data-card-name]::before {
    background: var(--adm-card-badge-bg);
    border: 1px solid var(--adm-card-badge-border);
    color: var(--adm-accent-text);
}

/* ── Stat icon color upgrades ────────────────────────────── */
.stat-icon.gold, .stat-icon.amber {
    background: linear-gradient(135deg, #92400e, #b45309);
    color: #fcd34d;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.stat-icon.green {
    background: linear-gradient(135deg, #166534, #15803d);
    color: #4ade80;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}
.stat-icon.purple {
    background: linear-gradient(135deg, #581c87, #7c3aed);
    color: #c4b5fd;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}
.stat-icon.blue {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    color: #93c5fd;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.stat-icon.rose {
    background: linear-gradient(135deg, #881337, #e11d48);
    color: #fda4af;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}
.stat-icon.orange {
    background: linear-gradient(135deg, #7c2d12, #ea580c);
    color: #fdba74;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}
.stat-icon.cyan {
    background: linear-gradient(135deg, #164e63, #0891b2);
    color: #67e8f9;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

/* ── Alert panel: red/coral accent ────────────────────────── */
.admin-inquiry-alert-panel {
    border-image: linear-gradient(90deg, #ef4444, #f97316, transparent) 1;
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.04), rgba(34, 37, 43, 1));
}
.admin-inquiry-alert-panel .panel-header h2 {
    background: linear-gradient(135deg, #fca5a5, #fb923c);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.admin-inquiry-card {
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-left: 3px solid #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.06), rgba(8, 9, 13, 0.26));
}

/* ── Chat section: blue accent ───────────────────────────── */
.admin-chat-shell {
    border-image: linear-gradient(90deg, #3b82f6, #6366f1, transparent) 1;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.04), rgba(34, 37, 43, 1));
}
.admin-chat-shell .panel-header h2 {
    background: linear-gradient(135deg, #93c5fd, #a5b4fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Security section: red accent ─────────────────────────── */
#security-panel {
    border-image: linear-gradient(90deg, #ef4444, #dc2626, transparent) 1;
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.03), rgba(34, 37, 43, 1));
}
#security-panel .panel-header h2 {
    background: linear-gradient(135deg, #fca5a5, #f87171);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Buttons: vivid gradients ────────────────────────────── */
.gift-all-btn {
    border: 1px solid rgba(239, 68, 68, 0.55) !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.08)) !important;
    color: #fca5a5 !important; transition: all 0.2s ease;
}
.gift-all-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.15)) !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}
.deduct-all-btn {
    border: 1px solid rgba(245, 158, 11, 0.55) !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.08)) !important;
    color: #fcd34d !important; transition: all 0.2s ease;
}
.deduct-all-btn:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15)) !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}
.clear-all-btn {
    border: 1px solid rgba(236, 72, 153, 0.55) !important;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(219, 39, 119, 0.08)) !important;
    color: #f9a8d4 !important; transition: all 0.2s ease;
}
.clear-all-btn:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(219, 39, 119, 0.15)) !important;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.2);
}
.admin-back-btn {
    border: 1px solid rgba(59, 130, 246, 0.55) !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.08)) !important;
    color: #93c5fd !important; transition: all 0.2s ease;
}
.admin-back-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.15)) !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}
.card-reset-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.06)) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important; transition: all 0.2s ease;
}
.card-reset-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.12)) !important;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.15);
}
.approve-deposit-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(22, 163, 74, 0.06)) !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
    color: #86efac !important; transition: all 0.2s ease;
}
.approve-deposit-btn:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.12)) !important;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.15);
}

/* ── Admin table styling ──────────────────────────────────── */
.admin-table thead tr {
    background: var(--adm-table-head);
    border-bottom: 2px solid var(--adm-table-head-border);
}
.admin-table th {
    color: var(--adm-accent-text); font-weight: 900; text-transform: uppercase; font-size: 10px; letter-spacing: 0.05em;
}
.admin-table tbody tr:hover {
    background: var(--adm-table-row-hover);
    border-left: 2px solid var(--adm-accent);
}
.admin-table tbody tr {
    border-bottom: 1px solid var(--adm-table-row-border);
}

/* ── Admin tab navigation ─────────────────────────────────── */
.admin-tabs-nav {
    display: flex; gap: 4px; padding: 4px;
    background: rgba(0, 0, 0, 0.2); border-radius: 10px;
    border: 1px solid var(--adm-btn-tab-border);
}
.admin-tab-btn {
    padding: 8px 14px; border: none; border-radius: 8px;
    background: transparent; color: rgba(255, 255, 255, 0.5);
    font-weight: 700; font-size: 11px; cursor: pointer; transition: all 0.2s ease;
}
.admin-tab-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    background: var(--adm-btn-tab-hover-bg);
}
.admin-tab-btn.active {
    background: var(--adm-tab-active);
    color: var(--adm-accent-text);
    box-shadow: 0 2px 8px var(--adm-accent-glow);
}

/* ── Admin form inputs ────────────────────────────────────── */
.admin-body input[type="text"],
.admin-body input[type="number"],
.admin-body input[type="email"],
.admin-body input[type="search"],
.admin-body textarea,
.admin-body select {
    background: var(--adm-input-bg) !important;
    border: 1px solid var(--adm-input-border) !important;
    color: #fff !important; border-radius: 8px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-body input[type="text"]:focus,
.admin-body input[type="number"]:focus,
.admin-body input[type="email"]:focus,
.admin-body input[type="search"]:focus,
.admin-body textarea:focus,
.admin-body select:focus {
    border-color: var(--adm-input-focus) !important;
    box-shadow: 0 0 0 3px var(--adm-input-focus-glow) !important;
    outline: none !important;
}

/* ── Theme toggle button ──────────────────────────────────── */
.theme-toggle-btn {
    background: linear-gradient(135deg, var(--adm-accent-dim), var(--adm-sidebar-tint-2)) !important;
    border: 1px solid var(--adm-accent) !important;
    border-radius: 10px !important;
    color: var(--adm-accent-text) !important;
    transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(59, 130, 246, 0.18)) !important;
    box-shadow: 0 4px 16px var(--adm-accent-glow);
    transform: rotate(15deg);
}

/* ── Admin menu badge ─────────────────────────────────────── */
.admin-menu-badge {
    background: linear-gradient(135deg, var(--adm-accent-dim), var(--adm-accent-glow)) !important;
    color: var(--adm-accent-text) !important;
    border: 1px solid var(--adm-accent-dim);
}
.admin-menu-badge.has-alerts {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 2px 16px rgba(239, 68, 68, 0.7); }
}

/* ── Select dropdowns ─────────────────────────────────────── */
.admin-body select {
    background: var(--adm-input-bg) !important;
    border: 1px solid var(--adm-input-border) !important;
    color: var(--adm-accent-text) !important;
    border-radius: 8px; cursor: pointer;
}

/* ── Progress / filled states ─────────────────────────────── */
.progress-bar {
    background: linear-gradient(90deg, var(--adm-accent), var(--adm-secondary), #3b82f6);
    border-radius: 999px;
}

/* ── Scrollbar styling ────────────────────────────────────── */
.admin-body ::-webkit-scrollbar { width: 6px; height: 6px; }
.admin-body ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.15); border-radius: 3px; }
.admin-body ::-webkit-scrollbar-thumb { background: var(--adm-scrollbar); border-radius: 3px; }
.admin-body ::-webkit-scrollbar-thumb:hover { background: var(--adm-scrollbar-hover); }

/* ── Chat bubbles ─────────────────────────────────────────── */
.chat-list {
    border: 1px solid var(--adm-accent-dim) !important;
    background: var(--adm-chat-list-bg) !important;
}
.chat-message {
    border: 1px solid var(--adm-accent-dim) !important;
    background: var(--adm-chat-msg-bg) !important;
}
.chat-message.is-own {
    border-color: rgba(34, 197, 94, 0.2) !important;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(3, 8, 12, 0.38)) !important;
}

/* ── Badge pills for action types ─────────────────────────── */
.admin-inquiry-pill {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(220, 38, 38, 0.1)) !important;
    border: 1px solid rgba(239, 68, 68, 0.2); color: #fca5a5 !important;
}

/* ── Notification area ────────────────────────────────────── */
.notification-toggle span {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* ── Theme grid card styling ──────────────────────────────── */
.admin-theme-card {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: linear-gradient(145deg, #262930, #222329);
    cursor: pointer;
    transition: all 0.25s ease;
    overflow: hidden;
}
.admin-theme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.admin-theme-card.active {
    border-color: var(--adm-accent);
    box-shadow: 0 0 0 2px var(--adm-accent-glow), 0 8px 24px var(--adm-accent-glow);
}
.admin-theme-card.active::after {
    content: "\2713";
    position: absolute;
    top: 8px;
    right: 10px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--adm-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}
.admin-theme-swatch {
    display: flex;
    gap: 4px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
}
.admin-theme-swatch span {
    flex: 1;
    border-radius: 4px;
}
.admin-theme-card strong {
    color: #fff;
    font-size: 13px;
}
.admin-theme-card small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

/* ── User Page Theme (admin-assigned) ──────────────────────── */
html.user-theme-active body[data-page="user"] .site-header {
    border-bottom: 2px solid var(--usr-card-border, rgba(240,181,50,0.2));
}
html.user-theme-active body[data-page="user"] .site-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--usr-header-gradient, linear-gradient(90deg, #f0b532, #10b981, #3b82f6));
}
html.user-theme-active body[data-page="user"] .btn.primary,
html.user-theme-active body[data-page="user"] .actions .btn.primary {
    background: var(--usr-btn-gradient, linear-gradient(135deg, #f0b532, #d4a017));
    border: none;
    box-shadow: 0 4px 15px var(--usr-btn-glow, rgba(240,181,50,0.3));
}
html.user-theme-active body[data-page="user"] .panel,
html.user-theme-active body[data-page="user"] .card {
    border: 1px solid var(--usr-card-border, rgba(240,181,50,0.15));
}
html.user-theme-active body[data-page="user"] .metric,
html.user-theme-active body[data-page="user"] .dashboard-glass {
    border: 1px solid var(--usr-card-border, rgba(240,181,50,0.15));
}
html.user-theme-active body[data-page="user"] h1,
html.user-theme-active body[data-page="user"] h2 {
    background: var(--usr-heading-gradient, linear-gradient(135deg, #f5c542, #f0b532));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html.user-theme-active body[data-page="user"] .bottom-nav a.active {
    color: var(--usr-nav-active, #f0b532);
}
html.user-theme-active body[data-page="user"] .bottom-nav a.active::before {
    background: var(--usr-nav-active, #f0b532);
}
html.user-theme-active body[data-page="user"] input,
html.user-theme-active body[data-page="user"] select,
html.user-theme-active body[data-page="user"] textarea {
    border-color: var(--usr-input-border, rgba(240,181,50,0.2));
}
html.user-theme-active body[data-page="user"] input:focus,
html.user-theme-active body[data-page="user"] select:focus,
html.user-theme-active body[data-page="user"] textarea:focus {
    border-color: var(--usr-input-focus, rgba(240,181,50,0.5));
    box-shadow: 0 0 0 2px var(--usr-btn-glow, rgba(240,181,50,0.15));
}
html.user-theme-active body[data-page="user"] .balance-panel {
    background: var(--usr-card-bg, linear-gradient(180deg, rgba(240,181,50,0.06), rgba(26,31,46,0.95)));
    border: 1px solid var(--usr-card-border, rgba(240,181,50,0.2));
}
html.user-theme-active body[data-page="user"] .wallet-stat-card.metric-deposit {
    --metric-color-start: var(--usr-accent, #0891b2);
    --metric-color-end: var(--usr-secondary, #0e7490);
    box-shadow: 0 3px 10px var(--usr-metric-shadow, rgba(240,181,50,0.25));
}
html.user-theme-active body[data-page="user"] .wallet-stat-card.metric-mining {
    --metric-color-start: var(--usr-accent, #7c3aed);
    --metric-color-end: var(--usr-secondary, #6d28d9);
    box-shadow: 0 3px 10px var(--usr-metric-shadow, rgba(240,181,50,0.25));
}
html.user-theme-active body[data-page="user"] .wallet-stat-card.metric-profit {
    --metric-color-start: var(--usr-teal, #059669);
    --metric-color-end: var(--usr-secondary, #047857);
    box-shadow: 0 3px 10px var(--usr-metric-shadow, rgba(240,181,50,0.25));
}
html.user-theme-active body[data-page="user"] .wallet-stat-card.metric-earnings {
    --metric-color-start: var(--usr-accent, #0d9488);
    --metric-color-end: var(--usr-secondary, #0f766e);
    box-shadow: 0 3px 10px var(--usr-metric-shadow, rgba(240,181,50,0.25));
}
html.user-theme-active body[data-page="user"] .wallet-stat-card.metric-daily-income {
    --metric-color-start: var(--usr-amber, #f59e0b);
    --metric-color-end: var(--usr-secondary, #d97706);
    box-shadow: 0 3px 10px var(--usr-metric-shadow, rgba(240,181,50,0.25));
}
html.user-theme-active body[data-page="user"] .live-plan-card,
html.user-theme-active body[data-page="user"] .product-card {
    border: 1px solid var(--usr-card-border, rgba(240,181,50,0.15));
}
html.user-theme-active body[data-page="user"] .plan-row-title span {
    background: var(--usr-btn-gradient, linear-gradient(135deg, #f0b532, #d4a017));
}
html.user-theme-active body[data-page="user"] .notification-panel,
html.user-theme-active body[data-page="user"] .referral-panel {
    border: 1px solid var(--usr-card-border, rgba(240,181,50,0.15));
}
html.user-theme-active body[data-page="user"] .brand span {
    background: var(--usr-heading-gradient, linear-gradient(135deg, #f5c542, #f0b532));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color-scheme: dark;
}
.modal-overlay.hidden {
    display: none;
}
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.modal-overlay select {
    color: #ffffff !important;
    background-color: #1a1f2e !important;
    color-scheme: dark;
}
.modal-overlay select option {
    background-color: #1a1f2e !important;
    color: #ffffff !important;
}
