﻿@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap");


:root {
    --font-ui: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-mono: "JetBrains Mono", Consolas, monospace;
    --font-en-ui: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

    --bg-main: #0b0b0c;
    --bg-soft: #111318;
    --surface: #171719;
    --surface-2: #1d2028;
    --line: #2a2e38;

    --text: #ffffff;
    --muted: #8ea3bd;
    --muted-2: #778ca8;

    --accent: #3B82F6;
    --accent-hover: #2563EB;
    --accent-rgb: 59, 130, 246;
    --accent-soft: rgba(var(--accent-rgb), 0.16);
    --gold: #f2bf25;
    --danger: #ef4444;

    --w-regular: 400;
    --w-semibold: 600;
    --w-bold: 700;

    --fs-page-title: clamp(28px, 7.2vw, 32px);
    --fs-module-title: clamp(20px, 5.4vw, 22px);
    --fs-card-title: clamp(16px, 4.5vw, 18px);
    --fs-body: 14px;
    --fs-assist: 12px;
    --fs-value-major: clamp(24px, 7.6vw, 32px);
    --fs-value-minor: clamp(16px, 4.8vw, 20px);

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 18px;
    --radius-control: 12px;
    --radius-pill: 999px;
    --card-padding: 16px;
    --section-gap: 14px;
    --bottom-nav-h: 64px;
    --home-nav-offset: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    --phone-max: 430px;
    --topbar-h: 58px;

    --card-border: rgba(101, 133, 172, 0.28);
    --card-bg: linear-gradient(180deg, rgba(22, 30, 46, 0.9), rgba(16, 24, 38, 0.92));
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-ui);
}

html,
body {
    width: 100%;
    height: 100%;
    background: radial-gradient(1200px 720px at 82% 40%, #82858b 0, #6e747d 66%, #666d77 100%);
    color: var(--text);
}

body {
    max-width: var(--phone-max);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    background: var(--bg-main);
    font-size: var(--fs-body);
    font-weight: var(--w-regular);
    line-height: 1.45;
    border-left: 1px solid #d8dce5;
    border-right: 1px solid #d8dce5;
    box-shadow: 0 0 0 2px #0f1218, 0 20px 50px rgba(0, 0, 0, 0.45);
}

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

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

.app-content {
    height: calc(100% - var(--bottom-nav-h));
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-main);
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100vw, var(--phone-max));
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    padding: 8px 8px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, #090b0f, #0f1218);
    border-top: 1px solid rgba(94, 120, 154, 0.34);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    z-index: 920;
}

body.home-nav-hidden .bottom-nav {
    display: none;
}

body.home-nav-hidden .app-content {
    height: 100%;
}

body.home-nav-hidden {
    --home-nav-offset: 0px;
}

.nav-item {
    min-height: 50px;
    border-radius: 12px;
    color: #a9b5c7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 12px;
    font-weight: var(--w-semibold);
    letter-spacing: 0.1px;
    cursor: pointer;
}

.nav-item i {
    font-size: 18px;
}

.nav-item.active {
    color: #eaf3ff;
    background: rgba(var(--accent-rgb), 0.18);
    border: 1px solid rgba(var(--accent-rgb), 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.side-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
}

.side-menu.open {
    pointer-events: auto;
}

.cm-side-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.side-menu.open .cm-side-backdrop {
    opacity: 1;
}

.cm-side-drawer {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(90vw, 380px);
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    transform: translateX(-106%);
    transition: transform 0.28s cubic-bezier(0.26, 0.86, 0.34, 1);
    background: linear-gradient(180deg, #12151b, #0f1217);
    border-right: 1px solid var(--line);
    box-shadow: 28px 0 50px rgba(0, 0, 0, 0.55);
}

.side-menu.open .cm-side-drawer {
    transform: translateX(0);
}

.cm-side-rail {
    border-right: 1px solid var(--line);
    display: flex;
    justify-content: center;
    padding-top: 14px;
}

.cm-side-rail-mark,
.cm-home-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #3a4151;
    background: #171b24;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cm-side-panel {
    display: flex;
    flex-direction: column;
}

.cm-side-topbar {
    min-height: 56px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
}

.cm-side-topbar-input,
#close-menu-btn,
.menu-nav-item .nav-icon {
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.cm-side-topbar-input {
    flex: 1;
    height: 36px;
    border-radius: 8px;
}

#close-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--text);
}

.cm-side-list,
.cm-side-actions {
    padding: 10px;
    display: grid;
    gap: 8px;
}

.cm-side-actions {
    margin-top: auto;
}

.menu-nav-item {
    min-height: 44px;
    border-radius: 11px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
}

.menu-nav-item .nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-nav-item:hover,
.menu-nav-item.active {
    border-color: rgba(var(--accent-rgb), 0.36);
    background: var(--accent-soft);
}

.cm-side-arrow,
.menu-arrow,
.menu-meta,
.input-suffix,
.muted,
.list-end,
.message-state,
.state-empty,
.profile-history-state,
.trade-history-state,
.support-category-desc,
.message-item-time,
.message-tip-copy,
.project-desc,
.panel-hint,
.acc-label,
.asset-title,
.stat-label,
.price-display,
.input-label,
.user-uid,
.menu-val,
.news-time,
.news-content,
.kyc-summary-copy,
.kyc-summary-status,
.kyc-review-copy,
.event-subtitle,
.event-stat-label,
.event-payout-label,
.trade-history-fee,
.trade-history-time,
.profile-funding-detail,
.profile-rebate-tx {
    color: var(--muted);
    font-size: var(--fs-assist);
    font-weight: var(--w-regular);
}

.cm-side-btn,
.btn-submit,
.btn-cancel,
.action-btn,
.order-list-btn,
.message-refresh-btn {
    min-height: 46px;
    border-radius: var(--radius-control);
    font-size: 15px;
    font-weight: var(--w-semibold);
    letter-spacing: 0.15px;
    border: 1px solid transparent;
    cursor: pointer;
}

.type-tab,
.trade-zone-btn,
.trade-mode-btn,
.max-btn {
    min-height: 40px;
    border-radius: var(--radius-control);
    font-size: 13px;
    font-weight: var(--w-semibold);
    letter-spacing: 0.12px;
    border: 1px solid transparent;
    cursor: pointer;
}

.cm-side-btn-primary,
.btn-submit,
.cm-hero-btn-primary,
.support-chat-fab,
#btn-save-profile,
#btn-submit-deposit,
#btn-submit-withdraw,
#btn-submit-kyc,
#btn-stake,
#btn-claim-vip-benefit,
#btn-use-trial-coupon,
#btn-use-vip-coupon,
#btn-send-coupon-gift {
    border-color: rgba(var(--accent-rgb), 0.55) !important;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover)) !important;
    color: #f4f8f6 !important;
}

.cm-side-btn-ghost,
.btn-cancel,
.order-list-btn,
.max-btn,
.trade-zone-btn,
.trade-mode-btn,
.cm-hero-btn-secondary,
.action-btn,
#btn-unstake,
.logout-btn,
.message-refresh-btn {
    border-color: var(--line) !important;
    background: var(--surface-2) !important;
    color: var(--text) !important;
}

.type-tab,
.trade-zone-btn,
.trade-mode-btn,
.max-btn {
    border-color: rgba(88, 112, 143, 0.42) !important;
    background: rgba(17, 29, 46, 0.78) !important;
    color: #8ea4bf !important;
}

.type-tab.active,
.trade-zone-btn.active,
.trade-mode-btn.active {
    border-color: rgba(var(--accent-rgb), 0.62) !important;
    background: rgba(var(--accent-rgb), 0.18) !important;
    color: #dcecff !important;
}

.logout-btn,
#btn-unstake {
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #fda4a4 !important;
}

button:disabled,
.btn-submit:disabled,
.action-btn:disabled,
.type-tab:disabled,
.message-refresh-btn:disabled,
#btn-claim-vip-benefit:disabled,
#btn-use-vip-coupon:disabled,
#btn-use-trial-coupon:disabled,
#btn-send-coupon-gift:disabled {
    border-color: #343842 !important;
    background: #252830 !important;
    color: #aeb4bf !important;
    box-shadow: none !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

.card,
.account-card,
.action-panel,
.asset-dashboard,
.project-card,
.event-timer-card,
.event-stat-card,
.support-hero,
.support-category-card,
.faq-card,
.news-card,
.message-tip-card,
.message-item,
.kyc-card,
.trade-history-card,
.profile-funding-row,
.profile-rebate-row,
.event-tier-card,
.stat-box,
.profile-header,
.menu-group {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.menu-group {
    background: linear-gradient(180deg, rgba(17, 26, 40, 0.9), rgba(14, 22, 34, 0.92));
    box-shadow: none;
}

.amount-input-box,
.pair-select,
.support-search-wrap,
.kyc-input-wrap,
.kyc-textarea-wrap,
.search-input,
.form-group input,
.form-group select,
textarea.form-control {
    border: 1px solid rgba(97, 124, 158, 0.38);
    border-radius: var(--radius-control);
    background: rgba(21, 31, 47, 0.86);
    color: var(--text);
}

.amount-input-box {
    min-height: 46px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.amount-input-box input,
.amount-input-box textarea,
.support-search-input,
.search-input,
.form-group input,
.form-group select,
textarea.form-control,
.cm-home-search-wrap input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text);
    outline: none;
}

.amount-input-box input::placeholder,
.amount-input-box textarea::placeholder,
.support-search-input::placeholder,
.search-input::placeholder,
.form-group input::placeholder,
textarea.form-control::placeholder,
.cm-home-search-wrap input::placeholder {
    color: var(--muted-2);
}

.trade-top-nav,
.message-topbar,
.trade-page-header {
    min-height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid rgba(95, 119, 150, 0.34);
    background: linear-gradient(180deg, #101622, #0d1420);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: env(safe-area-inset-top, 0px) 14px 0;
}

.page-title {
    font-size: var(--fs-module-title);
    font-weight: var(--w-semibold);
    letter-spacing: 0.2px;
}

.trade-page-title {
    font-size: var(--fs-page-title);
    font-weight: var(--w-bold);
    letter-spacing: 0.1px;
    line-height: 1.05;
}

.panel-title,
.kyc-card-title,
.event-section-title,
.funding-page-title,
.rebate-page-title,
.security-page-title,
.profile-section-title {
    font-size: var(--fs-module-title);
    font-weight: var(--w-semibold);
    line-height: 1.15;
}

.project-title,
.faq-question,
.news-title,
.message-item-title,
.event-tier-title,
.menu-main,
.support-category-title {
    font-size: var(--fs-card-title);
    font-weight: var(--w-semibold);
}

.project-desc,
.panel-hint,
.message-tip-copy,
.news-content,
.kyc-summary-copy,
.kyc-review-copy,
.support-category-desc,
.funding-note,
.funding-fee-hint,
.calc-row,
.input-label {
    font-size: var(--fs-body);
    font-weight: var(--w-regular);
}

.asset-total,
.acc-balance,
.event-stat-value,
.profile-center-asset .asset-total {
    font-size: var(--fs-value-major);
    font-weight: var(--w-bold);
    line-height: 1.04;
}

.stat-val,
.acc-val,
.profile-center-stat-val,
.profile-node-value,
.funding-inline-balance {
    font-size: var(--fs-value-minor);
    font-weight: var(--w-semibold);
    font-family: var(--font-mono);
    letter-spacing: 0.1px;
}

.menu-meta,
.menu-val,
.user-uid {
    font-size: var(--fs-assist);
    font-weight: var(--w-regular);
}

.max-btn,
.vip-badge,
.funding-page-title,
.profile-center-unit,
.acc-fee,
.funding-inline-balance,
.funding-inline-btn,
.type-tab,
.trade-zone-btn,
.trade-mode-btn,
#trade-input-unit {
    font-family: var(--font-en-ui);
}

.sub-page {
    position: fixed;
    inset: 0;
    z-index: 1150;
    transform: translateX(104%);
    transition: transform 0.28s cubic-bezier(0.24, 0.87, 0.34, 1);
    background: linear-gradient(180deg, #0f1116, #0b0d12);
    overflow-y: auto;
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 18px);
}

.sub-page.open {
    transform: translateX(0);
}

.back-icon,
.page-title,
.trade-page-title,
.project-title,
.panel-title,
.user-name,
.message-item-title,
.faq-question,
.news-title,
.kyc-card-title,
.event-section-title,
.event-tier-title,
.highlight-val,
.stat-val,
.acc-val,
.message-item-type,
.trade-history-title,
.profile-funding-title,
.profile-rebate-title,
.trade-history-value-main,
.trade-history-profit,
.profile-funding-amount,
.profile-rebate-amount {
    color: var(--text);
}

.back-icon {
    font-size: 22px;
    min-width: 28px;
    color: #d6e5f8;
    font-weight: var(--w-semibold);
    cursor: pointer;
}

.cm-home-page,
.cm-home-shell,
.event-page,
.trade-page,
.message-page,
.support-shell,
.kyc-gate-page {
    min-height: 100%;
    background: linear-gradient(180deg, #0a0c11, #10141d);
}

.cm-home-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
    padding: max(8px, env(safe-area-inset-top, 0px)) 10px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(95, 119, 150, 0.34);
    background: linear-gradient(180deg, #101622, #0d1420);
}

.cm-home-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #c6cedb;
    border-radius: 4px;
    background: #fff;
    color: #6d7483;
}

.cm-home-search-wrap {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 48px;
}

.cm-home-search-wrap input {
    color: #111827;
    padding: 0 10px;
    font-size: 15px;
}

.cm-home-search-wrap button {
    border: 0;
    border-left: 1px solid #d3a721;
    background: var(--gold);
    color: #4c3800;
}

.cm-hero,
.cm-hero-slides {
    position: relative;
    min-height: 430px;
}

.cm-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.cm-hero-slide.active {
    opacity: 1;
}

.cm-hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.52) 58%, rgba(7, 10, 15, 0.94));
}

.cm-hero-content {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
}

.cm-hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 5px 14px rgba(0, 0, 0, 0.5);
}

.cm-hero-price,
.project-price,
.acc-balance,
.asset-total,
.event-countdown-main,
.event-countdown-sub,
.event-stat-value {
    font-family: var(--font-mono);
}

.cm-hero-price {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 8px;
}

.cm-hero-currency {
    font-size: 30px;
    margin-bottom: 6px;
}

.cm-hero-price strong {
    font-size: 66px;
    line-height: 0.9;
}

.cm-hero-more {
    font-size: 28px;
    margin-bottom: 4px;
}

.cm-hero-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
    line-height: 1.45;
}

.cm-hero-actions {
    display: grid;
    gap: 8px;
}

.cm-hero-btn {
    width: 100%;
    height: 46px;
    border-radius: var(--radius-control);
    font-size: 16px;
    font-weight: var(--w-semibold);
}

.cm-hero-btn-secondary {
    background: #f5f7fb !important;
    color: #111827 !important;
    border-color: #f5f7fb !important;
}

.cm-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 6;
}

.cm-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
}

.cm-hero-dot.active {
    background: #fff;
}

.cm-carbon-section {
    padding: 18px 14px calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 20px);
    border-top: 1px solid var(--line);
}

.cm-carbon-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: 10px;
}

.cm-carbon-copy {
    color: #d6dbe5;
    font-size: 14px;
    line-height: 1.58;
    margin-bottom: 12px;
}

.cm-carbon-card {
    border-radius: 2px;
    border: 1px solid #dde2ec;
    background: #fff;
    overflow: hidden;
}

.cm-carbon-cover,
.project-thumb {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    object-fit: cover;
}

.cm-carbon-body,
.project-body,
.event-timer-card,
.support-hero,
.support-category-card,
.faq-card,
.news-card,
.message-tip-card,
.message-item,
.kyc-card,
.trade-history-card,
.asset-dashboard,
.account-card,
.action-panel,
.event-tier-card,
.profile-header {
    padding: var(--card-padding);
}

.cm-carbon-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111827;
}

.cm-carbon-price-row strong {
    font-size: 40px;
    font-weight: 800;
}

.cm-carbon-price-row span {
    color: #6b7280;
    font-size: 14px;
}

