:root {
    --bg: #171923;
    --panel: #202432;
    --panel-soft: #2b3042;
    --rail: #10121a;
    --sidebar: #171a25;
    --text: #f2f3f5;
    --muted: #aeb6ca;
    --line: rgba(255, 255, 255, .10);
    --brand: #7c5cff;
    --brand-2: #5f45d9;
    --green: #35e6a4;
    --yellow: #ffd166;
    --danger: #ff5c77;
    --cyan: #4dd4ff;
    --rose: #ff7ab6;
    --shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
}

h1,
h2,
h3,
.brand-mark,
.workspace strong,
.primary-btn {
    font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes softPulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(88, 101, 242, 0);
    }
    50% {
        box-shadow: 0 0 32px rgba(88, 101, 242, .26);
    }
}

@keyframes shimmer {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 100% 50%;
    }
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.auth-body {
    background:
        radial-gradient(circle at 15% 20%, rgba(88, 101, 242, .30), transparent 28%),
        linear-gradient(135deg, #232428, #313338 56%, #25262a);
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-shell {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 420px;
    gap: 28px;
    align-items: stretch;
}

.auth-brand,
.auth-card,
.panel,
.composer,
.post,
.creator-card,
.task-card,
.pulse-card {
    background: rgba(43, 45, 49, .92);
    border: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

.auth-brand {
    border-radius: 8px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    animation: floatIn .55s ease both;
}

.brand-mark {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: var(--brand);
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 24px;
    animation: softPulse 3.8s ease-in-out infinite;
    overflow: hidden;
}

.brand-mark img,
.server img,
.brand-mini img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.auth-brand h1 {
    font-size: clamp(42px, 7vw, 84px);
    margin: 0 0 16px;
    letter-spacing: 0;
}

.auth-brand p {
    color: var(--muted);
    font-size: 18px;
    max-width: 620px;
    line-height: 1.55;
}

.hero-frame {
    margin: 26px 0 4px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
    background: #1e1f22;
    aspect-ratio: 16 / 9;
    position: relative;
}

.hero-frame::after,
.pulse-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .08), transparent 52%);
    background-size: 220% 100%;
    animation: shimmer 5s linear infinite;
}

.hero-frame img,
.pulse-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.metric-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.metric-strip span {
    background: #232428;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
}

.metric-strip strong {
    color: var(--text);
}

.auth-card {
    border-radius: 8px;
    padding: 22px;
    animation: floatIn .55s ease .08s both;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #1e1f22;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.tabs.single-tab {
    grid-template-columns: 1fr;
}

.tab {
    border: 0;
    color: var(--muted);
    background: transparent;
    border-radius: 6px;
    padding: 11px;
    font-weight: 700;
}

.tab.active {
    color: #fff;
    background: var(--brand);
}

.auth-form {
    display: none;
}

.auth-form.active,
.panel,
.composer {
    display: grid;
    gap: 16px;
}

label {
    color: var(--muted);
    display: grid;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #1e1f22;
    border-radius: 8px;
    color: var(--text);
    background: #1e1f22;
    padding: 13px 14px;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 92px;
}

input:focus,
textarea:focus {
    border-color: var(--brand);
}

.auth-card input[readonly] {
    color: #35e6a4;
    border-color: rgba(53, 230, 164, .28);
    background: rgba(53, 230, 164, .08);
    cursor: default;
}

.field-note {
    color: #35e6a4;
    font-size: 12px;
    font-weight: 700;
}

select:focus {
    border-color: var(--brand);
}

.primary-btn {
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: white;
    padding: 12px 16px;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
    text-decoration: none;
}

.primary-btn:hover {
    background: var(--brand-2);
}

.form-note {
    min-height: 22px;
    color: var(--muted);
    line-height: 1.45;
}

.form-note.error,
.toast.error {
    color: #fff;
    background: var(--danger);
}

.app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 72px 248px minmax(0, 1fr) 280px;
    background:
        radial-gradient(circle at 72% 8%, rgba(87, 242, 135, .10), transparent 24%),
        radial-gradient(circle at 35% 98%, rgba(254, 231, 92, .09), transparent 22%),
        var(--bg);
}

.rail {
    background: var(--rail);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.server {
    width: 48px;
    aspect-ratio: 1;
    border-radius: 16px;
    background: #313338;
    display: grid;
    place-items: center;
    color: var(--green);
    font-weight: 800;
    transition: border-radius .16s, background .16s;
    overflow: hidden;
}

.server.active,
.server:hover {
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
}

.sidebar {
    background: var(--sidebar);
    border-right: 1px solid #202225;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.workspace {
    padding: 18px;
    border-bottom: 1px solid #202225;
}

.wordmark {
    width: 168px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 6px;
}

.workspace span,
.account-chip small,
.topbar p,
.section-head p,
.panel p,
.pulse-card small,
.disclosure {
    color: var(--muted);
}

.workspace strong {
    display: block;
    margin-bottom: 4px;
}

nav {
    padding: 12px;
    display: grid;
    align-content: start;
    gap: 4px;
}

.nav-item {
    border: 0;
    background: transparent;
    color: var(--muted);
    text-align: left;
    border-radius: 6px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
    pointer-events: auto;
}

a.nav-item,
a.drawer-link,
.admin-return-link {
    text-decoration: none;
}

.nav-item.active,
.nav-item:hover {
    color: #fff;
    background: var(--panel-soft);
}

.admin-auth-shell {
    grid-template-columns: minmax(0, 1fr) 420px;
}

.admin-return-link {
    color: var(--cyan);
    font-weight: 800;
}

.admin-app {
    grid-template-columns: 72px 268px minmax(0, 1fr);
    background: #0f131b;
}

.admin-app .rail {
    background: #090c12;
}

.admin-app .sidebar {
    background: #111722;
    border-right-color: rgba(255, 255, 255, .08);
}

.admin-app .workspace,
.admin-app .account-chip {
    background: #111722;
    border-color: rgba(255, 255, 255, .08);
}

.admin-app .nav-item {
    border-radius: 8px;
    padding: 11px 12px;
}

.admin-app .nav-item.active {
    background: #202938;
    color: #fff;
    box-shadow: inset 3px 0 0 var(--cyan);
}

.admin-app .nav-item,
.admin-app .drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-notify-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.admin-support-alert {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 92, 119, .16);
    border: 1px solid rgba(255, 92, 119, .38);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.admin-support-alert span {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--danger);
}

.admin-app .content,
.admin-content {
    width: 100%;
    max-width: none;
}

.admin-app .topbar {
    background: rgba(15, 19, 27, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.account-chip {
    display: grid;
    grid-template-columns: 36px 1fr 34px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: #232428;
}

.avatar {
    width: 36px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: inline-block;
}

#logout-btn {
    width: 34px;
    aspect-ratio: 1;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
}

#logout-btn:hover {
    background: var(--panel-soft);
    color: #fff;
}

.content {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    position: relative;
}

.topbar {
    min-height: 76px;
    padding: 14px 22px;
    border-bottom: 1px solid #202225;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar h2,
.section-head h3,
.panel h3,
.memberbar h3 {
    margin: 0;
}

.topbar p,
.section-head p,
.panel p {
    margin: 5px 0 0;
    line-height: 1.5;
}

.balances {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.balances span,
.stat-row {
    background: #232428;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--muted);
    white-space: nowrap;
}

.balances strong,
.stat-row strong {
    color: var(--text);
}

.balance-updated {
    animation: balanceFlash 1.2s ease;
}

@keyframes balanceFlash {
    0% {
        color: var(--green);
        text-shadow: 0 0 18px rgba(53, 230, 164, .45);
    }
    100% {
        color: inherit;
        text-shadow: none;
    }
}

.view {
    display: none;
    padding: 20px;
    overflow: auto;
}

.view.active {
    display: block;
    animation: floatIn .24s ease both;
}

.composer {
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 14px;
}

.feed-command {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .9fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(124, 92, 255, .22), rgba(32, 36, 50, .96) 48%, rgba(53, 230, 164, .11)),
        #202432;
    box-shadow: var(--shadow);
}

.feed-command::after {
    content: "";
    position: absolute;
    inset: auto -10% -45% 42%;
    height: 180px;
    background: radial-gradient(circle, rgba(77, 212, 255, .18), transparent 66%);
    pointer-events: none;
}

.feed-command > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #10121a;
    background: var(--green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.feed-command h3 {
    margin: 12px 0 7px;
    font-size: 28px;
    letter-spacing: 0;
}

.feed-command p {
    max-width: 640px;
    margin: 0;
    color: #d9def0;
    line-height: 1.55;
}

.feed-command-stats,
.feed-status-strip {
    display: grid;
    gap: 10px;
}

.feed-command-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feed-command-stats div,
.feed-status-strip div {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 8px;
    background: rgba(16, 18, 26, .42);
    padding: 12px;
}

.feed-command-stats span,
.feed-status-strip span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.feed-command-stats strong,
.feed-status-strip strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 16px;
    overflow-wrap: anywhere;
}

.feed-command-actions {
    display: grid;
    gap: 10px;
    min-width: 132px;
}

.feed-status-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.composer .primary-btn {
    justify-self: end;
}

@media (max-width: 1180px) {
    .feed-command {
        grid-template-columns: 1fr;
    }

    .feed-command-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
    }
}

@media (max-width: 780px) {
    .feed-command,
    .feed-status-strip {
        display: none;
    }
}

.feed,
.creator-grid,
.task-list {
    display: grid;
    gap: 12px;
}

.post,
.creator-card,
.task-card,
.panel {
    border-radius: 8px;
    padding: 16px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.post:hover,
.creator-card:hover,
.task-card:hover,
.panel:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 101, 242, .35);
}

.post-head,
.creator-head,
.task-card,
.stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author {
    display: grid;
}

.post-author small,
.tag {
    color: var(--muted);
    font-size: 12px;
}

.post p {
    margin: 12px 0 0 48px;
    color: #dbdee1;
    line-height: 1.6;
}

.creator-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.creator-head {
    margin-bottom: 12px;
}

.creator-card p {
    color: #dbdee1;
    line-height: 1.5;
    min-height: 72px;
}

.creator-card {
    position: relative;
    overflow: hidden;
}

.creator-card::before {
    content: "";
    display: block;
    height: 86px;
    margin: -16px -16px 14px;
    background:
        linear-gradient(140deg, rgba(88, 101, 242, .78), rgba(87, 242, 135, .22)),
        url("../images/discvest-hero.png") center / cover;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.creator-card .creator-head {
    margin-top: -54px;
}

.creator-card .avatar {
    width: 48px;
    border: 3px solid var(--panel);
}

.secondary-btn {
    border: 1px solid var(--line);
    background: #232428;
    color: var(--text);
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 800;
}

.secondary-btn[disabled],
.primary-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.wallet-grid {
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(260px, 1fr);
    gap: 16px;
}

.history-panel {
    margin-top: 16px;
}

.deposit-result {
    display: grid;
    gap: 10px;
    color: var(--muted);
    line-height: 1.5;
}

.wallet-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(88, 101, 242, .18), rgba(87, 242, 135, .08)),
        #232428;
    border: 1px solid rgba(87, 242, 135, .22);
}

.muted-wallet {
    border-color: var(--line);
    background: #232428;
}

.wallet-card-head,
.wallet-actions,
.wallet-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wallet-card-head span,
.wallet-address small,
.wallet-meta {
    color: var(--muted);
    font-size: 12px;
}

.wallet-card-head strong {
    display: block;
    color: #fff;
    font-size: 22px;
    margin-top: 3px;
}

.wallet-address {
    display: grid;
    gap: 8px;
}

.wallet-address code {
    display: block;
    width: 100%;
    overflow-wrap: anywhere;
    color: #fff;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    padding: 12px;
}

