:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --card-soft: #fff8f7;
    --line: #edf1f7;
    --text: #202737;
    --muted: #81889b;
    --brand-start: #ff7e74;
    --brand-mid: #ff5f59;
    --brand-end: #ff8f70;
    --brand-shadow: 0 18px 42px rgba(255, 95, 89, 0.28);
    --shadow: 0 18px 38px rgba(20, 34, 68, 0.08);
    --shadow-soft: 0 12px 30px rgba(20, 34, 68, 0.06);
    --success: #1f9c68;
    --warning: #d28a0a;
    --danger: #d34f43;
    --info: #4979ff;
    --admin-bg: #edf3fa;
    --admin-sidebar: #283a53;
    --admin-sidebar-soft: #324865;
    --browser-bottom-offset: 0px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    height: -webkit-fill-available;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.front-app-body {
    background:
        radial-gradient(circle at top center, rgba(255, 126, 116, 0.14), transparent 28%),
        linear-gradient(180deg, #fafbff 0%, #f3f6fb 100%);
}

.auth-body {
    background:
        radial-gradient(circle at top center, rgba(255, 126, 116, 0.18), transparent 26%),
        linear-gradient(180deg, #fff9f8 0%, #f6f7fb 100%);
}

.admin-body {
    background:
        radial-gradient(circle at top right, rgba(109, 158, 255, 0.12), transparent 22%),
        linear-gradient(180deg, #f0f5fb 0%, #eaf1f8 100%);
}

.muted {
    color: var(--muted);
}

.flash {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.92rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.flash-success {
    color: var(--success);
    background: rgba(31, 156, 104, 0.1);
    border-color: rgba(31, 156, 104, 0.16);
}

.flash-error {
    color: var(--danger);
    background: rgba(211, 79, 67, 0.1);
    border-color: rgba(211, 79, 67, 0.15);
}

.flash-warning {
    color: var(--warning);
    background: rgba(210, 138, 10, 0.11);
    border-color: rgba(210, 138, 10, 0.15);
}

.auth-mobile-shell,
.mobile-app-shell {
    padding: 18px 12px 24px;
    min-height: 100vh;
    min-height: 100dvh;
}

.mobile-app-shell {
    --mobile-shell-padding: 12px;
}

.auth-mobile-panel,
.mobile-app-frame {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
}

.auth-mobile-panel {
    display: grid;
    gap: 16px;
    background: transparent;
}

.auth-mobile-panel-auth {
    overflow: visible;
    isolation: isolate;
}

.auth-hero-card,
.auth-form-panel,
.surface-card,
.surface-card-soft,
.action-sheet,
.quick-item,
.feature-card,
.trade-hero,
.invite-link-card,
.profile-hero,
.request-card,
.admin-panel,
.admin-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
}

.auth-hero-card {
    padding: 26px 22px;
    background:
        radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.28), transparent 26%),
        linear-gradient(135deg, var(--brand-start) 0%, var(--brand-mid) 50%, var(--brand-end) 100%);
    color: #fff;
    border: none;
    box-shadow: var(--brand-shadow);
}

.auth-brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-brand-mark svg,
.app-logo svg,
.admin-brand-mark svg,
.fab-core svg {
    width: 100%;
    height: 100%;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.auth-hero-card h1 {
    margin: 16px 0 10px;
    font-size: 2rem;
    line-height: 1.08;
}

.auth-hero-card p {
    margin: 0;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
}

.auth-note-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.auth-note-list div {
    padding: 11px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
}

.auth-form-panel {
    padding: 22px 18px 24px;
}

.surface-card,
.surface-card-soft {
    padding: 18px;
}

.auth-form-title {
    margin: 0 0 6px;
    font-size: 1.52rem;
}

.auth-form-subtitle {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.form-stack,
.field-grid,
.admin-stack {
    display: grid;
    gap: 14px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.94rem;
}

.field small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.82rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #e4e9f2;
    background: #fbfcff;
    padding: 13px 14px;
    border-radius: 16px;
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(255, 96, 90, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 96, 90, 0.09);
}

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

.primary-button,
.secondary-button,
.ghost-button,
.inline-copy-button,
.quick-item,
.menu-link-row,
.icon-pill,
.icon-button,
.bottom-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.primary-button,
.secondary-button,
.ghost-button {
    min-height: 48px;
    border-radius: 16px;
    font-weight: 700;
    border: none;
}

.primary-button {
    background: linear-gradient(135deg, var(--brand-start) 0%, var(--brand-mid) 55%, var(--brand-end) 100%);
    color: #fff;
    box-shadow: var(--brand-shadow);
}

.secondary-button {
    background: rgba(255, 96, 90, 0.1);
    color: #ff5f59;
    border: 1px solid rgba(255, 96, 90, 0.16);
}

.ghost-button {
    background: #fff;
    color: var(--text);
    border: 1px solid #e4e9f2;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.quick-item:hover,
.menu-link-row:hover,
.bottom-nav-item:hover,
.icon-pill:hover,
.icon-button:hover {
    transform: translateY(-1px);
}

.auth-footer-line {
    margin-top: 8px;
    color: var(--muted);
    text-align: center;
}

.auth-footer-line a {
    color: #ff5f59;
    font-weight: 700;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.app-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-logo {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    overflow: hidden;
}

.app-logo-text {
    display: grid;
    gap: 2px;
}

.app-logo-text strong {
    font-size: 1.32rem;
    line-height: 1;
}

.app-logo-text span {
    font-size: 0.78rem;
    color: var(--muted);
}

.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-pill {
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff7f6;
    color: #c06e63;
    border: 1px solid #f8d6d2;
    font-size: 0.78rem;
    font-weight: 700;
}

.icon-pill svg,
.icon-button svg,
.quick-icon svg,
.bottom-icon svg,
.menu-link-row .menu-icon svg,
.status-icon svg {
    width: 18px;
    height: 18px;
}

.icon-button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #c76b60;
    background: #fff7f6;
    border: 1px solid #f8d6d2;
}

.app-main-content {
    padding: 4px 12px calc(148px + var(--browser-bottom-offset, 0px) + env(safe-area-inset-bottom));
    display: grid;
    gap: 14px;
}

.hero-balance-card {
    position: relative;
    overflow: hidden;
    padding: 20px 18px;
    color: #fff;
    background:
        radial-gradient(circle at 75% 28%, rgba(255, 182, 146, 0.28), transparent 24%),
        radial-gradient(circle at 105% 12%, rgba(255, 255, 255, 0.18), transparent 24%),
        linear-gradient(135deg, var(--brand-start) 0%, var(--brand-mid) 52%, var(--brand-end) 100%);
    border-radius: 24px;
    box-shadow: var(--brand-shadow);
}

.hero-balance-card::before,
.hero-balance-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.hero-balance-card::before {
    width: 180px;
    height: 180px;
    right: -90px;
    top: -54px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-balance-card::after {
    width: 56px;
    height: 56px;
    right: 26px;
    top: 24px;
    background: linear-gradient(145deg, #ffd68b 0%, #ef9b33 100%);
    box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.36), 0 8px 18px rgba(149, 72, 10, 0.28);
}

.hero-balance-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.hero-balance-value {
    margin-top: 14px;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.hero-balance-value small {
    font-size: 1.1rem;
    opacity: 0.88;
    margin-left: 6px;
}

.hero-balance-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    font-size: 0.84rem;
    opacity: 0.92;
}

.hero-balance-badge {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.soft-slider {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 4px 36px 4px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff9f7 0%, #fffefe 100%);
    border: 1px solid #ffe6e1;
    box-shadow: 0 10px 24px rgba(255, 95, 89, 0.08);
    position: relative;
    overflow: hidden;
}

.notice-bar-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff5f59;
}

.notice-bar-icon svg {
    width: 20px;
    height: 20px;
}

.soft-slider::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    width: 24px;
    border-radius: 12px 999px 999px 12px;
    background: linear-gradient(180deg, #ff8d4b 0%, #ff653d 100%);
    box-shadow: 0 10px 18px rgba(255, 101, 61, 0.22);
}

.notice-marquee {
    min-width: 0;
    overflow: hidden;
    position: relative;
    height: 20px;
}

.notice-marquee-track {
    position: absolute;
    left: 0;
    top: 50%;
    display: flex;
    align-items: center;
    gap: 26px;
    color: #9d8c8f;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transform: translate3d(0, -50%, 0);
    will-change: transform;
    animation: notice-marquee 18s linear infinite;
}

.notice-marquee-track span {
    display: flex;
    align-items: center;
    gap: 26px;
    padding-right: 26px;
}

.notice-empty {
    min-width: 0;
    color: #9d8c8f;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes notice-marquee {
    0% {
        transform: translate3d(0, -50%, 0);
    }

    100% {
        transform: translate3d(-50%, -50%, 0);
    }
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 10px;
}

.quick-item {
    flex-direction: column;
    gap: 8px;
    min-height: 96px;
    padding: 10px 8px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.quick-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff2f0 0%, #fff8f7 100%);
    color: #ff5f59;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 18px rgba(255, 95, 89, 0.12);
}

.quick-item strong {
    font-size: 1rem;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.mini-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stat-card {
    padding: 16px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fff9f8 100%);
}

.machine-showcase-card,
.profit-overview-card {
    padding: 14px 14px 12px;
    border-radius: 22px;
}

.machine-showcase-card .section-heading,
.profit-overview-card .section-heading {
    align-items: flex-start;
    margin-bottom: 10px;
}

.machine-showcase-card .section-heading h2,
.profit-overview-card .section-heading h2 {
    font-size: 1.32rem;
}

.machine-showcase-card .section-heading p,
.profit-overview-card .section-heading p {
    margin-top: 4px;
    font-size: 0.84rem;
    line-height: 1.45;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 0.83rem;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1.46rem;
    line-height: 1.1;
}

.admin-card span {
    display: block;
    color: var(--muted);
    font-size: 0.83rem;
}

.admin-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1.46rem;
    line-height: 1.1;
}

.feature-scroll {
    display: grid;
    gap: 10px;
}

.feature-card {
    padding: 12px 12px 10px;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border-radius: 20px;
    box-shadow: 0 12px 22px rgba(20, 34, 68, 0.06);
}

.feature-card-visual {
    height: 62px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 126, 116, 0.12) 0%, rgba(255, 95, 89, 0.08) 100%),
        #fff;
    position: relative;
    overflow: hidden;
}

.feature-card-visual.has-image::before,
.feature-card-visual.has-image::after {
    display: none;
}

.feature-card-visual::before,
.feature-card-visual::after {
    content: "";
    position: absolute;
    border-radius: 18px;
}

.feature-card-visual::before {
    width: 38px;
    height: 20px;
    left: 12px;
    top: 13px;
    background: linear-gradient(135deg, var(--brand-start) 0%, var(--brand-mid) 100%);
    box-shadow: 0 8px 14px rgba(255, 95, 89, 0.16);
}

.feature-card-visual::after {
    width: 22px;
    height: 22px;
    right: 10px;
    bottom: 10px;
    background: linear-gradient(135deg, #ffd68b 0%, #ef9b33 100%);
    border-radius: 50%;
}

.feature-card-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.feature-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.18;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 0;
}

.feature-card-content {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.feature-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.feature-card-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.feature-card-meta {
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}

.feature-card-form {
    gap: 8px;
}

.feature-card-field label {
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.feature-card-field input {
    padding: 10px 12px;
    border-radius: 14px;
}

.feature-card-field small {
    margin-top: 4px;
    font-size: 0.76rem;
    line-height: 1.35;
}

.feature-card-button {
    min-height: 42px;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(255, 95, 89, 0.16);
}

.tag-chip,
.status-chip,
.vip-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.tag-chip {
    background: rgba(255, 95, 89, 0.1);
    color: #ff5f59;
}

.vip-pill {
    background: linear-gradient(135deg, #8a5147 0%, #b97c52 100%);
    color: #fff;
}

.tone-success {
    background: rgba(31, 156, 104, 0.1);
    color: var(--success);
}

.tone-warning {
    background: rgba(210, 138, 10, 0.1);
    color: var(--warning);
}

.tone-danger {
    background: rgba(211, 79, 67, 0.1);
    color: var(--danger);
}

.tone-info {
    background: rgba(73, 121, 255, 0.1);
    color: var(--info);
}

.trade-hero {
    padding: 18px 18px 16px;
    overflow: hidden;
}

.trade-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.trade-profit-rate {
    font-size: 2.1rem;
    font-weight: 800;
}

.mining-visual {
    margin: 14px auto 0;
    width: 230px;
    height: 170px;
    position: relative;
}

.mining-core,
.mining-node,
.mining-ring,
.mining-dot {
    position: absolute;
}

.mining-core {
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    transform: translate(-50%, -50%);
    border-radius: 26px;
    background: linear-gradient(135deg, #ffd0b9 0%, #ff6f62 48%, #ff8e64 100%);
    box-shadow: 0 24px 36px rgba(255, 111, 98, 0.28);
}

.mining-core::before,
.mining-core::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.25);
}

.mining-node {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffe0d7 0%, #ff8d73 100%);
    box-shadow: 0 14px 24px rgba(255, 111, 98, 0.16);
}

.node-a { left: 8px; top: 14px; }
.node-b { right: 4px; top: 38px; }
.node-c { left: 30px; bottom: 18px; }
.node-d { right: 34px; bottom: 8px; }

.mining-ring {
    left: 26px;
    top: 50px;
    width: 42px;
    height: 42px;
    border: 10px solid #ff936e;
    border-radius: 50%;
    border-right-color: rgba(255, 147, 110, 0.2);
    transform: rotate(20deg);
    box-shadow: 0 10px 18px rgba(255, 111, 98, 0.16);
}

.mining-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff7c6f;
}

.dot-a { left: 22px; top: 110px; }
.dot-b { right: 18px; top: 18px; }
.dot-c { right: 70px; bottom: 22px; }

.trade-title {
    margin: 12px 0 0;
    text-align: center;
    font-size: 1.52rem;
}

.trade-subtitle {
    margin: 8px 0 0;
    text-align: center;
    color: var(--muted);
    line-height: 1.6;
}

.profit-list {
    display: grid;
    gap: 8px;
}

.profit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fff9f8 100%);
    border: 1px solid var(--line);
}