.projects-wrap,
.trade-scroll-area,
.support-shell,
.message-body,
.kyc-shell,
.menu-list,
#support-help-area,
#support-news-area,
#support-search-results,
.event-main {
    display: grid;
    gap: var(--section-gap);
    padding: 14px;
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 18px);
}

.acc-top,
.acc-bottom,
.event-timer-head,
.message-item-head,
.faq-header,
.profile-funding-row,
.profile-rebate-row,
.trade-history-row,
.menu-item,
.event-section-title,
.event-tier-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.trade-zone-switch,
.trade-mode-switch,
.type-tabs,
.asset-actions,
.action-buttons,
.kyc-review-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.trade-market-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.calc-details {
    display: grid;
    gap: 5px;
    margin-top: 10px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

.event-hero {
    height: 178px;
    background: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?q=80&w=1000&auto=format&fit=crop') center/cover no-repeat;
    position: relative;
}

.event-hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.4) 48%, rgba(11, 11, 12, 0.94));
}

.event-content {
    margin-top: -32px;
    position: relative;
    z-index: 2;
    padding: 0 14px;
}

.event-title {
    font-size: var(--fs-page-title);
    font-weight: var(--w-bold);
    line-height: 1.06;
    margin-bottom: 10px;
}

.event-title span,
.event-subtitle span,
#event-cycle-num,
#profile-fee-rate,
#vip-metrics-volume,
#vip-withdraw-lock-amount,
#vip-next-unlock-time,
.event-reward,
.event-payout-value,
.acc-fee {
    color: var(--gold);
}

.event-divider {
    height: 1px;
    margin: 10px 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.event-countdown-main {
    font-size: 32px;
    font-weight: 800;
}

.event-countdown-sub {
    font-size: 22px;
    font-weight: 700;
    color: #d3d8e4;
}

.event-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.event-tier-card {
    margin-bottom: 10px;
    position: relative;
}

.event-tier-card.is-achieved {
    border-color: rgba(var(--accent-rgb), 0.44);
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.14), rgba(23, 26, 33, 0.96));
}

.event-tier-card.is-top-tier {
    box-shadow: 0 0 0 1px rgba(242, 191, 37, 0.45), var(--shadow);
}

.event-tier-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(242, 191, 37, 0.4);
    background: rgba(242, 191, 37, 0.18);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.event-tier-threshold {
    color: var(--muted);
    font-size: 12px;
}

.event-tier-threshold span {
    color: #fff;
    font-weight: 700;
}

.support-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.support-hero-title {
    font-size: var(--fs-page-title);
    font-weight: var(--w-bold);
    line-height: 1.08;
}

.support-hero-subtitle {
    margin-top: 6px;
    font-size: var(--fs-body);
    color: #9bb0c9;
}

.support-category-title {
    font-size: var(--fs-card-title);
    font-weight: var(--w-semibold);
}

.support-category-card {
    min-height: 96px;
    color: #fff;
    display: grid;
    gap: 6px;
    text-align: left;
}

.support-category-card.active {
    border-color: rgba(var(--accent-rgb), 0.46);
    background: rgba(var(--accent-rgb), 0.12);
}

.support-tabs .type-tab {
    border-color: var(--line) !important;
    background: linear-gradient(180deg, #1a1c23, #15181f) !important;
    color: var(--muted) !important;
}

.support-tabs .type-tab.active {
    border-color: rgba(var(--accent-rgb), 0.4) !important;
    background: linear-gradient(180deg, #21262f, #1b2129) !important;
    color: #dbe5e1 !important;
}

.support-search-wrap {
    min-height: 42px;
    padding: 0 10px;
    gap: 8px;
    display: flex;
    align-items: center;
}

.support-category-section,
.support-content-section,
.support-search-block {
    display: grid;
    gap: 10px;
}

.faq-body {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    line-height: 1.65;
}

.faq-card.open .faq-body {
    display: block;
}

.news-card {
    display: grid;
    grid-template-columns: 3px 1fr;
    gap: 10px;
}

.news-accent {
    width: 3px;
    border-radius: 3px;
    background: var(--accent);
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-size: 24px;
    font-weight: 800;
}

.avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--surface-2);
}

.vip-badge {
    border-radius: 999px;
    padding: 6px 13px;
    border: 1px solid rgba(var(--accent-rgb), 0.55);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #f4f8f6;
    font-size: 12px;
    font-weight: var(--w-semibold);
}

#btn-add-crypto-binding {
    background: rgba(var(--accent-rgb), 0.08) !important;
    border: 1px solid rgba(var(--accent-rgb), 0.42) !important;
    color: #dbe6e2 !important;
}

#btn-add-crypto-binding:hover {
    background: rgba(var(--accent-rgb), 0.14) !important;
    border-color: rgba(var(--accent-rgb), 0.56) !important;
    color: #f4f8f6 !important;
}

.rebate-invite-card {
    background: linear-gradient(135deg, #1d232d 0%, #121720 100%);
    border: 1px solid #334050;
    padding: 22px 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.rebate-invite-label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.rebate-invite-code {
    font-size: 28px;
    font-weight: 700;
    color: #dbe6e2;
    letter-spacing: 4px;
    font-family: var(--font-mono);
    line-height: 1.25;
    margin-bottom: 18px;
    padding: 0 14px;
    overflow-wrap: anywhere;
}

.rebate-invite-btn {
    width: 100%;
    border: 1px solid rgba(var(--accent-rgb), 0.55);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #f4f8f6;
    padding: 13px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(36, 47, 53, 0.38);
}

/* profile center redesign */
.profile-center-page {
    min-height: 100%;
    --pc-font-title: var(--fs-page-title);
    --pc-font-section: var(--fs-module-title);
    --pc-font-entry: var(--fs-card-title);
    --pc-font-meta: var(--fs-assist);
    --pc-font-value: var(--fs-value-major);
    --pc-card-bg: rgba(12, 24, 40, 0.84);
    --pc-card-line: rgba(102, 136, 176, 0.26);
    padding: 8px 12px calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
    display: grid;
    gap: 10px;
    background:
        radial-gradient(360px 240px at 86% 6%, rgba(var(--accent-rgb), 0.2), transparent 72%),
        radial-gradient(520px 300px at -12% 96%, rgba(var(--accent-rgb), 0.16), transparent 72%),
        linear-gradient(180deg, #050f1c 0%, #081323 54%, #07111f 100%);
}

.profile-center-top {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-center-title {
    font-size: var(--pc-font-title);
    font-weight: 700;
    color: #eaf3ff;
    letter-spacing: 0.2px;
}

.profile-settings-btn {
    position: absolute;
    right: 0;
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: #88a7cc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.profile-settings-btn:hover {
    color: #b6d4fa;
    transform: translateY(-1px);
}

.profile-settings-btn:active {
    transform: translateY(0);
}

.profile-center-user {
    margin: 0;
    padding: 1px 0;
    border: none;
    background: transparent;
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.profile-center-avatar {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(105, 157, 221, 0.6);
    background: radial-gradient(circle at 28% 24%, #3f8ff9, #124a92 78%);
    box-shadow: 0 0 10px rgba(63, 143, 249, 0.32);
}

.profile-center-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-center-user .user-name {
    font-size: 18px;
    font-weight: var(--w-semibold);
    line-height: 1.1;
    color: #f1f7ff;
}

.profile-center-user .user-uid {
    margin-top: 3px;
    color: #6f88a7;
    font-size: 10px;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.profile-center-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.profile-vip-label {
    color: #7f98b7;
    font-size: 10px;
}

.profile-center-user .vip-badge {
    border-radius: 999px;
    min-height: 18px;
    padding: 0 8px;
    border: 1px solid rgba(228, 189, 104, 0.46);
    background: rgba(213, 157, 59, 0.2);
    color: #e8c879;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
}

.profile-center-asset {
    margin: 0;
    border-radius: 14px;
    border: 1px solid rgba(97, 149, 219, 0.42);
    background:
        radial-gradient(140% 130% at 0% 0%, rgba(74, 144, 248, 0.26), rgba(25, 56, 98, 0.76) 50%, rgba(16, 36, 63, 0.9) 100%);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
    padding: 12px 12px 11px;
}

.profile-center-asset .asset-title {
    color: #d4e6fb;
    font-size: var(--pc-font-section);
    font-weight: var(--w-semibold);
    margin-bottom: 4px;
}

.profile-center-total-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 9px;
}

.profile-center-asset .asset-total {
    color: #f3f9ff;
    font-size: var(--pc-font-value);
    font-weight: var(--w-bold);
    line-height: 1.02;
    font-variant-numeric: tabular-nums;
}

.profile-center-unit {
    color: #cadff7;
    font-size: 18px;
    font-weight: 700;
}

.profile-center-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.profile-center-stat {
    border-radius: 8px;
    border: 1px solid rgba(109, 141, 180, 0.22);
    background: rgba(8, 19, 33, 0.42);
    padding: 6px 7px;
}

.profile-center-stat-label {
    color: #88a5c6;
    font-size: var(--pc-font-meta);
    font-weight: 500;
}

.profile-center-stat-val {
    margin-top: 2px;
    color: #7fbeff;
    font-size: 16px;
    font-family: var(--font-mono);
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.profile-center-actions {
    margin-top: 9px;
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 8px;
}

.profile-center-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.profile-center-actions .action-btn,
.profile-center-actions .profile-transfer-btn {
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(95, 139, 194, 0.4) !important;
    background: linear-gradient(180deg, rgba(32, 64, 104, 0.82), rgba(23, 48, 80, 0.82)) !important;
    color: #dbe9fb !important;
    font-size: 15px;
    font-weight: var(--w-semibold);
    box-shadow: none;
    transition: transform 0.16s ease, filter 0.16s ease, border-color 0.16s ease;
}

.profile-center-actions .action-btn.deposit {
    border-color: rgba(111, 182, 255, 0.72) !important;
    background: linear-gradient(135deg, #4ea2ff, #337fe7) !important;
    color: #f3f8ff !important;
    box-shadow: 0 5px 12px rgba(62, 141, 237, 0.34);
}

.profile-center-actions .action-btn.withdraw {
    border-color: rgba(112, 160, 218, 0.5) !important;
    background: linear-gradient(180deg, rgba(30, 61, 98, 0.82), rgba(22, 46, 77, 0.82)) !important;
    color: #d9e8fb !important;
}

.profile-center-action-row-secondary .action-btn {
    min-height: 40px;
    border-radius: 12px;
    border-color: rgba(98, 143, 198, 0.34) !important;
    background: linear-gradient(180deg, rgba(12, 30, 52, 0.78), rgba(10, 25, 44, 0.82)) !important;
    color: #c7dbf3 !important;
    font-size: 14px;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.profile-center-action-row-secondary .action-btn i {
    font-size: 14px;
    color: #9dc3f0;
}

.profile-center-actions .action-btn:hover,
.profile-center-actions .profile-transfer-btn:hover {
    filter: brightness(1.05);
    border-color: rgba(128, 174, 228, 0.56) !important;
}

.profile-center-actions .action-btn:active,
.profile-center-actions .profile-transfer-btn:active {
    transform: translateY(0.5px);
}

.profile-center-actions .profile-transfer-btn {
    border-color: rgba(98, 143, 198, 0.34) !important;
    color: #a8c1de !important;
    box-shadow: none;
}

.profile-section {
    display: grid;
    gap: 7px;
}

.profile-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.profile-section-title {
    color: #eef5ff;
    font-size: var(--pc-font-section);
    font-weight: var(--w-semibold);
    line-height: 1.1;
}

.profile-node-btn {
    min-height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(94, 142, 204, 0.42);
    background: rgba(10, 26, 45, 0.65);
    color: #7f9fc4;
    font-size: var(--pc-font-meta);
    font-weight: 600;
    padding: 0 9px;
}

.profile-node-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.profile-node-card {
    border-radius: 11px;
    border: 1px solid var(--pc-card-line);
    background: var(--pc-card-bg);
    padding: 10px;
}

.profile-node-label {
    color: #8ca8c8;
    font-size: var(--pc-font-meta);
    font-weight: 500;
}

.profile-node-value {
    margin-top: 4px;
    color: #71b7ff;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.profile-node-sub {
    margin-top: 5px;
    color: #748faa;
    font-size: var(--pc-font-meta);
}

.profile-center-page .menu-list {
    padding: 0;
    gap: 0;
}

.profile-center-page .profile-center-menu-group {
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid var(--pc-card-line);
    background: var(--pc-card-bg);
    box-shadow: none;
}

.profile-center-page .menu-item {
    min-height: 44px;
    border-bottom: 1px solid rgba(84, 107, 137, 0.26);
    padding: 0 12px;
}

.profile-center-page .profile-center-menu-group .menu-item:last-child {
    border-bottom: none;
}

.profile-center-page .menu-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dbe9fb;
    font-size: var(--pc-font-entry);
    font-weight: 600;
}

.profile-center-page .menu-main i {
    width: 16px;
    text-align: center;
    color: #78acee !important;
}

.profile-center-page .menu-meta {
    color: #7898bb;
    font-size: var(--pc-font-meta);
    gap: 6px;
}

.profile-center-page .menu-arrow {
    color: #5f7f9f;
}

.profile-security-list {
    padding: 0 !important;
}

.profile-security-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.profile-security-grid .profile-security-item {
    min-height: 50px;
    border-radius: 11px;
    border: 1px solid rgba(92, 135, 188, 0.38);
    background: linear-gradient(180deg, rgba(18, 35, 56, 0.82), rgba(11, 22, 39, 0.86));
    box-shadow: none;
    border-bottom: none;
    padding: 0 12px;
}

.profile-security-grid .profile-security-item .menu-main {
    gap: 7px;
}

.profile-security-grid .profile-security-item .menu-main span {
    white-space: nowrap;
}

.profile-security-grid .profile-security-item .menu-arrow {
    color: #6f90b7;
}

.profile-security-grid .profile-security-item.is-primary {
    border-color: rgba(111, 178, 255, 0.62);
    background: linear-gradient(135deg, #3f90f6, #3379d8);
}

.profile-security-grid .profile-security-item.is-primary .menu-main,
.profile-security-grid .profile-security-item.is-primary .menu-meta,
.profile-security-grid .profile-security-item.is-primary .menu-arrow,
.profile-security-grid .profile-security-item.is-primary .menu-main i {
    color: #f2f8ff !important;
}

.profile-center-page #profile-message-dot {
    display: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    margin-left: 5px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.65);
}

.menu-list {
    gap: 10px;
}

.menu-item {
    min-height: 52px;
    border-bottom: 1px solid var(--line);
    padding: 0 12px;
}

.menu-group .menu-item:last-child {
    border-bottom: none;
}

.menu-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-card-title);
    font-weight: var(--w-semibold);
}

.menu-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: var(--fs-assist);
    font-weight: var(--w-regular);
}

.kyc-shell {
    max-width: 620px;
    margin: 0 auto;
}

.kyc-summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-module-title);
    font-weight: var(--w-semibold);
}

.kyc-summary-title i,
.support-chat-fab i,
.event-section-title i,
.message-item-status.is-unread,
.event-rank,
.event-tier-card.is-achieved .tier-status-icon,
.profile-funding-amount.is-income,
.profile-funding-amount.is-locked,
.profile-rebate-amount,
.trade-history-row.is-profit .trade-history-profit,
.profile-funding-status.is-success,
.trade-history-status.is-closed,
.badge-win,
.bg-success {
    color: var(--accent);
}

.profile-funding-amount.is-expense,
.profile-funding-status.is-rejected,
.trade-history-state.is-error,
.message-item-status.is-unread,
.bg-rejected,
.badge-lose {
    color: var(--danger);
}

.home-popup-root {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: none;
}

.home-popup-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.home-popup-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 360px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #1a1d25, #14171e);
    box-shadow: var(--shadow);
    padding: 16px;
}

.home-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
}

.home-popup-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    padding-right: 24px;
}

.support-chat-fab,
.service-bubble,
.cm-home-back-top {
    position: fixed;
    right: max(14px, calc((100vw - var(--phone-max)) / 2 + 14px));
    z-index: 940;
    box-shadow: var(--shadow);
}