.wallet-meta {
    align-items: flex-start;
    flex-wrap: wrap;
}

.deposit-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    align-items: center;
}

.deposit-row strong {
    color: var(--text);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(88, 101, 242, .28);
    border: 1px solid rgba(88, 101, 242, .38);
    font-size: 12px;
    font-weight: 800;
}

.mini-btn {
    border: 1px solid var(--line);
    background: #232428;
    color: var(--text);
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 12px;
    font-weight: 800;
}

.mini-btn:hover,
.secondary-btn:hover {
    border-color: rgba(87, 242, 135, .35);
    background: rgba(87, 242, 135, .10);
}

.task-card {
    justify-content: space-between;
    background: rgba(43, 45, 49, .92);
}

.task-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.memberbar {
    background: var(--sidebar);
    border-left: 1px solid #202225;
    padding: 18px;
    display: grid;
    align-content: start;
    gap: 12px;
}

.pulse-image {
    height: 152px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    object-position: center;
}

.pulse-card strong {
    display: block;
    font-size: 34px;
    margin: 8px 0;
}

.disclosure {
    font-size: 12px;
    line-height: 1.5;
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 140;
    background: #232428;
    border: 1px solid var(--line);
    color: var(--text);
    padding: 12px 14px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: .16s;
    max-width: 320px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.pwa-install-notice {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 260;
    max-width: 520px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #151b24;
    color: #eef3fb;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 60px rgba(0,0,0,.36);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity .18s ease, transform .18s ease;
}

.pwa-install-notice.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.pwa-install-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(88,101,242,.16);
}

.pwa-install-icon img {
    width: 30px;
    height: 30px;
}

.pwa-install-copy strong,
.pwa-install-copy span {
    display: block;
}

.pwa-install-copy strong {
    font-size: 14px;
}

.pwa-install-copy span {
    margin-top: 2px;
    color: #aeb7c7;
    font-size: 12px;
}

.pwa-install-action,
.pwa-install-close {
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 900;
}

.pwa-install-action {
    color: #fff;
    background: #5865f2;
}

.pwa-install-close {
    color: #aeb7c7;
    background: rgba(255,255,255,.08);
}

.mobile-taskbar {
    display: none;
}

@media (max-width: 1100px) {
    .app {
        grid-template-columns: 72px 220px minmax(0, 1fr);
    }

    .memberbar {
        display: none;
    }
}

