@font-face { font-family: "bootstrap-icons"; src: url("/app/assets/bootstrap-icons.woff2") format("woff2"); font-display: block; }

:root {
  --primary: #335aff;
  --primary-dark: #2448dd;
  --primary-soft: #edf2ff;
  --canvas: #f2f6fd;
  --surface: #fff;
  --ink: #171d2a;
  --muted: #7a8497;
  --line: #e6ebf3;
  --success: #13b687;
  --success-soft: #e9f9f4;
  --warning: #f3a927;
  --warning-soft: #fff7e5;
  --danger: #ef5b64;
  --danger-soft: #fff0f1;
  --header-height: 61px;
  --sidebar-width: 220px;
  --shadow: 0 12px 34px rgba(44, 77, 136, .08);
}

/* Purchase locations, message center and invoices */
.notification-trigger { position: relative; }
.unread-badge { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid #fff; border-radius: 10px; display: grid; place-items: center; background: #ff4d5d; color: #fff; font-size: 9px; font-weight: 800; }
.location-state { margin: 10px 0 0; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.location-state.error { color: #b64545; }
.location-state button { padding: 0; border: 0; background: transparent; color: var(--primary); cursor: pointer; font: inherit; }
.message-center { padding: 26px; }
.message-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.message-heading h1, .message-heading p { margin: 0; }
.message-heading p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.message-tabs { margin: 22px 0 16px; padding-bottom: 1px; display: flex; gap: 24px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.message-tabs button { flex: none; padding: 11px 1px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.message-tabs button.active { border-color: var(--primary); color: var(--primary); font-weight: 700; }
.notification-list { display: grid; gap: 11px; }
.notification-card { position: relative; padding: 18px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: default; }
.notification-card.unread { border-color: #cfd9ff; background: #f8faff; cursor: pointer; }
.notification-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #edf2ff; color: var(--primary); font-size: 18px; }
.notification-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.notification-title strong { font-size: 15px; }
.notification-title span, .notification-content > p { color: var(--muted); font-size: 12px; }
.notification-content > p { margin: 8px 0 0; line-height: 1.65; }
.notification-dot { position: absolute; top: 18px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: #ff4d5d; }
.notification-detail { margin: 13px 0 0; padding: 12px 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 18px; background: #f7f8fb; border-radius: 7px; }
.notification-detail div { min-width: 0; }
.notification-detail dt, .notification-detail dd { margin: 0; font-size: 11px; }
.notification-detail dt { color: var(--muted); }
.notification-detail dd { margin-top: 3px; overflow-wrap: anywhere; color: var(--ink); }
.client-pager { margin-top: 18px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--muted); font-size: 12px; }
.invoice-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 18px; }
.invoice-layout > .section-card { padding: 24px; }
.invoice-order-list, .invoice-list { margin: 18px 0; display: grid; gap: 10px; }
.invoice-order-option { padding: 13px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.invoice-order-option:has(input:checked) { border-color: var(--primary); background: #f6f8ff; }
.invoice-order-option input { width: 17px; height: 17px; accent-color: var(--primary); }
.invoice-order-option span strong, .invoice-order-option span small { display: block; }
.invoice-order-option span small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.invoice-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.invoice-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.invoice-form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.invoice-form-grid label.full { grid-column: 1 / -1; }
.invoice-form-grid input, .invoice-form-grid select, .invoice-form-grid textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
.invoice-form > .primary-button { width: 100%; margin-top: 18px; }
.invoice-card { padding: 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; border: 1px solid var(--line); border-radius: 9px; }
.invoice-card > div:first-child { min-width: 0; }
.invoice-card strong, .invoice-card small { display: block; }
.invoice-card small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.invoice-card-side { flex: none; display: grid; justify-items: end; gap: 7px; }
.invoice-rejection { margin: 8px 0 0; color: #b64545; font-size: 11px; }
.compact-empty { padding-block: 24px; }

@media (max-width: 1050px) {
  .invoice-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .message-center, .invoice-layout > .section-card { padding: 17px; }
  .message-heading, .notification-title, .invoice-card { align-items: stretch; flex-direction: column; }
  .notification-detail { grid-template-columns: 1fr; }
  .invoice-form-grid { grid-template-columns: 1fr; }
  .invoice-form-grid label.full { grid-column: auto; }
  .invoice-card-side { justify-items: start; }
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: PingFangSC, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 14px; line-height: 1.5; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus { outline: none; }
button:focus-visible, summary:focus-visible { outline: 2px solid rgba(51,90,255,.45); outline-offset: 2px; }
a { color: inherit; }
.hidden { display: none !important; }
.business-hidden { display: none !important; }
.mobile-only { display: none !important; }
.mono { font-family: "SFMono-Regular", Consolas, monospace; }

.bi::before { display: inline-block; font-family: "bootstrap-icons" !important; font-style: normal; font-weight: 400 !important; line-height: 1; vertical-align: -.125em; -webkit-font-smoothing: antialiased; }
.bi-house-fill::before { content: "\f424"; }
.bi-cart3::before { content: "\f244"; }
.bi-globe2::before { content: "\f3ef"; }
.bi-wallet2::before { content: "\f615"; }
.bi-receipt::before { content: "\f50f"; }
.bi-people::before { content: "\f4d0"; }
.bi-person-circle::before { content: "\f4d7"; }
.bi-bell::before { content: "\f18a"; }
.bi-credit-card::before { content: "\f2dc"; }
.bi-arrow-repeat::before { content: "\f130"; }
.bi-search::before { content: "\f52a"; }
.bi-box-arrow-right::before { content: "\f1c3"; }
.bi-shield-check::before { content: "\f52f"; }
.bi-speedometer2::before { content: "\f580"; }
.bi-gift::before { content: "\f3ec"; }
.bi-chat-dots::before { content: "\f24a"; }
.bi-server::before { content: "\f52c"; }
.bi-box-seam::before { content: "\f1c7"; }
.bi-clock-history::before { content: "\f292"; }
.bi-chevron-right::before { content: "\f285"; }
.bi-chevron-left::before { content: "\f284"; }
.bi-chevron-down::before { content: "\f282"; }
.bi-list::before { content: "\f479"; }

.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand strong { color: #16347d; font-size: 21px; font-weight: 800; letter-spacing: .045em; }
.brand strong span { color: var(--primary); }
.brand small { margin-top: 6px; color: #8a94aa; font-size: 8px; letter-spacing: .45em; }

input, select { width: 100%; min-height: 42px; padding: 0 13px; border: 1px solid #dce2ec; border-radius: 5px; color: var(--ink); background: #fff; outline: none; transition: border .2s, box-shadow .2s; }
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(51, 90, 255, .1); }
input::placeholder { color: #b2bac7; }
.primary-button, .secondary-button, .outline-button, .danger-button, .light-button { min-height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: 5px; font-weight: 600; transition: .2s ease; }
.primary-button { color: #fff; background: var(--primary); }
.primary-button:hover { background: var(--primary-dark); }
.secondary-button, .outline-button { color: #445064; border-color: #dce2ec; background: #fff; }
.secondary-button:hover, .outline-button:hover { color: var(--primary); border-color: var(--primary); }
.danger-button { color: #fff; background: var(--danger); }
.light-button { min-width: 194px; color: #2756d5; background: #fff; font-size: 17px; }
.wide-button { width: 100%; }
.compact { min-height: 34px; padding: 0 14px; }
.icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; color: #28344b; border: 0; border-radius: 50%; background: transparent; }
.icon-button:hover { background: var(--primary-soft); color: var(--primary); }

.notice { margin: 0 0 16px; padding: 12px 15px; color: #a23d45; border: 1px solid #f1c9cd; border-radius: 5px; background: var(--danger-soft); }
.eyebrow { margin: 0 0 12px; color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.skeleton { min-height: 88px; border-radius: 6px; background: linear-gradient(90deg, #f1f4f8 25%, #f8fafc 38%, #f1f4f8 62%); background-size: 400% 100%; animation: shine 1.4s infinite; }
@keyframes shine { to { background-position: -100% 0; } }

/* Authentication */
.auth-shell { min-height: 100vh; background: #f5f8ff; }
.auth-header { height: 72px; padding: 0 clamp(24px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(222, 230, 244, .9); background: rgba(255,255,255,.96); }
.auth-header p { margin: 0; color: #6e7a90; font-size: 13px; }
.auth-header p i { margin-right: 7px; color: var(--primary); }
.auth-stage { min-height: calc(100vh - 72px); padding: 54px clamp(24px, 7vw, 120px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 430px); align-items: center; gap: clamp(48px, 9vw, 150px); background: linear-gradient(120deg, rgba(244,248,255,.2), rgba(230,240,255,.7)), url("/app/assets/hero-background.png") center / cover no-repeat; }
.auth-hero { max-width: 710px; color: #172c69; }
.auth-hero h1 { margin: 0; font-size: clamp(42px, 5.2vw, 72px); line-height: 1.1; letter-spacing: -.04em; }
.auth-hero > p:not(.eyebrow) { max-width: 640px; margin: 25px 0 34px; color: #5570a4; font-size: 17px; line-height: 1.9; }
.auth-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.auth-products div { min-height: 132px; padding: 20px; border: 1px solid rgba(255,255,255,.8); border-radius: 10px; background: rgba(255,255,255,.72); box-shadow: 0 14px 36px rgba(61,108,191,.08); }
.auth-products i, .auth-products strong, .auth-products small { display: block; }
.auth-products i { margin-bottom: 13px; color: var(--primary); font-size: 25px; }
.auth-products strong { font-size: 15px; }
.auth-products small { margin-top: 7px; color: #77859d; line-height: 1.65; }
.auth-card { padding: 34px; border: 1px solid #e0e7f1; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(41, 77, 142, .15); }
.auth-logo { display: none; margin-bottom: 26px; }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.auth-tab { padding: 13px 4px; color: #8390a4; border: 0; border-bottom: 2px solid transparent; background: transparent; }
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.auth-form { display: grid; gap: 17px; }
.auth-form label, .purchase-form label, .resource-filters label, .recharge-form > label { display: grid; gap: 8px; color: #3b4658; font-size: 13px; font-weight: 600; }
.inline-fields { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.auth-tip { margin: 20px 0 0; color: #9aa3b2; font-size: 12px; text-align: center; }
.legal-consent { grid-template-columns: auto minmax(0, 1fr) !important; align-items: flex-start; gap: 9px !important; color: #6f7b8f !important; font-size: 12px !important; font-weight: 400 !important; line-height: 1.65; }
.legal-consent input { width: 16px; min-height: 16px; margin: 2px 0 0; accent-color: var(--primary); }
.legal-consent a, .auth-legal-links a, .purchase-agreement a { color: var(--primary); text-decoration: none; }
.legal-consent a:hover, .auth-legal-links a:hover, .purchase-agreement a:hover { text-decoration: underline; }
.auth-legal-links { margin: 9px 0 0; display: flex; justify-content: center; gap: 8px; color: #98a2b2; font-size: 11px; }
.human-verification-dialog { width: min(390px, calc(100vw - 26px)); }
.human-verification-copy { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.human-puzzle { position: relative; width: 100%; overflow: hidden; border-radius: 7px; background: #e9eef8; user-select: none; }
.human-puzzle > img:first-child { display: block; width: 100%; height: auto; pointer-events: none; }
.human-puzzle-piece { position: absolute; left: 0; z-index: 2; filter: drop-shadow(0 3px 4px rgba(16,35,75,.38)); pointer-events: none; will-change: transform; }
.human-slider-track { position: relative; height: 46px; margin-top: 13px; overflow: hidden; display: grid; place-items: center; color: #8a95a8; border: 1px solid #dbe3ef; border-radius: 6px; background: #f5f7fb; font-size: 12px; user-select: none; }
.human-slider { position: absolute; inset: 0 auto 0 0; width: 48px; padding: 0; color: #fff; border: 0; border-radius: 5px; background: var(--primary); font-size: 17px; font-weight: 800; touch-action: none; cursor: grab; will-change: transform; }
.human-slider:active { cursor: grabbing; }
.human-verification-actions { min-height: 37px; margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.human-verification-actions span { color: var(--muted); font-size: 11px; }
.human-verification-actions span.bad { color: var(--danger); }
.human-verification-actions span.good { color: var(--success); }

/* Main shell */
.portal-shell { min-height: 100vh; }
.portal-header { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header-height); display: flex; align-items: center; border-bottom: 1px solid #e8edf4; background: #fff; }
.portal-brand { width: var(--sidebar-width); height: 100%; padding-left: 15px; justify-content: center; border-right: 1px solid #eef1f6; }
.page-tab { height: 38px; margin-left: 16px; padding: 0 18px; display: flex; align-items: center; gap: 9px; color: #31405a; border-radius: 4px; background: #f6f8fc; }
.page-tab i { color: var(--primary); }
.header-actions { margin-left: auto; height: 100%; padding: 0 22px 0 15px; display: flex; align-items: center; gap: 14px; }
.manager-badge, .balance-link, .user-chip { border: 0; background: transparent; }
.manager-badge { padding: 7px 17px; color: #fff; border-radius: 999px; background: linear-gradient(90deg, #2887fa, #335aff); font-size: 12px; font-weight: 700; }
.manager-badge i { margin-right: 6px; }
.balance-link { display: flex; align-items: center; gap: 9px; color: #161d2b; font-weight: 700; }
.balance-link i { color: #17275d; font-size: 18px; }
.user-chip { display: flex; align-items: center; gap: 9px; color: #28344b; }
.user-chip > span { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #9f8be3; }
.user-chip strong { font-size: 13px; }
.user-chip i { font-size: 10px; }

.portal-sidebar { position: fixed; inset: var(--header-height) auto 0 0; z-index: 35; width: var(--sidebar-width); padding: 13px 0 94px; overflow-y: auto; border-right: 1px solid #e8edf4; background: #fff; }
.buy-proxy-button { width: calc(100% - 28px); height: 43px; margin: 0 14px 16px; color: #fff; border: 0; border-radius: 6px; background: var(--primary); font-weight: 700; }
.buy-proxy-button i { margin-right: 12px; font-size: 17px; }
.portal-sidebar nav { display: grid; }
.nav-label { margin: 18px 32px 7px; color: #8c96a7; font-size: 12px; }
.nav-item { width: 100%; min-height: 49px; padding: 0 22px 0 32px; display: flex; align-items: center; gap: 13px; color: #242b38; border: 0; border-left: 3px solid transparent; background: transparent; text-align: left; }
.nav-item > i:first-child { width: 18px; color: #b2bbcd; font-size: 17px; }
.nav-item > span { flex: 1; }
.nav-item:hover { color: var(--primary); background: #f6f8ff; }
.nav-item.active { color: var(--primary); border-left-color: var(--primary); background: linear-gradient(90deg, #edf2ff, #fff); }
.nav-item.active > i:first-child { color: var(--primary); }
.nav-item em { padding: 2px 5px; color: #fff; border-radius: 4px; background: #ff4f68; font-size: 9px; font-style: normal; }
.nav-item em.verified { background: var(--success); }
.nav-sub { min-height: 42px; padding-left: 64px; color: #667287; font-size: 13px; }
.nav-sub i { color: #b4bdca; font-size: 10px; }
.support-card { position: fixed; left: 0; bottom: 0; width: var(--sidebar-width); min-height: 70px; padding: 12px 15px; display: flex; align-items: center; gap: 11px; color: #354158; border: 0; border-top: 1px solid var(--line); background: #fff; text-align: left; }
.support-card > i:first-child { color: var(--primary); font-size: 20px; }
.support-card span { flex: 1; }
.support-card strong, .support-card small { display: block; }
.support-card small { margin-top: 3px; color: #9aa4b4; font-size: 10px; }
.support-card > i:last-child { color: var(--primary); }
.portal-main { min-height: 100vh; margin-left: var(--sidebar-width); padding: calc(var(--header-height) + 14px) 14px 30px; }
.view { display: none; }
.view.active-view { display: block; }
.section-card { border: 1px solid #e8edf5; border-radius: 7px; background: #fff; box-shadow: 0 3px 12px rgba(39, 67, 116, .025); }
.section-card h1, .section-card h2, .section-card h3, .section-card p { margin-top: 0; }

/* Dashboard */
.dashboard-grid { display: grid; grid-template-columns: minmax(620px, 1fr) 335px; gap: 14px; }
.dashboard-primary, .account-overview { min-width: 0; border: 1px solid #e8edf5; border-radius: 7px; background: #fff; overflow: hidden; }
.product-switcher { height: 135px; display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
.product-switch { position: relative; padding: 25px 25px; overflow: hidden; color: #252d3a; border: 0; border-right: 1px solid var(--line); background: #fff no-repeat right bottom / auto 95%; text-align: left; }
.product-switch:nth-child(1) { background-image: url("/app/assets/product-static.png"); }
.product-switch:nth-child(2) { background-image: url("/app/assets/product-dynamic.png"); }
.product-switch:nth-child(3) { background-image: url("/app/assets/product-datacenter.png"); border-right: 0; }
.product-switch::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px; background: transparent; }
.product-switch.active::before { background: var(--primary); }
.product-switch span, .product-switch small { position: relative; display: block; }
.product-switch span { font-size: 18px; }
.product-switch small { margin-top: 17px; color: #778398; font-size: 12px; }
.dashboard-hero { min-height: 355px; margin: 30px 25px 22px; padding: 36px 34px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 28px; color: #fff; border-radius: 8px; background: url("/app/assets/hero-background.png") center / cover no-repeat; overflow: hidden; }
.dashboard-hero > div { position: relative; z-index: 1; }
.dashboard-hero > div:first-child::after { content: ""; position: absolute; top: 22px; right: -74px; width: 95px; height: 95px; background: url("/app/assets/hero-static.png") center / contain no-repeat; opacity: .8; }
.soft-tag { display: inline-flex; padding: 5px 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(255,255,255,.12); font-size: 12px; }
.dashboard-hero h1 { margin: 15px 0 5px; font-size: 30px; }
.dashboard-hero p { margin: 0; color: rgba(255,255,255,.85); }
.hero-price { margin: 50px 0 24px; display: flex; align-items: baseline; gap: 6px; }
.hero-price span, .hero-price small { color: rgba(255,255,255,.82); }
.hero-price strong { font-size: 37px; }
.hero-benefits { min-height: 245px; padding: 28px 30px; color: #173373; border-radius: 8px; background: rgba(255,255,255,.72); backdrop-filter: blur(10px); }
.hero-benefits > strong { font-size: 18px; }
.hero-benefits ul { margin: 19px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.hero-benefits li::before { content: "\f270"; margin-right: 10px; color: #5a82ee; font-family: "bootstrap-icons"; font-weight: 400; }
.use-case-section { padding: 0 25px 30px; }
.use-case-section h2 { margin: 0 0 14px; display: flex; align-items: center; gap: 8px; font-size: 17px; }
.use-case-section h2 span { width: 4px; height: 22px; border-radius: 2px; background: var(--primary); }
.use-case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.use-case-grid article { min-height: 166px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #f9fbff; text-align: center; }
.use-case-grid img { width: 100%; height: 92px; object-fit: contain; }
.use-case-grid strong, .use-case-grid small { display: block; }
.use-case-grid small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.account-overview { padding: 28px 26px; }
.member-summary { padding-bottom: 27px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.member-summary > span { width: 78px; height: 78px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #9e8ce2; font-size: 40px; font-weight: 300; }
.member-summary strong, .member-summary small { display: block; }
.member-summary strong { font-size: 16px; }
.member-summary small { margin-top: 9px; color: #a07820; }
.balance-summary { position: relative; padding: 28px 0; border-bottom: 1px solid var(--line); }
.balance-summary small, .balance-summary strong { display: block; }
.balance-summary small { color: #596477; }
.balance-summary strong { margin-top: 9px; font-size: 30px; font-weight: 500; }
.balance-summary button { position: absolute; right: 0; bottom: 31px; padding: 7px 18px; color: #fff; border: 0; border-radius: 4px; background: #1987f8; }
.asset-summary { padding: 25px 0; border-bottom: 1px solid var(--line); }
.asset-summary h3, .quick-links h3 { margin: 0 0 17px; font-size: 14px; }
.asset-summary > div:not(.summary-pair) { padding: 11px 13px; display: grid; grid-template-columns: 1fr auto; align-items: center; background: #f5f7fb; }
.asset-summary > div:not(.summary-pair) small { grid-column: 1 / -1; color: #959faf; }
.asset-summary > div:not(.summary-pair) strong { color: var(--primary); font-size: 20px; }
.summary-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.summary-pair p { margin: 0; padding: 12px; background: #f6f8fc; text-align: center; }
.summary-pair strong, .summary-pair small { display: block; }
.summary-pair strong { font-size: 22px; }
.summary-pair small { color: var(--muted); }
.quick-links { padding-top: 24px; }
.quick-links > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-links button { padding: 12px 4px; display: grid; place-items: center; gap: 7px; color: #556277; border: 0; border-radius: 6px; background: #f5f7fb; font-size: 11px; }
.quick-links i { color: var(--primary); font-size: 20px; }

/* Shop */
.shop-heading, .resource-heading, .orders-heading { padding: 20px 30px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.shop-heading h1, .resource-heading h1, .orders-heading h1 { margin: 0 0 3px; font-size: 20px; }
.shop-heading p, .resource-heading p, .orders-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.network-warning { padding: 8px 13px; color: #ec6b73; border-radius: 4px; background: #fff0f1; font-size: 12px; }
.network-warning i { margin-right: 7px; }
.wide-warning { margin: 14px 0; }
.catalog-tabs { margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 7px; background: #fff; overflow: hidden; }
.catalog-tab { min-height: 96px; padding: 15px 25px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; gap: 0 16px; color: #26334a; border-right: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.catalog-tab:last-child { border-right: 0; }
.catalog-tab.active { color: var(--primary); background: #f6f8ff; box-shadow: inset 0 3px var(--primary); }
.catalog-tab > i { grid-row: 1 / span 2; font-size: 30px; }
.catalog-tab > span, .catalog-tab small { display: block; }
.catalog-tab > span { font-size: 16px; }
.catalog-tab small { margin-top: 5px; color: #8d97a7; font-size: 11px; }
.shop-layout { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 46%); gap: 14px; align-items: start; }
.package-section, .order-confirmation { border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.package-section { padding: 25px; }
.package-section > .title-line { display: none; }
.title-line { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.title-line h1, .title-line h2 { margin: 0; font-size: 19px; }
.title-line > span { color: var(--muted); font-size: 12px; }
.sku-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sku-card { position: relative; min-height: 246px; padding: 24px; display: flex; flex-direction: column; border: 1px solid #dce3ee; border-radius: 7px; background: #fff; transition: .2s; }
.sku-card:hover, .sku-card.selected { border-color: var(--primary); box-shadow: 0 12px 28px rgba(51,90,255,.1); }
.sku-card.selected::after { content: "已选择"; position: absolute; top: 0; right: 0; padding: 5px 11px; color: #fff; border-radius: 0 6px 0 6px; background: var(--primary); font-size: 11px; }
.sku-card h3 { margin: 0 0 6px; font-size: 18px; }
.sku-card .sku-duration { color: var(--primary); font-size: 12px; }
.sku-card .sku-spec { margin: 20px 0; color: #667287; line-height: 1.85; }
.sku-price { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sku-price strong { color: #f05b63; font-size: 28px; }
.sku-price small { color: var(--muted); }
.choose-sku { min-height: 34px; padding: 0 14px; color: var(--primary); border: 1px solid var(--primary); border-radius: 4px; background: #fff; }
.choose-sku:hover { color: #fff; background: var(--primary); }
.catalog-empty { padding: 60px 20px; grid-column: 1 / -1; color: var(--muted); text-align: center; }
.catalog-empty i { display: block; margin-bottom: 12px; font-size: 38px; }
.order-confirmation { position: sticky; top: calc(var(--header-height) + 14px); overflow: hidden; }
.order-card-heading { padding: 21px 23px; border-bottom: 1px solid var(--line); }
.order-card-heading h2 { margin: 0; font-size: 18px; }
.order-card-heading small { color: var(--muted); }
.empty-purchase { min-height: 310px; display: grid; place-items: center; align-content: center; color: #a2abba; }
.empty-purchase i { font-size: 42px; }
.empty-purchase p { margin: 12px 0 0; }
.purchase-form { padding: 22px; display: grid; gap: 14px; }
.purchase-form dl { margin: 0 0 5px; display: grid; gap: 10px; }
.purchase-form dl div { display: flex; justify-content: space-between; gap: 18px; }
.purchase-form dt { color: var(--muted); }
.purchase-form dd { margin: 0; text-align: right; }
.price-breakdown { padding: 17px 0; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.price-breakdown strong { color: #f05b63; font-size: 26px; }
.product-subtabs { grid-column: 2; margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px; }
.product-subtabs button { min-width: 0; height: 25px; padding: 0 8px; color: #596579; border: 0; border-radius: 4px; background: transparent; font-size: 11px; }
.product-subtabs button.active { color: var(--primary); border-color: var(--primary); background: #f4f7ff; box-shadow: 0 0 0 2px rgba(51,90,255,.06); }
.proxy-configurator { display: grid; gap: 0; }
.config-intro { margin-bottom: 18px; padding: 10px 14px; display: inline-flex; width: fit-content; align-items: center; gap: 8px; color: #209b73; border: 1px solid #aee9d2; border-radius: 18px; background: #f2fff9; font-size: 12px; }
.flow-package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.flow-package-card { position: relative; min-height: 330px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; color: #26344c; border: 1px solid #e2e7ef; border-radius: 8px; background: #fff; text-align: left; box-shadow: 0 9px 24px rgba(31,54,98,.07); }
.flow-package-card:hover, .flow-package-card.active { border-color: var(--primary); box-shadow: 0 13px 30px rgba(51,90,255,.12); }
.flow-package-card em { position: absolute; top: 0; right: 0; padding: 5px 14px; color: #fff; border-radius: 0 7px 0 10px; background: #ff7a22; font-size: 11px; font-style: normal; }
.flow-package-card > span { font-size: 18px; font-weight: 700; }
.flow-package-card > small { margin-top: 5px; color: var(--muted); }
.flow-package-card > strong { margin-top: 26px; font-size: 27px; }
.flow-package-card > b { margin-top: 7px; color: #f15b27; font-size: 18px; }
.flow-package-card > u { margin-top: 5px; color: #5f78a8; font-size: 11px; text-decoration: none; }
.flow-package-card ul { margin: 23px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; color: #68758a; font-size: 12px; }
.flow-package-card li::before { content: "✓"; margin-right: 8px; color: var(--primary); }
.traffic-custom { margin-top: 22px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: 7px; background: #fafbfe; }
.traffic-custom > span { font-weight: 700; }
.config-row { padding: 17px 0; display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 14px; border-bottom: 1px solid #f0f2f6; }
.config-label { padding-top: 11px; color: #111c31; font-size: 13px; }
.config-control { min-width: 0; }
.config-control > select, .config-control > input { width: min(240px, 100%); }
.config-hint { margin-top: 10px; display: block; color: #9aa4b4; line-height: 1.6; }
.city-options { width: min(285px, 100%); max-height: 330px; margin-top: 8px; padding-right: 7px; display: grid; gap: 7px; overflow-y: auto; }
.city-option { min-height: 47px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; color: #2d3b50; border: 1px solid #dce2ec; border-radius: 5px; background: #fff; }
.city-option.active { color: var(--primary); border-color: var(--primary); background: #f7f8ff; }
.city-option span { display: flex; align-items: center; gap: 9px; }
.city-option i { width: 14px; height: 14px; display: block; border: 1px solid #cfd7e5; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #fff; }
.city-option.active i { border-color: var(--primary); background: var(--primary); }
.city-option small { color: #4fbd3e; }
.city-option small.scarce { color: #ff7a25; }
.city-option:disabled { cursor: not-allowed; color: #9aa4b4; background: #f7f8fa; }
.city-option small.sold-out { color: #9aa4b4; }
.option-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.option-buttons button { min-width: 90px; min-height: 38px; padding: 0 16px; color: #3e4a5e; border: 1px solid #dce2ec; border-radius: 5px; background: #fff; }
.option-buttons button.active { color: var(--primary); border-color: var(--primary); background: #f7f8ff; }
.stepper { width: fit-content; display: flex; align-items: center; overflow: hidden; border: 1px solid #e0e5ed; border-radius: 5px; background: #f7f9fc; }
.stepper button { width: 38px; height: 38px; color: #7e899a; border: 0; background: #eef1f6; font-size: 18px; }
.stepper input { width: 80px; height: 38px; min-height: 0; padding: 0 5px; border: 0; background: transparent; text-align: center; box-shadow: none; }
.stepper b { padding: 0 12px; color: #657084; font-size: 12px; }
.advanced-divider { margin: 24px 0 6px; display: flex; align-items: center; gap: 20px; color: var(--primary); font-size: 12px; }
.advanced-divider::before, .advanced-divider::after { content: ""; height: 1px; flex: 1; background: #dfe4ed; }
.addon-section h3 { margin: 18px 0 24px; font-size: 16px; }
.bandwidth-copy { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
.bandwidth-copy p { margin: 0; color: #8d97a8; line-height: 1.8; }
.bandwidth-grid { margin: 20px 0 7px 100px; display: grid; grid-template-columns: repeat(2, minmax(0, 175px)); gap: 10px; }
.bandwidth-option { position: relative; min-height: 76px; padding: 14px 16px; display: grid; justify-items: start; gap: 4px; color: #263348; border: 1px solid #dce2ec; border-radius: 6px; background: #fff; text-align: left; }
.bandwidth-option.active { color: var(--primary); border-color: var(--primary); background: #f7f8ff; }
.bandwidth-option em { position: absolute; right: -5px; top: -8px; padding: 3px 10px; color: #fff; border-radius: 12px; background: #ff4960; font-size: 10px; font-style: normal; }
.bandwidth-option small { color: inherit; }
.bandwidth-option.custom { align-content: center; }
.ip-segment-entry { display: flex; flex-wrap: wrap; gap: 8px; }
.ip-segment-entry input { width: min(235px, 100%); }
.ip-segment-list { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ip-segment-list button { padding: 6px 9px; color: #435373; border: 0; border-radius: 4px; background: #edf2ff; font-size: 11px; }
.toggle-switch { display: inline-flex; }
.toggle-switch input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-switch span { width: 48px; height: 26px; padding: 3px; display: block; border-radius: 13px; background: #dce1e9; transition: .2s; }
.toggle-switch span::after { content: ""; width: 20px; height: 20px; display: block; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.15); transition: .2s; }
.toggle-switch input:checked + span { background: var(--primary); }
.toggle-switch input:checked + span::after { transform: translateX(22px); }
.order-price-list { padding: 14px 16px; display: grid; gap: 12px; border-radius: 6px; background: #f7f8fb; }
.order-price-list > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.order-price-list span { color: var(--muted); }
.purchase-payments { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; }
.purchase-payments legend { grid-column: 1 / -1; margin-bottom: 3px; font-weight: 700; }
.purchase-payments label { position: relative; }
.purchase-payments input { position: absolute; opacity: 0; }
.purchase-payments span { min-height: 54px; padding: 9px; display: grid; place-items: center; gap: 3px; color: #536076; border: 1px solid #dce2ec; border-radius: 5px; background: #fff; font-size: 11px; }
.purchase-payments input:checked + span { color: var(--primary); border-color: var(--primary); background: #f5f8ff; }
.purchase-payments input:disabled + span { opacity: .45; cursor: not-allowed; }
.purchase-payments i { font-size: 18px; }
.purchase-agreement { display: flex !important; align-items: center; gap: 7px; color: #697589; font-size: 11px; }
.purchase-agreement input { width: auto; min-height: 0; }
.purchase-unavailable { margin: 0; padding: 10px 12px; color: #a76217; border-radius: 5px; background: #fff7e8; line-height: 1.6; }

/* Resources and tables */
.proxy-product-tabs { margin-bottom: 14px; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 7px; background: #fff; overflow: hidden; }
#view-resources #resourceProductTabs { display: none; }
.proxy-product-tabs > button { min-height: 106px; padding: 19px 25px; display: flex; align-items: center; gap: 15px; color: #26334b; border: 0; border-right: 1px solid var(--line); border-top: 3px solid transparent; background: #fff; text-align: left; }
.proxy-product-tabs > button:last-child { border-right: 0; }
.proxy-product-tabs > button.active { color: var(--primary); border-top-color: var(--primary); background: linear-gradient(180deg, #f8faff, #fff); }
.proxy-product-tabs i { color: #a7b2c8; font-size: 24px; }
.proxy-product-tabs button.active i { color: var(--primary); }
.proxy-product-tabs span, .proxy-product-tabs small { display: block; }
.proxy-product-tabs span { font-size: 16px; font-weight: 700; }
.proxy-product-tabs small { margin-top: 6px; color: #8b96aa; font-size: 11px; font-weight: 400; }
.proxy-balance-card { min-height: 78px; margin-bottom: 14px; padding: 15px 18px; display: flex; align-items: center; gap: 34px; }
.proxy-balance-card > div { display: flex; align-items: baseline; gap: 5px; }
.proxy-balance-card > div span { color: var(--muted); }
.proxy-balance-card > div strong { color: var(--primary); font-size: 28px; }
.proxy-balance-card > div small { color: var(--muted); }
.proxy-balance-card > button:last-child { margin-left: auto; }
.proxy-action-tabs { margin-bottom: 14px; }
.resource-table-card { padding: 24px; }
.resource-source-filters { display: grid; grid-template-columns: 150px 150px minmax(250px, 1fr) auto; gap: 12px; align-items: end; }
.resource-source-filters > label { display: grid; gap: 7px; color: #3b4658; font-size: 12px; font-weight: 600; }
.resource-keyword { grid-template-columns: 104px minmax(150px, 1fr); align-items: end; }
.resource-keyword select { grid-row: 1 / 3; align-self: end; }
.resource-batch-check { min-height: 42px; display: flex !important; align-items: center; padding: 0 10px; border: 1px solid #dce2ec; border-radius: 5px; background: #fff; white-space: nowrap; }
.resource-batch-check input { width: auto; min-height: 0; margin: 0 6px 0 0; }
.resource-range { grid-column: span 2; display: grid; grid-template-columns: 82px 1fr 14px 1fr; align-items: center; gap: 8px; color: #3b4658; font-size: 12px; font-weight: 600; }
.resource-range em { color: #9aa4b5; font-style: normal; text-align: center; }
.resource-actionbar { margin-top: 18px; padding: 12px 14px; display: flex; align-items: center; gap: 8px; border: 1px solid #e1e6ef; border-radius: 6px; background: #f8faff; }
.resource-actionbar .selection-count { margin-right: 4px; color: #68758a; white-space: nowrap; }
.resource-actionbar .selection-count strong { color: var(--primary); }
.resource-actionbar [data-resource-action="bandwidth-monitor"] { color: #fff; border-color: var(--primary); background: var(--primary); }
.resource-actionbar [data-resource-action="terminal"] { color: #fff; border-color: #ff7a20; background: #ff7a20; }
.resource-actionbar [data-resource-action="terminal"]:hover { border-color: #e86713; background: #e86713; }
.action-menu { position: relative; }
.action-menu summary { list-style: none; cursor: pointer; }
.action-menu summary::-webkit-details-marker { display: none; }
.action-menu > summary { min-height: 34px; padding: 7px 12px; color: #445064; border: 1px solid #dce2ec; border-radius: 5px; background: #fff; font-size: 12px; font-weight: 600; }
.action-menu > summary i { margin-left: 5px; font-size: 10px; }
.action-menu > div { position: absolute; z-index: 12; top: calc(100% + 6px); left: 0; min-width: 182px; padding: 6px; display: grid; border: 1px solid #dfe5ef; border-radius: 6px; background: #fff; box-shadow: 0 16px 36px rgba(24,42,78,.15); }
.action-menu button { padding: 9px 11px; color: #445064; border: 0; border-radius: 4px; background: transparent; font-size: 12px; text-align: left; white-space: nowrap; }
.action-menu button:hover { color: var(--primary); background: var(--primary-soft); }
.table-scroll { margin-top: 22px; overflow-x: auto; }
.data-table { width: 100%; min-width: 920px; border-collapse: collapse; }
.data-table th { padding: 13px 14px; color: #596579; background: #f7f9fc; font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.data-table td { padding: 15px 14px; border-bottom: 1px solid var(--line); color: #435065; font-size: 12px; }
.table-action { padding: 6px 10px; color: var(--primary); border: 0; background: transparent; font-weight: 600; }
.static-resource-table { min-width: 1560px; }
.static-resource-table .select-column { width: 38px; padding-right: 5px; text-align: center; }
.static-resource-table .select-column input { width: auto; min-height: 0; }
@media (min-width: 621px) {
  .data-table .resource-operation-column { position: sticky; right: 0; z-index: 2; min-width: 112px; background: #fff; box-shadow: -9px 0 14px rgba(24,42,78,.08); }
  .data-table th.resource-operation-column { z-index: 3; background: #f7f9fc; }
  .static-resource-table .resource-operation-column { width: 172px; min-width: 172px; box-shadow: none; }
  .static-resource-table .resource-auto-renew-column { position: sticky; right: 172px; z-index: 2; width: 92px; min-width: 92px; background: #fff; text-align: center; box-shadow: -9px 0 14px rgba(24,42,78,.08); }
  .static-resource-table th.resource-auto-renew-column { z-index: 3; background: #f7f9fc; }
}
.resource-host { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: #8d98aa; font-size: 10px; font-weight: 400; }
.preview-badge { padding: 1px 5px; color: #8a5a08; border-radius: 3px; background: var(--warning-soft); font-size: 9px; }
.masked-secret { padding: 3px 0; color: #68758b; border: 0; background: transparent; letter-spacing: .08em; }
.masked-secret i { margin-left: 4px; color: var(--primary); letter-spacing: 0; }
.remaining-days { color: #0f9a73; }
.protocol-chip { padding: 3px 7px; color: var(--primary); border-radius: 4px; background: var(--primary-soft); font-size: 10px; font-weight: 700; }
.resource-row-actions { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.resource-row-actions > button { padding: 5px 6px; color: var(--primary); border: 0; background: transparent; font-size: 11px; font-weight: 600; }
.resource-menu-trigger { display: inline-flex; align-items: center; gap: 5px; }
.resource-menu-trigger i { font-size: 9px; transition: transform .16s ease; }
.resource-menu-trigger[aria-expanded="true"] i { transform: rotate(180deg); }
.resource-floating-menu { position: fixed; z-index: 90; min-width: 182px; max-height: min(360px, calc(100vh - 20px)); padding: 6px; display: grid; overflow-y: auto; border: 1px solid #dfe5ef; border-radius: 6px; background: #fff; box-shadow: 0 16px 36px rgba(24,42,78,.18); }
.resource-floating-menu button { width: 100%; padding: 9px 11px; color: #445064; border: 0; border-radius: 4px; background: transparent; font-size: 12px; text-align: left; white-space: nowrap; }
.resource-floating-menu button:hover, .resource-floating-menu button:focus-visible { color: var(--primary); outline: 0; background: var(--primary-soft); }
.switch-control { position: relative; display: inline-block; }
.switch-control input { position: absolute; width: 1px; min-height: 0; opacity: 0; }
.switch-control span { position: relative; width: 34px; height: 19px; display: block; border-radius: 20px; background: #d9dee8; }
.switch-control span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.switch-control input:checked + span { background: var(--primary); }
.switch-control input:checked + span::after { transform: translateX(15px); }
.resource-pager { padding-top: 18px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; color: #758095; font-size: 12px; }
.resource-pager > span { margin-right: auto; }
.resource-pager label { display: flex; align-items: center; gap: 6px; }
.resource-pager select { width: 68px; min-height: 32px; padding: 0 8px; }
.resource-pager button { width: 32px; height: 32px; padding: 0; color: #536077; border: 1px solid #dce2ec; border-radius: 5px; background: #fff; }
.status-chip { display: inline-flex; padding: 4px 8px; color: #657185; border-radius: 4px; background: #f0f3f7; font-size: 11px; font-weight: 600; white-space: nowrap; }
.status-chip.good { color: #0d936f; background: var(--success-soft); }
.status-chip.warn { color: #b27612; background: var(--warning-soft); }
.status-chip.bad { color: #b84b54; background: var(--danger-soft); }
.empty-state { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 12px; color: #9aa4b5; }
.empty-state i { font-size: 40px; }
.proxy-generator { padding: 25px; }
.proxy-generator-grid { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); gap: 28px; }
.proxy-config-form { display: grid; align-content: start; gap: 16px; }
.proxy-config-form > label, .proxy-config-form .inline-fields label { display: grid; gap: 7px; color: #3b4658; font-size: 12px; font-weight: 600; }
.proxy-config-form .inline-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.proxy-output-panel { min-width: 0; padding-left: 27px; border-left: 1px solid var(--line); }
.proxy-output-panel .title-line > div { display: flex; gap: 7px; }
.proxy-output-panel pre, #proxyApiOutput { min-height: 230px; margin: 14px 0; padding: 17px; overflow: auto; color: #d9e7ff; border-radius: 6px; background: #14213a; white-space: pre-wrap; word-break: break-all; font: 12px/1.75 "SFMono-Regular", Consolas, monospace; }
.session-help { padding: 15px; border-radius: 6px; background: #f7f9fc; }
.session-help strong, .session-help code { display: block; }
.session-help code { margin: 8px 0; color: var(--primary); word-break: break-all; }
.session-help p { margin: 0; color: var(--muted); font-size: 11px; }
.proxy-capability-panel { min-height: 250px; padding: 36px; display: flex; align-items: flex-start; gap: 20px; }
.proxy-capability-panel > i { color: var(--primary); font-size: 34px; }
.proxy-capability-panel > div { width: 100%; }
.proxy-capability-panel h2 { margin: 0 0 7px; }
.proxy-capability-panel p { color: var(--muted); }
.proxy-capability-panel #proxyApiOutput { min-height: 100px; }
.capability-empty { margin-top: 22px; padding: 35px; color: #98a3b6; border: 1px dashed #d9e0ea; border-radius: 6px; background: #fafbfc; text-align: center; }
.credential-summary > p { margin: 0 0 15px; color: var(--muted); }
.credential-summary dl { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border: 1px solid var(--line); border-radius: 6px; }
.credential-summary dl > div { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.credential-summary dt { color: var(--muted); font-size: 11px; }
.credential-summary dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 700; }
.operation-unavailable { padding: 16px; display: flex; align-items: flex-start; gap: 12px; color: #855f1d; border: 1px solid #f2dfb7; border-radius: 6px; background: #fff9ec; }
.operation-unavailable > i { color: var(--warning); font-size: 24px; }
.operation-unavailable strong { display: block; color: #654814; }
.operation-unavailable p { margin: 4px 0 0; line-height: 1.7; }
.dialog-resource-list { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.dialog-resource-list span { padding: 5px 9px; color: #516078; border-radius: 4px; background: #f1f4f9; font-size: 11px; }
.dialog-notice { margin-bottom: 17px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 9px; color: #76571c; border-radius: 5px; background: #fff8e9; line-height: 1.7; }
.dialog-notice.danger { color: #a6424b; background: var(--danger-soft); }
.dialog-choice { margin: 0 0 17px; padding: 13px 15px; display: flex; gap: 24px; border: 1px solid var(--line); border-radius: 6px; }
.dialog-choice legend { padding: 0 5px; color: #68758a; font-size: 11px; }
.dialog-choice label { display: flex; align-items: center; gap: 6px; }
.dialog-choice input { width: auto; min-height: 0; }
.dialog-table-wrap { overflow-x: auto; }
.dialog-table { min-width: 620px; }
.dialog-form-grid, .terminal-filters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dialog-form-grid label, .terminal-filters label { display: grid; gap: 7px; color: #47546a; font-size: 12px; font-weight: 600; }
.dialog-form-grid label.full { grid-column: 1 / -1; }
.dialog-form-grid textarea { width: 100%; padding: 11px 13px; resize: vertical; border: 1px solid #dce2ec; border-radius: 5px; font: inherit; }
.dialog-form-grid small { color: var(--muted); font-weight: 400; }
.dialog-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 9px; }
.terminal-title { margin: 19px 0 10px; }
.terminal-title h3 { margin: 0; }
.terminal-title small { color: var(--muted); }

/* Identity verification */
.identity-tabs { height: 74px; padding: 0 38px; display: flex; align-items: center; gap: 52px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.identity-tabs button { height: 100%; color: #657186; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 16px; }
.identity-tabs button.active { color: var(--ink); border-bottom-color: var(--primary); font-weight: 700; }
.identity-card { margin-top: 14px; padding: 30px 36px 38px; }
.identity-card > .title-line p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.identity-benefits { margin: 25px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.identity-benefits article { min-height: 125px; padding: 21px; display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 5px 13px; border: 1px solid #dfe6f2; border-radius: 8px; background: linear-gradient(135deg, #f7faff, #fff); }
.identity-benefits i { grid-row: 1 / 3; color: var(--primary); font-size: 30px; }
.identity-benefits strong, .identity-benefits small { display: block; }
.identity-benefits small { color: var(--muted); font-size: 11px; }
.identity-steps { margin: 28px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.identity-steps li { position: relative; display: flex; align-items: center; gap: 9px; color: #9aa4b5; }
.identity-steps li::after { content: ""; position: absolute; z-index: 0; left: 34px; right: 8px; top: 15px; height: 1px; background: #dfe5ef; }
.identity-steps li:last-child::after { display: none; }
.identity-steps span { position: relative; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #d8e0ec; border-radius: 50%; background: #fff; }
.identity-steps li.active { color: var(--primary); font-weight: 600; }
.identity-steps li.active span { color: #fff; border-color: var(--primary); background: var(--primary); }
.identity-form { width: min(650px, 100%); margin: auto; display: grid; gap: 17px; }
.identity-form > label:not(.purchase-agreement) { display: grid; gap: 8px; color: #3b4658; font-weight: 600; }
.identity-notice { padding: 15px 18px; display: flex; gap: 12px; color: #6d6658; border: 1px solid #f1d98c; border-radius: 6px; background: #fff9e8; }
.identity-notice i { color: #e7a718; font-size: 21px; }
.identity-notice p { margin: 0; font-size: 12px; line-height: 1.7; }
.identity-result { padding: 48px 20px; display: grid; justify-items: center; text-align: center; }
.identity-result > i { width: 72px; height: 72px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--success); font-size: 35px; box-shadow: 0 12px 30px rgba(19,182,135,.2); }
.identity-result.pending > i { background: var(--warning); box-shadow: 0 12px 30px rgba(243,169,39,.18); }
.identity-result h2 { margin: 20px 0 7px; }
.identity-result p { margin: 0 0 22px; color: var(--muted); }

/* Wallet */
.page-tabs { height: 74px; padding: 0 38px; display: flex; gap: 54px; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.page-tabs button { height: 100%; padding: 0; color: #566176; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 16px; }
.page-tabs button.active { color: var(--ink); border-bottom-color: var(--primary); font-weight: 700; }
.wallet-panel { margin-top: 14px; padding: 30px 32px; }
.recharge-notice { padding: 16px 20px; display: flex; align-items: center; gap: 15px; color: #885b0d; border: 1px solid #f5d47e; border-radius: 6px; background: #fff9e8; }
.recharge-notice i { color: #f2ad17; font-size: 22px; }
.recharge-notice p { margin: 3px 0 0; color: #6d6658; font-size: 12px; }
.wallet-account-line { margin: 25px 0; display: flex; flex-wrap: wrap; gap: 28px; color: #4c576a; }
.wallet-account-line strong { color: var(--ink); }
.wallet-account-line span:nth-child(2) strong { color: #f05b63; font-size: 18px; }
.recharge-form { width: min(800px, 100%); display: grid; gap: 19px; }
.money-input { display: flex; align-items: center; border: 1px solid #dce2ec; border-radius: 5px; overflow: hidden; }
.money-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(51,90,255,.1); }
.money-input span { padding-left: 15px; font-size: 18px; }
.money-input input { border: 0; box-shadow: none; }
.amount-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.amount-presets button { height: 49px; color: #3d485a; border: 1px solid #dce2ec; border-radius: 5px; background: #fff; }
.amount-presets button:hover, .amount-presets button.active { color: var(--primary); border-color: var(--primary); background: #f6f8ff; }
.recharge-arrival strong { color: #f05b63; }
.recharge-form fieldset { margin: 0; padding: 0; display: flex; gap: 12px; border: 0; }
.recharge-form legend { margin-bottom: 9px; font-weight: 600; }
.channel-option { min-width: 190px; padding: 13px 16px; display: flex; align-items: center; gap: 11px; border: 1px solid #dce2ec; border-radius: 5px; }
.channel-option:has(input:checked) { color: var(--primary); border-color: var(--primary); background: #f7f9ff; }
.channel-option input { width: auto; min-height: auto; }
.channel-option i { font-size: 24px; }
.channel-option span, .channel-option small { display: block; }
.channel-option small { color: var(--muted); font-size: 10px; }
.recharge-submit { width: 370px; min-height: 54px; }
.form-hint { margin: -8px 0 0; color: var(--muted); font-size: 12px; }

/* Lists and payments */
.card-list { display: grid; gap: 10px; }
.list-card { padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.list-card strong, .list-card small { display: block; }
.list-card strong { font-size: 13px; }
.list-card small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.list-card .order-exception-note { max-width: 680px; color: #b64b3a; line-height: 1.55; }
.order-exception-note i { margin-right: 5px; }
.list-actions { display: flex; align-items: center; gap: 7px; flex: none; }
.text-button { padding: 7px 10px; color: var(--primary); border: 0; border-radius: 4px; background: var(--primary-soft); font-size: 11px; font-weight: 600; }
.order-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.order-card-head { padding: 20px 22px 17px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #edf0f5; }
.order-card-head h2 { margin: 5px 0 4px; color: #192943; font-size: 17px; }
.order-card-head p { margin: 0; color: var(--muted); font-size: 11px; }
.order-product-kind { color: var(--primary); font-size: 11px; font-weight: 700; }
.order-config-grid { margin: 0; padding: 17px 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 22px; background: #fbfcff; }
.order-config-item { min-width: 0; }
.order-config-item.wide { grid-column: span 2; }
.order-config-item dt { color: #8b96a8; font-size: 11px; }
.order-config-item dd { margin: 5px 0 0; color: #26364f; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.order-price-breakdown { padding: 15px 22px; display: flex; align-items: center; justify-content: flex-end; gap: 28px; border-top: 1px solid #edf0f5; }
.order-price-breakdown > div { display: grid; gap: 4px; text-align: right; }
.order-price-breakdown span { color: var(--muted); font-size: 11px; }
.order-price-breakdown strong { color: #293951; font-size: 13px; }
.order-price-breakdown .order-price-total { padding-left: 27px; border-left: 1px solid var(--line); }
.order-price-breakdown .order-price-total strong { color: #f05b63; font-size: 20px; }
.order-card > .order-exception-note { margin: 0 22px 15px; padding: 11px 13px; display: block; color: #b64b3a; border-radius: 5px; background: #fff4f2; font-size: 11px; }
.order-card-foot { min-height: 0; padding: 0 22px 17px; display: flex; justify-content: flex-end; }
.payment-options { display: grid; gap: 10px; }
.payment-option { padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 6px; }
.payment-option strong, .payment-option small { display: block; }
.payment-option small { color: var(--muted); }
.payment-result { margin-top: 14px; padding: 15px; color: #3a4960; border-radius: 6px; background: #f5f8ff; }
.payment-qr { width: 180px; height: 180px; display: block; margin: 0 auto 14px; }
.wallet-payment-confirm { text-align: center; }
.wallet-confirm-icon { width: 58px; height: 58px; margin: 0 auto 12px; display: grid; place-items: center; color: var(--primary); border-radius: 50%; background: var(--primary-soft); font-size: 25px; }
.wallet-payment-confirm > p { margin: 0 0 17px; color: var(--muted); }
.wallet-payment-confirm dl { margin: 0; padding: 4px 18px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcff; text-align: left; }
.wallet-payment-confirm dl > div { padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.wallet-payment-confirm dl > div + div { border-top: 1px solid var(--line); }
.wallet-payment-confirm dt { color: var(--muted); }
.wallet-payment-confirm dd { margin: 0; font-weight: 700; }
.wallet-confirm-amount { color: #f05b63; font-size: 20px; }
.wallet-confirm-warning { margin-top: 13px; padding: 11px 13px; display: flex; gap: 8px; color: #a76514; border-radius: 6px; background: #fff8e8; text-align: left; font-size: 12px; }
.wallet-confirm-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }

/* Referral and account */
.promotion-hero { min-height: 420px; padding: 70px 9%; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: #eef8ff url("/app/assets/promotion-bg.png") center / cover no-repeat; overflow: hidden; }
.promotion-hero > div { max-width: 470px; }
.promotion-hero span { color: var(--primary); font-weight: 700; }
.promotion-hero h1 { margin: 20px 0 12px; color: #172a67; font-size: 38px; }
.promotion-hero p { margin: 0 0 26px; color: #59709c; line-height: 1.9; }
.referral-overview { margin: 14px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.referral-overview article { padding: 21px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.referral-overview span, .referral-overview strong { display: block; }
.referral-overview span { color: var(--muted); font-size: 12px; }
.referral-overview strong { margin-top: 10px; font-size: 24px; }
.share-card { margin-bottom: 14px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.share-card h2 { margin: 0 0 6px; font-size: 17px; }
.share-card p { margin: 0; color: var(--muted); }
.share-action { width: min(560px, 100%); display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.referral-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.referral-columns > article { padding: 22px; }
.referral-columns h2 { margin: 0 0 15px; font-size: 17px; }
.account-page { padding: 35px; display: flex; align-items: center; gap: 25px; }
.account-avatar { width: 94px; height: 94px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #9e8ce2; font-size: 44px; }
.account-page p { margin: 0; color: var(--primary); }
.account-page h1 { margin: 5px 0; font-size: 31px; }
.account-page span { color: var(--muted); }
.security-card { margin-top: 14px; padding: 30px 35px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.security-card > div { position: relative; padding-left: 58px; }
.security-card > div > i { position: absolute; left: 0; top: 3px; color: var(--primary); font-size: 40px; }
.security-card h2 { margin: 0 0 6px; }
.security-card p { margin: 0; color: var(--muted); }
.security-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.legal-document-card { margin-top: 14px; padding: 25px 35px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.legal-document-card > div { display: flex; align-items: center; gap: 18px; }
.legal-document-card > div > i { color: var(--primary); font-size: 34px; }
.legal-document-card h2, .legal-document-card p { margin: 0; }
.legal-document-card p { margin-top: 5px; color: var(--muted); }
.legal-document-card > span { display: flex; gap: 10px; }
.legal-document-card a { padding: 9px 14px; color: var(--primary); border: 1px solid #d8e0ff; border-radius: 5px; background: #f7f9ff; text-decoration: none; white-space: nowrap; }
.legal-document-card a:hover { border-color: var(--primary); }

/* Dialog and notifications */
dialog { width: min(620px, calc(100vw - 30px)); max-height: 84vh; padding: 0; color: var(--ink); border: 0; border-radius: 8px; box-shadow: 0 25px 80px rgba(19,35,69,.25); }
dialog::backdrop { background: rgba(18,29,52,.48); }
.dialog-head { padding: 20px 23px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-head p { margin: 0; color: var(--primary); font-size: 10px; letter-spacing: .15em; }
.dialog-head h2 { margin: 3px 0 0; font-size: 20px; }
.dialog-body { padding: 23px; overflow: auto; }
.credential { padding: 16px; overflow: auto; color: #d9e7ff; border-radius: 6px; background: #14213a; line-height: 1.7; }
#toastRegion { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: grid; gap: 8px; }
.toast { min-width: 260px; max-width: 420px; padding: 13px 16px; color: #fff; border-radius: 5px; background: #172746; box-shadow: var(--shadow); }
.toast.bad { background: #b7434d; }

@media (max-width: 1180px) {
  .manager-badge { display: none; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .use-case-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .sku-grid { grid-template-columns: 1fr; }
  .flow-package-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .mobile-only { display: inline-grid !important; }
  .portal-brand { width: auto; min-width: 142px; padding: 0 14px; border-right: 0; }
  .portal-brand small { display: none; }
  .page-tab, .balance-link, .header-actions > .outline-button { display: none; }
  .header-actions { padding-right: 10px; gap: 4px; }
  .user-chip strong, .user-chip > i:last-child { display: none; }
  .portal-sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(23,37,68,.18); }
  .portal-sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: var(--header-height) 0 0; z-index: 30; background: rgba(17,29,50,.42); }
  .portal-main { margin-left: 0; padding: calc(var(--header-height) + 10px) 10px 24px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .account-overview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
  .member-summary, .balance-summary { border-bottom: 1px solid var(--line); }
  .quick-links { grid-column: 1 / -1; }
  .shop-layout { grid-template-columns: 1fr; }
  .order-confirmation { position: static; }
  .resource-source-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-keyword { grid-template-columns: 96px minmax(0, 1fr); }
  .resource-range { grid-column: span 2; }
  .resource-actionbar { flex-wrap: wrap; }
  .proxy-generator-grid { grid-template-columns: 1fr; }
  .proxy-output-panel { padding: 22px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .amount-presets { grid-template-columns: repeat(3, 1fr); }
  .referral-overview { grid-template-columns: repeat(2, 1fr); }
  .referral-columns { grid-template-columns: 1fr; }
  .auth-header p { display: none; }
  .auth-stage { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-card { width: min(430px, 100%); margin: auto; }
  .auth-logo { display: inline-flex; }
}

@media (max-width: 620px) {
  :root { --header-height: 57px; }
  .portal-brand strong { font-size: 17px; }
  .header-actions { gap: 0; }
  .dashboard-primary, .account-overview, .section-card, .catalog-tabs, .page-tabs { border-radius: 6px; }
  .product-switcher { height: auto; grid-template-columns: 1fr; }
  .product-switch { min-height: 84px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard-hero { min-height: 0; margin: 14px; padding: 26px 22px; grid-template-columns: 1fr; }
  .dashboard-hero > div:first-child::after { display: none; }
  .hero-price { margin: 28px 0 20px; }
  .hero-benefits { min-height: 0; }
  .use-case-section { padding: 0 14px 20px; }
  .use-case-grid { grid-template-columns: 1fr 1fr; }
  .use-case-grid article { min-height: 145px; }
  .account-overview { display: block; padding: 22px; }
  .catalog-tabs { grid-template-columns: 1fr; }
  .catalog-tab { min-height: 74px; border-right: 0; border-bottom: 1px solid var(--line); }
  .package-section, .resource-table-card, .wallet-panel { padding: 18px 15px; }
  .shop-heading, .resource-heading, .orders-heading { padding: 17px; align-items: flex-start; }
  .network-warning { display: none; }
  .sku-grid { grid-template-columns: 1fr; }
  .product-subtabs { overflow-x: auto; }
  .product-subtabs button { flex: none; }
  .config-row { grid-template-columns: 1fr; gap: 7px; }
  .config-label { padding-top: 0; }
  .bandwidth-copy { grid-template-columns: 1fr; }
  .bandwidth-grid { margin-left: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purchase-payments { grid-template-columns: 1fr; }
  .resource-source-filters { grid-template-columns: 1fr; }
  .resource-source-filters > *, .resource-range { grid-column: auto; }
  .resource-range { grid-template-columns: 1fr 12px 1fr; }
  .resource-range span { grid-column: 1 / -1; }
  .resource-actionbar { align-items: stretch; }
  .resource-actionbar .selection-count { width: 100%; }
  .action-menu { flex: 1; }
  .action-menu > summary { text-align: center; }
  .static-resource-table { min-width: 0; }
  .static-resource-table thead { display: none; }
  .static-resource-table, .static-resource-table tbody, .static-resource-table tr { width: 100%; display: block; }
  .static-resource-table tr { margin-bottom: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
  .static-resource-table td { padding: 9px 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: start; border-bottom: 1px dashed #e8ecf3; }
  .static-resource-table td:last-child { border-bottom: 0; }
  .static-resource-table td::before { content: attr(data-label); color: #8b96a8; font-size: 11px; }
  .static-resource-table .select-column { width: 100%; padding: 7px 0; text-align: left; }
  .static-resource-table .resource-operation-column, .static-resource-table .resource-auto-renew-column { position: static; width: auto; min-width: 0; box-shadow: none; text-align: left; }
  .resource-row-actions { flex-wrap: wrap; }
  .resource-pager { flex-wrap: wrap; justify-content: center; }
  .resource-pager > span { width: 100%; margin: 0; text-align: center; }
  .proxy-product-tabs { grid-template-columns: 1fr; }
  .proxy-product-tabs > button { min-height: 78px; border-right: 0; border-bottom: 1px solid var(--line); }
  .proxy-balance-card { align-items: stretch; flex-direction: column; gap: 12px; }
  .proxy-balance-card > button:last-child { margin-left: 0; }
  .proxy-config-form .inline-fields { grid-template-columns: 1fr; }
  .proxy-capability-panel { padding: 24px 18px; }
  .credential-summary dl { grid-template-columns: 1fr; }
  .identity-tabs { height: 62px; padding: 0 16px; gap: 24px; overflow-x: auto; }
  .identity-tabs button { flex: none; font-size: 14px; }
  .identity-card { padding: 22px 17px 28px; }
  .identity-benefits { grid-template-columns: 1fr; }
  .identity-steps { gap: 6px; }
  .identity-steps li { align-items: flex-start; flex-direction: column; font-size: 11px; }
  .identity-steps li::after { left: 30px; top: 15px; }
  .resource-source-filters .primary-button, .resource-source-filters .outline-button { width: 100%; }
  .dialog-form-grid, .terminal-filters { grid-template-columns: 1fr; }
  .dialog-form-grid label.full { grid-column: auto; }
  .page-tabs { height: 62px; padding: 0 16px; gap: 23px; overflow-x: auto; }
  .page-tabs button { flex: none; font-size: 14px; }
  .wallet-account-line { display: grid; gap: 8px; }
  .amount-presets { grid-template-columns: repeat(2, 1fr); }
  .recharge-form fieldset { display: grid; }
  .channel-option, .recharge-submit { width: 100%; }
  .list-card { align-items: flex-start; flex-direction: column; }
  .list-actions { width: 100%; flex-wrap: wrap; }
  .order-card-head { padding: 17px; flex-direction: column; gap: 10px; }
  .order-config-grid { padding: 15px 17px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .order-config-item.wide { grid-column: 1 / -1; }
  .order-price-breakdown { padding: 15px 17px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .order-price-breakdown > div { text-align: left; }
  .order-price-breakdown .order-price-total { padding: 12px 0 0; grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .order-card > .order-exception-note { margin: 0 17px 15px; }
  .order-card-foot { padding: 0 17px 17px; }
  .promotion-hero { min-height: 400px; padding: 45px 25px; background-position: 58% center; }
  .promotion-hero > div { padding: 18px; border-radius: 7px; background: rgba(245,251,255,.86); backdrop-filter: blur(5px); }
  .promotion-hero h1 { font-size: 27px; }
  .referral-overview { grid-template-columns: 1fr 1fr; gap: 8px; }
  .referral-overview article { padding: 16px; }
  .share-card, .security-card, .legal-document-card { align-items: stretch; flex-direction: column; }
  .security-actions { justify-content: stretch; flex-direction: column; }
  .security-actions button { width: 100%; }
  .legal-document-card > span { flex-direction: column; }
  .legal-document-card a { text-align: center; }
  .share-action { grid-template-columns: 1fr; }
  .account-page { align-items: flex-start; flex-direction: column; }
  .auth-header { height: 62px; padding: 0 20px; }
  .auth-stage { min-height: calc(100vh - 62px); padding: 25px 16px; }
  .auth-card { padding: 24px 19px; }
}