.support-chat-fab {
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
    min-width: 112px;
    height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.service-bubble,
.cm-home-back-top {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-bubble {
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 68px);
}

.cm-home-back-top {
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 126px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.cm-home-back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -16px);
    opacity: 0;
    z-index: 1600;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast-container.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast-icon.success {
    color: var(--accent);
}

.toast-icon.error {
    color: var(--danger);
}

.toast-icon.info {
    color: var(--muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(161, 161, 170, 0.38);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

/* icon consistency */
.bottom-nav .nav-item i,
.cm-side-drawer i,
.menu-main i,
.support-category-icon,
.support-search-icon,
.faq-icon,
.service-bubble i,
.cm-home-back-top i {
    color: #ffffff !important;
}

/* legacy inline style normalization */
#app-content [style*="background:#121"],
#app-content [style*="background: #121"],
#app-content [style*="background:#1a1a1a"],
#app-content [style*="background:#0a0a0a"],
#app-content [style*="background:#080"],
#app-content [style*="background:#fff"],
#app-content [style*="background: #fff"] {
    background: var(--surface-2) !important;
    border-color: var(--line) !important;
}

#app-content [style*="background: white"],
#app-content [style*="background:white"],
#app-content [style*="background:#10b981"],
#app-content [style*="background: #10b981"],
#app-content [style*="background:#29d3ba"],
#app-content [style*="background: #29d3ba"],
#app-content [style*="background:#eab308"],
#app-content [style*="background: #eab308"] {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover)) !important;
    border-color: rgba(var(--accent-rgb), 0.55) !important;
    color: #f4f8f6 !important;
}

#app-content [style*="color:#29d3ba"],
#app-content [style*="color: #29d3ba"],
#app-content [style*="color:#00bfa5"],
#app-content [style*="color: #00bfa5"],
#app-content [style*="color:#10b981"],
#app-content [style*="color: #10b981"],
#app-content [style*="color:#38bdf8"],
#app-content [style*="color: #38bdf8"],
#app-content [style*="color:#3b82f6"],
#app-content [style*="color: #3b82f6"],
#app-content [style*="color:#60a5fa"],
#app-content [style*="color: #60a5fa"] {
    color: var(--accent) !important;
}

#app-content [style*="color:#eab308"],
#app-content [style*="color: #eab308"],
#app-content [style*="color:#f59e0b"],
#app-content [style*="color: #f59e0b"] {
    color: var(--accent) !important;
}

#app-content [style*="color:#ef4444"],
#app-content [style*="color:#f87171"],
#app-content [style*="color: #f87171"],
#app-content [style*="color:#ff6f7f"] {
    color: var(--danger) !important;
}

#app-content [style*="color:#95a4b8"],
#app-content [style*="color:#8fa2bb"],
#app-content [style*="color:#888"],
#app-content [style*="color:#666"] {
    color: var(--muted) !important;
}

#app-content [style*="border: 1px solid #333"],
#app-content [style*="border: 1px solid #222"],
#app-content [style*="border: 1px solid #223149"],
#app-content [style*="border: 1px solid #334155"],
#app-content [style*="border: 1px solid #374151"],
#app-content [style*="border: 1px solid #29d3ba"],
#app-content [style*="border:1px solid #29d3ba"],
#app-content [style*="border: 1px solid #eab308"],
#app-content [style*="border:1px solid #eab308"],
#app-content [style*="border: 1px dashed #29d3ba"],
#app-content [style*="border:1px dashed #29d3ba"],
#app-content [style*="border: 1px dashed #eab308"] {
    border-color: var(--line) !important;
}

/* funding pages */
.funding-page {
    background:
        radial-gradient(420px 300px at 82% 8%, rgba(var(--accent-rgb), 0.22), transparent 70%),
        radial-gradient(520px 340px at -12% 92%, rgba(var(--accent-rgb), 0.2), transparent 70%),
        linear-gradient(180deg, #07101f 0%, #091525 50%, #081324 100%);
}

.funding-top-nav {
    background: linear-gradient(180deg, #101622, #0d1420);
    border-bottom: 1px solid rgba(95, 119, 150, 0.34);
    padding: env(safe-area-inset-top, 0px) 14px 0;
}

.funding-page-title {
    font-size: var(--fs-module-title);
    letter-spacing: 0.5px;
    font-weight: var(--w-semibold);
    text-transform: uppercase;
}

.funding-nav-spacer {
    display: inline-block;
    min-width: 24px;
}

.funding-shell {
    padding: 10px 18px 24px;
    display: grid;
    gap: 12px;
}

.funding-flow {
    display: grid;
    gap: 12px;
}

.funding-tabs {
    margin-bottom: 2px;
}

.funding-tabs .type-tab {
    min-height: 40px;
    border-radius: 11px;
    border: 1px solid rgba(var(--accent-rgb), 0.26) !important;
    background: rgba(9, 20, 36, 0.58) !important;
    color: #8ea4bf !important;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.3px;
}

.funding-tabs .type-tab.active {
    border-color: rgba(var(--accent-rgb), 0.72) !important;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.32), rgba(var(--accent-rgb), 0.13)) !important;
    color: #d7e9ff !important;
}

.funding-card {
    border-radius: 14px;
    border: 1px solid rgba(105, 160, 240, 0.26);
    background:
        linear-gradient(180deg, rgba(24, 41, 67, 0.58), rgba(15, 28, 47, 0.52)),
        rgba(7, 18, 32, 0.45);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(142, 186, 255, 0.08),
        0 0 16px rgba(var(--accent-rgb), 0.16);
    padding: 14px;
}

.funding-field-label {
    color: #8ca9c8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.funding-select-wrap {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(var(--accent-rgb), 0.34);
    background: rgba(6, 18, 36, 0.74);
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.funding-select-wrap:focus-within {
    border-color: rgba(var(--accent-rgb), 0.75);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.funding-select-wrap.is-open {
    border-color: rgba(var(--accent-rgb), 0.75);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
    z-index: 50;
}

.funding-select-wrap select {
    width: 100%;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: #d8ecff;
    outline: none;
    font-size: 15px;
    font-weight: 600;
    appearance: none;
    padding-right: 4px;
}

.funding-select-wrap.is-custom-dropdown select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.funding-select-trigger {
    width: 100%;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: #d8ecff;
    outline: none;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.funding-network-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: radial-gradient(circle at 32% 30%, #be98ff, #7f57de 76%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #f3ebff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.funding-select-arrow {
    color: #8aa8cb;
    font-size: 12px;
    transition: transform 0.22s ease, color 0.22s ease;
}

.funding-select-wrap.is-open .funding-select-arrow {
    transform: rotate(180deg);
    color: #c1dcff;
}

.funding-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: -1px;
    right: -1px;
    border-radius: 12px;
    border: 1px solid rgba(var(--accent-rgb), 0.5);
    background: linear-gradient(180deg, rgba(20, 37, 58, 0.98), rgba(12, 24, 40, 0.98));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42), 0 0 12px rgba(var(--accent-rgb), 0.2);
    padding: 8px;
    display: grid;
    gap: 6px;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.26, 0.86, 0.34, 1);
    pointer-events: none;
}

.funding-select-wrap.is-open .funding-dropdown-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.funding-dropdown-option {
    min-height: 42px;
    border-radius: 11px;
    border: 1px solid transparent;
    background: rgba(13, 27, 45, 0.72);
    color: #deecff;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    padding: 0 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.funding-dropdown-option:hover {
    border-color: rgba(var(--accent-rgb), 0.44);
    background: rgba(var(--accent-rgb), 0.14);
    color: #eff6ff;
}

.funding-dropdown-option:active {
    transform: translateY(1px);
}

.funding-dropdown-option.active {
    border-color: rgba(var(--accent-rgb), 0.7);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.35), rgba(var(--accent-rgb), 0.18));
    color: #f3f8ff;
}

.funding-network-hint {
    margin-top: 8px;
    color: #7ea3cd;
    font-size: 12px;
}

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

.funding-address-text {
    color: #f4f9ff;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.06;
    margin-top: 2px;
}

.funding-copy-btn {
    min-height: 34px;
    min-width: 132px;
    border-radius: 9px;
    border: 1px solid rgba(var(--accent-rgb), 0.5);
    background: rgba(var(--accent-rgb), 0.12);
    color: #63a8ff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.funding-copy-btn:hover {
    color: #d8ebff;
    background: rgba(var(--accent-rgb), 0.24);
    border-color: rgba(var(--accent-rgb), 0.78);
}

.funding-mode-hint {
    margin-top: 10px;
    color: #87b9f2;
    font-size: 12px;
}

.funding-qr-card {
    text-align: center;
}

.funding-qr-frame {
    width: 196px;
    height: 196px;
    border-radius: 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.6);
    background: #f8fbff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 2px auto 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 12px rgba(var(--accent-rgb), 0.35);
    overflow: hidden;
}

.funding-qr-image {
    width: 168px;
    height: 168px;
    object-fit: contain;
    display: block;
}

.funding-qr-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle at 32% 30%, #c8adff, #8555dd 74%);
    border: 2px solid #ffffff;
    color: #efe6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.funding-qr-status {
    color: #7fa7d3;
    font-size: 11px;
}

.funding-note {
    color: #a9c1db;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    padding: 2px 8px 0;
}

.funding-fiat-limit-card {
    display: grid;
    gap: 10px;
}

.funding-fiat-limit-text {
    margin: 0;
    color: #c9dbf0;
    font-size: 13px;
    line-height: 1.48;
}

.funding-top-c2c-btn {
    margin-top: 2px;
}

.funding-country-select-wrap {
    margin-top: -2px;
}

.funding-country-select-wrap .funding-dropdown-menu {
    max-height: min(300px, 52vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-rgb), 0.55) rgba(8, 22, 40, 0.6);
}

.funding-country-select-wrap .funding-dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.funding-country-select-wrap .funding-dropdown-menu::-webkit-scrollbar-track {
    background: rgba(8, 22, 40, 0.6);
    border-radius: 999px;
}

.funding-country-select-wrap .funding-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-rgb), 0.55);
    border-radius: 999px;
    border: 1px solid rgba(8, 22, 40, 0.65);
}

.funding-country-icon {
    background: radial-gradient(circle at 32% 30%, #7db3ff, #2f6fd1 76%);
}

.funding-input-box {
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid rgba(95, 147, 220, 0.32);
    background: rgba(8, 20, 39, 0.72);
    padding: 0 8px 0 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.funding-input-box:focus-within {
    border-color: rgba(var(--accent-rgb), 0.74);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.funding-input-box input {
    color: #e5f0ff;
    font-size: 18px;
    font-family: var(--font-mono);
}

.funding-input-box input::placeholder {
    color: #7f94af;
}

.funding-inline-btn {
    min-height: 34px;
    min-width: 52px;
    border-radius: 8px;
    border: 1px solid rgba(var(--accent-rgb), 0.56);
    background: rgba(var(--accent-rgb), 0.16);
    color: #d5e8ff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.35px;
    cursor: pointer;
    padding: 0 10px;
}

.funding-inline-btn:hover {
    background: rgba(var(--accent-rgb), 0.28);
    border-color: rgba(var(--accent-rgb), 0.8);
}

.funding-main-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.35);
}

.funding-main-btn:hover {
    filter: brightness(1.05);
}

.funding-main-btn:active {
    transform: translateY(1px) scale(0.995);
    box-shadow: 0 5px 14px rgba(var(--accent-rgb), 0.28);
}

.funding-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #c8d5e5;
    font-size: 13px;
    margin-top: 10px;
}

.funding-row span:last-child {
    color: #edf4ff;
    font-weight: 700;
    word-break: break-all;
    text-align: right;
}

.funding-withdraw-card {
    display: grid;
    gap: 10px;
}

.funding-inline-balance {
    color: #d9edff;
    font-size: 15px;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.funding-hidden-balance {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.funding-restricted-hint {
    color: #7f9fc2;
    font-size: 12px;
}

.funding-tight-label {
    margin-top: 4px;
}

.funding-min-hint {
    color: #87a8cb;
    font-size: 12px;
    margin-top: -4px;
}

.funding-address-input-box {
    padding-right: 6px;
}

.funding-bank-info-card {
    margin-top: 4px;
    border: 1px solid rgba(95, 130, 172, 0.28);
    border-radius: 12px;
    background: rgba(10, 20, 34, 0.52);
    padding: 10px 12px;
    display: grid;
    gap: 8px;
}

.funding-bank-info-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: #8ca6c4;
}

.funding-bank-info-row b {
    color: #e8f2ff;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    word-break: break-all;
}

.funding-addressbook-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(var(--accent-rgb), 0.5);
    background: rgba(var(--accent-rgb), 0.14);
    color: #7bb2ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
}

.funding-addressbook-btn:hover {
    color: #d7ebff;
    background: rgba(var(--accent-rgb), 0.24);
    border-color: rgba(var(--accent-rgb), 0.8);
}

#withdraw-address.is-readonly {
    color: #d6e8ff;
    cursor: not-allowed;
}

.funding-fee-hint {
    color: #9dc1ea;
    font-size: 13px;
    text-align: center;
    margin-top: 2px;
}

.funding-warning-copy {
    color: #7b8fa8;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

/* rebate + security pages */
.rebate-page,
.security-page {
    background:
        radial-gradient(440px 320px at 84% 6%, rgba(var(--accent-rgb), 0.2), transparent 70%),
        radial-gradient(560px 340px at -10% 95%, rgba(var(--accent-rgb), 0.17), transparent 70%),
        linear-gradient(180deg, #061121 0%, #091422 56%, #08121f 100%);
}

.security-page {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

.rebate-top-nav,
.security-top-nav {
    background: linear-gradient(180deg, #101622, #0d1420);
    border-bottom: 1px solid rgba(95, 119, 150, 0.34);
    padding: env(safe-area-inset-top, 0px) 14px 0;
}

.rebate-page-title,
.security-page-title {
    font-size: var(--fs-module-title);
    font-weight: var(--w-semibold);
    letter-spacing: 0.25px;
}

.rebate-nav-spacer,
.security-nav-spacer {
    display: inline-block;
    min-width: 24px;
}

.rebate-shell,
.security-shell {
    padding: 10px 14px 24px;
    display: grid;
    gap: 10px;
}

.rebate-invite-host {
    margin-bottom: 4px;
}

.rebate-page .rebate-invite-card {
    background:
        radial-gradient(140% 160% at 0% 0%, rgba(83, 155, 255, 0.26), rgba(20, 48, 84, 0.7) 55%, rgba(12, 29, 52, 0.88) 100%);
    border: 1px solid rgba(108, 167, 247, 0.45);
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34), 0 0 14px rgba(var(--accent-rgb), 0.22);
}

.rebate-page .rebate-invite-label {
    color: #c8ddf8;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.rebate-page .rebate-invite-code {
    font-family: var(--font-mono);
    font-size: 31px;
    font-weight: 700;
    color: #ebf4ff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(127, 170, 231, 0.33);
    border-radius: 12px;
    line-height: 1.24;
    margin-bottom: 12px;
    padding: 12px 10px;
    letter-spacing: 0.5px;
}

.rebate-page .rebate-invite-btn {
    width: 100%;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.65);
    background: linear-gradient(135deg, rgba(65, 146, 255, 0.95), rgba(39, 114, 232, 0.92));
    color: #ecf5ff;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    box-shadow: 0 7px 18px rgba(var(--accent-rgb), 0.32);
}

.rebate-metrics {
    display: grid;
    gap: 10px;
}

.rebate-metric-item {
    border-radius: 12px;
    border: 1px solid rgba(92, 130, 177, 0.34);
    background: linear-gradient(180deg, rgba(22, 37, 58, 0.78), rgba(14, 26, 44, 0.8));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
}

.rebate-metric-label {
    color: #96aec8;
    font-size: 12px;
    margin-bottom: 5px;
}

.rebate-metric-value {
    color: #4ca1ff;
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

.rebate-metric-arrow {
    color: #637f9f;
    font-size: 14px;
}

.rebate-history-card {
    border-radius: 14px;
    border: 1px solid rgba(92, 130, 177, 0.35);
    background: linear-gradient(180deg, rgba(19, 35, 56, 0.82), rgba(12, 25, 42, 0.82));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 12px;
}

.rebate-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: #deedff;
    font-size: 14px;
    font-weight: 700;
}

.rebate-history-badge {
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.45);
    background: rgba(var(--accent-rgb), 0.12);
    color: #98c9ff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
}

.rebate-history-list {
    max-height: 280px;
    overflow-y: auto;
    display: grid;
    gap: 8px;
    padding-right: 2px;
}

.rebate-history-list .profile-rebate-row {
    margin: 0;
    border-radius: 10px;
    border: 1px solid rgba(99, 132, 177, 0.35);
    background: rgba(9, 21, 36, 0.6);
    padding: 10px;
    box-shadow: none;
}

.rebate-history-list .profile-rebate-tx,
.rebate-history-list .profile-rebate-time {
    font-size: 11px;
}

.rebate-history-list .profile-rebate-amount {
    font-size: 13px;
}

.security-card {
    border-radius: 14px;
    border: 1px solid rgba(95, 136, 188, 0.35);
    background: linear-gradient(180deg, rgba(17, 32, 50, 0.82), rgba(11, 22, 37, 0.82));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.security-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.security-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #dcecff;
}

.security-add-btn {
    min-height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.55) !important;
    background: rgba(var(--accent-rgb), 0.14) !important;
    color: #93c5ff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 0 12px;
}

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