.profit-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb98d 0%, #ff6e62 100%);
    box-shadow: 0 8px 14px rgba(255, 111, 98, 0.14);
}

.profit-info {
    flex: 1;
    min-width: 0;
}

.profit-info strong {
    display: block;
    font-size: 1rem;
    line-height: 1.1;
}

.profit-info span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.79rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profit-time-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef1ff;
    color: #5d72ff;
    font-size: 0.72rem;
    font-weight: 800;
}

.invite-code-panel {
    padding: 22px 18px;
    text-align: center;
}

.invite-code-box {
    margin: 14px auto 0;
    width: min(220px, 100%);
    border: 1px solid #e7eaf1;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border-radius: 24px;
    padding: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.invite-code-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ff5f59;
}

.invite-link-card {
    padding: 18px;
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 183, 141, 0.32), transparent 22%),
        linear-gradient(135deg, var(--brand-start) 0%, var(--brand-mid) 48%, var(--brand-end) 100%);
    color: #fff;
    border: none;
    box-shadow: var(--brand-shadow);
}

.invite-link-card h3,
.profile-hero h3 {
    margin: 0;
}

.invite-link-card p,
.profile-hero p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
}

.link-pill {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
    padding: 8px 8px 8px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
}

.link-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
}

.inline-copy-button {
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #9d574d 0%, #6d443f 100%);
    color: #fff;
    font-weight: 700;
}