@media (max-width: 780px) {
    body {
        background: #313338;
    }

    .auth-shell,
    .wallet-grid {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 24px;
    }

    .referral-entry .auth-card {
        order: -1;
    }

    .auth-brand h1 {
        font-size: 46px;
    }

    .hero-frame {
        margin-top: 18px;
    }

    .auth-card {
        padding: 18px;
    }

    .app {
        min-height: 100dvh;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 1fr;
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    .rail,
    .sidebar {
        display: none;
    }

    .content {
        min-height: 100dvh;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 5;
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
        padding: 16px;
        background: rgba(49, 51, 56, .92);
        backdrop-filter: blur(18px);
    }

    .topbar h2 {
        font-size: 19px;
    }

    .topbar p {
        font-size: 13px;
    }

    .balances {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .balances span {
        white-space: normal;
        min-width: 0;
        font-size: 12px;
    }

    .view {
        padding: 14px;
        overflow: visible;
    }

    .composer {
        position: relative;
        padding: 12px;
    }

    .composer textarea {
        min-height: 114px;
        border-radius: 8px;
    }

    .composer .primary-btn {
        width: 100%;
    }

    .creator-grid {
        grid-template-columns: 1fr;
    }

    .post,
    .creator-card,
    .task-card,
    .panel {
        padding: 14px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
    }

    .post p {
        margin-left: 0;
    }

    .deposit-row,
    .task-card {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .deposit-row {
        display: grid;
        gap: 6px;
    }

    .wallet-card-head,
    .wallet-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .wallet-actions .secondary-btn {
        width: 100%;
    }

    .task-card {
        display: grid;
        gap: 14px;
    }

    .task-card .primary-btn,
    .creator-card .secondary-btn {
        width: 100%;
    }

    .mobile-taskbar {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 20;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 8px;
        border-radius: 18px;
        background: rgba(30, 31, 34, .92);
        border: 1px solid rgba(255, 255, 255, .10);
        box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
        backdrop-filter: blur(18px);
    }

    .mobile-tab {
        min-width: 0;
        border: 0;
        border-radius: 14px;
        background: transparent;
        color: var(--muted);
        display: grid;
        justify-items: center;
        gap: 3px;
        padding: 8px 4px;
        font-size: 11px;
        font-weight: 800;
    }

    .mobile-tab span {
        width: 26px;
        aspect-ratio: 1;
        border-radius: 10px;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, .06);
        font-size: 15px;
    }

    .mobile-tab.active {
        color: #fff;
        background: rgba(88, 101, 242, .18);
    }

    .mobile-tab.active span {
        background: var(--brand);
    }

    .toast {
        left: 14px;
        right: 14px;
        bottom: calc(96px + env(safe-area-inset-bottom));
        max-width: none;
    }

    .pwa-install-notice {
        left: 12px;
        right: 12px;
        bottom: calc(92px + env(safe-area-inset-bottom));
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .pwa-install-close {
        grid-column: 3;
        grid-row: 1;
        width: 38px;
        padding: 10px 0;
        overflow: hidden;
        color: transparent;
        position: relative;
    }

    .pwa-install-close::before {
        content: "x";
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        color: #aeb7c7;
    }

    .pwa-install-action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .app.p2p-mode ~ .toast {
        bottom: calc(156px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Professional visual refresh */
.auth-brand,
.auth-card,
.panel,
.composer,
.post,
.creator-card,
.task-card,
.pulse-card {
    background: linear-gradient(180deg, rgba(38, 43, 60, .94), rgba(27, 31, 45, .94));
    border-color: rgba(255, 255, 255, .10);
    box-shadow: var(--shadow);
}

.app {
    background:
        radial-gradient(circle at 78% 8%, rgba(124, 92, 255, .18), transparent 26%),
        radial-gradient(circle at 35% 98%, rgba(53, 230, 164, .12), transparent 28%),
        linear-gradient(135deg, rgba(255, 122, 182, .07), transparent 36%),
        var(--bg);
}

.server.active,
.server:hover,
.mobile-tab.active span {
    background: linear-gradient(145deg, var(--brand), var(--cyan));
}

.sidebar,
.memberbar {
    background: linear-gradient(180deg, rgba(23, 26, 37, .98), rgba(15, 18, 28, .98));
    border-color: rgba(255, 255, 255, .08);
}

.nav-item.active,
.nav-item:hover {
    background: linear-gradient(90deg, rgba(124, 92, 255, .24), rgba(77, 212, 255, .08));
}

.primary-btn {
    background: linear-gradient(135deg, var(--brand), #4d8dff);
    box-shadow: 0 12px 24px rgba(124, 92, 255, .22);
}

.primary-btn:hover {
    background: linear-gradient(135deg, var(--brand-2), #3673e8);
}

.topbar {
    border-bottom-color: rgba(255, 255, 255, .08);
    background: rgba(23, 25, 35, .62);
    backdrop-filter: blur(18px);
}

.topbar.home-topbar {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(124, 92, 255, .22), rgba(23, 25, 35, .82) 48%, rgba(53, 230, 164, .16)),
        rgba(23, 25, 35, .82);
}

.topbar.home-topbar::after {
    content: "";
    position: absolute;
    right: 18%;
    top: -58px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 212, 255, .20), transparent 67%);
    pointer-events: none;
}

.topbar-title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-title-active {
    width: fit-content;
    color: transparent;
    background: linear-gradient(90deg, #fff, #35e6a4 52%, #4dd4ff);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 28px;
    font-weight: 900;
}

.home-topbar .topbar-title p {
    color: #d8def2;
}

.drawer-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    padding: 10px 12px;
    font-weight: 800;
    align-items: center;
    gap: 8px;
}

.menu-mark {
    display: grid;
    gap: 4px;
    width: 18px;
}

.menu-mark i {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-header-logo {
    display: none;
}

.balances span,
.stat-row {
    background: rgba(255, 255, 255, .055);
}

.premium-head {
    position: relative;
    padding: 4px 0 14px;
}

.premium-head h3 {
    font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif;
    font-size: 24px;
}

.wallet-panel {
    overflow: hidden;
    position: relative;
}

.wallet-panel::before,
.wallet-rules::before,
.action-panel::before {
    content: "";
    height: 5px;
    position: absolute;
    inset: 0 0 auto;
    background: linear-gradient(90deg, var(--brand), var(--green), var(--yellow));
}

.wallet-rules,
.action-panel {
    position: relative;
    overflow: hidden;
}

.wallet-card {
    border-radius: 18px;
    padding: 16px;
    background:
        linear-gradient(145deg, rgba(124, 92, 255, .26), rgba(53, 230, 164, .10)),
        linear-gradient(180deg, #242b42, #161b2a);
    border: 1px solid rgba(53, 230, 164, .30);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 40px rgba(0, 0, 0, .26);
}

.wallet-address code {
    border-radius: 14px;
    background: rgba(6, 9, 18, .55);
    border-color: rgba(255, 255, 255, .12);
    font-size: 13px;
}

.copy-tile {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    padding: 12px;
    display: grid;
    gap: 2px;
    text-align: left;
    min-width: 132px;
}

.copy-tile span {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
}

.copy-tile strong {
    font-size: 15px;
}

.copy-tile:hover,
.copy-chip:hover {
    border-color: rgba(53, 230, 164, .45);
    background: rgba(53, 230, 164, .13);
}

.deposit-row {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, .045);
}

.deposit-row div {
    display: grid;
    gap: 4px;
}

.deposit-row small {
    color: var(--muted);
    font-size: 11px;
}

.copy-chip {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    padding: 8px 12px;
    font-weight: 800;
}

.status-pill {
    background: rgba(124, 92, 255, .24);
    border-color: rgba(124, 92, 255, .42);
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.insight-card {
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(38, 43, 60, .95), rgba(24, 28, 41, .95));
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: var(--shadow);
}

.insight-card span,
.insight-card small {
    color: var(--muted);
}

.insight-card strong {
    display: block;
    margin: 8px 0;
    font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif;
    font-size: 26px;
}

.accent-blue {
    border-color: rgba(124, 92, 255, .32);
}

.accent-green {
    border-color: rgba(53, 230, 164, .32);
}

.accent-yellow {
    border-color: rgba(255, 209, 102, .32);
}

.profile-hero {
    min-height: 190px;
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 16px;
    display: flex;
    align-items: end;
    gap: 16px;
    background:
        linear-gradient(180deg, transparent 20%, rgba(17, 19, 28, .92)),
        url("../images/discvest-hero.png") center / cover;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: var(--shadow);
}

.profile-hero h3 {
    margin: 0;
    font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif;
    font-size: 28px;
}

.profile-hero p {
    margin: 4px 0 0;
    color: var(--muted);
}

.profile-avatar {
    width: 72px;
    border: 4px solid rgba(255, 255, 255, .16);
}

.settings-list {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.setting-row {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .09);
    color: #fff;
}

.setting-row span {
    display: grid;
    gap: 4px;
}

.setting-row strong {
    color: inherit;
}

.setting-row small {
    color: var(--muted);
    font-weight: 500;
    line-height: 1.35;
}

.setting-row input {
    width: 22px;
    height: 22px;
}

.settings-status {
    margin: -6px 0 14px;
    color: var(--muted);
    font-size: 13px;
}

.settings-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.drawer-scrim,
.mobile-drawer {
    display: none;
}

@media (max-width: 780px) {
    body {
        background: #15171f;
    }

    .topbar {
        background: rgba(21, 23, 31, .86);
    }

    .drawer-toggle {
        display: inline-flex;
        align-items: center;
    }

    .drawer-toggle .menu-mark {
        width: 19px;
    }

    .mobile-header-logo {
        display: block;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(124, 92, 255, .24);
    }

    .topbar-title {
        width: 100%;
        align-items: center;
    }

    .topbar-title h2 {
        max-width: calc(100vw - 150px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-taskbar {
        border-radius: 24px;
        background: rgba(12, 14, 22, .82);
    }

    .mobile-tab {
        border-radius: 18px;
    }

    .mobile-tab span {
        width: 30px;
        border-radius: 12px;
        font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif;
    }

    .drawer-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 29;
        background: rgba(0, 0, 0, .52);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    .mobile-drawer {
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr);
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(86vw, 340px);
        z-index: 30;
        max-height: 100dvh;
        padding: calc(14px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));
        transform: translateX(-104%);
        transition: transform .24s ease;
        background:
            linear-gradient(180deg, rgba(29, 34, 51, .98), rgba(12, 14, 22, .98)),
            var(--sidebar);
        border-right: 1px solid rgba(255, 255, 255, .12);
        box-shadow: 28px 0 70px rgba(0, 0, 0, .42);
        overflow: hidden;
    }

    .drawer-open .drawer-scrim {
        opacity: 1;
        pointer-events: auto;
    }

    .drawer-open .mobile-drawer {
        transform: translateX(0);
    }

    .drawer-head,
    .brand-mini,
    .drawer-profile {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .drawer-head {
        justify-content: space-between;
        margin-bottom: 12px;
        min-height: 44px;
    }

    .brand-mini span {
        width: 38px;
        aspect-ratio: 1;
        display: grid;
        place-items: center;
        border-radius: 14px;
        background: transparent;
        font-weight: 900;
        overflow: hidden;
    }

    .brand-mini small,
    .drawer-profile small {
        display: block;
        color: var(--muted);
        margin-top: 2px;
    }

    .drawer-close {
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(255, 255, 255, .07);
        color: #fff;
        padding: 9px 10px;
        font-weight: 800;
    }

    .drawer-profile {
        padding: 11px;
        border-radius: 16px;
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .09);
        margin-bottom: 10px;
        min-height: 58px;
    }

    .drawer-nav {
        padding: 0;
        display: grid;
        align-content: start;
        gap: 6px;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .drawer-link {
        border: 1px solid transparent;
        border-radius: 13px;
        background: transparent;
        color: var(--muted);
        text-align: left;
        padding: 11px 12px;
        font-weight: 800;
        min-height: 42px;
        cursor: pointer;
        pointer-events: auto;
    }

    .drawer-link.active,
    .drawer-link:hover {
        color: #fff;
        background: linear-gradient(90deg, rgba(124, 92, 255, .24), rgba(53, 230, 164, .10));
        border-color: rgba(255, 255, 255, .10);
    }

    .drawer-link.logout-btn {
        color: #ffd7df;
    }

    .wallet-card,
    .profile-hero,
    .insight-card {
        border-radius: 20px;
    }
}

@media (max-width: 780px) and (max-height: 680px) {
    .mobile-drawer {
        width: min(90vw, 320px);
        padding-top: calc(10px + env(safe-area-inset-top));
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .drawer-head {
        margin-bottom: 8px;
    }

    .brand-mini small,
    .drawer-profile small {
        display: none;
    }

    .brand-mini span {
        width: 34px;
    }

    .drawer-profile {
        padding: 9px;
        margin-bottom: 8px;
        min-height: 48px;
    }

    .drawer-nav {
        gap: 4px;
    }

    .drawer-link {
        min-height: 38px;
        padding: 9px 11px;
        border-radius: 12px;
        font-size: 14px;
    }
}

/* Screenshot-style mobile trading app surface */
.mobile-home-screen,
.mobile-vip-screen,
.mobile-success-card,
.mobile-my-card,
.mobile-simple-head,
.mobile-task-summary,
.report-filter,
.report-grid,
.level-tabs,
.level-stats,
.record-card,
.service-float {
    display: none;
}

@media (max-width: 780px) {
    .app {
        background: #f6f6f6;
        color: #202124;
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .topbar {
        background: #fff;
        border-bottom: 1px solid #e8e8e8;
        color: #202124;
        padding: 8px 14px;
        min-height: 54px;
    }

    .topbar.home-topbar {
        min-height: 62px;
        border-bottom: 0;
        color: #fff;
        background:
            linear-gradient(135deg, #141a2a, #20294a 56%, #11856f);
        box-shadow: 0 10px 24px rgba(16, 24, 40, .16);
    }

    .topbar.home-topbar .drawer-toggle {
        color: #fff;
        background: rgba(255,255,255,.10);
        border-color: rgba(255,255,255,.16);
        box-shadow: none;
    }

    .topbar p,
    .balances,
    #feed-view .composer,
    #feed-view .feed,
    #invest-view > .premium-head,
    #invest-view > .insight-grid,
    #invest-view > .action-panel,
    #withdraw-view > .premium-head,
    #tasks-view > .premium-head,
    #profile-view .profile-hero,
    #profile-view .insight-grid {
        display: none;
    }

    .drawer-toggle {
        width: 42px;
        height: 42px;
        justify-content: center;
        background: #f5f7fb;
        color: #202124;
        border: 1px solid #e5e7ef;
        border-radius: 13px;
        padding: 0;
        box-shadow: 0 4px 14px rgba(20, 24, 36, .08);
    }

    .drawer-toggle .menu-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .mobile-header-logo {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        box-shadow: none;
    }

    .home-topbar .mobile-header-logo {
        background: rgba(255,255,255,.12);
        border-radius: 12px;
        box-shadow: 0 8px 18px rgba(0,0,0,.18);
    }

    .topbar-title h2 {
        color: #202124;
        font-size: 18px;
        font-weight: 800;
        max-width: calc(100vw - 118px);
    }

    .topbar-title h2.brand-title-active {
        color: transparent;
        font-size: 22px;
        background: linear-gradient(90deg, #fff, #35e6a4 58%, #9be7ff);
        -webkit-background-clip: text;
        background-clip: text;
    }

    .view {
        background: #f6f6f6;
        padding: 10px 14px 16px;
        color: #202124;
    }

    .mobile-home-screen,
    .mobile-vip-screen {
        display: grid;
        gap: 14px;
    }

    .signal-mobile-hero {
        position: relative;
        overflow: hidden;
        margin: -10px -14px 0;
        padding: 20px 18px 18px;
        min-height: 248px;
        color: #fff;
        background:
            linear-gradient(145deg, rgba(12, 17, 31, .96), rgba(29, 39, 65, .96) 56%, rgba(12, 115, 99, .88)),
            #121722;
    }

    .signal-mobile-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
            linear-gradient(180deg, rgba(255,255,255,.05) 1px, transparent 1px);
        background-size: 34px 34px;
        mask-image: linear-gradient(180deg, rgba(0,0,0,.75), transparent 82%);
    }

    .signal-mobile-hero::after {
        content: "";
        position: absolute;
        right: -72px;
        top: 38px;
        width: 188px;
        aspect-ratio: 1;
        border-radius: 50%;
        border: 28px solid rgba(53, 230, 164, .20);
        box-shadow: 0 0 0 18px rgba(124, 92, 255, .11);
        animation: softPulse 3.8s ease-in-out infinite;
    }

    .signal-mobile-hero > * {
        position: relative;
        z-index: 1;
    }

    .signal-hero-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 24px;
    }

    .signal-live-dot,
    .signal-hero-top strong {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        border-radius: 999px;
        padding: 6px 10px;
        font-size: 12px;
        font-weight: 900;
    }

    .signal-live-dot {
        gap: 7px;
        color: #c9fff0;
        background: rgba(53, 230, 164, .12);
        border: 1px solid rgba(53, 230, 164, .28);
    }

    .signal-live-dot::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #35e6a4;
        box-shadow: 0 0 0 5px rgba(53, 230, 164, .14);
    }

    .signal-hero-top strong {
        color: #15171f;
        background: #ffd166;
    }

    .signal-mobile-hero h3 {
        margin: 0;
        max-width: 280px;
        font-size: 31px;
        line-height: 1.04;
        letter-spacing: 0;
    }

    .signal-mobile-hero p {
        max-width: 310px;
        margin: 10px 0 18px;
        color: rgba(255,255,255,.76);
        font-size: 14px;
        line-height: 1.48;
    }

    .signal-hero-metrics {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .signal-hero-metrics div {
        min-height: 70px;
        padding: 10px;
        border-radius: 14px;
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.10);
        backdrop-filter: blur(10px);
    }

    .signal-hero-metrics span,
    .signal-balance-card span,
    .signal-action span,
    .signal-task-card span {
        display: block;
        color: rgba(255,255,255,.66);
        font-size: 11px;
        font-weight: 800;
    }

    .signal-hero-metrics strong {
        display: block;
        margin-top: 6px;
        color: #fff;
        font-size: 13px;
        line-height: 1.22;
        overflow-wrap: anywhere;
    }

    .signal-balance-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        margin-top: -34px;
        border-radius: 18px;
        overflow: hidden;
        background: #e7e9f1;
        box-shadow: 0 12px 32px rgba(16, 24, 40, .14);
        position: relative;
        z-index: 2;
    }

    .signal-balance-card div {
        background: #fff;
        padding: 14px;
        min-width: 0;
    }

    .signal-balance-card div:first-child {
        grid-column: span 2;
    }

    .signal-balance-card span {
        color: #7a8295;
    }

    .signal-balance-card strong {
        display: block;
        margin-top: 6px;
        color: #101828;
        font-size: 19px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .signal-balance-card div:first-child strong {
        font-size: 26px;
    }

    .signal-action-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 10px;
    }

    .signal-action {
        display: grid;
        gap: 4px;
        min-height: 76px;
        border: 1px solid #e7e9f1;
        border-radius: 16px;
        padding: 12px;
        text-align: left;
        background: #fff;
        box-shadow: 0 8px 22px rgba(16, 24, 40, .08);
    }

    .signal-action.primary {
        color: #fff;
        border-color: transparent;
        background: linear-gradient(135deg, #1f8f75, #35e6a4);
    }

    .signal-action span {
        color: #7a8295;
    }

    .signal-action.primary span {
        color: rgba(255,255,255,.78);
    }

    .signal-action strong {
        color: #101828;
        font-size: 15px;
        line-height: 1.15;
    }

    .signal-action.primary strong {
        color: #fff;
    }

    .signal-task-card,
    .signal-vip-ladder {
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(16, 24, 40, .08);
        border: 1px solid #edf0f6;
    }

    .signal-task-card {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 14px;
        align-items: center;
        padding: 16px;
    }

    .signal-task-card span {
        color: #7a8295;
    }

    .signal-task-card strong {
        display: block;
        margin-top: 4px;
        color: #101828;
        font-size: 18px;
    }

    .signal-task-card p {
        margin: 6px 0 0;
        color: #667085;
        font-size: 13px;
        line-height: 1.42;
    }

    .signal-task-card .primary-btn {
        min-height: 46px;
        padding-inline: 14px;
        white-space: nowrap;
    }

    .signal-vip-ladder {
        display: grid;
        gap: 8px;
        padding: 14px;
    }

    .signal-section-title,
    .ladder-row {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 10px;
    }

    .signal-section-title {
        grid-template-columns: 1fr auto;
        margin-bottom: 2px;
    }

    .signal-section-title strong {
        color: #101828;
        font-size: 17px;
    }

    .signal-section-title button {
        border: 0;
        border-radius: 999px;
        padding: 8px 11px;
        color: #1f8f75;
        background: rgba(53, 230, 164, .12);
        font-weight: 900;
    }

    .ladder-row {
        min-height: 42px;
        border-radius: 13px;
        padding: 9px 10px;
        background: #f6f7fb;
        color: #667085;
    }

    .ladder-row.active {
        color: #101828;
        background: linear-gradient(135deg, rgba(255, 209, 102, .25), rgba(53, 230, 164, .18));
    }

    .ladder-row span {
        color: #1f8f75;
        font-weight: 900;
    }

    .ladder-row b {
        font-size: 13px;
    }

    .ladder-row em {
        color: inherit;
        font-style: normal;
        font-size: 12px;
        font-weight: 800;
    }

    @media (max-width: 390px) {
        .signal-mobile-hero {
            min-height: 258px;
            padding-inline: 14px;
        }

        .signal-mobile-hero h3 {
            font-size: 28px;
        }

        .signal-hero-metrics,
        .signal-action-grid {
            grid-template-columns: 1fr;
        }

        .signal-hero-metrics div,
        .signal-action {
            min-height: 0;
        }

        .signal-task-card {
            grid-template-columns: 1fr;
        }

        .signal-task-card .primary-btn {
            width: 100%;
        }

        .ladder-row {
            grid-template-columns: auto 1fr;
        }

        .ladder-row em {
            grid-column: 2;
        }
    }

    .mobile-promo {
        min-height: 142px;
        border-radius: 0;
        margin: -10px -14px 2px;
        padding: 18px 18px;
        color: #fff;
        display: grid;
        grid-template-columns: 1fr 118px;
        align-items: center;
        overflow: hidden;
        background:
            radial-gradient(circle at 86% 48%, rgba(255, 255, 255, .26), transparent 18%),
            radial-gradient(circle at 18% 88%, rgba(255, 209, 102, .38), transparent 20%),
            linear-gradient(135deg, #08b5a5, #21d0b6 48%, #1282dc);
        position: relative;
    }

    .mobile-promo::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, .18) 42% 46%, transparent 46%),
            repeating-linear-gradient(90deg, rgba(255,255,255,.20) 0 12px, transparent 12px 28px);
        opacity: .28;
    }

    .mobile-promo > * {
        position: relative;
        z-index: 1;
    }

    .mobile-promo span {
        display: block;
        font-size: 13px;
        font-weight: 800;
    }

    .mobile-promo strong {
        display: block;
        font-size: 17px;
        margin-top: 3px;
    }

    .mobile-promo h3 {
        margin: 12px 0 0;
        font-size: 36px;
        line-height: 1;
        text-shadow: 0 3px 0 rgba(0, 0, 0, .14);
    }

    .promo-gift {
        justify-self: end;
        width: 108px;
        aspect-ratio: 1;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background:
            radial-gradient(circle at 35% 30%, #fff, rgba(255,255,255,.2) 28%, transparent 29%),
            linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.10));
        border: 2px solid rgba(255,255,255,.36);
    }

    .promo-gift span {
        color: #fff;
        width: 72px;
        height: 72px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: rgba(0, 150, 135, .55);
        box-shadow: inset 0 0 0 6px rgba(255,255,255,.22);
    }

    .mobile-wallet-strip,
    .mobile-quick-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 2px 10px rgba(0,0,0,.06);
        overflow: hidden;
    }

    .mobile-wallet-strip div {
        padding: 14px;
        text-align: center;
    }

    .mobile-wallet-strip span {
        display: block;
        color: #8c8c8c;
        font-size: 12px;
    }

    .mobile-wallet-strip strong {
        display: block;
        margin-top: 5px;
        color: #20bfb5;
        font-size: 17px;
    }

    .quick-action {
        border: 0;
        background: #fff;
        padding: 15px;
        color: #d9af32;
        font-weight: 800;
        font-size: 16px;
    }

    .quick-action + .quick-action {
        border-left: 1px solid #ececec;
        color: #20bfb5;
    }

    .vip-card {
        min-height: 176px;
        border-radius: 16px;
        padding: 22px 28px 58px;
        color: #fff;
        position: relative;
        overflow: hidden;
        box-shadow: 0 8px 18px rgba(0,0,0,.12);
    }

    .vip-card::after {
        content: "";
        position: absolute;
        right: -28px;
        bottom: -30px;
        width: 148px;
        aspect-ratio: 1;
        border-radius: 50%;
        background: rgba(255,255,255,.16);
    }

    .vip-card h3 {
        margin: 0 0 4px;
        text-align: center;
        font-size: 32px;
        line-height: 1;
    }

    .vip-card p {
        margin: 0 0 22px;
        text-align: center;
        font-size: 20px;
        color: rgba(255,255,255,.92);
    }

    .vip-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
        font-size: 17px;
        line-height: 1.35;
        max-width: calc(100% - 8px);
    }

    .vip-card small {
        position: absolute;
        right: 22px;
        bottom: 16px;
        left: 22px;
        text-align: right;
        color: rgba(255,255,255,.92);
        font-size: 14px;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .vip-card-dark {
        background:
            radial-gradient(circle at 78% 30%, rgba(255, 222, 132, .22), transparent 23%),
            linear-gradient(135deg, #2d2b42, #151522);
    }

    .vip-card-cyan {
        background: linear-gradient(135deg, #5a91d4, #31d0c6);
    }

    .vip-card-gold {
        background: linear-gradient(135deg, #ffc43d, #ffdd35);
    }

    .vip-card-blue {
        background: linear-gradient(135deg, #4f6bff, #0f47ef);
    }

    .vip-card-active {
        outline: 3px solid rgba(53, 230, 164, .72);
        outline-offset: -6px;
    }

    .vip-tier-card {
        cursor: pointer;
        transition: transform .16s ease, box-shadow .16s ease, outline-color .16s ease;
    }

    .vip-tier-card:focus-visible {
        outline: 3px solid rgba(255,255,255,.86);
        outline-offset: -6px;
    }

    .receive-btn {
        position: absolute;
        right: 20px;
        bottom: 18px;
        border: 0;
        border-radius: 14px;
        color: #fff;
        background: rgba(119, 103, 25, .55);
        padding: 9px 14px;
        font-size: 18px;
    }

    .receive-task-btn {
        left: 20px;
        right: auto;
        background: rgba(8, 90, 80, .62);
    }

    .mobile-simple-head {
        display: grid;
        grid-template-columns: 70px 1fr 72px;
        align-items: center;
        min-height: 46px;
        margin: -4px -2px 12px;
        text-align: center;
    }

    .mobile-simple-head h3 {
        margin: 0;
        font-size: 21px;
    }

    .back-lite,
    .text-lite {
        border: 0;
        background: transparent;
        color: #555;
        font-weight: 700;
    }

    .mobile-task-summary {
        display: block;
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,.06);
    }

    .mobile-task-summary strong {
        color: #202124;
        font-size: 17px;
    }

    .mobile-task-summary p {
        color: #7a7a7a;
        margin: 7px 0 0;
    }

    #tasks-view .task-card,
    #creators-view .creator-card,
    #wallet-view .panel,
    #profile-view .settings-list,
    #settings-view .settings-list,
    #settings-view .secondary-btn,
    #settings-view .primary-btn {
        background: #fff;
        color: #202124;
        border: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,.06);
    }

    #settings-view .premium-head {
        display: none;
    }

    #settings-view .settings-list {
        padding: 12px;
        border-radius: 16px;
    }

    #settings-view .setting-row {
        display: grid;
        grid-template-columns: 1fr auto;
        min-height: 70px;
        margin: 0;
        background: #f8f8f8;
        color: #202124;
        box-shadow: none;
    }

    #settings-view .setting-row + .setting-row {
        margin-top: 10px;
    }

    #settings-view .setting-row small {
        color: #7a7a7a;
    }

    #settings-view input[type="checkbox"] {
        appearance: none;
        width: 46px;
        height: 26px;
        border-radius: 999px;
        background: #d7d7d7;
        border: 0;
        position: relative;
        transition: background .18s ease;
    }

    #settings-view input[type="checkbox"]::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0,0,0,.18);
        transition: transform .18s ease;
    }

    #settings-view input[type="checkbox"]:checked {
        background: #20bfb5;
    }

    #settings-view input[type="checkbox"]:checked::after {
        transform: translateX(20px);
    }

    #settings-view #save-settings-btn {
        width: 100%;
        background: #20bfb5;
        color: #fff;
        border-radius: 10px;
        box-shadow: none;
        margin-bottom: 10px;
    }

    .settings-status {
        color: #777;
        text-align: center;
    }

    .settings-actions {
        grid-template-columns: 1fr;
    }

    .settings-actions .secondary-btn,
    #settings-view .logout-btn {
        width: 100%;
        border-radius: 10px;
        padding: 13px 14px;
    }

    .mobile-success-card {
        display: none;
        justify-items: center;
        min-height: calc(100dvh - 146px);
        padding: 52px 18px;
        background: #fff;
        margin: -10px -14px 0;
        text-align: center;
    }

    .mobile-success-card.show-success {
        display: grid;
    }

    .withdraw-panel {
        display: grid;
        background: #fff;
        color: #202124;
        border: 0;
        border-radius: 14px;
        box-shadow: 0 2px 10px rgba(0,0,0,.06);
    }

    .withdraw-panel input,
    #settings-view input {
        background: #f7f7f7;
        color: #202124;
        border-color: #e5e5e5;
    }

    .withdraw-fee-note {
        margin: 0;
        color: #6b7280;
        font-size: 13px;
        line-height: 1.45;
    }

    .success-check {
        width: 118px;
        aspect-ratio: 1;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: #fff;
        font-size: 60px;
        background: #22c995;
        box-shadow: 0 0 0 18px rgba(34, 201, 149, .18);
    }

    .mobile-success-card h3 {
        margin: 58px 0 4px;
        font-size: 38px;
        font-weight: 500;
    }

    .mobile-success-card p {
        margin: 0 0 18px;
        font-size: 20px;
    }

    .withdraw-success-meta {
        display: grid;
        gap: 8px;
        margin-bottom: 46px;
        color: #7b8190;
        font-size: 14px;
    }

    .withdraw-success-meta span:first-child {
        color: #171923;
        font-size: 18px;
        font-weight: 800;
    }

    #withdraw-view.withdraw-complete > .premium-head,
    #withdraw-view.withdraw-complete > .withdraw-panel {
        display: none;
    }

    .done-btn {
        border: 0;
        border-radius: 4px;
        background: #33bd88;
        color: #fff;
        padding: 14px 76px;
        font-size: 18px;
        font-weight: 700;
    }

    .wallet-link {
        border: 0;
        background: transparent;
        color: #b8a044;
        margin-top: 34px;
        font-size: 18px;
        font-weight: 700;
    }

    .report-filter {
        display: grid;
        grid-template-columns: 1fr 16px 1fr 64px;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
    }

    .report-filter input,
    .report-filter button {
        height: 36px;
        border-radius: 5px;
        border: 1px solid #31bcbf;
        background: #fff;
        color: #8d8d8d;
        text-align: center;
        padding: 0 8px;
    }

    .report-filter button {
        background: #18bfc5;
        color: #fff;
        font-weight: 800;
    }

    .report-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 10px;
        margin-bottom: 28px;
        text-align: center;
    }

    .report-grid strong {
        display: block;
        color: #6fd6cc;
        font-size: 24px;
        margin-bottom: 6px;
    }

    .report-grid div:nth-child(1) strong,
    .report-grid div:nth-child(4) strong {
        color: #dfbf50;
    }

    .report-grid span,
    .level-stats span {
        display: block;
        font-size: 14px;
        line-height: 1.25;
    }

    .level-tabs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        text-align: center;
        margin: 0 -14px 18px;
        padding-top: 16px;
        border-top: 1px solid #eee;
        font-size: 12px;
    }

    .level-tabs button {
        border: 0;
        background: transparent;
        color: #62676f;
        font: inherit;
        font-weight: 700;
        padding: 0 4px 10px;
    }

    .level-tabs button.active {
        color: #22bfc4;
        position: relative;
    }

    .level-tabs button.active::after {
        content: "";
        display: block;
        width: 58px;
        height: 4px;
        border-radius: 999px;
        background: #22bfc4;
        margin: 8px auto 0;
    }

    .level-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        text-align: center;
        color: #a0a0a0;
        margin-bottom: 24px;
    }

    .level-stats .referral-share {
        grid-column: 1 / -1;
        text-align: left;
    }

    .level-stats strong {
        display: block;
        margin-top: 8px;
        color: #6fd6cc;
        font-size: 23px;
    }

    .level-stats .referral-share strong {
        margin-top: 4px;
        color: #202124;
        font-size: 14px;
    }

    .record-card {
        display: grid;
        gap: 0;
        margin: 0 -2px;
    }

    .record-tabs {
        display: grid;
        gap: 8px;
        color: #22bfc4;
        text-align: center;
        margin-bottom: 8px;
    }

    .record-tabs > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .record-search {
        grid-column: 1 / -1;
        padding: 10px 12px;
        border: 1px solid #e8e8e8;
        border-radius: 6px;
        font-size: 14px;
        background: #fff;
        color: #202124;
    }

    .record-search::placeholder {
        color: #9aa0a6;
    }

    .record-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 14px 16px;
        margin-bottom: 10px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 9px rgba(0,0,0,.08);
    }

    .record-row span,
    .record-row time {
        color: #555;
        font-size: 13px;
    }

    .record-row strong {
        color: #61d8ca;
        font-size: 18px;
    }

    .record-row em {
        color: #8d8d8d;
        font-style: normal;
        text-align: right;
    }

    .mobile-taskbar {
        left: 0;
        right: 0;
        bottom: 0;
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
        padding: 5px 0 calc(5px + env(safe-area-inset-bottom));
        border-radius: 0;
        border: 0;
        background: #fff;
        box-shadow: 0 -2px 12px rgba(0,0,0,.10);
        backdrop-filter: none;
    }

    .mobile-tab {
        color: #202124;
        min-height: 56px;
        padding: 6px 0;
        gap: 0;
        border-radius: 0;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(24, 191, 197, .18);
    }

    .mobile-tab span {
        width: 26px;
        height: 26px;
        border-radius: 0;
        background: transparent;
        color: #8c8c8c;
        font-size: 22px;
        line-height: 1;
    }

    .mobile-tab.active {
        background: transparent;
        color: #18bfc5;
    }

    .mobile-tab.active span {
        background: transparent;
        color: #18bfc5;
    }

    .mobile-tab:hover,
    .mobile-tab:focus-visible,
    .mobile-tab[data-view="profile"]:hover,
    .mobile-tab[data-view="profile"]:focus-visible {
        color: #18bfc5;
        outline: none;
    }

    .mobile-tab:hover span,
    .mobile-tab:focus-visible span,
    .mobile-tab[data-view="profile"]:hover span,
    .mobile-tab[data-view="profile"]:focus-visible span {
        color: #18bfc5;
    }

    .service-float {
        display: grid;
        place-items: end center;
        position: fixed;
        right: 12px;
        bottom: calc(78px + env(safe-area-inset-bottom));
        z-index: 18;
        width: 58px;
        height: 72px;
        border: 0;
        border-radius: 18px;
        color: #777;
        font-size: 12px;
        background:
            radial-gradient(circle at 50% 26%, #ffd6bc 0 15px, transparent 16px),
            radial-gradient(circle at 50% 31%, #4bc7d7 0 28px, transparent 29px);
        filter: drop-shadow(0 4px 8px rgba(0,0,0,.18));
    }

    .mobile-my-card {
        display: grid;
        justify-items: center;
        gap: 12px;
        background: #fff;
        border-radius: 18px;
        padding: 24px 16px;
        box-shadow: 0 2px 10px rgba(0,0,0,.06);
    }

    .mobile-my-card h3 {
        margin: 6px 0 0;
        font-size: 24px;
    }

    .mobile-my-card p {
        margin: 0;
        color: #777;
    }

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

    .my-stats div {
        text-align: center;
        border-radius: 12px;
        background: #f7f7f7;
        padding: 10px 6px;
    }

    .my-stats span {
        display: block;
        color: #8a8a8a;
        font-size: 12px;
    }

    .my-stats strong {
        display: block;
        color: #18bfc5;
        font-size: 14px;
        margin-top: 4px;
        word-break: break-word;
    }

    .mobile-my-card .quick-action {
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(0,0,0,.05);
    }

    .profile-referral-share {
        box-shadow: 0 1px 4px rgba(0,0,0,.05);
    }

    .hide-balances #invested-balance,
    .hide-balances #reward-balance,
    .hide-balances #wallet-balance,
    .hide-balances #wallet-reward-balance,
    .hide-balances #my-balance,
    .hide-balances #my-rewards,
    .hide-balances #my-invested {
        color: transparent !important;
        position: relative;
    }

    .hide-balances #invested-balance::after,
    .hide-balances #reward-balance::after,
    .hide-balances #wallet-balance::after,
    .hide-balances #wallet-reward-balance::after,
    .hide-balances #my-balance::after,
    .hide-balances #my-rewards::after,
    .hide-balances #my-invested::after {
        content: "****";
        color: #18bfc5;
        position: absolute;
        left: 0;
    }

    .compact-feed .vip-card {
        min-height: 152px;
        padding: 18px 22px 52px;
    }

    .compact-feed .vip-card h3 {
        font-size: 26px;
    }
}