.security-empty-tip {
    color: #90a7c0;
    font-size: 12px;
    padding: 8px 0;
}

.sec-crypto-row {
    border-radius: 10px;
    border: 1px solid rgba(101, 138, 178, 0.35);
    background: rgba(13, 28, 45, 0.65);
    padding: 10px;
    position: relative;
    overflow: visible;
}

.sec-address-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sec-address-main {
    min-width: 0;
}

.sec-address-title {
    color: #edf5ff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.sec-address-sub {
    color: #718cab;
    font-size: 11px;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sec-address-arrow {
    color: #5d7898;
    font-size: 13px;
    flex: 0 0 auto;
}

.sec-crypto-hidden {
    display: none !important;
}

.sec-crypto-lock-tip {
    color: #8aacd0;
    font-size: 11px;
    margin-top: 8px;
}

.sec-address-edit {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.sec-coin-wrap {
    position: relative;
    min-width: 0;
}

.sec-coin-wrap.is-open {
    z-index: 80;
}

.sec-coin-wrap.is-custom .sec-coin-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sec-coin-trigger {
    width: 100%;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(103, 142, 187, 0.36);
    background: rgba(8, 20, 35, 0.72);
    color: #e6f2ff;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    padding: 0 32px 0 12px;
    cursor: pointer;
}

.sec-coin-wrap.is-open .sec-coin-trigger,
.sec-coin-trigger:focus-visible {
    border-color: rgba(var(--accent-rgb), 0.74);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
    outline: none;
}

.sec-coin-wrap.is-disabled .sec-coin-trigger,
.sec-coin-trigger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.sec-coin-arrow {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #7fa0c3;
    font-size: 12px;
    transition: transform 0.2s ease, color 0.2s ease;
    pointer-events: none;
}

.sec-coin-wrap.is-open .sec-coin-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: #c0dbff;
}

.sec-coin-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 7px);
    border-radius: 11px;
    border: 1px solid rgba(var(--accent-rgb), 0.48);
    background: linear-gradient(180deg, rgba(18, 34, 54, 0.98), rgba(11, 23, 39, 0.98));
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42), 0 0 10px rgba(var(--accent-rgb), 0.22);
    padding: 6px;
    display: grid;
    gap: 5px;
    max-height: min(250px, 45vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transform: translateY(-7px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.24, 0.87, 0.34, 1);
    pointer-events: none;
}

.sec-coin-wrap.is-open .sec-coin-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.sec-coin-option {
    min-height: 38px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: rgba(10, 22, 38, 0.68);
    color: #e3efff;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    padding: 0 10px;
    cursor: pointer;
}

.sec-coin-option:hover {
    border-color: rgba(var(--accent-rgb), 0.42);
    background: rgba(var(--accent-rgb), 0.16);
}

.sec-coin-option.active {
    border-color: rgba(var(--accent-rgb), 0.68);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.34), rgba(var(--accent-rgb), 0.18));
}

.sec-crypto-coin,
.sec-crypto-address,
.security-input-wrap input,
.security-select-wrap input {
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(103, 142, 187, 0.36);
    background: rgba(8, 20, 35, 0.72);
    color: #e6f2ff;
    outline: none;
    padding: 0 12px;
}

.sec-crypto-coin:focus,
.sec-crypto-address:focus,
.security-input-wrap input:focus,
.security-select-wrap input:focus,
.security-input-wrap.is-focus input {
    border-color: rgba(var(--accent-rgb), 0.74);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.sec-crypto-remove,
.sec-crypto-change {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(102, 134, 169, 0.45);
    background: rgba(11, 24, 41, 0.66);
    color: #aac4de;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 0 10px;
    cursor: pointer;
}

.sec-crypto-remove {
    color: #fda4af;
    border-color: rgba(244, 114, 182, 0.42);
}

.security-select-wrap {
    position: relative;
}

.security-select-wrap i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c88aa;
    font-size: 12px;
    pointer-events: none;
}

.security-input-wrap {
    position: relative;
}

.security-qr-upload-wrap {
    display: grid;
    gap: 8px;
}

.security-qr-upload-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-qr-upload-btn,
.security-qr-clear-btn {
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(103, 142, 187, 0.45);
    background: rgba(8, 20, 35, 0.72);
    color: #d9ebff;
    font-size: 13px;
    font-weight: 600;
    padding: 0 14px;
}

.security-qr-upload-btn {
    flex: 1 1 auto;
    border-color: rgba(var(--accent-rgb), 0.58);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.34), rgba(var(--accent-rgb), 0.2));
    color: #eaf4ff;
}

.security-qr-clear-btn {
    flex: 0 0 auto;
    border-color: rgba(252, 211, 77, 0.45);
    color: #f8d48a;
    background: rgba(245, 158, 11, 0.14);
}

.security-qr-status {
    color: #93adc8;
    font-size: 12px;
    line-height: 1.4;
}

.security-qr-preview {
    width: 128px;
    height: 128px;
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(109, 146, 189, 0.48);
    background: #ffffff;
    object-fit: contain;
    padding: 6px;
}

.security-main-btn {
    width: 100%;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.62);
    background: linear-gradient(135deg, #3f94ff, #2d76de);
    color: #edf6ff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.32);
}

.security-hint {
    color: #86a3c3;
    font-size: 11px;
    line-height: 1.4;
}

.security-change-btn {
    justify-self: end;
    min-height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(252, 211, 77, 0.45);
    background: rgba(245, 158, 11, 0.1);
    color: #f8be4e;
    font-size: 12px;
    padding: 0 10px;
}

/* Global polish update (home/profile/support/trade/events) */
.page-title,
.trade-page-title,
.support-hero-title,
.profile-center-title,
.event-title {
    line-height: 1.2;
}

.profile-section-title,
.panel-title,
.event-section-title {
    line-height: 1.3;
}

.cm-home-topbar {
    min-height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
    padding: max(8px, env(safe-area-inset-top, 0px)) 14px 10px;
    gap: 10px;
    border-bottom: 1px solid rgba(92, 126, 168, 0.36);
    background: linear-gradient(180deg, rgba(14, 26, 43, 0.96), rgba(11, 20, 35, 0.96));
}

.cm-home-topbar .cm-home-brand-mark,
.cm-home-topbar .cm-home-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(99, 132, 171, 0.46);
    background: linear-gradient(180deg, rgba(29, 45, 67, 0.88), rgba(17, 31, 48, 0.88));
    color: #b8d5fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cm-home-topbar .cm-home-brand-mark {
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cm-home-topbar .cm-home-brand-mark:active {
    transform: scale(0.96);
}

.cm-home-topbar .cm-home-brand-mark:focus-visible {
    outline: none;
    border-color: rgba(118, 177, 255, 0.75);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.cm-home-topbar .cm-home-icon-btn {
    font-size: 18px;
}

.cm-home-search-wrap {
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(99, 132, 171, 0.4);
    background: linear-gradient(180deg, rgba(21, 35, 54, 0.92), rgba(17, 29, 45, 0.92));
    grid-template-columns: 1fr 42px;
}

.cm-home-search-wrap input {
    color: #e8f2ff;
    font-size: 13px;
    padding: 0 12px;
}

.cm-home-search-wrap button {
    border: 0;
    border-left: 1px solid rgba(99, 132, 171, 0.38);
    background: transparent;
    color: #89b4ef;
}

.cm-home-search-wrap button i {
    font-size: 16px;
}

.cm-hero,
.cm-hero-slides {
    min-height: 454px;
    height: max(454px, calc(100vh - var(--topbar-h) - env(safe-area-inset-top, 0px) - var(--home-nav-offset)));
    height: max(454px, calc(100dvh - var(--topbar-h) - env(safe-area-inset-top, 0px) - var(--home-nav-offset)));
}

.cm-hero-title {
    font-size: clamp(40px, 10vw, 48px);
    line-height: 1.02;
    margin-bottom: 10px;
}

.cm-hero-price {
    gap: 2px;
    margin-bottom: 8px;
}

.cm-hero-currency {
    font-size: 22px;
    margin-bottom: 7px;
}

.cm-hero-price strong {
    font-size: clamp(44px, 14vw, 58px);
    line-height: 0.95;
}

.cm-hero-more {
    font-size: 18px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.cm-hero-desc {
    max-width: 88%;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cm-hero-content {
    bottom: 32px;
}

.cm-hero-actions {
    gap: 12px;
}

.cm-hero-btn {
    min-height: 46px;
}

.cm-hero-btn-primary {
    border-color: rgba(var(--accent-rgb), 0.72) !important;
    box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.32);
}

.cm-hero-btn-secondary {
    border-color: rgba(99, 132, 171, 0.42) !important;
    background: linear-gradient(180deg, rgba(22, 37, 57, 0.92), rgba(15, 28, 45, 0.92)) !important;
    color: #d6e7ff !important;
}

.cm-hero-dots {
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(8, 17, 29, 0.5);
    backdrop-filter: blur(2px);
}

.cm-carbon-section {
    padding: 16px 14px 8px;
}

.cm-carbon-title {
    font-size: 18px;
    font-weight: var(--w-semibold);
    line-height: 1.3;
    margin-bottom: 8px;
}

.cm-carbon-copy {
    font-size: 13px;
    line-height: 1.4;
    color: #b8cbe4;
}

.cm-carbon-card {
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
}

.cm-carbon-cover {
    height: 168px;
}

.cm-carbon-cover,
.project-thumb {
    border-radius: 16px 16px 0 0;
}

.cm-carbon-price-row strong {
    color: #f2f8ff;
    font-size: 30px;
}

.cm-carbon-price-row span {
    color: #8ea8c6;
    font-size: 12px;
}

.cm-home-more-btn {
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    border-radius: 12px;
    border: 1px solid rgba(100, 138, 186, 0.42);
    background: linear-gradient(180deg, rgba(18, 35, 56, 0.9), rgba(13, 27, 45, 0.92));
    color: #d5e8ff;
    font-size: 14px;
    font-weight: var(--w-semibold);
}

.cm-home-auto-section,
.cm-home-newsletter-section {
    padding: 12px 14px 0;
}

.cm-home-sec-title {
    margin: 0;
    font-size: clamp(30px, 9vw, 38px);
    font-weight: var(--w-bold);
    line-height: 0.98;
    letter-spacing: 0.1px;
    color: #edf5ff;
}

.cm-home-sec-copy {
    margin-top: 10px;
    color: #b7cae3;
    font-size: 13px;
    line-height: 1.48;
}

.cm-home-feature-grid {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.cm-home-feature-item {
    border-radius: 12px;
    border: 1px solid rgba(100, 136, 180, 0.34);
    background: rgba(16, 31, 49, 0.66);
    padding: 11px 12px;
    display: grid;
    gap: 4px;
}

.cm-home-feature-title {
    color: #e4f0ff;
    font-size: 14px;
    font-weight: var(--w-semibold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cm-home-feature-title i {
    color: #8fc0ff;
}

.cm-home-feature-item p {
    margin: 0;
    color: #a8bfdc;
    font-size: 12px;
    line-height: 1.42;
}

.cm-home-feature-actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cm-home-inline-btn {
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(98, 135, 184, 0.38);
    font-size: 13px;
    font-weight: var(--w-semibold);
}

.cm-home-inline-btn.is-primary {
    border-color: rgba(var(--accent-rgb), 0.62);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #eef6ff;
}

.cm-home-inline-btn.is-ghost {
    background: rgba(15, 30, 48, 0.78);
    color: #c3d9f4;
}

.cm-home-news-card {
    border-radius: 14px;
    border: 1px solid rgba(101, 139, 188, 0.34);
    background: linear-gradient(180deg, rgba(16, 31, 49, 0.88), rgba(12, 24, 39, 0.9));
    padding: 12px;
    display: grid;
    gap: 8px;
}

.cm-home-news-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cm-home-news-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid rgba(110, 151, 208, 0.52);
    background: linear-gradient(135deg, rgba(79, 154, 247, 0.3), rgba(44, 85, 143, 0.92));
    color: #ecf6ff;
    font-size: 20px;
    font-weight: var(--w-bold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cm-home-news-brand {
    font-size: 17px;
    color: #edf6ff;
    font-weight: var(--w-semibold);
}

.cm-home-news-sub {
    font-size: 12px;
    color: #8fa8c9;
}

.cm-home-news-copy {
    margin: 0;
    color: #b2c7e2;
    font-size: 12px;
    line-height: 1.45;
}

.cm-home-news-label {
    margin-top: 2px;
    color: #90aac9;
    font-size: 12px;
}

.cm-home-news-form {
    min-height: 42px;
    border: 1px solid rgba(101, 139, 188, 0.36);
    border-radius: 10px;
    background: rgba(13, 26, 42, 0.76);
    display: grid;
    grid-template-columns: 1fr auto;
    overflow: hidden;
}

.cm-home-news-form input {
    border: 0;
    background: transparent;
    color: #e6f2ff;
    padding: 0 11px;
    font-size: 13px;
    outline: none;
}

.cm-home-news-form input::placeholder {
    color: #6f88a8;
}

.cm-home-news-form button {
    min-width: 72px;
    border: 0;
    border-left: 1px solid rgba(101, 139, 188, 0.34);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.86), rgba(48, 116, 210, 0.94));
    color: #ecf4ff;
    font-size: 13px;
    font-weight: var(--w-semibold);
}

.cm-home-footer {
    margin-top: 14px;
    padding: 14px 14px calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 20px);
    border-top: 1px solid rgba(95, 130, 172, 0.28);
    background: linear-gradient(180deg, rgba(9, 19, 32, 0.8), rgba(7, 15, 27, 0.92));
}

.cm-home-footer-brand {
    color: #f2bf37;
    font-size: 15px;
    font-weight: var(--w-semibold);
}

.cm-home-footer-links {
    margin-top: 10px;
    display: grid;
    gap: 6px;
}

.cm-home-footer-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: #c4d7ee;
    font-size: 12px;
    text-align: left;
}

.cm-home-footer-social {
    margin-top: 14px;
    display: flex;
    gap: 8px;
}

.cm-home-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(100, 138, 186, 0.36);
    background: rgba(16, 31, 49, 0.76);
    color: #cfe3fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.project-join-btn {
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
}

.support-shell {
    padding-top: 0;
    gap: 12px;
}

.support-hero {
    padding: 18px 16px 14px;
    gap: 12px;
}

.support-hero-title {
    margin: 0;
    font-size: clamp(28px, 8vw, 30px);
}

.support-hero-subtitle {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.support-search-wrap {
    margin-top: 0;
}

.support-block-title {
    margin: 0;
    font-size: 18px;
    font-weight: var(--w-semibold);
    line-height: 1.25;
    color: #e6f0ff;
}

.support-category-section {
    margin-top: 0;
    padding: 12px;
    border: 1px solid rgba(96, 134, 181, 0.28);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(15, 28, 45, 0.76), rgba(12, 22, 35, 0.82));
    gap: 10px;
}

.support-category-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-category-card {
    min-height: 84px;
    align-content: start;
    gap: 4px;
}

.support-category-title {
    font-size: 16px;
}

.support-category-desc {
    font-size: 13px;
    color: #8ca8c9;
}

.support-tabs .type-tab {
    min-height: 38px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.support-content-section {
    margin-top: 0;
    padding: 12px;
    border: 1px solid rgba(96, 134, 181, 0.28);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(15, 28, 45, 0.74), rgba(12, 22, 35, 0.8));
    gap: 10px;
}

.support-content-head {
    display: grid;
    gap: 10px;
}

.support-content-head .support-block-title {
    text-align: center;
    font-size: 20px;
}

.support-content-body {
    display: grid;
    gap: 10px;
}

.support-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* Support page cleanup: remove floating fab and tighten document spacing */
.support-shell .support-chat-fab {
    display: none !important;
}

.support-content-section #support-help-area,
.support-content-section #support-news-area,
.support-content-section #support-search-results {
    padding: 0;
    gap: 16px;
}