.profile-hero {
    padding: 18px;
    background:
        radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.2), transparent 20%),
        linear-gradient(180deg, #ff8a7d 0%, #ff6a63 56%, #ff7d6d 100%);
    color: #fff;
    border: none;
    box-shadow: var(--brand-shadow);
}

.profile-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-avatar-badge {
    width: 88px;
    height: 88px;
    margin: 18px auto 10px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(155, 73, 54, 0.22);
}

.profile-balance {
    margin-top: 8px;
    text-align: center;
}

.profile-balance small {
    display: block;
    color: rgba(255, 255, 255, 0.84);
}

.profile-balance strong {
    display: block;
    margin-top: 6px;
    font-size: 2rem;
}

.profile-balance strong span {
    font-size: 1rem;
}

.profile-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.profile-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 700;
}

.profile-shortcut .quick-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: none;
}

.menu-list {
    display: grid;
    gap: 12px;
}

.menu-link-row {
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.menu-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff3f2;
    color: #ff5f59;
}

.menu-link-copy {
    display: grid;
    gap: 4px;
}

.menu-link-copy strong {
    font-size: 1rem;
}

.menu-link-copy span {
    color: var(--muted);
    font-size: 0.84rem;
}

.request-list {
    display: grid;
    gap: 12px;
}