/* Crisp text rendering overrides */
html,
body,
button,
input,
textarea {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

.topbar,
.mobile-taskbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.mobile-promo h3 {
    text-shadow: none !important;
}

.service-float {
    filter: none !important;
}

.chat-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    width: min(380px, calc(100vw - 28px));
    height: min(560px, calc(100dvh - 44px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: #1f222c;
    color: #f4f7fb;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
    transform: translateY(18px) scale(.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.referral-box {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f5f7fb;
    color: #687083;
    font-size: 12px;
    text-align: center;
}

.referral-box strong {
    display: block;
    color: #202124;
    margin-top: 3px;
    word-break: break-word;
}

.referral-share,
.referral-link-card {
    position: relative;
}

.referral-share {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #f5f7fb;
    color: #687083;
    text-align: left;
}

.referral-share span,
.referral-link-card > span {
    display: block;
    color: #687083;
    font-size: 12px;
}

.referral-share strong,
.referral-link-card .referral-link {
    display: block;
    max-width: 100%;
    margin-top: 4px;
    color: #202124;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.referral-link-card .referral-link {
    color: #f2f3f5;
    font-size: 17px;
    padding-right: 48px;
}

.referral-share small,
.referral-link-card small {
    display: block;
    margin-top: 5px;
    color: #8a94a6;
    font-size: 12px;
}

.referral-share b,
.referral-link-card b {
    color: #18bfc5;
}

.icon-copy-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(24, 191, 197, .25);
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    background: #fff;
    color: #18bfc5;
    padding: 0;
}

.icon-copy-btn:hover,
.icon-copy-btn:focus-visible {
    border-color: rgba(24, 191, 197, .65);
    background: rgba(24, 191, 197, .10);
    outline: none;
}

.copy-icon {
    position: relative;
    width: 17px;
    height: 19px;
    display: block;
}

.copy-icon::before,
.copy-icon::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.copy-icon::before {
    left: 0;
    top: 0;
    opacity: .55;
}

.copy-icon::after {
    right: 0;
    bottom: 0;
    background: inherit;
}

.referral-link-card .icon-copy-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
    color: #35e6a4;
}

.referral-level-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.referral-level-card {
    display: grid;
    gap: 4px;
    padding: 12px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    text-align: center;
    cursor: pointer;
}

.referral-level-card.active {
    border-color: #18bfc5;
    box-shadow: 0 6px 18px rgba(24, 191, 197, .18);
}

.referral-level-card strong {
    color: #202124;
    font-size: 13px;
}

.referral-level-card span,
.referral-level-card em {
    color: #8a8a8a;
    font-style: normal;
    font-size: 12px;
}

.referral-level-card b {
    color: #18bfc5;
    font-size: 13px;
}

.referral-record {
    border-left: 3px solid #18bfc5;
}

.referral-level-record {
    width: 100%;
    border: 0;
    border-left: 3px solid #18bfc5;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.downline-record small,
.referral-level-record small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #8a8a8a;
}

.investment-record {
    border-left: 4px solid #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

.investment-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.investment-details small {
    font-size: 11px;
    color: #999;
}

.investment-amounts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.restart-investment-alert {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #22bfc4, #18bfc5);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(34, 191, 196, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 9999;
}

.restart-btn {
    padding: 8px 16px;
    background: white;
    color: #22bfc4;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.restart-btn:active {
    background: #f0f0f0;
}

.p2p-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 16px;
    margin-bottom: 16px;
}

.merchant-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(240, 201, 12, .20), rgba(31, 38, 48, .96) 42%, rgba(49, 191, 134, .18)),
        #1f2630;
    box-shadow: var(--shadow);
}