.support-content-section .faq-card,
.support-content-section .news-card {
    margin: 0;
}

.support-content-section .faq-card {
    padding: 16px 14px;
}

.support-content-section .faq-header {
    min-height: 30px;
}

.support-empty-state {
    border: 1px dashed rgba(101, 133, 172, 0.42);
    border-radius: 14px;
    background: rgba(16, 31, 49, 0.52);
    padding: 16px;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 6px;
}

.support-empty-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(111, 146, 188, 0.42);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7ea5d6;
    background: rgba(19, 34, 53, 0.88);
}

.support-empty-title {
    font-size: 15px;
    font-weight: var(--w-semibold);
    color: #e2edff;
}

.support-empty-desc {
    font-size: 12px;
    color: #8ca6c6;
    line-height: 1.35;
}

.support-empty-action {
    margin-top: 4px;
    min-height: 40px;
    min-width: 124px;
}

.trade-page {
    background: linear-gradient(180deg, #070d16 0%, #0a1422 48%, #09121f 100%);
}

.trade-page-header {
    position: sticky;
    top: 0;
    z-index: 26;
}

.trade-header-back-btn,
.trade-page-spacer {
    width: 40px;
    min-width: 40px;
    height: 40px;
}

.trade-header-back-btn {
    border: 0;
    border-radius: 12px;
    background: rgba(21, 36, 56, 0.85);
    color: #e5f0ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.trade-header-back-btn:active {
    transform: translateY(1px);
    background: rgba(32, 56, 86, 0.92);
}

.trade-page-spacer {
    display: inline-block;
}

.trade-scroll-area {
    padding: 12px 16px calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 20px);
    gap: 12px;
}

.trade-account-card {
    min-height: 118px;
    padding: 12px 14px;
    display: grid;
    gap: 8px;
}

.trade-account-card .acc-top {
    align-items: flex-start;
}

.trade-account-card .acc-right-info {
    display: grid;
    justify-items: end;
    gap: 2px;
    text-align: right;
}

.trade-account-bottom {
    padding-top: 8px;
    border-top: 1px solid rgba(101, 133, 172, 0.26);
    align-items: center;
}

.trade-order-list-btn {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 9px;
    border-color: rgba(96, 134, 181, 0.36) !important;
    background: rgba(17, 31, 49, 0.82) !important;
    color: #9db9dd !important;
}

.trade-account-card .acc-label {
    font-size: 11px;
}

.trade-account-card .acc-balance,
.trade-account-card .acc-val {
    font-size: clamp(18px, 5.2vw, 20px);
    font-weight: var(--w-semibold);
}

.trade-account-card .acc-vip {
    font-size: 15px;
    font-weight: var(--w-semibold);
}

.trade-account-card .acc-fee {
    font-size: 12px;
}

.trade-zone-switch {
    margin-top: 0;
    padding: 3px;
    border: 1px solid rgba(95, 128, 166, 0.34);
    border-radius: 12px;
    background: rgba(14, 26, 42, 0.7);
    gap: 4px;
}

.trade-zone-switch .trade-zone-btn {
    min-height: 36px;
    border-radius: 9px;
}

.trade-zone-switch .trade-zone-btn:not(.active) {
    border-color: transparent !important;
    background: transparent !important;
    color: #8fa7c5 !important;
}

.trade-zone-switch .trade-zone-btn.active {
    border-color: rgba(var(--accent-rgb), 0.58) !important;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.12)) !important;
    color: #e8f2ff !important;
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.18);
}

.trade-market-switch {
    margin-top: 0;
    justify-content: flex-start;
    align-items: center;
    min-height: 32px;
}

.trade-market-chip-list {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.trade-market-chip-list::-webkit-scrollbar {
    display: none;
}

.trade-market-chip {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(102, 141, 190, 0.36);
    border-radius: 10px;
    background: rgba(10, 23, 38, 0.72);
    color: #a8bfdc;
    font-size: 12px;
    font-weight: var(--w-semibold);
    white-space: nowrap;
    flex: 0 0 auto;
}

.trade-market-chip.active {
    border-color: rgba(var(--accent-rgb), 0.72);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.26), rgba(var(--accent-rgb), 0.12));
    color: #e9f4ff;
}

.trade-quote-card {
    border: 1px solid rgba(92, 132, 183, 0.34);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(13, 26, 44, 0.84), rgba(10, 21, 35, 0.86));
    box-shadow: inset 0 0 0 1px rgba(78, 118, 166, 0.2);
    padding: 10px 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.trade-quote-item {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.trade-quote-label {
    font-size: 11px;
    color: rgba(220, 235, 255, 0.52);
    white-space: nowrap;
}

.trade-quote-value {
    min-width: 0;
    font-size: 13px;
    font-weight: var(--w-semibold);
    color: #e9f2ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-quote-change.is-up {
    color: #19c37d;
}

.trade-quote-change.is-down {
    color: #f04452;
}

.trade-kline-card {
    border: 1px solid rgba(88, 129, 182, 0.36);
    border-radius: 14px;
    background: linear-gradient(180deg, #0a1320 0%, #0a1522 100%);
    padding: 10px 10px 8px;
    display: grid;
    gap: 8px;
}

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

.trade-kline-legend {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.trade-ma-tag {
    font-size: 11px;
    color: rgba(211, 225, 241, 0.72);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trade-ma-tag b {
    font-size: 11px;
    font-weight: var(--w-semibold);
}

.trade-ma5 b {
    color: #f5c451;
}

.trade-ma10 b {
    color: #5da9ff;
}

.trade-kline-canvas-wrap {
    position: relative;
    border: 1px solid rgba(92, 129, 177, 0.3);
    border-radius: 10px;
    background: rgba(8, 17, 29, 0.92);
    overflow: hidden;
}

.trade-kline-canvas {
    width: 100%;
    height: 180px;
    display: block;
}

.trade-kline-last-price {
    position: absolute;
    right: 8px;
    top: 10px;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(77, 163, 255, 0.8);
    background: rgba(30, 94, 255, 0.9);
    color: #f2f8ff;
    font-size: 11px;
    font-weight: var(--w-semibold);
    line-height: 20px;
    pointer-events: none;
}

.trade-timeframe-switch {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.trade-timeframe-switch::-webkit-scrollbar {
    display: none;
}

.trade-timeframe-btn {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(92, 128, 173, 0.34);
    border-radius: 9px;
    background: rgba(12, 24, 39, 0.78);
    color: #9ab4d5;
    font-size: 12px;
    font-weight: var(--w-semibold);
    flex: 0 0 auto;
}

.trade-timeframe-btn.active {
    border-color: rgba(var(--accent-rgb), 0.7);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.12));
    color: #ebf5ff;
}

.trade-market-switch .type-tab {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    flex: 0 0 auto;
}

.trade-action-panel {
    padding: 12px 12px 10px;
    display: grid;
    gap: 10px;
    position: relative;
    overflow: visible;
    border: 1px solid rgba(92, 131, 182, 0.34);
    background: linear-gradient(180deg, rgba(12, 24, 39, 0.86), rgba(10, 21, 34, 0.88));
}

.trade-action-panel .panel-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.22;
}

.trade-action-panel .panel-hint {
    margin-top: -2px;
    font-size: 12px;
    line-height: 1.35;
}

.trade-product-meta {
    position: relative;
    min-height: 42px;
    border: 1px solid rgba(101, 133, 172, 0.34);
    border-radius: 12px;
    background: rgba(17, 30, 47, 0.72);
    padding: 9px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.trade-product-meta .pair-select {
    background: transparent;
    border: 0;
    min-height: auto;
    padding: 0;
    width: auto;
    font-size: 14px;
    font-weight: var(--w-semibold);
}

.trade-pair-native-select {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 34px;
    border: 1px solid rgba(101, 133, 172, 0.36);
    border-radius: 10px;
    background: rgba(10, 23, 39, 0.86);
    color: #e6f2ff;
    font-size: 14px;
    font-weight: var(--w-semibold);
    padding: 0 30px 0 10px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #8fb1d8 50%),
        linear-gradient(135deg, #8fb1d8 50%, transparent 50%);
    background-position:
        calc(100% - 16px) 50%,
        calc(100% - 11px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.trade-pair-native-select:focus {
    border-color: rgba(var(--accent-rgb), 0.74);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.trade-pair-select-wrap {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 36px;
    position: relative;
    border-radius: 11px;
    border: 1px solid rgba(103, 157, 230, 0.52);
    background: linear-gradient(180deg, rgba(9, 27, 48, 0.96), rgba(8, 20, 37, 0.93));
    box-shadow: inset 0 0 0 1px rgba(83, 141, 216, 0.2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.trade-pair-select-wrap.is-open {
    border-color: rgba(128, 188, 255, 0.84);
    box-shadow: inset 0 0 0 1px rgba(126, 181, 250, 0.3), 0 0 0 3px rgba(95, 160, 246, 0.16);
    z-index: 60;
}

.trade-pair-select-wrap.is-disabled {
    opacity: 0.62;
}

.trade-pair-select-wrap.is-custom-dropdown .trade-pair-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.trade-pair-select-trigger {
    width: 100%;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: #deecff;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}

.trade-pair-select-trigger:disabled {
    cursor: not-allowed;
}

.trade-pair-select-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-pair-select-arrow {
    flex: 0 0 auto;
    font-size: 11px;
    color: #95b7df;
    transition: transform 0.22s ease, color 0.22s ease;
}

.trade-pair-select-wrap.is-open .trade-pair-select-arrow {
    transform: rotate(180deg);
    color: #d6ebff;
}

.trade-pair-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border: 1px solid rgba(112, 170, 238, 0.58);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(24, 42, 66, 0.98), rgba(14, 27, 44, 0.98));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45), 0 0 12px rgba(102, 164, 241, 0.2);
    padding: 2px 0;
    display: grid;
    gap: 0;
    max-height: 224px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-6px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.trade-pair-select-wrap.is-open .trade-pair-select-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.trade-pair-select-option {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-bottom: 1px solid rgba(122, 155, 199, 0.2);
    background: rgba(45, 58, 77, 0.86);
    color: #d7e6f8;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    padding: 0 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.trade-pair-select-option:last-child {
    border-bottom: 0;
}

.trade-pair-select-option:hover {
    background: rgba(70, 104, 138, 0.76);
    color: #ebf6ff;
}

.trade-pair-select-option.active {
    background: linear-gradient(180deg, rgba(67, 141, 174, 0.9), rgba(56, 121, 154, 0.88));
    color: #f2fbff;
}

.trade-product-meta:has(.trade-pair-native-select) .trade-pair-select {
    display: none !important;
}

.trade-product-meta .trade-pair-select,
.trade-pair-dropdown {
    display: none !important;
}

.trade-product-meta .trade-pair-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e6f1ff;
    cursor: pointer;
}

.trade-product-meta .trade-pair-select:disabled,
.trade-product-meta .trade-pair-select.is-disabled {
    opacity: 0.55;
    cursor: default;
}

.trade-pair-arrow {
    font-size: 12px;
    color: #8fb1d8;
    transition: transform 0.22s ease;
}

.trade-pair-select[aria-expanded="true"] .trade-pair-arrow {
    transform: rotate(180deg);
}

.trade-product-meta .price-display {
    font-size: 12px;
    white-space: nowrap;
}

.trade-pair-dropdown {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin-top: 8px;
    z-index: 24;
    display: grid;
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(105, 158, 238, 0.56);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(18, 39, 66, 0.98), rgba(11, 26, 45, 0.98));
    box-shadow: 0 10px 24px rgba(4, 12, 22, 0.45);
    max-height: 220px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-4px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.trade-pair-dropdown[hidden] {
    display: none;
}

.trade-pair-dropdown.is-open {
    display: grid !important;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.trade-pair-dropdown.is-open[hidden] {
    display: grid !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.trade-pair-option {
    min-height: 34px;
    width: 100%;
    border: 1px solid rgba(102, 147, 207, 0.34);
    border-radius: 9px;
    background: rgba(8, 20, 36, 0.78);
    color: #e6f2ff;
    font-size: 13px;
    font-weight: var(--w-semibold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px;
    cursor: pointer;
}

.trade-pair-option:hover {
    border-color: rgba(107, 162, 245, 0.3);
    background: rgba(50, 102, 176, 0.14);
}

.trade-pair-option.is-active {
    border-color: rgba(var(--accent-rgb), 0.6);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-rgb), 0.14));
    color: #e8f2ff;
}

.trade-pair-option i {
    font-size: 14px;
    color: #7eb3ff;
}

.trade-pair-dropdown .market-zone-empty {
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 9px;
    color: #90a8c5;
    font-size: 12px;
}

.trade-mode-switch {
    margin-top: -2px;
    padding: 3px;
    border: 1px solid rgba(95, 128, 166, 0.34);
    border-radius: 12px;
    background: rgba(14, 26, 42, 0.7);
    gap: 4px;
}

.trade-mode-switch .trade-mode-btn {
    min-height: 34px;
    width: 100%;
    border-radius: 9px;
}

.trade-mode-switch .trade-mode-btn:not(.active) {
    border-color: transparent !important;
    background: transparent !important;
    color: #8ea4bf !important;
}

.trade-mode-switch .trade-mode-btn.active {
    border-color: rgba(var(--accent-rgb), 0.58) !important;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.12)) !important;
    color: #e8f2ff !important;
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.18);
}

.trade-action-panel .amount-input-box {
    min-height: 48px;
}

#trade-amount-input {
    font-size: 18px;
    font-weight: var(--w-semibold);
}

#trade-amount-input::placeholder {
    font-size: 14px;
    font-weight: var(--w-regular);
}

.trade-action-panel .input-suffix {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#trade-input-unit {
    font-size: 13px;
    color: #9bb4d1;
}

.trade-action-panel .max-btn {
    min-height: 32px;
    min-width: 58px;
    border-radius: 10px;
}

.trade-action-panel .calc-details {
    margin-top: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(101, 133, 172, 0.25);
    gap: 7px;
}

.trade-action-panel .calc-row {
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trade-action-panel .calc-row .highlight-val {
    font-size: 14px;
    font-weight: var(--w-semibold);
    color: #deebff;
}

.trade-action-panel .action-buttons {
    margin-top: 2px;
    gap: 0;
}

.trade-primary-actions {
    grid-template-columns: 1fr !important;
}

.trade-action-panel #btn-buy-exec {
    min-height: 46px;
}

.trade-secondary-actions {
    margin-top: 6px;
}

.trade-secondary-actions #btn-sell-exec {
    width: 100%;
    min-height: 38px;
    font-size: 13px;
    border-radius: 10px;
    border-color: rgba(96, 134, 181, 0.34) !important;
    background: rgba(16, 30, 46, 0.78) !important;
    color: #9cb8db !important;
}

.event-content {
    margin-top: -30px;
}

.event-title {
    font-size: clamp(30px, 8.4vw, 32px);
    line-height: 1.16;
}

.event-subtitle {
    font-size: 14px;
    line-height: 1.42;
    color: #c6d7ec;
}

.event-subtitle span {
    display: inline-block;
    margin-top: 2px;
    font-size: 16px;
    font-weight: var(--w-semibold);
    color: var(--gold);
}

.event-timer-card {
    display: grid;
    gap: 12px;
}

.event-timer-head span:first-child {
    font-size: 13px;
    color: #d9e8ff;
}

.event-timer-head span:last-child {
    font-size: 12px;
    color: #8ca7c7;
}

.event-countdown-main {
    margin-top: 12px;
    line-height: 1.1;
}

.event-countdown-sub {
    margin-top: 4px;
    font-size: 30px;
    line-height: 1.1;
}

.event-payout-label {
    font-size: 12px;
}

.event-payout-value {
    margin-top: 4px;
    font-size: 16px;
    font-weight: var(--w-semibold);
}

.event-jump-btn {
    min-height: 46px;
    margin-top: 0;
    width: 100%;
}

.event-my-stats {
    display: grid;
    gap: 8px;
}

.event-my-stats-title {
    margin: 4px 0 2px;
    font-size: var(--fs-module-title);
    font-weight: var(--w-semibold);
    line-height: 1.25;
    color: var(--text);
}

.event-stat-card {
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    padding: 12px 14px;
}

.event-stat-card-compact {
    min-height: 76px;
}

.event-stat-card-reward {
    min-height: 84px;
}

.event-stat-label {
    font-size: 12px;
    line-height: 1.3;
}

.event-stat-value {
    margin-top: auto;
    font-size: clamp(22px, 6.2vw, 24px);
    font-weight: var(--w-semibold);
    line-height: 1.08;
}

.event-stat-card-reward .event-stat-value {
    font-size: clamp(24px, 7vw, 28px);
}

.event-tier-card {
    display: grid;
    gap: 8px;
}

.event-tier-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-tier-badge {
    margin-bottom: 0;
}

.event-tier-reward {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: var(--w-bold);
    color: var(--gold);
}

.event-tier-threshold span {
    color: #e8f1ff;
}

.profile-center-page {
    gap: 10px;
    padding-top: 12px;
}

.profile-center-top {
    min-height: 46px;
    margin-bottom: 4px;
}

.profile-settings-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.profile-center-user .user-uid {
    font-size: 11px;
}

.profile-vip-label {
    font-size: 11px;
}

.profile-center-user .vip-badge {
    min-height: 20px;
    padding: 0 9px;
    font-size: 12px;
}

.profile-center-asset .asset-title {
    font-size: 14px;
    font-weight: var(--w-regular);
}

.profile-center-asset .asset-total {
    font-size: 30px;
}

.profile-center-stat {
    border-color: rgba(109, 141, 180, 0.16);
    background: rgba(8, 19, 33, 0.28);
}

.profile-center-stat-label {
    font-size: 11px;
}

.profile-center-stat-val {
    font-size: 16px;
}

.profile-center-actions .action-btn.deposit {
    border-color: rgba(111, 182, 255, 0.7) !important;
    background: linear-gradient(135deg, #4ea2ff, #337fe7) !important;
    color: #f3f8ff !important;
}

.profile-center-actions .action-btn.withdraw {
    border-color: rgba(98, 141, 192, 0.42) !important;
    background: linear-gradient(180deg, rgba(18, 37, 60, 0.88), rgba(13, 29, 49, 0.88)) !important;
    color: #c8dbf2 !important;
}

.profile-center-actions .profile-transfer-btn {
    border-color: rgba(98, 143, 198, 0.32) !important;
    color: #95b1d2 !important;
}

.profile-center-action-row-secondary .action-btn {
    border-color: rgba(98, 143, 198, 0.3) !important;
    color: #9ab7d8 !important;
    background: linear-gradient(180deg, rgba(10, 26, 45, 0.84), rgba(8, 21, 38, 0.86)) !important;
}

.profile-center-action-row-secondary .action-btn i {
    color: #8fb7e8;
}

.profile-node-value {
    font-size: 24px;
}

.profile-security-grid .profile-security-item,
.profile-center-page .menu-item {
    min-height: 52px;
}

#profile-fee-rate {
    color: #90a9c7;
}

.support-chat-fab {
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 14px);
}