.request-card {
    padding: 16px;
}

.request-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.request-card-title {
    margin: 0;
    font-size: 1rem;
}

.request-card-meta {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.86rem;
}

.finance-panel-stack {
    display: grid;
    gap: 18px;
}

.finance-subsection {
    display: grid;
    gap: 12px;
}

.finance-subsection h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text);
}

.finance-caption {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

.review-inline-form {
    display: grid;
    gap: 8px;
    min-width: 220px;
}

.review-inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.review-inline-actions .secondary-button,
.review-inline-actions .ghost-button {
    min-width: 88px;
}

.level-card {
    padding: 20px 18px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.16), transparent 18%),
        linear-gradient(135deg, var(--brand-start) 0%, var(--brand-mid) 52%, var(--brand-end) 100%);
    border-radius: 24px;
    box-shadow: var(--brand-shadow);
}

.level-card h2 {
    margin: 10px 0 0;
    font-size: 1.8rem;
}

.level-card p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.88);
}

.level-table-wrap {
    overflow-x: auto;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 0.9rem;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-weight: 700;
}

.app-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(10px + var(--browser-bottom-offset, 0px));
    width: calc(100vw - (var(--mobile-shell-padding, 12px) * 2));
    max-width: 430px;
    min-height: 78px;
    margin: 0 auto;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(235, 239, 246, 0.92);
    border-radius: 30px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 -12px 30px rgba(20, 34, 68, 0.08);
    z-index: 90;
}