.merchant-hero::after {
    content: "";
    position: absolute;
    right: -56px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 34px solid rgba(240, 201, 12, .14);
    pointer-events: none;
}

.merchant-hero > * {
    position: relative;
    z-index: 1;
}

.merchant-hero span,
.merchant-card-kicker {
    display: inline-flex;
    width: fit-content;
    min-height: 26px;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    color: #151b24;
    background: #f0c90c;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.merchant-hero h3 {
    margin: 12px 0 8px;
    font-size: 30px;
}

.merchant-hero p {
    max-width: 720px;
    margin: 0;
    color: #d7dde8;
    line-height: 1.55;
}

.merchant-hero > strong {
    flex: 0 0 auto;
    min-width: 120px;
    text-align: center;
    border: 1px solid rgba(53, 230, 164, .28);
    border-radius: 999px;
    padding: 11px 14px;
    color: #35e6a4;
    background: rgba(53, 230, 164, .10);
}

.merchant-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.merchant-stats div,
.merchant-offer-item {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: #1f2630;
    padding: 14px;
}

.merchant-stats span,
.merchant-offer-item span,
.merchant-offer-item small {
    display: block;
    color: #9aa4b4;
    font-size: 12px;
    font-weight: 800;
}

.merchant-stats strong,
.merchant-offer-item strong {
    display: block;
    margin-top: 6px;
    color: #eef3fb;
    font-size: 20px;
}

.merchant-workspace {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    gap: 16px;
    margin-bottom: 16px;
}

.merchant-tool-stack {
    display: grid;
    gap: 16px;
}

.merchant-apply-card,
.merchant-approval-card,
.merchant-fund-card,
.merchant-offer-card,
.merchant-listings-card {
    background: #1f2630;
}

.merchant-apply-card h3,
.merchant-approval-card h3,
.merchant-fund-card h3,
.merchant-offer-card h3 {
    margin-top: 4px;
}

.merchant-offer-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.merchant-offer-card h3,
.merchant-offer-card p,
.merchant-offer-card .merchant-card-kicker,
.merchant-offer-card button {
    grid-column: 1 / -1;
}

.merchant-offer-list {
    display: grid;
    gap: 10px;
}

.merchant-offer-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, .45fr) auto;
    gap: 12px;
    align-items: center;
}