.service-bubble {
    width: 44px;
    height: 44px;
    right: max(8px, calc((100vw - var(--phone-max)) / 2 + 8px));
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 62px);
    box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.18);
}

@media (max-width: 430px) {
    body {
        max-width: 100%;
        border: none;
        box-shadow: none;
    }

    .bottom-nav {
        width: 100%;
    }

    .support-chat-fab,
    .service-bubble,
    .cm-home-back-top {
        right: 14px;
    }

    .cm-hero-title {
        font-size: 40px;
    }

    .cm-hero-currency {
        font-size: 24px;
    }

    .cm-hero-price strong {
        font-size: 54px;
    }

    .cm-hero-more {
        font-size: 24px;
    }

    .cm-hero-btn {
        font-size: 16px;
    }

    .rebate-invite-code {
        font-size: 24px;
        letter-spacing: 3px;
        padding: 0 12px;
    }

    .cm-carbon-title {
        font-size: 44px;
    }

    .cm-carbon-price-row strong {
        font-size: 32px;
    }

    .type-tabs,
    .asset-actions,
    .action-buttons,
    .kyc-review-actions {
        grid-template-columns: 1fr;
    }

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

    .support-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .profile-center-actions {
        gap: 8px;
    }

    .profile-center-action-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-c2c-status-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .funding-tabs {
        grid-template-columns: 1fr 1fr !important;
    }

    .funding-page-title {
        font-size: 20px;
    }

    .funding-address-text {
        font-size: 16px;
    }

    .funding-main-btn {
        font-size: 14px;
    }

    .funding-inline-balance {
        font-size: 14px;
    }

    .profile-center-page {
        --pc-font-title: 28px;
        --pc-font-section: 20px;
        --pc-font-entry: 16px;
        --pc-font-meta: 11px;
        --pc-font-value: 30px;
    }

    .profile-center-user .user-name {
        font-size: 18px;
    }

    .profile-center-unit {
        font-size: 17px;
    }

    .profile-center-stat-val {
        font-size: 16px;
    }

    .profile-node-value {
        font-size: 20px;
    }

    .profile-security-grid .profile-security-item {
        min-height: 48px;
        padding: 0 10px;
    }

    .rebate-page .rebate-invite-code {
        font-size: 24px;
    }

    .rebate-metric-value {
        font-size: 22px;
    }

    .sec-address-edit {
        grid-template-columns: 1fr;
    }

    .support-chat-fab {
        min-width: 44px;
        width: 44px;
        padding: 0;
    }

    .support-chat-fab span {
        display: none;
    }
}

/* ================================
   Docx Global Consolidation Layer
   ================================ */

.funding-page-title,
.rebate-page-title,
.security-page-title,
.vip-page-title,
.coupon-page-title,
.about-page-title,
.service-page-title,
.funding-account-page-title,
.kyc-subpage-title,
.profile-edit-title,
.vip-metrics-title,
.order-history-title {
    text-transform: none;
    font-size: clamp(18px, 5.2vw, 22px);
    letter-spacing: 0.18px;
    font-weight: var(--w-semibold);
}

.ui-empty-state {
    border: 1px dashed rgba(101, 133, 172, 0.42);
    border-radius: 14px;
    background: rgba(16, 31, 49, 0.52);
    padding: 16px;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 6px;
}

.ui-empty-state--compact {
    padding: 14px;
}

.ui-empty-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(111, 146, 188, 0.42);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7ea5d6;
    background: rgba(19, 34, 53, 0.88);
}

.ui-empty-title {
    font-size: 15px;
    font-weight: var(--w-semibold);
    color: #e2edff;
}

.ui-empty-desc {
    font-size: 12px;
    color: #8ca6c6;
    line-height: 1.35;
}