.auth-mobile-panel-auth {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 18px 14px 28px;
    background:
        radial-gradient(circle at 16% 10%, rgba(255, 146, 126, 0.24), transparent 28%),
        radial-gradient(circle at 84% 14%, rgba(255, 95, 89, 0.18), transparent 32%),
        linear-gradient(180deg, #fff8f6 0%, #fff4f1 34%, #f9fbff 100%);
}

.auth-topbar {
    position: relative;
    z-index: 24;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.auth-brand-stage {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 10px;
    margin: 10px 0 22px;
}

.auth-brand-mark-large {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    box-shadow: 0 26px 40px rgba(255, 95, 89, 0.24);
}

.auth-brand-stage h1 {
    margin: 0;
    font-size: 2.1rem;
    line-height: 1.02;
    color: #1e2436;
}

.auth-brand-stage p {
    margin: 0;
    max-width: 320px;
    color: #727a91;
    line-height: 1.65;
}

.auth-form-panel-modern {
    position: relative;
    z-index: 2;
    padding: 18px 18px 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(20px);
    box-shadow: 0 26px 54px rgba(30, 44, 77, 0.12);
}

.auth-note-list-modern {
    margin-top: 0;
    margin-bottom: 18px;
}

.auth-note-list-modern div {
    font-size: 0.84rem;
    line-height: 1.55;
}

.auth-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
    padding: 6px;
    border-radius: 999px;
    background: #fff4f2;
    border: 1px solid rgba(255, 126, 116, 0.16);
}

.auth-mode-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    font-weight: 800;
    color: #7b8093;
}

.auth-mode-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, #ff7e74 0%, #ff5f59 52%, #ff8f70 100%);
    box-shadow: 0 16px 28px rgba(255, 95, 89, 0.28);
}

.auth-submit-button {
    min-height: 54px;
    font-size: 1rem;
}

.auth-admin-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 126, 116, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: #ef695d;
    font-weight: 700;
}

.auth-canvas-glow,
.auth-floating-shape {
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
}

.auth-canvas-glow {
    filter: blur(12px);
    opacity: 0.9;
}

.glow-a {
    top: -34px;
    right: -18px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 148, 97, 0.52), transparent 68%);
}

.glow-b {
    top: 170px;
    left: -42px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 95, 89, 0.22), transparent 70%);
}

.shape-a,
.shape-b {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 238, 233, 0.26));
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: 0 20px 36px rgba(255, 129, 110, 0.16);
}

.shape-a {
    top: 94px;
    right: 18px;
    width: 110px;
    height: 110px;
}

.shape-b {
    top: 250px;
    left: 6px;
    width: 62px;
    height: 62px;
}

.locale-switcher {
    position: relative;
}

.locale-switcher[open] {
    z-index: 140;
}

.locale-switcher-summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 126, 116, 0.18);
    background: rgba(255, 255, 255, 0.82);
    color: #444d67;
    font-weight: 700;
    box-shadow: 0 16px 28px rgba(37, 48, 79, 0.08);
    cursor: pointer;
}

.locale-switcher-summary::-webkit-details-marker {
    display: none;
}

.locale-switcher-summary svg {
    width: 16px;
    height: 16px;
    color: #ef695d;
}

.locale-switcher-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 160;
    min-width: 220px;
    max-height: min(58vh, 360px);
    overflow: auto;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #eef1f7;
    box-shadow: 0 28px 60px rgba(24, 36, 61, 0.16);
}

.locale-switcher-auth {
    z-index: 120;
}

.locale-switcher-app .locale-switcher-menu {
    left: auto;
    right: 0;
}

.locale-switcher-menu form + form {
    margin-top: 6px;
}

.locale-switcher-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #334057;
}

.locale-switcher-option.is-active,
.locale-switcher-option:hover {
    background: #fff3f0;
    color: #ef695d;
}

.locale-switcher-option small {
    color: #97a1b8;
}

.notification-link {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff5f59;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
}

.front-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    padding: 22px 16px calc(32px + env(safe-area-inset-bottom));
    background: rgba(22, 30, 49, 0.36);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.front-modal-card {
    width: 100%;
    max-width: 360px;
    max-height: min(80vh, 620px);
    overflow: auto;
    padding: 22px 20px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 34px 74px rgba(21, 32, 57, 0.2);
}

.admin-login-body {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 164, 137, 0.24), transparent 24%),
        radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.92), transparent 18%),
        radial-gradient(circle at 82% 78%, rgba(112, 144, 255, 0.14), transparent 24%),
        linear-gradient(180deg, #f7fbff 0%, #eef4fb 52%, #e8f0f8 100%);
}

.admin-login-shell {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 20px;
    overflow: hidden;
}

.admin-login-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    pointer-events: none;
}

.admin-login-glow-a {
    top: -40px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 154, 116, 0.34), transparent 70%);
}

.admin-login-glow-b {
    right: -80px;
    bottom: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(128, 171, 255, 0.22), transparent 72%);
}

.admin-login-grid {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.9fr);
    gap: 32px;
    align-items: center;
}

.admin-login-hero,
.admin-login-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.54);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 30px 80px rgba(33, 49, 82, 0.12);
}

.admin-login-hero {
    padding: 34px;
    border-radius: 34px;
}

.admin-login-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-login-brand-mark {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 54px rgba(255, 95, 89, 0.2);
}

.admin-login-brand-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.admin-login-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #6e7f99;
}

.admin-login-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: 1.02;
    color: #223147;
}

.admin-login-copy {
    margin: 0 0 26px;
    max-width: 640px;
    color: #62718a;
    font-size: 1.02rem;
    line-height: 1.8;
}

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

