body {
    margin: 0;
    font-family: "Microsoft YaHei", sans-serif;
    background: #b7d8f7;
    color: #111;
}

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

.portal-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100dvh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #b7d8f7;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
}

.portal-main {
    flex: 1;
    min-height: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.portal-main::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.portal-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 120px 1fr 104px;
    align-items: center;
    padding: 10px 16px;
    background: #fff;
    position: sticky;
}

.portal-brand img {
    width: 88px;
    height: 34px;
    object-fit: contain;
}

.portal-lang-select {
    width: 104px;
    height: 34px;
    border: 1px solid #dbe5f5;
    border-radius: 10px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    font-size: 13px;
    color: #1f2937;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0 28px 0 10px;
    line-height: 32px;
    justify-self: end;
    text-align: left;
    cursor: pointer;
}

.portal-lang-select:hover,
.login-lang-select:hover,
.bind-input .profile-lang-select:hover {
    border-color: #9cb8e8;
}

.portal-lang-select:focus,
.login-lang-select:focus,
.bind-input .profile-lang-select:focus {
    border-color: #4f8ff7;
    box-shadow: 0 0 0 3px rgba(79, 143, 247, 0.16);
}

.portal-brand span,
.portal-title,
.portal-lang-select,
.portal-tabbar b,
.hero-banner,
.quick-grid a,
.market-card strong,
.seller-action,
.primary-button,
.auth-card h2,
.profile-info h3,
.wallet-row strong,
.menu-list a,
.order-tabs a,
.order-header b {
    font-weight: 400;
}