.funding-account-page {
    background:
        radial-gradient(440px 320px at 84% 6%, rgba(var(--accent-rgb), 0.2), transparent 70%),
        radial-gradient(560px 340px at -10% 95%, rgba(var(--accent-rgb), 0.17), transparent 70%),
        linear-gradient(180deg, #061121 0%, #091422 56%, #08121f 100%);
}

.funding-account-top-nav {
    background: linear-gradient(180deg, #101622, #0d1420);
    border-bottom: 1px solid rgba(95, 119, 150, 0.34);
    padding: env(safe-area-inset-top, 0px) 14px 0;
}

.funding-account-nav-spacer,
.about-nav-spacer,
.service-nav-spacer,
.coupon-nav-spacer,
.vip-nav-spacer,
.kyc-nav-spacer,
.profile-edit-nav-spacer,
.vip-metrics-nav-spacer,
.order-history-nav-spacer {
    display: inline-block;
    min-width: 24px;
}

.funding-account-shell {
    padding: 10px 14px 24px;
    display: grid;
    gap: 12px;
}

.profile-c2c-page {
    background:
        radial-gradient(440px 320px at 84% 6%, rgba(var(--accent-rgb), 0.2), transparent 70%),
        radial-gradient(560px 340px at -10% 95%, rgba(var(--accent-rgb), 0.17), transparent 70%),
        linear-gradient(180deg, #061121 0%, #091422 56%, #08121f 100%);
}

.profile-c2c-top-nav {
    background: linear-gradient(180deg, #101622, #0d1420);
    border-bottom: 1px solid rgba(95, 119, 150, 0.34);
    padding: env(safe-area-inset-top, 0px) 14px 0;
}

.profile-c2c-nav-spacer {
    display: inline-block;
    min-width: 24px;
}

.profile-c2c-shell {
    padding: 10px 14px 24px;
    display: grid;
    gap: 12px;
}

.profile-c2c-mode-tabs {
    margin-top: -2px;
}

.profile-c2c-card {
    border-radius: 16px;
    border: 1px solid rgba(101, 133, 172, 0.34);
    background: linear-gradient(180deg, rgba(22, 30, 46, 0.9), rgba(16, 24, 38, 0.92));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    padding: 14px;
}

.profile-c2c-title {
    color: #e5f0ff;
    font-size: 16px;
    font-weight: var(--w-semibold);
}

.profile-c2c-subtitle {
    margin-top: 6px;
    color: #8ea5c3;
    font-size: 12px;
    line-height: 1.4;
}

.profile-c2c-form-card {
    display: grid;
    gap: 10px;
}

.profile-c2c-country-wrap {
    margin-top: -2px;
}

.profile-c2c-country-icon {
    background: radial-gradient(circle at 32% 30%, #8ec3ff, #356ec7 76%);
}

.profile-c2c-country-wrap .funding-select-trigger {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-c2c-country-wrap .funding-dropdown-menu {
    z-index: 80;
    max-height: 230px;
    overflow-y: auto;
}

.profile-c2c-amount-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-c2c-currency {
    min-width: 56px;
    text-align: right;
    color: #d7e7fb;
    font-size: 14px;
    font-family: var(--font-mono);
    font-weight: 700;
}

.profile-c2c-quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.profile-c2c-quote-item {
    border-radius: 10px;
    border: 1px solid rgba(97, 141, 197, 0.36);
    background: rgba(9, 22, 37, 0.6);
    padding: 10px;
    display: grid;
    gap: 6px;
}

.profile-c2c-quote-item span {
    color: #8ea5c3;
    font-size: 12px;
}

.profile-c2c-quote-item strong {
    color: #eaf3ff;
    font-size: 15px;
    font-family: var(--font-mono);
    font-weight: 700;
    line-height: 1.1;
}

.profile-c2c-create-hint {
    color: #9db7d7;
    font-size: 12px;
    line-height: 1.4;
}

.profile-c2c-submit-btn {
    width: 100%;
    margin-top: 2px;
}

.profile-c2c-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.profile-c2c-action {
    min-height: 108px;
    border-radius: 14px;
    border: 1px solid rgba(98, 143, 198, 0.34) !important;
    background: linear-gradient(180deg, rgba(12, 30, 52, 0.78), rgba(10, 25, 44, 0.82)) !important;
    color: #d8e8fb !important;
    box-shadow: none !important;
    padding: 12px;
    text-align: left;
    display: grid;
    gap: 8px;
    align-content: start;
}

.profile-c2c-action i {
    font-size: 18px;
    color: #8fb7e8;
}

.profile-c2c-action strong {
    font-size: 15px;
    font-weight: var(--w-semibold);
    color: #edf6ff;
}

.profile-c2c-action span {
    font-size: 12px;
    color: #9ab7d8;
    line-height: 1.35;
}

.profile-c2c-action.is-buy {
    border-color: rgba(92, 166, 244, 0.46) !important;
}

.profile-c2c-action.is-sell {
    border-color: rgba(96, 141, 192, 0.4) !important;
}

.profile-c2c-note-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #9ab3cf;
    font-size: 12px;
    line-height: 1.45;
}

.profile-c2c-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.profile-c2c-refresh-btn {
    min-height: 30px;
    border-radius: 10px;
    padding: 0 10px;
    border: 1px solid rgba(98, 143, 198, 0.34) !important;
    background: rgba(12, 30, 52, 0.64) !important;
    color: #b3cceb !important;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: none !important;
}

.profile-c2c-status-tabs {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.profile-c2c-status-btn {
    min-height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(88, 112, 143, 0.42);
    background: rgba(17, 29, 46, 0.78);
    color: #8ea4bf;
    font-size: 12px;
    font-weight: var(--w-semibold);
    cursor: pointer;
}

.profile-c2c-status-btn.active {
    border-color: rgba(var(--accent-rgb), 0.62);
    background: rgba(var(--accent-rgb), 0.18);
    color: #dcecff;
}

.profile-c2c-order-list {
    margin-top: 10px;
    display: grid;
    gap: 8px;
    max-height: 330px;
    overflow-y: auto;
    padding-right: 2px;
}

.profile-c2c-order-row {
    border: 1px solid rgba(99, 132, 177, 0.35);
    border-radius: 12px;
    background: rgba(9, 21, 36, 0.6);
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.profile-c2c-order-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.profile-c2c-order-title {
    color: #e5f0ff;
    font-size: 14px;
    font-weight: var(--w-semibold);
}

.profile-c2c-order-meta {
    color: #8ea5c3;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.profile-c2c-order-right {
    text-align: right;
    display: grid;
    gap: 6px;
    justify-items: end;
}

.profile-c2c-order-amount {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: var(--w-semibold);
}

.profile-c2c-order-amount.is-in {
    color: #19c37d;
}

.profile-c2c-order-amount.is-out {
    color: #f59e0b;
}

.profile-c2c-order-status {
    min-height: 22px;
    border-radius: 999px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
}

.profile-c2c-order-status.is-pending {
    color: #f7cf6e;
    border-color: rgba(245, 190, 84, 0.4);
    background: rgba(245, 190, 84, 0.14);
}

.profile-c2c-order-status.is-success {
    color: #7dddb0;
    border-color: rgba(47, 190, 126, 0.4);
    background: rgba(47, 190, 126, 0.14);
}

.profile-c2c-order-status.is-rejected {
    color: #ff9ea7;
    border-color: rgba(240, 68, 82, 0.4);
    background: rgba(240, 68, 82, 0.14);
}

.profile-c2c-chat-btn {
    min-height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(var(--accent-rgb), 0.56);
    background: rgba(var(--accent-rgb), 0.16);
    color: #dcebff;
    font-size: 12px;
    font-weight: var(--w-semibold);
    padding: 0 12px;
    cursor: pointer;
}

.profile-c2c-chat-btn.is-disabled,
.profile-c2c-chat-btn:disabled {
    border-color: rgba(102, 124, 152, 0.34);
    background: rgba(30, 45, 68, 0.52);
    color: #7d91ad;
    cursor: not-allowed;
}

.funding-account-overview,
.funding-account-list-card,
.funding-account-history-card,
.coupon-card,
.about-brand-card,
.about-list-card,
.about-version-card,
.service-card,
.profile-edit-card,
.vip-metrics-card,
.vip-hero-card,
.vip-action-card {
    border-radius: 16px;
    border: 1px solid rgba(101, 133, 172, 0.34);
    background: linear-gradient(180deg, rgba(22, 30, 46, 0.9), rgba(16, 24, 38, 0.92));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.funding-account-overview {
    padding: 16px;
}

.funding-account-overview-label,
.coupon-card-subtitle,
.coupon-stock-label,
.about-version-label,
.vip-hero-label,
.vip-assets-label,
.vip-metrics-label,
.profile-edit-random-btn {
    font-size: 12px;
    color: #8ea5c3;
}

.funding-account-overview-value {
    margin-top: 6px;
    font-size: clamp(30px, 8.5vw, 34px);
    font-weight: var(--w-bold);
    color: #eff7ff;
    font-family: var(--font-mono);
    line-height: 1.04;
}

.funding-account-list-card,
.funding-account-history-card {
    padding: 14px;
}

.funding-account-list-title,
.coupon-card-title,
.about-brand-name,
.service-title,
.vip-card-title,
.kyc-sub-head .kyc-card-title {
    font-size: 16px;
    font-weight: var(--w-semibold);
    color: #e5f0ff;
}

.funding-account-list {
    margin-top: 10px;
    display: grid;
    gap: 9px;
}

.funding-account-row {
    border: 1px solid rgba(96, 127, 163, 0.34);
    border-radius: 12px;
    background: rgba(12, 24, 40, 0.58);
    min-height: 50px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #d8e8fb;
}

.funding-account-row span:last-child {
    font-family: var(--font-mono);
    font-weight: var(--w-semibold);
}

.funding-account-row.is-expandable {
    padding: 0;
    display: block;
}

.funding-account-row.is-expandable summary {
    min-height: 50px;
    list-style: none;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #d8e8fb;
}

.funding-account-row.is-expandable summary::-webkit-details-marker {
    display: none;
}

.funding-account-detail-list {
    border-top: 1px solid rgba(96, 127, 163, 0.28);
    padding: 8px 12px 10px;
    display: grid;
    gap: 6px;
}

.funding-account-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #8ea5c3;
}

.funding-account-detail-row span:last-child {
    color: #deecff;
    text-align: right;
}

.funding-account-row.is-meta {
    display: grid;
    align-content: center;
    padding: 10px 12px;
}

.funding-history-list,
.coupon-history-list,
.order-history-shell {
    margin-top: 10px;
    display: grid;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 2px;
}

.funding-history-list .profile-funding-row {
    margin: 0;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(99, 132, 177, 0.35);
    background: rgba(9, 21, 36, 0.6);
    box-shadow: none;
    overflow: hidden;
}

.funding-history-list .profile-funding-row.is-expandable {
    display: block;
}

.funding-history-list .profile-funding-row.is-expandable summary {
    min-height: 70px;
    padding: 10px 12px;
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 14px;
    align-items: start;
    gap: 10px;
    cursor: pointer;
}

.funding-history-list .profile-funding-row.is-expandable summary::-webkit-details-marker {
    display: none;
}

.funding-history-list .profile-funding-row.is-expandable[open] {
    border-color: rgba(120, 165, 221, 0.48);
}

.funding-history-list .profile-funding-toggle {
    margin-top: 3px;
    font-size: 12px;
    color: #88a7cc;
    transition: transform 0.2s ease;
}

.funding-history-list .profile-funding-row.is-expandable[open] .profile-funding-toggle {
    transform: rotate(180deg);
}

.funding-history-list .profile-funding-main {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.funding-history-list .profile-funding-title {
    font-size: 14px;
    line-height: 1.3;
    color: #e5f0ff;
}

.funding-history-list .profile-funding-detail {
    display: block;
    font-size: 12px;
    line-height: 1.42;
    color: #8ea5c3;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.funding-history-list .profile-funding-time {
    font-size: 12px;
    line-height: 1.3;
    color: #9db2cb;
    font-family: var(--font-mono);
}

.funding-history-list .profile-funding-right {
    display: grid;
    align-content: start;
    justify-items: end;
    gap: 4px;
    text-align: right;
    padding-top: 1px;
}

.funding-history-list .profile-funding-amount,
.funding-history-list .profile-funding-status {
    white-space: nowrap;
}

.funding-history-list .profile-funding-amount {
    font-size: 13px;
    font-family: var(--font-mono);
}

.funding-history-list .profile-funding-status {
    font-size: 12px;
}

.funding-history-list .profile-funding-expand-body {
    border-top: 1px solid rgba(99, 132, 177, 0.26);
    padding: 10px 12px 12px;
    display: grid;
    gap: 8px;
    background: rgba(9, 19, 33, 0.5);
}

.funding-history-list .profile-funding-detail-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.funding-history-list .profile-funding-detail-row span:first-child {
    font-size: 11px;
    color: #88a2c2;
}

.funding-history-list .profile-funding-detail-row span:last-child {
    font-size: 12px;
    color: #d9e9fb;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.funding-history-list .profile-funding-detail-text {
    line-height: 1.42;
}

.funding-history-list .profile-funding-meta-block {
    border: 1px solid rgba(103, 137, 178, 0.26);
    border-radius: 10px;
    background: rgba(8, 17, 30, 0.72);
    padding: 8px 9px;
}

.funding-history-list .profile-funding-meta-label {
    font-size: 11px;
    color: #8ea8c9;
    margin-bottom: 5px;
}

.funding-history-list .profile-funding-meta-json {
    margin: 0;
    font-size: 11px;
    line-height: 1.42;
    color: #bad6f7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vip-page {
    background:
        radial-gradient(480px 320px at 84% 6%, rgba(var(--accent-rgb), 0.2), transparent 70%),
        radial-gradient(560px 360px at -10% 95%, rgba(var(--accent-rgb), 0.16), transparent 70%),
        linear-gradient(180deg, #061121 0%, #091422 56%, #08121f 100%);
}

.vip-top-nav,
.coupon-top-nav,
.about-top-nav,
.service-top-nav,
.kyc-subpage-top-nav,
.profile-edit-top-nav,
.vip-metrics-top-nav,
.order-history-top-nav {
    background: linear-gradient(180deg, #101622, #0d1420);
    border-bottom: 1px solid rgba(95, 119, 150, 0.34);
    padding: env(safe-area-inset-top, 0px) 14px 0;
}

.vip-shell,
.coupon-shell,
.about-shell,
.service-shell,
.kyc-subpage-shell,
.profile-edit-shell,
.vip-metrics-shell,
.order-history-shell {
    padding: 10px 14px 24px;
}

.vip-shell,
.coupon-shell,
.about-shell,
.service-shell,
.kyc-subpage-shell,
.profile-edit-shell,
.vip-metrics-shell {
    display: grid;
    gap: 12px;
}

.vip-hero-card {
    position: relative;
    padding: 14px;
    display: grid;
    gap: 12px;
}

.vip-hero-deco {
    position: absolute;
    right: 14px;
    top: 12px;
    font-size: 34px;
    color: rgba(255, 213, 121, 0.2);
}

.vip-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding-right: 36px;
}

.vip-hero-side {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.vip-hero-fee-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.vip-hero-fee-label {
    color: #8ea5c3;
    font-size: 12px;
}

.vip-hero-level {
    margin-top: 2px;
    font-size: clamp(28px, 8.6vw, 34px);
    color: #f0f7ff;
    font-weight: var(--w-bold);
    letter-spacing: 0.4px;
    line-height: 1.04;
}

.vip-hero-fee {
    color: #f8d169;
    font-size: 15px;
    font-weight: var(--w-semibold);
}

.vip-level-badge {
    min-height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 213, 121, 0.52);
    background: rgba(255, 213, 121, 0.14);
    color: #ffeab3;
    font-size: 11px;
    font-weight: var(--w-semibold);
    letter-spacing: 0.25px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
}

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

.vip-metric-mini {
    border-radius: 10px;
    border: 1px solid rgba(96, 127, 163, 0.32);
    background: rgba(11, 23, 39, 0.64);
    padding: 9px 10px;
    display: grid;
    gap: 4px;
}

.vip-metric-mini-label {
    color: #8ea5c3;
    font-size: 11px;
    line-height: 1.3;
}

.vip-metric-mini-value {
    color: #e8f2ff;
    font-size: 13px;
    font-family: var(--font-mono);
    font-weight: var(--w-semibold);
    line-height: 1.2;
}

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

.vip-benefit-fee-pill {
    border-radius: 999px;
    border: 1px solid rgba(245, 197, 81, 0.42);
    background: rgba(245, 197, 81, 0.12);
    color: #e7d39d;
    font-size: 12px;
    padding: 4px 10px;
}

.vip-benefit-fee-pill strong {
    color: #f9dd8b;
    margin-left: 4px;
    font-family: var(--font-mono);
}

.vip-benefit-list {
    display: grid;
    gap: 7px;
}

.vip-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #8ea5c3;
    line-height: 1.45;
}

.vip-benefit-item i {
    color: #69aaff;
    margin-top: 1px;
}

.vip-progress-card {
    gap: 12px;
}

.vip-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.vip-next-level-chip {
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.48);
    background: rgba(var(--accent-rgb), 0.18);
    color: #d6e9ff;
    font-size: 12px;
    font-weight: var(--w-semibold);
    display: inline-flex;
    align-items: center;
}

.vip-progress-summary {
    color: #c9dcf4;
    font-size: 12px;
    line-height: 1.45;
}

.vip-progress-list {
    display: grid;
    gap: 9px;
}

.vip-progress-item {
    display: grid;
    gap: 6px;
}

.vip-progress-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #8ea5c3;
}

.vip-progress-row span:last-child {
    color: #e5edf9;
    font-weight: var(--w-semibold);
}

.vip-tabs {
    margin-top: 0;
}

.vip-tabs-light {
    width: min(100%, 280px);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(88, 112, 143, 0.35);
    background: rgba(12, 23, 38, 0.72);
    gap: 6px;
}

.vip-tabs-light .vip-tab {
    min-height: 32px;
    border-radius: 8px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.vip-rules-card {
    gap: 12px;
}

.vip-rules-head {
    display: grid;
    gap: 10px;
}

.vip-rules-subtitle {
    margin-top: 4px;
    color: #8ea5c3;
    font-size: 12px;
    line-height: 1.35;
}

.vip-progress-track {
    height: 7px;
    border-radius: 999px;
    background: rgba(77, 106, 143, 0.26);
    overflow: hidden;
}

.vip-progress-fill {
    height: 100%;
    width: 0%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #3b82f6, #62a5ff);
    transition: width 0.28s ease;
}

.vip-table-container {
    display: grid;
    gap: 8px;
}

.vip-table {
    border: 1px solid rgba(101, 133, 172, 0.26);
    border-radius: 12px;
    background: rgba(9, 20, 34, 0.58);
    padding: 6px 8px;
    display: grid;
    gap: 0;
}

.vip-table-head,
.vip-table-row {
    display: grid;
    gap: 8px;
    align-items: center;
}

.vip-table-head-req,
.vip-table-req .vip-table-row {
    grid-template-columns: 0.85fr 1fr 1fr 1.2fr;
}

.vip-table-head-fee,
.vip-table-fee .vip-table-row {
    grid-template-columns: 0.8fr 1fr 1.45fr;
}

.vip-table-head {
    padding: 6px 4px 8px;
    border-bottom: 1px solid rgba(101, 133, 172, 0.24);
}

.vip-table-head-cell {
    font-size: 11px;
    color: #8ea5c3;
}

.vip-table-row {
    border: 0;
    border-bottom: 1px solid rgba(96, 127, 163, 0.18);
    border-radius: 0;
    background: transparent;
    padding: 10px 4px;
}

.vip-table .vip-table-row:last-child {
    border-bottom: 0;
}

.vip-table-row.is-current {
    background: rgba(var(--accent-rgb), 0.12);
}

.vip-table-cell {
    font-size: 12px;
    color: #d6e7fb;
    font-family: var(--font-mono);
    line-height: 1.35;
}

.vip-table-cell-name {
    font-family: var(--font-ui);
    font-weight: var(--w-semibold);
    color: #eff7ff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vip-table-cell-center {
    text-align: center;
}

.vip-table-cell-right {
    text-align: right;
}

.vip-table-fee-val {
    font-weight: var(--w-semibold);
    color: #eaf2ff;
}

.vip-table-rebate-val {
    color: #9fc2f1;
    font-size: 12px;
}

.vip-table-badge {
    min-height: 17px;
    padding: 0 6px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.46);
    background: rgba(var(--accent-rgb), 0.14);
    color: #d9ebff;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
}

.vip-action-card {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.vip-assets-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vip-assets-main-single {
    grid-template-columns: 1fr;
}

.vip-assets-main-item,
.vip-assets-subitem {
    border: 1px solid rgba(96, 127, 163, 0.34);
    border-radius: 12px;
    background: rgba(12, 24, 40, 0.58);
    padding: 10px;
}

.vip-assets-main-item.is-right,
.vip-assets-subitem.is-right {
    text-align: right;
}

.vip-assets-value {
    margin-top: 5px;
    font-size: 20px;
    font-family: var(--font-mono);
    color: #eef7ff;
    font-weight: var(--w-semibold);
}

.vip-assets-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vip-assets-subgrid-single {
    grid-template-columns: 1fr;
}

.vip-assets-subvalue {
    margin-top: 5px;
    font-size: 16px;
    font-family: var(--font-mono);
    color: #d8e8fb;
    font-weight: var(--w-semibold);
}

.vip-exit-meta {
    border: 1px solid rgba(96, 127, 163, 0.34);
    border-radius: 12px;
    background: rgba(12, 24, 40, 0.58);
    padding: 10px;
    display: grid;
    gap: 6px;
}

.vip-exit-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: #8ea5c3;
}

.vip-exit-row span:last-child {
    color: #e6f0ff;
    font-weight: var(--w-semibold);
}

.vip-amount-input {
    min-height: 48px;
}

.vip-input-unit {
    color: #a9c1df;
    font-size: 13px;
    font-weight: var(--w-semibold);
}

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

.vip-action-buttons #btn-stake,
.vip-action-buttons #btn-unstake {
    width: 100%;
    min-height: 44px;
}

.vip-danger-btn {
    border-color: rgba(239, 68, 68, 0.42) !important;
    color: #fca5b0 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.rebate-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rebate-metric-item {
    min-height: 94px;
}

.rebate-invite-btn i {
    margin-right: 4px;
}

.coupon-page {
    background:
        radial-gradient(460px 330px at 84% 6%, rgba(var(--accent-rgb), 0.2), transparent 70%),
        radial-gradient(560px 360px at -10% 95%, rgba(var(--accent-rgb), 0.16), transparent 70%),
        linear-gradient(180deg, #061121 0%, #091422 56%, #08121f 100%);
}

.coupon-card {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.coupon-stock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.coupon-stock-item {
    border: 1px solid rgba(96, 127, 163, 0.34);
    border-radius: 12px;
    background: rgba(12, 24, 40, 0.58);
    padding: 10px;
}

.coupon-stock-value {
    margin-top: 4px;
    font-size: 20px;
    font-weight: var(--w-semibold);
    font-family: var(--font-mono);
}

.coupon-stock-value.is-blue {
    color: #8ec1ff;
}

.coupon-stock-value.is-gold {
    color: var(--gold);
}

.coupon-stock-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: #8ea5c3;
}

.coupon-stock-meta b {
    color: #edf5ff;
}

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

.coupon-badge {
    min-height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.45);
    background: rgba(var(--accent-rgb), 0.12);
    color: #98c9ff;
    font-size: 11px;
    font-weight: 600;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
}

.coupon-card-desc {
    color: #8ea5c3;
    font-size: 12px;
    line-height: 1.45;
}

.coupon-card .btn-submit {
    width: 100%;
    min-height: 44px;
}

.coupon-input-box {
    min-height: 46px;
}

.coupon-input-box select {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #e6f2ff;
    appearance: none;
}

.about-page,
.service-page,
.kyc-subpage,
.profile-edit-page,
.vip-metrics-page,
.order-history-subpage {
    background:
        radial-gradient(420px 300px at 82% 8%, rgba(var(--accent-rgb), 0.22), transparent 70%),
        radial-gradient(520px 340px at -12% 92%, rgba(var(--accent-rgb), 0.2), transparent 70%),
        linear-gradient(180deg, #07101f 0%, #091525 50%, #081324 100%);
}

.about-brand-card {
    padding: 18px 14px;
    text-align: center;
}

.about-brand-logo {
    width: 76px;
    height: 76px;
    margin: 0 auto 10px;
    border-radius: 18px;
    border: 1px solid rgba(var(--accent-rgb), 0.56);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), rgba(22, 49, 88, 0.9));
    color: #eaf4ff;
    font-size: 30px;
    font-weight: var(--w-bold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.about-brand-name {
    font-size: 22px;
}

.about-brand-desc {
    margin-top: 6px;
    color: #8ea5c3;
    font-size: 13px;
    line-height: 1.45;
}

.about-list-card {
    padding: 0;
    overflow: hidden;
}

.about-item {
    width: 100%;
    min-height: 54px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(96, 127, 163, 0.28);
    background: transparent;
    color: #dbe9fb;
}

.about-item .menu-main,
.about-item .menu-main span {
    color: #dbe9fb;
}

.about-item .menu-meta,
.about-item .menu-arrow {
    color: #7fa4cf;
}

.about-item .menu-main i {
    color: #9bc6ff !important;
}

.about-item:active {
    background: rgba(33, 57, 90, 0.34);
}

.about-item:last-child {
    border-bottom: 0;
}

.about-version-card {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-version-value {
    font-size: 13px;
    color: #e6f1ff;
    font-weight: var(--w-semibold);
}

.about-article-modal[hidden] {
    display: none;
}

.about-article-modal {
    position: fixed;
    inset: 0;
    z-index: 1350;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 14px calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
    background: rgba(4, 10, 18, 0.72);
    backdrop-filter: blur(4px);
    display: grid;
    align-items: center;
}

.about-article-dialog {
    width: min(560px, 100%);
    max-height: 82vh;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid rgba(112, 151, 201, 0.36);
    background: linear-gradient(180deg, rgba(16, 29, 46, 0.96), rgba(11, 21, 35, 0.96));
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.about-article-head {
    min-height: 50px;
    padding: 0 12px 0 14px;
    border-bottom: 1px solid rgba(98, 132, 175, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.about-article-title {
    margin: 0;
    font-size: 16px;
    font-weight: var(--w-semibold);
    color: #e7f2ff;
}

.about-article-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(99, 133, 176, 0.36);
    background: rgba(17, 32, 51, 0.88);
    color: #d2e7ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.about-article-body {
    padding: 12px 14px 16px;
    overflow-y: auto;
    color: #d6e5f8;
    font-size: 13px;
    line-height: 1.58;
}

.about-article-body p {
    margin: 0 0 10px;
}

.about-article-body p:last-child {
    margin-bottom: 0;
}

.service-card {
    padding: 18px 14px;
    text-align: center;
}

.service-icon {
    font-size: 44px;
    color: #8ec1ff;
}

.service-title {
    margin-top: 6px;
    font-size: 20px;
}

.service-desc {
    color: #8ea5c3;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 4px;
    margin-bottom: 6px;
}

.service-main-btn,
.service-sub-btn {
    width: 100%;
    min-height: 44px;
}

.service-sub-btn {
    margin-top: 2px;
}

.kyc-subpage-shell .kyc-card {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(101, 133, 172, 0.34);
    background: linear-gradient(180deg, rgba(22, 30, 46, 0.9), rgba(16, 24, 38, 0.92));
}

.kyc-sub-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.kyc-subpage-shell .input-label {
    margin-top: 8px;
}

.kyc-subpage-shell .amount-input-box {
    margin-top: 4px;
}

.kyc-textarea-wrap {
    padding: 8px 10px;
}

.kyc-textarea-wrap textarea {
    width: 100%;
    min-height: 74px;
    border: 0;
    outline: none;
    resize: vertical;
    background: transparent;
    color: #e6f2ff;
    font-size: 14px;
}

.kyc-subpage-shell #btn-submit-kyc {
    width: 100%;
    margin-top: 12px;
    min-height: 44px;
}

.kyc-highlight {
    color: #9bc9ff;
}

.profile-edit-card {
    padding: 16px 14px;
}

.profile-edit-avatar-wrap {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.profile-edit-avatar-wrap img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 2px solid rgba(var(--accent-rgb), 0.56);
    object-fit: cover;
}

.profile-edit-random-btn {
    border: 0;
    background: transparent;
    color: #8ec1ff;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.profile-edit-input-box {
    margin-bottom: 14px;
}

#btn-save-profile,
.profile-edit-logout {
    width: 100%;
}

.profile-edit-logout {
    margin-top: 10px;
}

.vip-metrics-card {
    padding: 14px;
}

.vip-metrics-value {
    margin-top: 6px;
    font-size: 26px;
    font-weight: var(--w-bold);
    color: #ecf6ff;
    font-family: var(--font-mono);
    line-height: 1.08;
}

.vip-metrics-value.is-gold {
    color: var(--gold);
}

.vip-metrics-note,
.vip-metrics-unit {
    color: #8ea5c3;
    font-size: 12px;
    margin-top: 6px;
}

.vip-metrics-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: #8ea5c3;
}

.vip-metrics-row span:last-child {
    color: #e6f0ff;
    font-weight: var(--w-semibold);
}

.order-history-shell {
    max-height: none;
    min-height: calc(100vh - 70px - var(--bottom-nav-h));
}

.funding-tabs .type-tab,
.vip-tabs .type-tab,
.support-tabs .type-tab {
    min-height: 40px;
}

.funding-select-wrap select,
.security-select-wrap select,
.amount-input-box select {
    font-size: 14px;
    font-weight: var(--w-semibold);
}

@media (max-width: 430px) {
    .rebate-metrics-grid,
    .vip-metrics-mini-grid,
    .vip-assets-main,
    .vip-assets-subgrid,
    .coupon-stock-grid,
    .vip-action-buttons {
        grid-template-columns: 1fr;
    }

    .vip-hero-top {
        padding-right: 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .vip-hero-side {
        width: 100%;
        grid-template-columns: 1fr auto;
        justify-items: stretch;
        align-items: center;
    }

    .vip-level-badge {
        justify-self: end;
    }

    .vip-rules-head {
        gap: 8px;
    }

    .vip-tabs-light {
        width: 100%;
    }

    .profile-c2c-quote-grid {
        grid-template-columns: 1fr;
    }

    .vip-table-head-req,
    .vip-table-req .vip-table-row {
        grid-template-columns: 0.8fr 1fr 1fr 1.1fr;
    }

    .vip-table-head-fee,
    .vip-table-fee .vip-table-row {
        grid-template-columns: 0.8fr 0.9fr 1.3fr;
    }

    .coupon-stock-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   Desktop Adaptation Layer (>= 1024px)
   ========================================= */
@media (min-width: 1024px) {
    :root {
        --desktop-content-max: 1280px;
        --desktop-nav-h: 72px;
        --bottom-nav-h: 72px;
    }

    body {
        max-width: 100%;
        border-left: 0;
        border-right: 0;
        box-shadow: none;
        margin: 0;
    }

    .app-content {
        height: calc(100% - var(--desktop-nav-h));
    }

    body.home-nav-hidden .app-content {
        height: 100%;
    }

    .bottom-nav {
        left: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        height: var(--desktop-nav-h);
        padding: 10px 16px;
        grid-template-columns: repeat(5, minmax(120px, 180px));
        justify-content: center;
        align-content: center;
        gap: 10px;
        border-top: 1px solid rgba(94, 120, 154, 0.4);
        background: linear-gradient(180deg, rgba(9, 12, 18, 0.96), rgba(11, 16, 26, 0.96));
        backdrop-filter: blur(8px);
    }

    .nav-item {
        min-height: 50px;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        font-size: 14px;
    }

    .nav-item i {
        font-size: 19px;
    }

    .support-chat-fab,
    .service-bubble,
    .cm-home-back-top {
        right: 22px;
    }

    .support-chat-fab {
        bottom: calc(var(--desktop-nav-h) + 16px);
    }

    .service-bubble {
        bottom: calc(var(--desktop-nav-h) + 74px);
    }

    .cm-home-back-top {
        bottom: calc(var(--desktop-nav-h) + 132px);
    }

    .cm-home-shell,
    .event-page,
    .trade-page,
    .message-page,
    .support-shell,
    .profile-center-page,
    .kyc-gate-page {
        max-width: var(--desktop-content-max);
        margin-left: auto;
        margin-right: auto;
    }

    .cm-home-topbar {
        padding-left: 24px;
        padding-right: 24px;
    }

    .cm-hero,
    .cm-hero-slides {
        min-height: 580px;
        height: min(72vh, 680px);
    }

    .cm-hero-content {
        left: 24px;
        right: 24px;
        max-width: 760px;
        bottom: 44px;
    }

    .cm-carbon-section,
    .cm-home-auto-section,
    .cm-home-newsletter-section,
    .cm-home-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .cm-home-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cm-home-footer-links {
        grid-template-columns: repeat(5, max-content);
        gap: 12px 18px;
    }

    .trade-scroll-area {
        max-width: var(--desktop-content-max);
        margin: 0 auto;
        padding: 20px 24px calc(var(--desktop-nav-h) + 24px);
        grid-template-columns: repeat(12, minmax(0, 1fr));
        align-items: start;
        gap: 14px;
    }

    .trade-account-card {
        grid-column: 1 / span 5;
        position: sticky;
        top: 84px;
    }

    .trade-zone-switch,
    .trade-market-chip-list,
    .trade-quote-card,
    .trade-kline-card,
    .trade-timeframe-switch,
    .trade-action-panel {
        grid-column: 6 / -1;
    }

    .support-shell {
        max-width: var(--desktop-content-max);
        margin: 0 auto;
        padding: 20px 24px calc(var(--desktop-nav-h) + 24px);
        grid-template-columns: 340px minmax(0, 1fr);
        grid-template-areas:
            "hero hero"
            "category content";
        align-items: start;
        gap: 14px;
    }

    .support-hero {
        grid-area: hero;
    }

    .support-category-section {
        grid-area: category;
        position: sticky;
        top: 20px;
    }

    .support-content-section {
        grid-area: content;
    }

    .support-category-grid {
        grid-template-columns: 1fr;
    }

    .event-content {
        padding: 0 24px;
        margin-top: -42px;
    }

    .event-main {
        padding: 20px 24px calc(var(--desktop-nav-h) + 24px);
        grid-template-columns: 360px minmax(0, 1fr);
        align-items: start;
    }

    .event-my-stats {
        position: sticky;
        top: 20px;
    }

    .message-body {
        max-width: var(--desktop-content-max);
        margin: 0 auto;
        padding: 16px 24px calc(var(--desktop-nav-h) + 24px);
    }

    .profile-center-page {
        max-width: var(--desktop-content-max);
        margin: 0 auto;
        padding: 20px 24px calc(var(--desktop-nav-h) + 24px);
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 14px;
    }

    .profile-center-top,
    .profile-center-user,
    .profile-center-asset {
        grid-column: 1 / span 8;
    }

    .profile-center-page > section:nth-of-type(3),
    .profile-center-page > section:nth-of-type(4) {
        grid-column: 9 / -1;
    }

    .profile-center-page > section:nth-of-type(5) {
        grid-column: 1 / -1;
    }

    .profile-center-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

/* profile center: wireframe-like 2x2 asset actions layout */
.profile-center-page .profile-center-asset {
    border-radius: 12px;
    border: 1px solid rgba(128, 165, 211, 0.42);
    background: linear-gradient(180deg, rgba(9, 22, 39, 0.9), rgba(7, 18, 32, 0.94));
    box-shadow: 0 6px 14px rgba(2, 9, 18, 0.34);
    padding: 14px 12px 12px;
}

.profile-center-page .profile-center-asset .asset-title {
    margin-bottom: 6px;
    color: #dce9f9;
    font-size: 20px;
    font-weight: 500;
}

.profile-center-page .profile-center-total-row {
    margin-bottom: 14px;
    gap: 8px;
}

.profile-center-page .profile-center-asset .asset-total {
    color: #f3f8ff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.05;
}

.profile-center-page .profile-center-unit {
    color: #d3e4f7;
    font-size: 20px;
    font-weight: 700;
}

.profile-center-page .profile-center-stat-grid {
    gap: 10px;
}

.profile-center-page .profile-center-stat {
    min-height: 74px;
    border-radius: 6px;
    border: 1px solid rgba(145, 181, 223, 0.48);
    background: rgba(8, 18, 30, 0.46);
    padding: 8px 8px 7px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile-center-page .profile-center-stat-label {
    color: #dbe8f8;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.profile-center-page .profile-center-stat-val {
    margin-top: 8px;
    color: #ffffff;
    font-size: 20px;
    font-family: var(--font-mono);
    font-weight: 700;
    line-height: 1.05;
}

.profile-center-page .profile-center-actions {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(126, 166, 209, 0.22);
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 10px;
}

.profile-center-page .profile-center-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.profile-center-page .profile-center-actions .action-btn,
.profile-center-page .profile-center-actions .profile-transfer-btn {
    min-height: 44px;
    border-radius: 4px;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
}

.profile-center-page .profile-center-actions .action-btn.deposit {
    border: 1px solid rgba(100, 164, 238, 0.9) !important;
    background: linear-gradient(135deg, #3f90ef, #2e74cf) !important;
    color: #f4f8ff !important;
}

.profile-center-page .profile-center-actions .action-btn.withdraw {
    border: 1px solid rgba(125, 167, 213, 0.7) !important;
    background: linear-gradient(180deg, rgba(17, 41, 70, 0.94), rgba(12, 31, 54, 0.94)) !important;
    color: #d8e8fb !important;
}

.profile-center-page .profile-center-action-row-secondary .action-btn {
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(126, 166, 209, 0.34) !important;
    background: linear-gradient(180deg, rgba(10, 24, 42, 0.72), rgba(8, 19, 34, 0.78)) !important;
    color: #9fbad8 !important;
    font-size: 13px;
    font-weight: 500;
    justify-content: flex-start;
    padding: 0 12px;
    gap: 6px;
}

.profile-center-page .profile-center-action-row-secondary .action-btn i {
    display: inline-flex;
    font-size: 13px;
    color: #8fb2da;
    opacity: 0.9;
}

.profile-center-page .profile-center-action-row-secondary .action-btn:hover {
    border-color: rgba(145, 183, 224, 0.46) !important;
    filter: brightness(1.03);
}

.profile-center-page .profile-node-btn {
    min-height: 22px;
    padding: 0 8px;
    border-color: rgba(101, 136, 176, 0.34);
    background: rgba(9, 24, 42, 0.46);
    color: #7e95b1;
    font-size: 11px;
}

.profile-center-page .profile-node-grid {
    gap: 7px;
}

.profile-center-page .profile-node-card {
    border-radius: 10px;
    padding: 8px 9px;
}

.profile-center-page .profile-node-value {
    margin-top: 3px;
    font-size: 20px;
}

.profile-center-page .profile-node-sub {
    margin-top: 4px;
    font-size: 11px;
}

.profile-center-page #btn-upgrade-vip .menu-meta {
    color: #6f86a4;
}

.profile-center-page #profile-fee-rate {
    color: rgba(140, 163, 189, 0.72);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
}

@media (max-width: 768px) {
    .profile-center-page .profile-center-asset .asset-title {
        font-size: 17px;
    }

    .profile-center-page .profile-center-asset .asset-total {
        font-size: 28px;
    }

    .profile-center-page .profile-center-unit {
        font-size: 17px;
    }

    .profile-center-page .profile-center-stat-label {
        font-size: 12px;
    }

    .profile-center-page .profile-center-stat-val {
        font-size: 17px;
    }

    .profile-center-page .profile-center-actions .action-btn,
    .profile-center-page .profile-center-actions .profile-transfer-btn {
        font-size: 15px;
    }

    .profile-center-page .profile-center-action-row-secondary .action-btn {
        min-height: 36px;
        font-size: 13px;
    }
}