.admin-login-panel {
    display: grid;
    gap: 10px;
    min-height: 146px;
    padding: 20px 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.admin-login-panel strong {
    font-size: 1rem;
    color: #223147;
}

.admin-login-panel span {
    color: #6b7890;
    line-height: 1.7;
    font-size: 0.92rem;
}

.admin-login-card {
    padding: 30px 28px;
    border-radius: 32px;
}

.admin-login-card-head {
    margin-bottom: 20px;
}

.admin-login-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 126, 116, 0.14);
    color: #e46259;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.admin-login-card-head h2 {
    margin: 14px 0 10px;
    font-size: 1.9rem;
    color: #223147;
}

.admin-login-card-head p {
    margin: 0;
    color: #6d7890;
    line-height: 1.75;
}

.admin-login-form {
    gap: 16px;
}

.admin-login-submit,
.admin-login-back-link {
    width: 100%;
}

.admin-login-back-link {
    margin-top: 4px;
}

.front-modal-hero {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
}

.front-modal-card h3 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 1.3rem;
    color: #202737;
}

.front-modal-body {
    margin-bottom: 18px;
    color: #5e6881;
    line-height: 1.7;
    white-space: normal;
}

.notification-list {
    display: grid;
    gap: 14px;
}

.notification-card {
    padding: 16px;
    border-radius: 22px;
    border: 1px solid #edf1f7;
    background: #fff;
    box-shadow: 0 16px 30px rgba(25, 38, 63, 0.06);
}

.notification-card.is-unread {
    border-color: rgba(255, 126, 116, 0.24);
    box-shadow: 0 18px 34px rgba(255, 95, 89, 0.08);
}

.notification-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.notification-card-head h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.notification-meta {
    display: block;
    color: #93a0b8;
    font-size: 0.82rem;
}

.notification-card-body {
    color: #5c6780;
    line-height: 1.72;
    white-space: pre-wrap;
}

.notification-card-actions {
    margin-top: 14px;
}

.admin-checkbox-list {
    max-height: 260px;
    overflow: auto;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #f9fbff;
}

.admin-checkbox-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 8px;
    color: #44506b;
}

.admin-checkbox-item + .admin-checkbox-item {
    border-top: 1px solid rgba(219, 227, 239, 0.9);
}

.admin-checkbox-item input {
    margin-top: 2px;
}

@media (max-width: 520px) {
    .auth-mobile-panel-auth {
        padding-left: 12px;
        padding-right: 12px;
    }

    .auth-brand-stage h1 {
        font-size: 1.82rem;
    }

    .locale-switcher-menu {
        min-width: 200px;
    }
}

.bottom-nav-item {
    flex-direction: column;
    gap: 4px;
    color: #a0a6b6;
    font-size: 0.78rem;
    font-weight: 700;
}

.bottom-nav-item.is-active {
    color: #5f463f;
}

.bottom-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav-fab {
    width: 68px;
    height: 68px;
    margin: -26px auto 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, #ffad9a 0%, #ff5e5a 56%, #ff6e60 100%);
    box-shadow: 0 18px 26px rgba(255, 95, 89, 0.24);
    border: 8px solid #fff;
}

.bottom-nav-fab.is-active {
    box-shadow: 0 18px 34px rgba(255, 95, 89, 0.34);
}

.fab-core {
    width: 34px;
    height: 34px;
    display: inline-flex;
}

.field-grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.market-list-card {
    padding: 18px 16px;
}

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

.market-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 10px;
    border-radius: 18px;
    border: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.market-row:hover {
    transform: translateY(-1px);
    border-color: #ffdcd7;
    box-shadow: 0 10px 22px rgba(255, 95, 89, 0.08);
}

.market-row-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #fff5f2 0%, #fff 100%);
    border: 1px solid #ffe6e1;
}

.market-row-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-row-icon-fallback {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ff6b62;
}

.market-row-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.market-row-main strong {
    font-size: 0.95rem;
}

.market-row-main small {
    color: var(--muted);
    font-size: 0.78rem;
}

.market-row-price {
    font-size: 1rem;
    font-weight: 800;
    color: #1d2940;
}

.market-change-badge,
.market-change-chip,
.market-source-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 800;
}