.merchant-offer-item em {
    justify-self: end;
    border-radius: 999px;
    padding: 7px 10px;
    color: #35e6a4;
    background: rgba(53, 230, 164, .10);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.merchant-offer-editor {
    grid-template-columns: minmax(170px, 1.15fr) repeat(4, minmax(90px, .58fr)) minmax(145px, .85fr) minmax(145px, .85fr) minmax(112px, .6fr) auto;
    align-items: end;
}

.merchant-offer-editor label {
    display: grid;
    gap: 6px;
    color: #9aa4b4;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.merchant-offer-editor input,
.merchant-offer-editor select {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 9px;
    background: #151b24;
    border: 1px solid rgba(255,255,255,.10);
    color: #eef3fb;
}

.merchant-offer-save {
    min-height: 40px;
    align-self: end;
}

.merchant-fund-history-item small {
    overflow-wrap: anywhere;
}

.compact-head {
    padding-bottom: 0;
}

.p2p-exchange-shell {
    min-height: calc(100dvh - 160px);
    margin: -20px;
    padding: 18px;
    background: #1f2630;
    color: #eef3fb;
}

.p2p-mobile-head,
.p2p-order-head {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.p2p-mobile-head strong {
    color: #87909f;
    font-size: 18px;
}

.p2p-mobile-head b {
    color: #fff;
    font-size: 20px;
}

.p2p-mobile-head select {
    justify-self: end;
    width: auto;
    min-width: 86px;
    border-color: #46505f;
    background: #232b36;
    color: #fff;
    padding: 8px 10px;
}

.p2p-exchange-shell .p2p-board-tabs {
    background: #2a323f;
    border-radius: 999px;
}

.p2p-section-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    width: min(360px, 100%);
    margin: 0 0 16px;
    padding: 4px;
    border-radius: 999px;
    background: #151b24;
    border: 1px solid rgba(255,255,255,.08);
}

.p2p-section-tab {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    color: #9aa4b4;
    background: transparent;
    font-weight: 900;
}

.p2p-section-tab.active {
    color: #151b24;
    background: #f0c90c;
}

.p2p-exchange-shell .p2p-filter {
    border-radius: 999px;
    color: #aeb7c7;
    padding: 10px 24px;
}

.p2p-exchange-shell .p2p-filter.active {
    background: #f1f4f8;
    color: #151b24;
}

.p2p-market-filters {
    display: grid;
    grid-template-columns: auto auto auto 1fr;
    gap: 24px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #d8dee8;
}

.merchant-link {
    justify-self: end;
    border: 1px solid #46505f;
    background: transparent;
    color: #d8dee8;
    border-radius: 10px;
    padding: 8px 10px;
}

.p2p-ad-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.p2p-ad-name {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
}

.p2p-ad-name span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #343d4b;
    color: #fff;
}

.p2p-ad-left small,
.p2p-ad-left p,
.p2p-ad-right span,
.p2p-ad-right small {
    color: #9aa4b4;
}

.p2p-ad-right small {
    max-width: 150px;
    text-align: right;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.35;
}

.p2p-price {
    margin: 10px 0 8px;
}

.p2p-price em {
    color: #d7dde8;
    font-style: normal;
    margin-right: 8px;
}

.p2p-price strong {
    color: #f4f7fb;
    font-size: 34px;
    line-height: 1;
}

.p2p-price span {
    color: #9aa4b4;
}

.p2p-ad-left p {
    margin: 4px 0;
    font-size: 13px;
}

.p2p-ad-right {
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 12px;
}

.buy-action,
.sell-action {
    border: 0;
    border-radius: 6px;
    color: #fff;
    min-width: 114px;
    padding: 11px 18px;
    font-weight: 800;
}

.buy-action {
    background: #31bf86;
}

.sell-action,
.p2p-place-order {
    background: #f6465d;
}

.p2p-order-screen {
    max-width: 560px;
    margin: 0 auto;
}

.p2p-order-head {
    grid-template-columns: auto 1fr;
    text-align: center;
}

.p2p-order-head strong {
    display: block;
    font-size: 22px;
}

.p2p-order-head span {
    color: #d7dde8;
}

.p2p-order-card,
.p2p-payment-row {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #252d39;
    color: #eef3fb;
    padding: 18px;
    margin-bottom: 14px;
}

.p2p-amount-tabs {
    display: flex;
    gap: 26px;
    color: #99a3b3;
}

.p2p-amount-tabs strong {
    color: #fff;
    border-bottom: 4px solid #f0c90c;
    padding-bottom: 12px;
}

.p2p-amount-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin: 16px 0 10px;
}

.p2p-amount-box input {
    border: 0;
    background: transparent;
    color: #eef3fb;
    font-size: 52px;
    padding: 8px 0;
}

.p2p-amount-box span {
    color: #fff;
    font-size: 20px;
}

.p2p-amount-box button {
    border: 0;
    background: transparent;
    color: #f0c90c;
    font-weight: 800;
}

.p2p-order-card p {
    display: flex;
    justify-content: space-between;
    color: #9aa4b4;
}

.p2p-receive-row strong {
    color: #d7dde8;
}

.p2p-payment-row {
    display: flex;
    justify-content: space-between;
    min-height: 76px;
    align-items: center;
    font-size: 18px;
}

.p2p-advertiser {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #d7dde8;
}

.p2p-advertiser div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #16c784;
    margin-left: auto;
}

.p2p-place-order {
    width: 100%;
    border: 0;
    border-radius: 9px;
    color: #fff;
    padding: 16px;
    font-size: 18px;
    font-weight: 800;
}

.mini-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.p2p-list {
    display: grid;
    gap: 10px;
}

.p2p-orders-pane {
    display: grid;
    gap: 14px;
}

.p2p-orders-pane[hidden],
.p2p-market-pane[hidden] {
    display: none;
}

.p2p-orders-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: #252d39;
}

.p2p-orders-head strong {
    display: block;
    color: #eef3fb;
    font-size: 18px;
}

.p2p-orders-head span {
    display: block;
    margin-top: 4px;
    color: #9aa4b4;
    font-size: 13px;
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.admin-page {
    gap: 18px;
    padding-bottom: 40px;
}

.admin-page.view.active {
    display: grid;
}

.admin-page .section-head {
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: #151b25;
}

.admin-page .section-head h3 {
    margin-bottom: 4px;
}

.admin-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-support-shell {
    display: block;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    overflow: hidden;
    background: #10161d;
}

.admin-support-list,
.admin-support-thread {
    border: 0;
    border-radius: 0;
}

.admin-support-list {
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 10px;
    padding: 0;
    overflow: hidden;
    background: #111922;
}

.admin-support-list-head,
.admin-thread-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-support-list-head {
    justify-content: space-between;
    padding: 18px 18px 0;
}

.admin-support-list-head h3,
.admin-thread-head h3 {
    margin: 0;
}

.admin-support-list-head p,
.admin-thread-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.admin-support-list-head span {
    min-width: 28px;
    min-height: 28px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(77, 212, 255, .14);
    color: var(--accent);
    font-weight: 800;
}

.admin-chat-search {
    margin: 0 18px;
    width: calc(100% - 36px);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: var(--text);
    padding: 12px 14px;
}

.admin-chat-filters {
    display: flex;
    gap: 8px;
    padding: 0 18px;
}

.admin-chat-filters button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    color: var(--muted);
    padding: 8px 13px;
    font-weight: 800;
    font-size: 12px;
}

.admin-chat-filters button.active {
    background: rgba(53, 230, 164, .14);
    border-color: rgba(53, 230, 164, .42);
    color: var(--green);
}

.admin-support-thread {
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 0;
    overflow: hidden;
    width: min(760px, calc(100vw - 28px));
    height: min(760px, calc(100dvh - 36px));
    max-height: 760px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    box-shadow: 0 26px 90px rgba(0,0,0,.52);
}

.admin-chat-users {
    display: grid;
    align-content: start;
    max-height: calc(100dvh - 320px);
    min-height: 420px;
    overflow: auto;
}

.admin-chat-user {
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 12px;
    text-align: left;
    width: 100%;
    min-height: 86px;
    transition: background .16s ease, border-color .16s ease;
}

.admin-chat-user.active,
.admin-chat-user:hover {
    background: rgba(77, 212, 255, .10);
}

.admin-chat-user.unread {
    background: rgba(53, 230, 164, .07);
}

.admin-chat-user.unread .admin-chat-user-main b,
.admin-chat-user.unread .admin-chat-user-main small {
    color: #fff;
}

.admin-chat-avatar,
.admin-thread-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #18bfc5, #5865f2);
    color: #fff;
    font-weight: 900;
}

.admin-chat-user-main {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.admin-chat-user-main strong {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.admin-chat-user-main b,
.admin-chat-user-main small,
.admin-chat-user-main span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-chat-user-main time,
.admin-chat-user-meta small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.admin-chat-user-meta {
    display: grid;
    justify-items: end;
    align-content: center;
    gap: 4px;
}

.admin-chat-user-meta em {
    min-width: 22px;
    min-height: 22px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--danger);
    color: #fff;
    font-size: 12px;
    font-style: normal;
}

.admin-chat-empty {
    display: grid;
    gap: 6px;
    margin: 18px;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    color: var(--muted);
    text-align: center;
}

.admin-chat-empty strong {
    color: var(--text);
}

.admin-chat-user-main span,
.admin-chat-user-main small,
.admin-thread-head p,
.admin-chat-message small {
    color: var(--muted);
}

.admin-thread-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: #18212b;
    min-width: 0;
}

.admin-thread-head > div {
    min-width: 0;
    flex: 1;
}

.admin-thread-count {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    padding: 7px 10px;
    white-space: nowrap;
}

.admin-chat-back {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: var(--text);
    padding: 8px 12px;
    font-weight: 800;
}

.admin-chat-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    place-items: center;
    padding: 18px;
}

.admin-chat-modal.open {
    display: grid;
}

.admin-chat-modal-scrim {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(5, 8, 12, .68);
    backdrop-filter: blur(4px);
}

.admin-chat-modal .admin-support-thread {
    position: relative;
    z-index: 1;
    background: #10161d;
}

.admin-chat-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    max-height: none;
    overflow: auto;
    padding: 18px;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(rgba(13, 18, 23, .93), rgba(13, 18, 23, .93)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 18px);
}

.admin-chat-message {
    max-width: min(680px, 76%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 7px;
    border-radius: 8px 8px 8px 2px;
    background: #202b36;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.admin-chat-message.support {
    align-self: flex-end;
    border-radius: 8px 8px 2px 8px;
    background: #0f5f59;
}

.admin-chat-message.member {
    align-self: flex-start;
}

.admin-chat-message p {
    margin: 0;
    line-height: 1.45;
}

.admin-chat-message small {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    font-size: 11px;
}

.admin-chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    background: #18212b;
}

.admin-chat-form textarea {
    min-height: 46px;
    max-height: 140px;
    border-radius: 999px;
    resize: none;
    padding: 13px 16px;
}

.admin-table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: #121821;
}

.admin-users-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
}

.admin-users-table th,
.admin-users-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    text-align: left;
    vertical-align: top;
}

.admin-users-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #0f141d;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-users-table tr:hover td {
    background: #182131;
}

.admin-users-table td > strong,
.admin-users-table td > small {
    display: block;
}

.admin-users-table td > small {
    color: var(--muted);
    margin-top: 4px;
}

.admin-myusers-toolbar,
.admin-selected-number,
.admin-myusers-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.admin-myusers-toolbar {
    align-items: flex-start;
}

.admin-myusers-toolbar h3 {
    margin: 0 0 4px;
}

.admin-selected-number {
    justify-content: flex-start;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 8px;
    background: rgba(88, 101, 242, .08);
}

.admin-selected-number span {
    color: var(--muted);
}

.admin-selected-number strong {
    font-size: 18px;
}

.admin-selected-number[hidden] {
    display: none;
}

.admin-myusers-pager {
    justify-content: center;
    margin: 16px 0 0;
}

.admin-myusers-pager span {
    color: var(--muted);
    font-weight: 700;
}