/* Modern login */
.login-modern {
    min-height: 100vh;
    background: #b7d8f7;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding-top: 86px;
}
.login-top-actions {
    position: absolute;
    top: 24px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.login-lang-select {
    height: 34px;
    min-width: 132px;
    padding: 0 30px 0 12px;
    border: 1px solid #dbe5f5;
    border-radius: 10px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    color: #111827;
    font-size: 13px;
    line-height: 32px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.95);
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.login-support-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.login-lang-wrap {
    padding: 6px 10px;
}
.login-panel {
    width: min(390px, calc(100vw - 38px));
    background: transparent;
    border-radius: 0;
    padding: 22px 6px;
    box-shadow: none;
    text-align: center;
}
.login-logo img {
    width: 116px;
    height: 116px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
}
.login-logo span{ font-size: 28px; font-weight: 800; letter-spacing: 2px;}
.login-panel h2 { margin: 18px 0 6px; font-size: 42px; }
.login-panel .subtitle { margin: 0 0 26px; color: #555; font-size: 16px; }
.login-form .input-line {
    display: grid; grid-template-columns: 28px 1fr; gap: 10px;
    align-items: center; padding: 16px 14px; margin: 12px 0;
    border-radius: 12px; background: #fff; border: 0;
    box-shadow: 0 6px 12px rgba(0,0,0,.06);
}
.login-form .icon { text-align: center; }
.login-form input { border: 0; outline: none; background: transparent; font-size: 14px; }
.login-form .form-help {
    display: flex; align-items: center; justify-content: space-between;
    margin: 16px 2px 18px; font-size: 14px; color: #222;
}
.login-button {
    width: 100%; height: 48px; border: 0; border-radius: 12px;
    background: #111; color: #fff; font-size: 16px; cursor: pointer;
}
.login-panel .form-bottom { margin-top: 16px; font-size: 14px; }
.login-panel .form-help a {
    text-decoration: underline;
    font-weight: 600;
}
.login-loading-mask {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.25);
    display: none;
    align-items: center;
    justify-content: center;
}
.login-loading-mask.show {
    display: flex;
}
.login-loading-mask img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}
.register-modern {
    min-height: 100vh;
    padding: 8px 12px 24px;
}
.register-header {
    height: 48px;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
}
.register-header h2 {
    margin: 0;
    text-align: center;
    font-size: 36px;
}
.register-back {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.register-logo {
    width: 116px;
    height: 116px;
    margin: 10px auto 22px;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.register-logo img {
    width: 88px;
    height: 88px;
    object-fit: contain;
}
.register-logo span {
    font-size: 28px;
}
.register-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0 auto 12px;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
}
.register-mode-btn {
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #111;
    font-size: 14px;
}
.register-mode-btn.active {
    background: #e8e8e8;
    color: #111;
}
.register-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.register-input {
    display: grid;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 12px rgba(0,0,0,.06);
    padding: 0 12px;
}
.register-input-phone {
    grid-template-columns: 26px auto minmax(0, 1fr);
}
.register-input-simple {
    grid-template-columns: 26px minmax(0, 1fr);
}
.register-input input {
    border: 0;
    outline: none;
    width: 100%;
    font-size: 14px;
    background: transparent;
}
.register-country-code {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 30px;
    background: #fff;
    font-size: 13px;
    padding: 0 6px;
}
.register-submit,
.register-return {
    height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-family: inherit;
    font-weight: 400;
    color: #111;
    background: #f8fbff;
}
.register-submit {
    border: 0;
}
.register-return {
    text-decoration: none;
}
@media (min-width: 992px) {
    .login-panel {
        margin-top: 72px;
    }
}

.portal-title {
    text-align: center;
}


.portal-main-login { padding: 0; }
.portal-main-service { padding: 0; }
.portal-main-doc { padding: 12px 0px 96px !important; }
.portal-main-invite { padding: 0; }
.portal-main-assets { padding: 0 0 96px; }
.portal-main-bind { padding: 0 0 96px; }
.portal-main-tabbar-safe { padding-bottom: 0; }

.assets-page {
    min-height: 100vh;
    background: #b7d8f7;
}
.assets-header {
    height: 48px;
    background: #fff;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    text-align: center;
    padding: 0 16px;
}
.assets-header h2 {
    margin: 0;
    font-size: 20px;
}
.assets-back {
    width: 30px;
    height: 30px;
    line-height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    justify-self: center;
    font-size: 22px;
}
.assets-balance-card,
.assets-detail-card {
   
    border-radius: 14px;
    background: #fff;
    padding: 16px;
}
.assets-balance-card {
    margin-top: 12px;
}
.assets-detail-card {
    margin-top: 12px;
}
.assets-balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.assets-balance-card p {
    margin: 0;
    font-size: 14px;
}
.assets-balance-card strong {
    display: block;
    margin-top: 8px;
    font-size: 36px;
}
.assets-recharge-btn {
    min-width: 132px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f5f5f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.assets-detail-card h3 {
    margin: 0;
    font-size: 18px;
}
.assets-detail-list {
    margin-top: 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.assets-detail-list article {
    background: #fafafa;
    border-radius: 12px;
    min-height: 66px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
}
.assets-detail-list article span {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f0f0f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.assets-detail-list article p {
    margin: 0;
    font-size: 14px;
}
.assets-detail-list article strong {
    font-size: 18px;
}

.team-page .wallet-card {
    margin-top: 12px;
}

.team-page .menu-list {
    margin-top: 12px;
}

.mine-page {
    min-height: 100vh;
    background: #b7d8f7;
    padding-bottom: 96px;
}
.mine-header {
    height: 48px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.mine-profile-card,
.mine-wallet-card,
.mine-menu-list {
    margin: 10px 0 0;
    border-radius: 14px;
    background: #fff;
}
.mine-profile-card {
    padding: 12px;
}
.mine-profile-card .profile-info span {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 8px;
    background: #f2f2f2;
    padding: 0 8px;
    font-size: 13px;
}
.mine-profile-card .profile-info span.mine-kyc-approved {
    background: #16a34a;
    color: #fff;
}
.mine-profile-card .profile-info span.mine-kyc-rejected {
    background: #dc2626;
    color: #fff;
}
.mine-profile-card .profile-info span.mine-kyc-pending {
    background: #facc15;
    color: #111;
}
.mine-arrow {
    color: #777;
    font-size: 24px;
}
.mine-wallet-card {
    padding: 2px 12px;
}
.mine-wallet-card .wallet-row {
    justify-content: space-between;
    gap: 10px;
}
.mine-wallet-card .wallet-row > div span {
    display: block;
}
.mine-wallet-card .wallet-row > div strong {
    display: block;
    margin-top: 4px;
}
.mine-mini-btn {
    min-width: 82px;
    height: 30px;
    border-radius: 14px;
    border: 1px solid #d6d6d6;
    background: #f3f3f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.mine-mini-btn.dark {
    border-color: #111;
    background: #111;
    color: #fff;
}
.mine-right-hint {
    font-size: 14px;
}
.mine-menu-list {
    padding: 4px 12px;
}
.mine-menu-list a {
    gap: 10px;
}
.mine-menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f0f0f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.mine-menu-list b {
    flex: 1;
    font-weight: 400;
}
.mine-menu-list i {
    color: #b0b0b0;
    font-style: normal;
}

.withdraw-account-card {
    margin-top: 24px;
}

.bind-page {
    min-height: 100vh;
    background: #b7d8f7;
}
.bind-header {
    height: 48px;
    background: #fff;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    text-align: center;
}
.bind-header h2 {
    margin: 0;
    font-size: 20px;
}
.bind-back {
    width: 30px;
    height: 30px;
    line-height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    justify-self: center;
    font-size: 22px;
}
.bind-card {
    margin: 0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.bind-page .bind-card:first-of-type {
    margin-top: 16px;
}
.bind-card + .bind-card {
    margin-top: 16px;
}
.bind-row,
.bind-input {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
}
.bind-row + .bind-row,
.bind-input + .bind-input {
    border-top: 1px solid #eef2f7;
}
.bind-row span,
.bind-input span {
    font-size: 14px;
}
.bind-row strong {
    font-weight: 400;
    font-size: 14px;
}
.bind-input input {
    border: 1px solid #dde4ee;
    outline: none;
    text-align: right;
    width: 56%;
    font-size: 14px;
    background: #f8fafc;
    border-radius: 8px;
    min-height: 30px;
    padding: 0 10px;
}
.bind-input input:focus {
    border-color: #93c5fd;
    background: #fff;
}
.bind-form .primary-button {
    margin: 16px 8px 0;
    width: calc(100% - 16px);
}
.bind-tip {
    margin: 16px 8px 0;
    border-radius: 8px;
    min-height: 44px;
    background: rgba(191, 227, 255, .75);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    color: #4b5563;
    padding: 0 12px;
}

.profile-edit-form .primary-button,
.profile-password-form .primary-button {
    margin: 16px 8px 0;
    width: calc(100% - 16px);
}

.profile-avatar-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #bbf7d0;
}

.profile-link-row strong {
    color: #666;
}

.profile-lang-select {
    width: 56%;
    max-width: 180px;
    height: 34px;
    padding: 0 30px 0 12px;
    text-align: left;
    border: 1px solid #dbe5f5;
    border-radius: 10px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    font-size: 13px;
    color: #1f2937;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.lang-select-wrap {
    position: relative;
    display: inline-block;
}

.lang-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.lang-select-trigger {
    height: 34px;
    border: 1px solid #dbe5f5;
    border-radius: 10px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding: 0 30px 0 10px;
    font-size: 13px;
    color: #1f2937;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    text-align: left;
}

.lang-select-wrap-portal .lang-select-trigger {
    width: 104px;
}

.lang-select-wrap-portal {
    justify-self: end;
}

.lang-select-wrap-login .lang-select-trigger {
    min-width: 132px;
    padding-left: 12px;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.lang-select-wrap-login .lang-select-trigger:focus,
.lang-select-wrap-login .lang-select-trigger:focus-visible,
.lang-select-wrap-login.open .lang-select-trigger {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.lang-select-wrap-profile .lang-select-trigger {
    width: 100%;
    max-width: 180px;
    padding-left: 12px;
}

.lang-select-trigger:hover {
    border-color: #9cb8e8;
}

.lang-select-trigger:focus {
    outline: none;
    border-color: #4f8ff7;
    box-shadow: 0 0 0 3px rgba(79, 143, 247, 0.16);
}

.lang-select-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    padding: 6px 0;
    z-index: 120;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.lang-select-wrap.open .lang-select-menu {
    display: block;
}

.lang-select-item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 8px 12px;
    font-size: 13px;
    color: #1f2937;
    cursor: pointer;
}

.lang-select-item:hover {
    background: #f3f6fb;
}

.lang-select-item.active {
    background: #eef4ff;
    color: #1d4ed8;
}

.service-page {
    min-height: 100vh;
    background: #b7d8f7;
}
.service-header {
    height: 48px;
    background: #fff;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    text-align: center;
}
.service-header h2 {
    margin: 0;
    font-size: 24px;
}
.service-back {
    width: 30px;
    height: 30px;
    line-height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    justify-self: center;
    font-size: 22px;
}

.recharge-modern-header .service-back {
    justify-self: start;
    margin-left: 4px;
}
.service-body {
    padding: 40px 18px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.service-avatar {
    width: 212px;
    height: 212px;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 102px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}
.service-avatar img {
    width: 182px;
    height: 182px;
    object-fit: contain;
}
.service-contact-btn {
    height: 52px;
    min-width: 224px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff, #eef6ff);
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #dbeafe;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.16);
}

.hall-page {
    padding-top: 2px;
}

.hall-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 10px;
}

.hall-title-row h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 1px;
}

.hall-title-icon {
    position: absolute;
    right: 4px;
    font-size: 24px;
}

.hall-balance {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    padding: 18px 16px;
    text-align: center;
    margin-bottom: 14px;
}

.hall-balance .line {
    font-size: 14px;
    margin: 6px 0;
}

.hall-balance .num {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 400;
}

.hall-buy-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 18px;
}

.hall-broadcast {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14px;
}

.hall-seller-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hall-seller-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: none;
    padding: 14px 14px 12px;
}

.hall-seller-item .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.hall-seller-item .seller {
    font-size: 15px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hall-seller-item .limit {
    font-size: 13px;
    color: #111;
}

.hall-seller-item .sell-btn {
    min-width: 94px;
    height: 36px;
    border-radius: 18px;
    background: #000;
    color: #fff;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hall-seller-item .split {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0 10px;
}

.hall-seller-item .metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hall-seller-item .metrics strong {
    display: block;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.hall-seller-item .metrics span {
    font-size: 12px;
    color: #666;
}

.trade-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.trade-modal-card {
    width: min(440px, 100%);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.trade-modal-card h3 {
    margin: 0;
    text-align: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.trade-modal-card label {
    display: block;
    padding: 14px 16px 10px;
}

.trade-modal-card label input {
    width: 100%;
    height: 46px;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 0 12px;
    box-sizing: border-box;
    font-size: 14px;
}

.trade-modal-card p {
    margin: 0;
    padding: 0 16px 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.trade-modal-card p b {
    color: #111;
}

.trade-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 16px 16px;
}

.trade-modal-actions button {
    height: 42px;
    border-radius: 12px;
    border: 0;
    background: #111;
    color: #fff;
    font-size: 14px;
}

.trade-modal-actions button.light {
    background: #f3f4f6;
    color: #111;
}

.interest-wallet-modal-card {
    border-radius: 14px;
}

.interest-plan-grid {
    padding: 14px 16px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.interest-plan-item {
    height: 46px;
    border-radius: 10px;
    border: 1px solid #efefef;
    background: #f8f8f8;
    font-size: 14px;
    color: #111;
}

.interest-plan-item.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.hero-card,
.panel,
.seller-card,
.order-card,
.form-card,
.profile-card,
.wallet-card,
.notice-bar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.hero-card {
    position: relative;
    padding: 0;
    margin-top: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 10px;
}

.hero-swiper {
    border-radius: inherit;
    overflow: hidden;
    background: #fff;
}

.hero-slide {
    display: none;
}

.hero-slide:first-child {
    display: block;
}

.hero-slide img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    margin: 0;
    z-index: 2;
}

.hero-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.hero-dots span.active {
    background: #111;
}

.hero-banner {
    height: 160px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b223d, #4f6d8e);
    color: #fff;
    font-size: 48px;
    letter-spacing: 4px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.quick-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    padding: 8px;
    text-align: center;
    border-radius: 14px;
    background: #fff;
    font-size: 14px;
}
.quick-grid-home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: initial;
}
.quick-grid-home a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto;
    min-width: 0;
    min-height: 84px;
    padding: 6px 4px;
    gap: 2px;
    font-size: 12px;
}
.quick-grid-home .quick-icon {
    display: block;
    font-size: 18px;
    line-height: 1;
}
.quick-grid-home b {
    display: block;
    width: 100%;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    font-weight: 400;
    line-height: 1.2;
}

.notice-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px 16px;
    margin-right: 2px;
    margin-bottom: 16px;
}

.portal-toast-mask {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.portal-toast-box {
    min-width: 220px;
    max-width: 80vw;
    padding: 14px 18px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    text-align: center;
    font-size: 14px;
}

.market-grid.compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-right: 2px;
    margin-bottom: 16px;
}
.coin-list-board {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-right: 2px;
    margin-bottom: 16px;
}
.coin-list-item {
    background: #fff;
    border-radius: 12px;
    min-height: 66px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 56px auto;
    align-items: center;
    column-gap: 10px;
}
.coin-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0ecff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    overflow: hidden;
}
.coin-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.coin-meta b,
.coin-meta span,
.coin-value b,
.coin-value span {
    display: block;
    line-height: 1.15;
}
.coin-meta b {
    font-size: 15px;
}
.coin-meta span {
    font-size: 11px;
    color: #777;
    margin-top: 2px;
}
.coin-mini-spark {
    width: 52px;
    height: 12px;
}
.coin-value {
    text-align: right;
}
.coin-value b {
    font-size: 14px;
}
.coin-value span {
    margin-top: 2px;
    font-size: 14px;
}
.coin-value .up {
    color: #16a34a;
}
.coin-value .down {
    color: #ef4444;
}

.market-card {
    padding: 14px;
    border-radius: 14px;
    background: #fff;
}
.market-coin {
    display: flex;
    align-items: center;
    gap: 10px;
}
.coin-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eef2ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.coin-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.coin-logo i,
.coin-dot i {
    font-style: normal;
    font-size: 12px;
    color: #334155;
}

.market-head,
.seller-top,
.wallet-row,
.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.market-head h4,
.profile-info h3,
.auth-card h2 {
    margin: 0;
}

.market-head p,
.market-body,
.seller-limit,
.order-body p,
.profile-info span,
.menu-list .list-item span {
    margin: 0;
    color: #666;
}

.market-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 14px;
}

.badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.badge.up {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.badge.down {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.sparkline {
    width: 56px;
    height: 16px;
}

.doc-panel {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 10px 0 12px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.doc-header {
    text-align: center;
    font-size: 22px;
    padding: 8px 16px 10px;
}

.doc-divider {
    height: 1px;
    background: #ececec;
    margin: 0 16px 10px;
}

.doc-body {
    background: rgba(248, 248, 248, 0.95);
    border-radius: 10px;
    margin: 0;
    padding: 12px 16px;
}

.doc-content {
    min-height: 220px;
    line-height: 1.7;
    word-break: break-word;
    display: flow-root;
}

.doc-content p {
    min-height: 1em;
    margin: 0 0 12px;
}

.doc-content p:last-child {
    margin-bottom: 0;
}

.invite-page {
    min-height: 100vh;
    background: #b7d8f7;
}
.invite-header {
    height: 48px;
    background: #fff;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    text-align: center;
}
.invite-header h2 {
    margin: 0;
    font-size: 18px;
}
.invite-back {
    width: 30px;
    height: 30px;
    line-height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    justify-self: center;
    font-size: 22px;
}
.invite-card {
    margin-top: 12px;
    border-radius: 14px;
    background: #fff;
    padding: 16px;
}
.invite-top {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}
.invite-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e9f8eb;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.invite-top h3 {
    margin: 0 0 4px;
    font-size: 16px;
}
.invite-top p {
    margin: 0;
    color: #666;
    font-size: 14px;
}
.invite-code-box {
    border: 1px solid #efefef;
    border-radius: 12px;
    min-height: 74px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.invite-code-box strong {
    font-size: 22px;
    letter-spacing: 1px;
}
.invite-code-box button {
    border: 0;
    border-radius: 14px;
    background: #111;
    color: #fff;
    min-width: 92px;
    height: 42px;
    font-size: 16px;
}

.notice-list .panel,
.seller-card,
.order-card,
.wallet-card,
.profile-card,
.menu-list a,
.menu-list .list-item,
.form-card {
    margin-bottom: 16px;
}

.notice-list .panel,
.seller-card,
.order-card,
.profile-card,
.wallet-card,
.form-card,
.balance-panel {
    padding: 16px;
}

.buy-box {
    margin-bottom: 16px;
}

.cta-button,
.seller-action,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: #111;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.primary-button.light,
.secondary-button {
    background: #e5e7eb;
    color: #111;
}

.seller-action {
    width: auto;
    min-height: 40px;
    padding: 0 18px;
}

.seller-action.muted {
    background: #d1d5db;
    color: #111;
}

.seller-limit {
    margin: 12px 0;
}

.seller-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.seller-metrics strong,
.order-body p {
    display: block;
    margin-bottom: 4px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.record-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #eef2f7;
}

.order-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-top: 8px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 6px;
}

.order-tabs a {
    padding: 12px 0;
    text-align: center;
    border-radius: 10px;
    background: transparent;
    font-size: 14px;
}

.order-tabs a.active {
    background: #111;
    color: #fff;
}

.portal-tabbar a.active {
    background: #eef2f7;
    color: #111;
}

.order-card {
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    margin-bottom: 14px;
    border: 1px solid #cfe8ff;
    background: #fff;
    box-shadow: none;
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
    background: #efefef;
}

.order-no-text {
    font-size: 13px;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-no-text strong {
    font-weight: 700;
}

.order-no-value {
    font-size: 12px;
}

.order-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.order-divider {
    height: 1px;
    background: #dcefff;
    margin: 0 0 8px;
}

.order-body {
    padding: 8px 18px 16px;
}

.order-body p {
    margin: 0;
    color: #111;
    font-size: 14px;
    line-height: 1.45;
}

.order-body p + p,
.order-body .order-row + p,
.order-body p + .order-row {
    margin-top: 8px;
}

.order-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.order-status-pill {
    background: #e9e9e9;
    border-radius: 12px;
    min-width: 0;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0 7px;
    white-space: nowrap;
}

.order-status-pill.status-completed {
    background: #e5e7eb;
}

.order-status-pill.status-matching {
    background: #ffe8b8;
}

.order-status-pill.status-cancelled {
    background: #f8d7da;
}

.order-revenue {
    font-size: 14px;
}

.order-revenue strong {
    font-size: 15px;
    font-weight: 700;
}

.order-revenue-currency {
    margin-left: 5px;
    font-size: 14px;
}

.order-amount {
    text-align: left;
}

.order-cancel-inline .secondary-button {
    min-height: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 12px;
    padding: 0 6px;
}

.order-cancel-inline {
    display: none;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
}

.mine-user-meta {
    margin-top: 4px;
    color: #666;
    font-size: 13px;
}

.profile-info {
    flex: 1;
}

.arrow-link,
.secondary-link {
    color: #2563eb;
}

.wallet-card .wallet-row + .wallet-row,
.menu-list a + a,
.menu-list .list-item + .list-item,
.form-card label + label {
    border-top: 1px solid #eef2f7;
}

.wallet-row,
.menu-list a,
.menu-list .list-item {
    padding: 12px 0;
}

.menu-list a,
.menu-list .list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-card {
    padding: 0 16px;
}

.form-card label {
    display: block;
    padding: 14px 0;
}

.form-card label span {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
}

.form-card input,
.portal-select {
    width: 100%;
    border: 0;
    outline: none;
    font-size: 15px;
    background: transparent;
}

.kyc-form-modern .kyc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.kyc-form-modern .kyc-grid label {
    padding: 0;
    min-width: 0;
}

.kyc-form-modern .kyc-grid label span {
    display: block;
    margin-bottom: 6px;
}

.kyc-form-modern .kyc-grid input {
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.kyc-form-modern .kyc-grid select {
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.kyc-form-modern .kyc-grid input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.kyc-form-modern .kyc-grid select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.kyc-form-modern .kyc-span-2 {
    grid-column: span 2;
}

.kyc-upload-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.kyc-upload-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    background: #f8fafc;
}

.kyc-upload-card b {
    display: block;
    margin-bottom: 8px;
}

.kyc-upload-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    margin-bottom: 8px;
}

.kyc-upload-card input[type=file] {
    display: none;
}

.kyc-upload-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 13px;
}

@media (max-width: 680px) {
    .kyc-form-modern .kyc-grid,
    .kyc-upload-grid {
        grid-template-columns: 1fr;
    }
    .kyc-form-modern .kyc-span-2 {
        grid-column: span 1;
    }
}

.portal-select {
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.auth-card {
    margin-top: 22px;
}

.auth-card .primary-button,
.form-card .primary-button {
    margin: 18px 0;
}

.empty-panel {
    padding: 32px 0;
    text-align: center;
    color: #888;
}

.address-card {
    padding: 16px 0;
}

.address-card + .address-card {
    border-top: 1px solid #eef2f7;
}

.address-card h3,
.address-card p {
    margin: 0 0 10px;
}

.address-qrcode {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

.recharge-modern-page {
    padding: 0 12px 14px;
    background: #b7d8f7;
    box-shadow: none;
    border-radius: 0;
}

.withdraw-modern-page {
    padding: 0 0 14px;
}

.recharge-modern-header {
    height: 56px;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    text-align: center;
    padding: 0 6px;
    margin: 0 0 14px;
    background: #fff;
    border-radius: 16px;
}

.recharge-modern-header h2 {
    margin: 0;
    font-size: 22px;
}

.recharge-record-entry {
    width: 34px;
    height: 34px;
    border-radius: 17px;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    margin-right: 4px;
}

.recharge-modern-form {
    display: grid;
    gap: 12px;
}

.recharge-modern-item {
    display: block;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
}

.recharge-modern-item > span {
    display: block;
    margin-bottom: 10px;
}

.recharge-modern-item .portal-select {
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 38px 0 12px;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, transparent 50%, #9ca3af 50%),
        linear-gradient(135deg, #9ca3af 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 19px,
        calc(100% - 12px) 19px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.recharge-address-row {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 8px;
}

.recharge-address-row input {
    height: 42px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.recharge-amount-row {
    display: grid;
    grid-template-columns: minmax(160px, 52%) auto;
    gap: 10px;
    align-items: center;
}

.recharge-amount-row input {
    height: 42px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.recharge-amount-approx {
    color: #6b7280;
    font-size: 14px;
    white-space: nowrap;
}

.recharge-copy-btn {
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
}

.recharge-upload-box {
    position: relative;
    width: 132px;
    height: 132px;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    overflow: hidden;
}

.recharge-upload-box b {
    font-size: 38px;
    color: #6b7280;
    font-weight: 400;
}

.recharge-upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recharge-upload-box input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.recharge-records-page .order-list {
    margin-top: 8px;
}

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

.recharge-records-page .order-card {
    border: 1px solid #dbeafe;
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.08);
    margin-bottom: 0;
}

.recharge-records-page .order-header {
    background: #eaf4ff;
    border-bottom: 1px solid #e5eefb;
    padding: 10px 14px;
}

.recharge-records-page .order-header b {
    font-size: 13px;
}

.recharge-records-page .order-status {
    height: 28px;
    min-width: 78px;
    padding: 0 10px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.recharge-records-page .order-status.wait {
    background: #fef3c7;
    color: #92400e;
}

.recharge-records-page .order-status.done {
    background: #dcfce7;
    color: #166534;
}

.recharge-records-page .order-status.cancel {
    background: #fee2e2;
    color: #991b1b;
}

.recharge-record-body {
    display: grid;
    gap: 8px;
}

.recharge-record-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 8px;
    align-items: start;
}

.recharge-record-row span {
    color: #6b7280;
    font-size: 12px;
}

.recharge-record-row b {
    margin: 0;
    font-size: 13px;
    color: #111827;
    font-weight: 500;
}

.recharge-break {
    word-break: break-all;
}

.portal-tabbar {
    position: sticky;
    left: auto;
    bottom: env(safe-area-inset-bottom);
    transform: none;
    width: 100%;
    box-sizing: border-box;
    margin: 6px 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 12px 12px 0 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.portal-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    border-radius: 16px;
    color: #666;
}

.portal-tabbar .tab-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.portal-tabbar .tab-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

@media (max-width: 360px) {
    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .market-grid.compact {
        grid-template-columns: 1fr;
    }
}