.market-change-badge.is-up,
.market-change-chip.is-up {
    color: #fff;
    background: linear-gradient(180deg, #36c998 0%, #18b785 100%);
}

.market-change-badge.is-down,
.market-change-chip.is-down {
    color: #fff;
    background: linear-gradient(180deg, #ff7d84 0%, #ff5d68 100%);
}

.market-summary-card,
.market-chart-shell {
    border-radius: 22px;
    border: 1px solid rgba(28, 40, 64, 0.05);
    box-shadow: 0 16px 28px rgba(16, 24, 40, 0.12);
}

.market-summary-card {
    padding: 14px 14px 12px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 16%, rgba(53, 79, 126, 0.6), transparent 28%),
        linear-gradient(180deg, #162035 0%, #10192b 100%);
}

.market-chart-topbar {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 18px;
}

.market-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.market-summary-pair {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.market-summary-price {
    display: block;
    margin-top: 6px;
    font-size: 1.72rem;
    line-height: 1;
}

.market-summary-side {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.market-source-badge {
    min-width: 64px;
    padding: 6px 10px;
    color: #ffd8a9;
    background: rgba(255, 214, 139, 0.12);
    border: 1px solid rgba(255, 214, 139, 0.18);
}

.market-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.market-summary-item {
    padding: 9px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.market-summary-item span {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
}

.market-summary-item strong {
    display: block;
    margin-top: 6px;
    font-size: 0.92rem;
}

.market-chart-shell {
    padding: 10px;
    background:
        linear-gradient(180deg, #162036 0%, #111a2c 100%);
}

.market-interval-strip,
.market-indicator-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.market-interval-strip::-webkit-scrollbar,
.market-indicator-strip::-webkit-scrollbar {
    display: none;
}

.market-interval-button {
    border: 0;
    color: #9ca9c7;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.market-interval-button.is-active {
    color: #fff;
    background: linear-gradient(180deg, #ff8175 0%, #ff615c 100%);
}

.market-interval-button.is-disabled {
    opacity: 0.38;
}

.market-interval-button.is-loading {
    pointer-events: none;
}

.market-indicator-strip {
    margin-top: 8px;
    color: #8ea0c9;
    font-size: 0.72rem;
    font-weight: 700;
}

.market-chart-pane {
    width: 100%;
    margin-top: 8px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(120, 143, 189, 0.14);
}

.market-chart-pane-volume,
.market-chart-pane-macd {
    margin-top: 8px;
}

.market-chart-empty {
    margin-top: 8px;
}

.market-chart-topbar .secondary-button {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.84rem;
}

.market-chart-topbar .muted {
    font-size: 0.78rem;
    line-height: 1.4;
}

.market-change-chip {
    min-width: 64px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
}

.market-attribution-card {
    padding: 6px 2px 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.market-attribution-card .helper-box {
    padding: 0;
    background: transparent;
    border: none;
    color: #8b93a6;
    font-size: 0.75rem;
    line-height: 1.5;
}

.market-attribution-card a {
    color: #ff6a63;
    font-weight: 700;
}

.empty-card {
    padding: 18px 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    border: 1px dashed #dfe6f0;
    color: var(--muted);
    text-align: center;
}

.helper-box {
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff8f7;
    border: 1px solid #ffe1de;
    color: #b96e66;
    line-height: 1.65;
}

.preview-image {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #fff;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    gap: 0;
}

.admin-sidebar {
    display: grid;
    gap: 16px;
    align-content: start;
    padding: 18px 16px;
    background: linear-gradient(180deg, var(--admin-sidebar) 0%, #223248 100%);
    color: #fff;
}

.admin-brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    overflow: hidden;
}

.admin-brand-box strong {
    display: block;
    font-size: 1.32rem;
}

.admin-brand-box small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.74);
}

.admin-account-card {
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-account-label {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.8rem;
}

.admin-account-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.35rem;
}

.admin-account-card small {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.76);
}

.admin-menu,
.admin-sidebar-footer {
    display: grid;
    gap: 10px;
}

.admin-menu-section {
    display: grid;
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.045);
}

.admin-menu-section[open] {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

.admin-menu-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    padding: 0 6px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    cursor: pointer;
    list-style: none;
}

.admin-menu-title::-webkit-details-marker {
    display: none;
}

.admin-menu-title::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
}

.admin-menu-section[open] .admin-menu-title {
    color: rgba(255, 255, 255, 0.82);
}

.admin-menu-section[open] .admin-menu-title::after {
    transform: rotate(-135deg);
}

.admin-submenu {
    display: grid;
    gap: 6px;
    padding-top: 4px;
}

.admin-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 700;
}

.admin-menu-home {
    min-height: 46px;
    background: rgba(255, 255, 255, 0.08);
}

.admin-menu-section .admin-menu-link {
    min-height: 40px;
    padding: 0 12px 0 18px;
    border-radius: 13px;
    background: transparent;
    border-color: transparent;
    color: rgba(255, 255, 255, 0.78);
}

.admin-menu-link.is-active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.admin-menu-section .admin-menu-link.is-active {
    background: linear-gradient(135deg, rgba(255, 111, 99, 0.88) 0%, rgba(255, 137, 98, 0.78) 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(255, 96, 88, 0.18);
}

.admin-menu-link.ghost {
    background: rgba(255, 255, 255, 0.04);
}

.admin-main {
    padding: 18px 14px 28px;
    display: grid;
    gap: 16px;
}

.admin-header {
    padding: 8px 6px 2px;
}

.admin-header-eyebrow {
    color: #b17d4d;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.admin-header h1 {
    margin: 10px 0 6px;
    font-size: 2rem;
}

.admin-header p {
    margin: 0;
    color: var(--muted);
}

.admin-card,
.admin-panel {
    padding: 18px;
}

.admin-grid-two,
.admin-grid-four,
.admin-grid-five,
.admin-split {
    display: grid;
    gap: 14px;
}

.admin-panel h2,
.surface-card h2,
.surface-card-soft h2 {
    margin: 0;
    font-size: 1.3rem;
}

.admin-panel .section-heading p,
.surface-card .section-heading p,
.surface-card-soft .section-heading p {
    font-size: 0.88rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.thumb-link {
    display: inline-flex;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.payment-method-list {
    display: grid;
    gap: 14px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 129, 111, 0.16);
    background: rgba(255, 255, 255, 0.92);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 18px 32px rgba(255, 129, 111, 0.08);
}

.payment-method-copy {
    display: grid;
    gap: 4px;
}

.payment-method-copy strong {
    font-size: 1rem;
}

.payment-method-copy span,
.payment-method-copy small {
    color: var(--muted);
}

.payment-method-arrow {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 129, 111, 0.1);
    color: var(--brand-red);
}

.payment-rate-preview {
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(255, 129, 111, 0.08);
    border: 1px solid rgba(255, 129, 111, 0.14);
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.quick-amount-panel {
    display: grid;
    gap: 10px;
}

.quick-amount-label {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.quick-amount-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-amount-chip {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 129, 111, 0.22);
    border-radius: 999px;
    background: linear-gradient(180deg, #fff 0%, #fff7f5 100%);
    color: #ff625d;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(255, 129, 111, 0.1);
}

.quick-amount-chip:active {
    transform: translateY(1px);
}

.platform-guide-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    background:
        radial-gradient(circle at 88% 10%, rgba(255, 188, 86, 0.38), transparent 28%),
        linear-gradient(135deg, #ff6964 0%, #ff8767 100%);
    color: #fff;
    border: none;
}

.platform-guide-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.platform-guide-icon svg {
    width: 28px;
    height: 28px;
}

.platform-guide-hero .eyebrow {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.platform-guide-hero h2 {
    margin: 0;
    color: #fff;
}

.platform-guide-hero p:last-child {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

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

.platform-guide-text {
    color: #39445c;
    line-height: 1.85;
    white-space: normal;
}

.guide-admin-card {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.guide-locale-editor {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.guide-locale-editor summary {
    cursor: pointer;
    color: #18233a;
    font-weight: 800;
}

.guide-locale-editor[open] {
    display: grid;
    gap: 12px;
}

.payload-details summary {
    cursor: pointer;
    color: var(--brand-red);
    font-weight: 600;
}

.payload-details pre {
    margin-top: 10px;
    padding: 14px;
    border-radius: 16px;
    background: #122031;
    color: #e7eef8;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.82rem;
    line-height: 1.6;
}

.field-grid.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 520px) {
    .field-grid.two-up {
        grid-template-columns: 1fr;
    }

    .field-grid.three-up {
        grid-template-columns: 1fr;
    }

    .market-row {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        grid-template-areas:
            "icon main change"
            "icon price change";
        row-gap: 4px;
    }

    .market-row-icon {
        grid-area: icon;
    }

    .market-row-main {
        grid-area: main;
    }

    .market-row-price {
        grid-area: price;
    }

    .market-change-badge {
        grid-area: change;
        min-width: 72px;
    }

    .market-chart-topbar {
        flex-wrap: wrap;
    }

    .market-summary-side {
        width: auto;
        justify-items: end;
    }
}

@media (max-width: 1024px) {
    .admin-login-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
    }

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

@media (max-width: 640px) {
    .admin-login-shell {
        padding: 18px 12px 24px;
    }

    .admin-login-hero,
    .admin-login-card {
        padding: 22px 18px;
        border-radius: 26px;
    }

    .admin-login-brand {
        align-items: flex-start;
    }

    .admin-login-brand-mark {
        width: 60px;
        height: 60px;
        border-radius: 20px;
    }

    .admin-login-copy {
        font-size: 0.94rem;
        line-height: 1.7;
    }
}

@media (min-width: 768px) {
    .auth-mobile-shell,
    .mobile-app-shell {
        padding: 30px 18px 36px;
    }

    .mobile-app-shell {
        --mobile-shell-padding: 18px;
    }

    .auth-mobile-panel,
    .mobile-app-frame {
        border-radius: 34px;
        min-height: calc(100vh - 60px);
        box-shadow: 0 34px 70px rgba(25, 39, 69, 0.12);
    }

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

    .admin-sidebar {
        min-height: 100vh;
        position: sticky;
        top: 0;
    }

    .admin-main {
        padding: 22px 24px 36px;
    }

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

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

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

    .admin-split {
        grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    }
}