.admin-myusers-table td {
    vertical-align: middle;
}

.admin-myusers-list {
    display: grid;
    gap: 10px;
}

.admin-myuser-row {
    display: grid;
    grid-template-columns: 82px 1.2fr 1.2fr .75fr .75fr 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 10px;
    background: #111827;
    color: #eef3fb;
}

.admin-myuser-row > div,
.admin-myuser-select-line {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-myuser-row span,
.admin-myuser-row small {
    color: var(--muted);
}

.admin-myuser-row span {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-myuser-row strong,
.admin-myuser-row small {
    overflow-wrap: anywhere;
}

.admin-myuser-select-line {
    align-items: center;
    grid-template-columns: auto 1fr;
}

.admin-myusers-table input[type="radio"] {
    min-width: 0;
    width: 18px;
    height: 18px;
}

.admin-myuser-row strong,
.admin-myuser-row small {
    overflow-wrap: anywhere;
}

a.primary-btn.disabled {
    pointer-events: none;
    opacity: .55;
}

@media (max-width: 780px) {
    .admin-myusers-toolbar,
    .admin-selected-number {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-myusers-toolbar .admin-search,
    .admin-selected-number .primary-btn,
    .admin-selected-number .secondary-btn {
        width: 100%;
    }

    .admin-myuser-row {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 14px;
        background: #fff;
        color: #202124;
        border-color: #e5e7eb;
    }

    .admin-myuser-row strong {
        color: #111827;
    }

    .admin-myuser-row span,
    .admin-myuser-row small {
        color: #6b7280;
    }

    .admin-myuser-row .admin-user-actions {
        grid-template-columns: 1fr 1fr;
    }

    .admin-myusers-table,
    .admin-myusers-table tbody,
    .admin-myusers-table tr,
    .admin-myusers-table td {
        display: block;
        width: 100%;
    }

    .admin-myusers-table thead {
        display: none;
    }

    .admin-myusers-table tr.admin-myuser-row {
        display: grid;
        gap: 10px;
        margin: 0 0 12px;
        padding: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        color: #202124;
    }

    .admin-myusers-table tr.admin-myuser-row td {
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        padding: 0;
        border: 0;
        color: #202124;
    }

    .admin-myusers-table tr.admin-myuser-row td::before {
        content: attr(data-label);
        color: #6b7280;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .admin-myusers-table tr.admin-myuser-row strong {
        color: #111827;
    }

    .admin-myusers-table tr.admin-myuser-row small {
        color: #6b7280;
    }

    .admin-myusers-table .status-pill {
        justify-self: start;
    }

    .admin-myusers-table .admin-user-actions {
        grid-template-columns: 1fr 1fr;
    }
}

.admin-users-table select,
.admin-users-table input {
    min-width: 112px;
    padding: 9px 10px;
    border-radius: 8px;
    background: #0f141d;
    border-color: rgba(255, 255, 255, .10);
}

.admin-balance-stack {
    display: grid;
    gap: 5px;
    color: var(--muted);
    min-width: 128px;
}

.admin-balance-stack b {
    color: var(--text);
}

.admin-adjust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(92px, 1fr));
    gap: 8px;
    min-width: 240px;
}

.admin-adjust-grid label {
    gap: 4px;
    font-size: 11px;
}

.admin-adjust-grid input {
    width: 100%;
    min-width: 0;
}

.admin-user-actions {
    display: grid;
    gap: 8px;
    min-width: 96px;
}

.admin-page .panel {
    align-content: start;
    gap: 14px;
    background: #151b25;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    box-shadow: none;
}

.admin-page .panel h3 {
    margin: 0;
    font-size: 15px;
    letter-spacing: 0;
}

.admin-stat {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 10px;
    background: #151b25;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: inset 0 3px 0 rgba(77, 212, 255, .52);
}

.admin-stat span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-stat strong {
    color: var(--text);
    font-size: clamp(18px, 2.4vw, 26px);
    line-height: 1.05;
}

.admin-row {
    grid-template-columns: minmax(180px, 1fr) auto auto auto auto auto auto;
}

.admin-page .p2p-list {
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
}

.admin-list-head {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(6, minmax(92px, auto));
    gap: 10px;
    align-items: center;
    padding: 10px 16px;
    color: var(--muted);
    background: #0f141d;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-copy-btn {
    width: fit-content;
    margin-top: 8px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 12px;
}

.admin-wallet-line {
    display: block;
    max-width: min(520px, 72vw);
    margin-top: 6px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.admin-page .p2p-row {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0;
    background: #121821;
    padding: 14px 16px;
}

.admin-page .p2p-row:last-child {
    border-bottom: 0;
}

.admin-page .p2p-row:hover {
    background: #182131;
}

.admin-page .p2p-row strong {
    font-size: 14px;
}

.admin-page .p2p-row small {
    max-width: 560px;
    overflow-wrap: anywhere;
}

.admin-page .secondary-btn,
.admin-page .primary-btn {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.admin-page .status-pill {
    justify-self: start;
    text-transform: capitalize;
}

.danger-lite {
    border-color: rgba(255, 92, 119, .45) !important;
    color: var(--danger) !important;
}

.p2p-board-tabs {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin: 0 0 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
}

.p2p-filter {
    border: 0;
    border-radius: 10px;
    padding: 9px 14px;
    color: var(--muted);
    background: transparent;
    font-weight: 800;
}

.p2p-filter.active {
    color: #fff;
    background: var(--brand);
}

.p2p-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid var(--line);
}

.p2p-row strong,
.p2p-row span {
    color: var(--text);
}

.p2p-row small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.p2p-row input {
    width: 112px;
    padding: 9px 10px;
    border-radius: 10px;
}

.p2p-order-chat {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    margin-top: 4px;
    padding: 14px;
    border-radius: 12px;
    background: #151b24;
    border: 1px solid rgba(255,255,255,.08);
}

.p2p-order-chat[hidden] {
    display: none;
}

.p2p-order-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.p2p-order-chat-head strong {
    color: #eef3fb;
}

.p2p-order-chat-head span {
    color: #9aa4b4;
    font-size: 12px;
}

.p2p-order-chat-messages {
    display: grid;
    gap: 8px;
    max-height: 240px;
    overflow: auto;
    padding: 4px;
}

.p2p-chat-bubble {
    width: min(82%, 420px);
    padding: 10px 12px;
    border-radius: 14px;
    background: #242d3a;
    border: 1px solid rgba(255,255,255,.07);
}

.p2p-chat-bubble.mine {
    justify-self: end;
    background: linear-gradient(135deg, #2cbb84, #1fa777);
    color: #08130f;
}

.p2p-chat-bubble span,
.p2p-chat-bubble small {
    display: block;
    color: inherit;
    opacity: .74;
    font-size: 11px;
    font-weight: 900;
}

.p2p-chat-bubble p {
    margin: 4px 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.p2p-order-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.p2p-order-chat-form textarea {
    min-height: 48px;
    max-height: 120px;
    resize: vertical;
    border-radius: 10px;
    padding: 12px;
    background: #202834;
    border: 1px solid rgba(255,255,255,.10);
    color: #eef3fb;
}

.p2p-trade-chat-widget {
    z-index: 300;
    height: min(640px, calc(100dvh - 44px));
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.p2p-trade-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    background: #202834;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.p2p-trade-summary div {
    min-width: 0;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.p2p-trade-summary span {
    display: block;
    color: #9aa4b4;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.p2p-trade-summary strong {
    display: block;
    margin-top: 4px;
    color: #eef3fb;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p2p-chat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #e8ebf3;
}

.p2p-chat-actions span {
    color: #9aa4b4;
    font-size: 12px;
    line-height: 1.45;
}

.p2p-chat-actions button[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.p2p-trade-message small {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.app.p2p-chat-open .mobile-taskbar,
.app.p2p-chat-open .service-float,
.app.p2p-chat-open .p2p-place-order {
    display: none !important;
}

.chat-widget.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.service-open {
    position: relative;
}

.chat-unread-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    background: var(--danger);
    color: #fff;
    border: 2px solid #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.chat-unread-badge[hidden] {
    display: none;
}

.service-float.has-unread {
    box-shadow: 0 0 0 5px rgba(255, 92, 119, .16), 0 12px 28px rgba(0,0,0,.24);
}

.service-float .chat-unread-badge {
    top: 3px;
    right: 3px;
}

.chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #2b2f42, #171923);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.chat-head div {
    position: relative;
    display: grid;
    gap: 2px;
    padding-left: 18px;
}

.chat-head strong {
    font-size: 15px;
}

.chat-head small {
    color: #aeb7c7;
    font-size: 12px;
}

.chat-status {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #35e6a4;
    box-shadow: 0 0 0 5px rgba(53, 230, 164, .14);
}

.chat-close {
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .09);
    color: #fff;
    padding: 8px 10px;
    font-weight: 800;
}

.chat-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 14px;
    background: #f4f6fb;
}

.chat-empty {
    margin: auto;
    color: #667085;
    font-size: 13px;
}

.chat-message {
    max-width: 82%;
    display: grid;
    gap: 4px;
}

.chat-message p {
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    line-height: 1.45;
    font-size: 14px;
}

.chat-message small {
    color: #7b8495;
    font-size: 11px;
}

.chat-message.member {
    align-self: flex-end;
    justify-items: end;
}

.chat-message.member p {
    background: #5865f2;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-message.support {
    align-self: flex-start;
}

.chat-message.support p {
    background: #fff;
    color: #1f2937;
    border-bottom-left-radius: 4px;
    box-shadow: 0 6px 18px rgba(20, 24, 36, .08);
}

.chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #e8ebf3;
}

.chat-form textarea {
    min-height: 46px;
    max-height: 92px;
    resize: vertical;
    border: 1px solid #d8deea;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
    color: #111827;
    caret-color: #5865f2;
    font: inherit;
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    touch-action: manipulation;
}

.chat-form textarea::placeholder {
    color: #8a94a6;
}

.chat-form button {
    align-self: end;
    min-height: 46px;
    border-radius: 12px;
}

.post:hover,
.creator-card:hover,
.task-card:hover,
.panel:hover {
    transform: none;
}

@media (max-width: 780px) {
    #p2p-view {
        padding: 0;
        background: #1f2630;
        min-height: calc(100dvh - 62px);
    }

    .view.active {
        animation: none;
    }

    .topbar,
    .mobile-taskbar {
        transform: translateZ(0);
    }

    .app:not(.drawer-open) .mobile-drawer {
        transform: translateX(-104%) !important;
        visibility: hidden;
        pointer-events: none;
    }

    .drawer-open .mobile-drawer {
        transform: translateX(0) !important;
        visibility: visible;
        pointer-events: auto;
    }

    .app:not(.drawer-open) .drawer-scrim {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .chat-widget {
        right: 10px;
        bottom: calc(78px + env(safe-area-inset-bottom));
        width: calc(100vw - 20px);
        height: min(540px, calc(100dvh - 96px));
        border-radius: 18px;
    }

    .referral-level-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .p2p-grid {
        grid-template-columns: 1fr;
    }

    .merchant-hero {
        align-items: flex-start;
        flex-direction: column;
        margin: 0 0 12px;
        padding: 20px;
        border-radius: 16px;
    }

    .merchant-hero h3 {
        font-size: 25px;
    }

    .merchant-stats,
    .merchant-workspace,
    .merchant-offer-card,
    .merchant-offer-item {
        grid-template-columns: 1fr;
    }

    .merchant-stats {
        gap: 10px;
    }

    .merchant-offer-item em {
        justify-self: start;
    }

    .admin-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-page-grid {
        grid-template-columns: 1fr;
    }

    .admin-support-shell {
        min-height: 0;
    }

    .admin-support-list {
        border-right: 0;
    }

    .admin-chat-users {
        max-height: calc(100dvh - 300px);
        min-height: 360px;
    }

    .admin-chat-back {
        display: inline-flex;
        align-items: center;
    }

    .admin-chat-modal {
        align-items: end;
        padding: 0;
    }

    .admin-support-thread {
        width: 100vw;
        height: calc(100dvh - env(safe-area-inset-top));
        max-height: none;
        border-radius: 14px 14px 0 0;
        border-inline: 0;
        border-bottom: 0;
    }

    .admin-thread-count {
        display: none;
    }

    .admin-chat-form {
        grid-template-columns: 1fr;
    }

    .admin-chat-message {
        max-width: 100%;
    }

    .report-filter.admin-search {
        grid-template-columns: 1fr;
    }

    .report-filter.admin-search input,
    .report-filter.admin-search button {
        width: 100%;
        min-width: 0;
    }

    .report-filter.admin-search button {
        margin-top: 8px;
    }

    .admin-table-wrap {
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .admin-users-table,
    .admin-users-table thead,
    .admin-users-table tbody,
    .admin-users-table tr,
    .admin-users-table th,
    .admin-users-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .admin-users-table thead {
        display: none;
    }

    .admin-users-table tr {
        margin-bottom: 12px;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 10px;
        overflow: hidden;
        background: #121821;
    }

    .admin-users-table td {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .admin-users-table select,
    .admin-users-table input {
        min-width: 0;
        width: 100%;
    }

    .admin-balance-stack {
        min-width: 0;
    }

    .admin-user-actions {
        grid-template-columns: 1fr;
    }

    .admin-users-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .admin-users-table td:last-child {
        border-bottom: 0;
    }

    .admin-adjust-grid {
        min-width: 0;
        grid-template-columns: 1fr 1fr;
    }

    .admin-user-actions {
        grid-template-columns: 1fr 1fr;
    }

    .p2p-row {
        grid-template-columns: 1fr;
        align-items: stretch;
        background: #fff;
        color: #202124;
        border-color: #eceff5;
    }

    .p2p-row strong,
    .p2p-row span {
        color: #202124;
    }

    .p2p-row input {
        width: 100%;
    }

    .p2p-row .p2p-order-chat {
        padding: 12px;
    }

    .p2p-order-chat-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .p2p-order-chat-form {
        grid-template-columns: 1fr;
    }

    .p2p-order-chat-form button {
        width: 100%;
    }

    .p2p-chat-bubble {
        width: 92%;
    }

    .p2p-trade-chat-widget {
        inset: 0 !important;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 300;
        width: 100vw;
        max-width: none;
        height: 100dvh;
        border-radius: 0;
        border: 0;
        grid-template-rows: auto auto auto minmax(0, 1fr) auto;
        transform: translateY(100%);
        box-shadow: none;
    }

    .p2p-trade-chat-widget.open {
        transform: translateY(0);
    }

    .p2p-trade-chat-widget .chat-head {
        min-height: 72px;
        padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    }

    .p2p-trade-chat-widget .chat-form {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .p2p-trade-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        max-height: 126px;
        overflow-y: auto;
        padding: 8px;
    }

    .p2p-trade-summary div {
        padding: 7px 8px;
        border-radius: 9px;
    }

    .p2p-trade-summary span {
        font-size: 9px;
    }

    .p2p-trade-summary strong {
        margin-top: 2px;
        font-size: 13px;
        line-height: 1.25;
    }

    .p2p-chat-actions {
        display: flex;
        padding: 7px 10px;
        max-height: 58px;
        overflow-y: auto;
    }

    .p2p-chat-actions span {
        font-size: 12px;
        line-height: 1.35;
    }

    .p2p-trade-chat-widget .chat-body {
        min-height: 0;
        padding: 12px;
    }

    .merchant-offer-editor {
        grid-template-columns: 1fr;
    }

    .merchant-offer-save {
        width: 100%;
    }

.dispute-row {
    grid-template-columns: 1fr;
}

.dispute-details {
    display: grid;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 59, 48, 0.08);
    border: 1px solid rgba(255, 59, 48, 0.2);
    margin-top: 8px;
}

.dispute-notes {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.dispute-notes strong {
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

.dispute-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.dispute-actions button {
    padding: 9px 12px;
    font-size: 13px;
}

    .admin-row {
        grid-template-columns: 1fr;
    }

    .p2p-exchange-shell {
        margin: 0;
        padding: 14px 20px calc(96px + env(safe-area-inset-bottom));
        min-height: calc(100dvh - 62px);
        background: #1f2630;
    }

    .p2p-mobile-head {
        position: sticky;
        top: 0;
        z-index: 4;
        grid-template-columns: 34px auto 1fr auto;
        gap: 12px;
        margin: -14px -20px 12px;
        padding: calc(12px + env(safe-area-inset-top)) 20px 12px;
        background: #1f2630;
    }

    .p2p-mobile-head .back-lite {
        width: 34px;
        height: 34px;
        padding: 0;
        overflow: hidden;
        color: transparent;
        position: relative;
        background: transparent;
        border: 0;
    }

    .p2p-mobile-head .back-lite::before {
        content: "<";
        color: #eef3fb;
        font-size: 26px;
        line-height: 1;
        position: absolute;
        inset: 3px 0 0;
        text-align: left;
    }

    .p2p-mobile-head strong,
    .p2p-mobile-head b {
        font-size: 18px;
        line-height: 34px;
    }

    .p2p-mobile-head select {
        min-width: 76px;
        height: 36px;
        border-radius: 10px;
        font-size: 14px;
    }

    .p2p-exchange-shell .p2p-board-tabs {
        width: 156px;
        margin-bottom: 10px;
    }

    .p2p-section-tabs {
        position: sticky;
        top: calc(58px + env(safe-area-inset-top));
        z-index: 4;
        width: 100%;
        margin: 0 0 12px;
        background: #151b24;
    }

    .p2p-exchange-shell .p2p-filter {
        padding: 9px 18px;
        font-size: 15px;
    }

    .p2p-market-filters {
        grid-template-columns: auto auto auto 1fr;
        gap: 16px;
        font-size: 14px;
        padding: 10px 0 12px;
        position: sticky;
        top: calc(106px + env(safe-area-inset-top));
        z-index: 3;
        background: #1f2630;
    }

    .merchant-link {
        font-size: 12px;
        padding: 7px 8px;
    }

    .p2p-ad-row {
        grid-template-columns: minmax(0, 1fr) 116px;
        gap: 10px;
        padding: 16px 0;
    }

    .p2p-price strong {
        font-size: clamp(27px, 8vw, 34px);
        letter-spacing: 0;
    }

    .p2p-ad-right span {
        text-align: right;
        max-width: 112px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
        line-height: 1.35;
    }

    .buy-action,
    .sell-action {
        min-width: 112px;
        min-height: 42px;
        padding: 10px 14px;
        border-radius: 6px;
    }

    .p2p-orders-panel {
        margin: 18px -20px 0;
        border-radius: 0;
        background: #252d39;
        border-color: rgba(255,255,255,.08);
    }

    .p2p-orders-head {
        align-items: stretch;
        flex-direction: column;
        padding: 14px;
    }

    .p2p-orders-head .merchant-link {
        width: 100%;
        justify-self: stretch;
    }

    .p2p-order-screen {
        max-width: none;
        min-height: calc(100dvh - 96px);
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .p2p-order-head {
        position: sticky;
        top: 0;
        z-index: 5;
        margin: -14px -20px 16px;
        padding: calc(12px + env(safe-area-inset-top)) 20px 12px;
        background: #1f2630;
    }

    .p2p-order-card,
    .p2p-payment-row {
        border-radius: 10px;
        padding: 16px;
    }

    .p2p-amount-box {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .p2p-amount-box input {
        min-width: 0;
        font-size: clamp(42px, 14vw, 58px);
    }

    .p2p-amount-box span {
        white-space: nowrap;
        font-size: 18px;
    }

    .p2p-payment-row {
        min-height: 72px;
        gap: 12px;
        text-align: left;
    }

    .p2p-payment-row strong {
        text-align: right;
        overflow-wrap: anywhere;
    }

    .p2p-advertiser {
        padding-bottom: 110px;
    }

    .p2p-place-order {
        position: fixed;
        left: 20px;
        right: 20px;
        bottom: calc(84px + env(safe-area-inset-bottom));
        z-index: 70;
        width: auto;
        min-height: 58px;
        box-shadow: 0 12px 30px rgba(0,0,0,.28);
    }

    .app.p2p-mode .mobile-taskbar {
        z-index: 80;
        background: #151a22;
        border-top: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 -8px 24px rgba(0,0,0,.28);
    }

    .app.p2p-mode .mobile-tab {
        color: #9aa4b4;
    }

    .app.p2p-mode .mobile-tab span {
        color: #9aa4b4;
    }

    .app.p2p-mode .mobile-tab.active,
    .app.p2p-mode .mobile-tab.active span,
    .app.p2p-mode .mobile-tab:focus-visible,
    .app.p2p-mode .mobile-tab:focus-visible span {
        color: #f0c90c;
    }
}

@media (max-width: 420px) {
    .p2p-exchange-shell {
        padding-inline: 14px;
    }

    .p2p-mobile-head,
    .p2p-order-head {
        margin-inline: -14px;
        padding-inline: 14px;
    }

    .p2p-market-filters {
        gap: 10px;
        font-size: 13px;
    }

    .p2p-ad-row {
        grid-template-columns: minmax(0, 1fr) 104px;
    }

    .p2p-ad-name strong {
        max-width: 168px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .p2p-ad-left small {
        display: block;
        max-width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .buy-action,
    .sell-action {
        min-width: 100px;
    }

    .p2p-place-order {
        left: 14px;
        right: 14px;
    }
}

/* Admin console final overrides: keep these after responsive member styles. */
.admin-app .content {
    padding: 0;
}

.admin-app .admin-page {
    padding: 22px;
}

.admin-app .p2p-row {
    color: var(--text);
}

.admin-app .p2p-row strong,
.admin-app .p2p-row span {
    color: var(--text);
}

.admin-app .p2p-row span[data-label] {
    display: grid;
    gap: 3px;
    min-width: 92px;
    font-weight: 700;
}

.admin-app .p2p-row span[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-app .admin-compact-list .p2p-row {
    grid-template-columns: minmax(220px, 1fr) repeat(2, auto);
}

.admin-app .admin-compact-list .admin-list-head {
    grid-template-columns: minmax(220px, 1fr) repeat(2, auto);
}

@media (max-width: 980px) {
    .admin-app {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-app .rail,
    .admin-app .sidebar {
        display: none;
    }

    .admin-app .content {
        grid-column: 1;
    }

    .admin-app .topbar {
        position: sticky;
        top: 0;
        z-index: 30;
    }
}

@media (max-width: 780px) {
    .admin-app .admin-page {
        padding: 16px 12px 24px;
    }

    .admin-app .p2p-row,
    .admin-app .admin-compact-list .p2p-row,
    .admin-app .admin-list-head,
    .admin-app .admin-compact-list .admin-list-head {
        grid-template-columns: 1fr;
        gap: 10px;
        background: #121821;
        color: var(--text);
    }

    .admin-app .admin-list-head {
        display: none;
    }

    .admin-app .p2p-row strong,
    .admin-app .p2p-row span {
        color: var(--text);
    }

    .admin-app .p2p-row span[data-label] {
        grid-template-columns: 112px minmax(0, 1fr);
        align-items: baseline;
        min-width: 0;
    }

    .admin-app .status-pill {
        justify-self: start;
    }

    .admin-app .admin-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-app .section-head {
        padding: 16px;
    }
}

@media (max-width: 460px) {
    .admin-app .admin-summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-app .p2p-row span[data-label] {
        grid-template-columns: 1fr;
    }
}
