/* 极昼冰蓝. Loaded last; presentation and explicit auth-shell visibility only. No business or mobile navigation changes. */
html { background: var(--xb-page); }
body, body.admin-console { background: var(--xb-page); color: var(--xb-navy); font-family: var(--xb-font); }
body { line-height: 1.55; }
button, input, select, textarea { font-family: var(--xb-font); }
h1, h2, h3, h4 { color: var(--xb-navy); letter-spacing: -.02em; }
p, li, dd { overflow-wrap: anywhere; }
a { color: var(--xb-primary-hover); text-underline-offset: 3px; }
button, a, summary { -webkit-tap-highlight-color: #2563eb18; }
button, input, select, textarea, a, summary { transition: color var(--xb-transition), background-color var(--xb-transition), border-color var(--xb-transition), box-shadow var(--xb-transition); }
:is(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid var(--xb-focus); outline-offset: 3px; }
:is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):focus { border-color: var(--xb-primary); box-shadow: 0 0 0 3px var(--xb-focus-ring); }
:is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--xb-primary); }
::selection { background: #baddff; color: var(--xb-navy); }
[hidden] { display: none !important; }

/* Brand assets keep one geometry in the top bar, sidebar and forms. */
.brand-logo { width: 138px; height: 53px; aspect-ratio: 34 / 13; object-fit: contain; }
.register-logo .brand-logo { width: 245px; max-width: 100%; height: 94px; }
.brand-row .brand-logo, .shell .brand-logo { width: 190px; height: 73px; }
.app-topbar { background: #ffffffed; backdrop-filter: blur(14px); border-bottom-color: var(--xb-line); }
.brand-button { background: transparent; }
.desktop-page-title { color: var(--xb-subtle); font-size: 16px; }
.page-header { color: var(--xb-navy); background: #fffffff5; border-bottom-color: var(--xb-line); }
.back { color: var(--xb-subtle); }
.app, .owned-page { background: var(--xb-page); }
.home-top { background: #fff; }
.search-box input { border-color: var(--xb-line); border-radius: var(--xb-radius); background: var(--xb-surface-soft); }
.search-results { border: 1px solid var(--xb-line); box-shadow: var(--xb-shadow-modal); }
.search-result:hover { background: var(--xb-selected); }
.search-result .tag { color: var(--xb-primary); }

/* Primary actions remain separate from secondary, danger and business-state controls. */
:is(.primary-action, .register-primary, .wallet-recharge, .order-bar button, .button, .admin-button.primary, .recharge-submit) {
  background: var(--xb-primary); color: #fff; border-color: var(--xb-primary); border-radius: var(--xb-radius-sm); box-shadow: 0 4px 12px #2563eb18;
}
:is(.primary-action, .register-primary, .wallet-recharge, .order-bar button, .button, .admin-button.primary, .recharge-submit):not(:disabled):hover { background: var(--xb-primary-hover); border-color: var(--xb-primary-hover); box-shadow: 0 6px 18px #2563eb26; }
:is(.secondary-action, .owned-button, .admin-button, .button.secondary, .register-cta, .admin-refresh, .admin-menu-toggle) {
  border-color: var(--xb-line-strong); border-radius: var(--xb-radius-sm); background: #fff; color: var(--xb-subtle); box-shadow: none;
}
:is(.secondary-action, .owned-button, .admin-button, .button.secondary, .register-cta):not(:disabled):hover { border-color: #92b2e3; background: var(--xb-surface-soft); color: var(--xb-primary-hover); }
.admin-button.primary:not(.danger) { background: var(--xb-primary); color: #fff; border-color: var(--xb-primary); }
.admin-button.primary:not(.danger):not(:disabled):hover { background: var(--xb-primary-hover); color: #fff; border-color: var(--xb-primary-hover); }
#adminLoginForm button[type="submit"] { background: var(--xb-primary) !important; color: #fff; }
#adminLoginForm button[type="submit"]:not(:disabled):hover { background: var(--xb-primary-hover) !important; }
:is(.owned-button.orange, .admin-button.inventory, .button.delivery-publish) { border-color: #b8d3ff; color: var(--xb-primary-hover); background: var(--xb-selected); }
.button.delivery-publish { color: #fff; background: var(--xb-primary); border-color: var(--xb-primary); }
:is(.owned-button.danger, .admin-button.danger, .button.danger) { border-color: #eac1ca; color: var(--xb-danger); background: var(--xb-danger-bg); box-shadow: none; }
:is(.owned-button.danger, .admin-button.danger, .button.danger):not(:disabled):hover { border-color: #d99aa7; color: var(--xb-danger); background: #ffe4e9; }
.wallet-pill { background: var(--xb-selected); border: 1px solid #dce9fc; }
.wallet-balance { color: var(--xb-brand-navy); }
.mail-button, .feedback-nav { color: var(--xb-subtle); }
.feedback-nav { background: var(--xb-selected); }
.mail-count { background: var(--xb-primary); color: #fff; }
.customer-avatar { background: var(--xb-brand-navy); color: #fff; }
.mobile-tabs { background: #ffffffed; border-color: var(--xb-line); }
.mobile-tabs button { color: var(--xb-subtle); }
.mobile-tabs button.active, .mobile-tabs button[aria-current="page"], .mobile-tabs button:hover { color: var(--xb-primary); }
.order-bar { border-top-color: var(--xb-line); background: #fffffff5; backdrop-filter: blur(12px); }
.toast { background: var(--xb-navy); color: #fff; box-shadow: var(--xb-shadow-modal); white-space: normal; }

/* Existing catalog hooks are intentionally retained for every supplier/category. */
:is(.ip-hero, .relay-hero, .vps-hero, .broadband-hero, .airport-hero, .account-hero, .guide-hero, .recharge-hero) { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
:is(.ip-hero, .relay-hero, .vps-hero, .broadband-hero, .airport-hero, .account-hero, .guide-hero, .recharge-hero) p { color: var(--xb-subtle); line-height: 1.8; }
:is(.provider-note, .relay-note, .vps-note, .broadband-note, .airport-note, .relay-condition, .relay-detail-note, .account-detail-note, .miya-line-note, .server-bandwidth-info, .credential-warning, .order-detail-note) { border: 1px solid #e2e8f0; background: #f8fafc; color: #334155; border-radius: var(--xb-radius-sm); line-height: 1.75; }
:is(.provider-note b, .relay-note b, .vps-note b, .broadband-note b, .airport-note b, .relay-condition b, .miya-line-note b, .server-bandwidth-info b, .credential-warning b) { color: #0f172a; }
:is(.provider-note p, .credential-warning p) { color: inherit; }
:is(.guide-note, .client-note, .resip-step-empty) { border-color: #e2e8f0; background: #f8fafc; color: #334155; line-height: 1.75; }
.resip-tier-description { color: #64748b; }
:is(.provider-tab, .relay-tab, .vps-tab, .airport-tab, .tier-card, .period, .package, .pay-tab) { border-color: var(--xb-line); color: var(--xb-navy); }
:is(.provider-tab.active, .relay-tab.active, .vps-tab.active, .airport-tab.active, .tier-card.active, .period.selected, .package.selected, .pay-tab.active) { background: var(--xb-selected); color: var(--xb-primary-hover); border-color: var(--xb-primary); }
.resip-operator-card.active { outline-color: var(--xb-primary); background: var(--xb-selected); }
.resip-operator-card.active small { color: var(--xb-primary-hover); }
:is(.provider-tab, .relay-tab, .vps-tab, .airport-tab, .tier-card, .country-card, .relay-card, .vps-card, .account-card, .continent-row, .recommendation) { transition: border-color var(--xb-transition), box-shadow var(--xb-transition), background-color var(--xb-transition); }
:is(.provider-tab, .relay-tab, .vps-tab, .airport-tab, .tier-card, .country-card, .relay-card, .vps-card, .account-card, .continent-row, .recommendation):not(:disabled):hover { border-color: #b9d1f3; box-shadow: var(--xb-shadow-hover); }
:is(.country-card, .relay-card, .vps-card, .account-card, .continent-row, .recommendation, .detail-card, .app-card, .owned-card, .service-panel, .guide-card, .tutorial-step, .server-location-panel, .server-spec-panel, .contact-panel, .recharge-card, .pay-box, .feedback-form) { background: var(--xb-surface); border-color: var(--xb-line); border-radius: var(--xb-radius); box-shadow: var(--xb-shadow); }
.detail-head { align-items: flex-start; gap: 16px; border-color: var(--xb-line); }
.detail-head h1 { line-height: 1.55; }
:is(.country-card span, .vps-card b, .account-card b, .tier-card small, .recommendation .price, .price-row b, .package .pack-price, .owned-balance, .order-price) { color: var(--xb-primary-hover); }
.price-row { padding-block: 18px; gap: 14px; }
.period-selector { gap: 10px; }
.package { padding: 14px; gap: 14px; }
.package .pack-text small { line-height: 1.7; margin-top: 4px; }
:is(.info-chips span, .server-location-chips span, .tutorial-tags .overseas-tag, .step-number, .hot-rank-badge) { border-color: #cde0fa; background: var(--xb-selected); color: var(--xb-primary-hover); }
.server-location-chips { gap: 10px; }
.live-line-entry { background: var(--xb-surface-soft); border-color: var(--xb-line); }
.live-line-entry strong { color: var(--xb-brand-navy); }
.vps-spec, .airport-detail-nodes { background: var(--xb-surface-soft); color: var(--xb-subtle); line-height: 1.85; }
.airport-node-list { background: #fff; color: var(--xb-subtle); border: 1px solid var(--xb-line); box-shadow: var(--xb-shadow); }
.airport-node-list b { color: var(--xb-brand-navy); }
:is(.service small, .recommendation p, .provider-tab small, .compact-meta dt, .server-spec-grid dt, .order-detail-grid dt, .message-meta dt, .owned-footer, .owned-title p, .owned-card p) { color: var(--xb-muted); }
.service-panel { row-gap: 20px; }
.service-icon, .service:nth-child(n) .service-icon { background: linear-gradient(145deg, #eaf5ff, #d9f0ff); box-shadow: none; }
.service b { color: var(--xb-brand-navy); }
.service small { line-height: 1.7; }
.banner.banner-ip-check { background: linear-gradient(115deg, #e8f2ff, #f1fcff); border: 1px solid #dce9fa; }
.banner h2 { color: var(--xb-brand-navy); }
.banner p, .ip-check-link { color: #245d9a; }
.ip-check-link:hover { background: #ffffff87; }
.ip-check-link:focus-visible { outline-color: var(--xb-focus); }
.recommendation .thumb, .recommendation:nth-of-type(2) .thumb { background: linear-gradient(140deg, #50c6f6, #2563eb); }
.consult { background: var(--xb-navy); border-radius: var(--xb-radius-sm); }
.app-card p, .terms-page p, .tutorial-heading p { color: var(--xb-subtle); line-height: 1.85; }
.compact-meta { gap: 12px 16px; }
.compact-meta dd { color: var(--xb-navy); }
.app-card .card-actions { gap: 12px; }
.account-menu { border-color: var(--xb-line); }
.account-menu button { border-color: var(--xb-line); color: var(--xb-navy); }
.account-menu button:hover { background: var(--xb-surface-soft); }
.account-menu span { color: var(--xb-muted); }
.dashboard-wallet { background: linear-gradient(110deg, #103776, #175ca5); }
.dashboard-wallet span { color: #d3e5fb; }
.dashboard-wallet button { background: #fff; color: var(--xb-primary-hover); border-radius: var(--xb-radius-sm); }
.dashboard-stats article { background: #fff; border-color: var(--xb-line); }
.dashboard-stats b { color: var(--xb-brand-navy); }
.coupon-card { border-left-color: var(--xb-primary); }
.coupon-card > div > strong { color: var(--xb-primary); }
.coupon-card.locked { border-left-color: var(--xb-warning); }
.tutorial-filters button.active, .tutorial-toc button, .tutorial-step a { color: var(--xb-primary-hover); }
.tutorial-filters button.active { background: var(--xb-selected); border-color: #bad1f5; }
.tutorial-reader { line-height: 1.85; }
.tutorial-step p { color: var(--xb-navy); }
.contact-qr-tip, .subscription-value a { color: var(--xb-primary-hover); }

/* Long secondary prose is available in full via semantic details; required consent stays outside. */
.xb-info-disclosure { margin: 18px 0; border: 1px solid var(--xb-line); border-radius: var(--xb-radius-sm); background: var(--xb-surface-soft); overflow: visible; }
.xb-info-disclosure > summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 13px 16px; cursor: pointer; list-style: none; color: var(--xb-brand-navy); font-size: 14px; font-weight: 700; line-height: 1.65; }
.xb-info-disclosure > summary::-webkit-details-marker { display: none; }
.xb-info-disclosure > summary::after { content: "+"; flex-shrink: 0; width: 22px; margin-left: auto; color: var(--xb-primary); text-align: center; font-size: 21px; font-weight: 400; }
.xb-info-disclosure[open] > summary { border-bottom: 1px solid var(--xb-line); }
.xb-info-disclosure[open] > summary::after { content: "−"; }
.xb-info-content { padding: 16px; color: var(--xb-subtle); font-size: 14px; line-height: 1.9; }
.xb-info-content p, .xb-info-content li { color: inherit; line-height: inherit; }
.xb-info-content p:first-child { margin-top: 0; }
.xb-info-content p:last-child { margin-bottom: 0; }
.xb-info-content ol, .xb-info-content ul { padding-left: 22px; }
.xb-info-content li + li { margin-top: 8px; }
.xb-info-content h3, .xb-info-content h4 { margin-top: 20px; font-size: 15px; }
.xb-copy-summary { margin: 0; color: var(--xb-subtle); font-size: 14px; line-height: 1.8; }
.xb-information-panel { color: var(--xb-subtle); line-height: 1.9; }
.xb-information-panel p { margin: 0 0 14px; white-space: pre-wrap; line-height: 1.9; }
.xb-information-panel p:last-child { margin-bottom: 0; }
.xb-info-paragraphs, .xb-info-required { white-space: pre-line; line-height: 1.9; }
.xb-info-paragraphs + .xb-info-paragraphs, .xb-info-required + .xb-info-required { margin-top: 14px; }
.xb-info-required { color: var(--xb-info-text); }

/* Tables retain horizontal scrolling and every existing column/action; no overflow clipping. */
:is(.owned-table-wrap, .client-order-table-wrap, .admin-table-wrap, .admin-product-table-wrap) { border-color: var(--xb-line); }
:is(.owned-table, .resource-table, .client-order-table, .admin-table) { background: #fff; color: var(--xb-navy); }
:is(.owned-table, .resource-table, .client-order-table, .admin-table) th { background: var(--xb-surface-soft); color: var(--xb-subtle); border-color: var(--xb-line); }
:is(.owned-table, .resource-table, .client-order-table, .admin-table) td { border-color: var(--xb-line); }
.client-order-table tr[data-action]:hover, .client-order-table tr.selected { background: var(--xb-selected); }
.owned-product-name { color: var(--xb-navy); }
.renew-price, .owned-table small { color: var(--xb-muted); }
.renew-switch[aria-checked="true"] { background: var(--xb-primary); border-color: var(--xb-primary); }
.renew-switch[aria-checked="false"] { background: #e5edf7; border-color: #cfdbea; }
.delivery-attention-label { color: var(--xb-subtle); }
.proxy-preview { color: var(--xb-navy); }
.proxy-icon-button { color: var(--xb-subtle) !important; border-color: var(--xb-line-strong) !important; background: #fff !important; }
.proxy-icon-button:hover, .proxy-icon-button:focus-visible { color: var(--xb-primary-hover) !important; border-color: #97b9ea !important; background: var(--xb-selected) !important; }
.proxy-complete, .mobile-service-identity { background: var(--xb-surface-soft); border-color: var(--xb-line); }
.desktop-qr-popover { border-color: var(--xb-line); background: #fff; color: var(--xb-navy); box-shadow: var(--xb-shadow-modal); }
.desktop-qr-tabs { background: #edf2f8; }
.qr-tabs { background: #edf2f8; }
.desktop-qr-tabs button { color: var(--xb-subtle); }
.desktop-qr-tabs button.active { color: var(--xb-navy); background: #fff; }
.qr-tabs button.active { color: var(--xb-primary-hover); background: #fff; }
.desktop-qr-content p { color: var(--xb-muted); }

/* Dialog/focus behavior is inherited: no new overlay trapping or sensitive data rendering. */
:is(.qr-dialog, .service-dialog, .admin-modal-panel, .terms-page) { border-color: var(--xb-line); background: #fff; border-radius: var(--xb-radius-lg); box-shadow: var(--xb-shadow-modal); color: var(--xb-navy); }
dialog::backdrop { background: #0f27445c; backdrop-filter: blur(3px); }
.admin-modal-backdrop { background: #0f27445c; }
:is(.qr-dialog-head, .service-dialog-actions, .proxy-detail-fields) { border-color: var(--xb-line); }
:is(.qr-dialog-head button, .admin-modal-close) { color: var(--xb-subtle); border-color: var(--xb-line); background: #fff; border-radius: var(--xb-radius-sm); }
:is(.feedback-form input, .feedback-form select, .feedback-form textarea, .field input, .field select, .field textarea, .coupon-picker select, .desktop-note-input) { border-color: var(--xb-line-strong); color: var(--xb-navy); background: #fff; border-radius: var(--xb-radius-sm); }
.feedback-form input:disabled { background: #edf2f9; color: var(--xb-muted); }
.feedback-form .dialog-message { color: var(--xb-subtle); }
.feedback-form label small { color: var(--xb-muted); }
.mobile-proxy-details > summary { color: var(--xb-primary-hover); background: var(--xb-surface-soft); border-color: var(--xb-line); }
.mobile-proxy-details > summary span { color: var(--xb-navy); }
.config-value summary { color: var(--xb-primary-hover); }
.desktop-note-input:focus { border-color: var(--xb-primary); box-shadow: 0 0 0 3px var(--xb-focus-ring); }

/* Business states retain the visible words and semantic success/warning/error distinctions. */
.status-tag, .status-refunded, .status-cancelled { background: #eaf0f7; color: #4b617b; }
.status-awaiting_customer_wait_decision, .admin-status.pending { background: var(--xb-warning-bg); color: var(--xb-warning); }
.status-customer_agreed_wait, .admin-status.success { background: var(--xb-success-bg); color: var(--xb-success); }
.admin-status.danger, .recharge-feedback.error { color: var(--xb-danger); }
.admin-status.danger { background: var(--xb-danger-bg); }
.credit { color: var(--xb-success); }
.debit { color: var(--xb-danger) !important; }
.expiry-alert { color: var(--xb-warning) !important; }
.inventory-wait-card { border-color: #ecd8b4; background: var(--xb-warning-bg); }
.inventory-wait-title strong { color: var(--xb-warning); }
.inventory-wait-card.resolved { border-color: var(--xb-line); background: var(--xb-surface-soft); }
.inventory-wait-result, .inventory-message-result { background: #edf2f9; color: var(--xb-subtle) !important; }
.renewal-reminder { color: #334155; background: #f8fafc; border-color: #e2e8f0; }
.inventory-message { border-color: var(--xb-line) !important; background: #fff; }
.inventory-message-note { background: var(--xb-surface-soft); color: var(--xb-subtle); }
.message-card { border-color: var(--xb-line); background: #fff; box-shadow: var(--xb-shadow); }
.message-card.unread { border-color: #aacaf7; background: #f9fcff; }
.message-meta { border-color: var(--xb-line); background: var(--xb-surface-soft); }

/* Two-step recharge: exact calculations, flags and visible legal acknowledgements are untouched. */
.recharge-account-bar { color: var(--xb-muted); border-color: var(--xb-line); }
.recharge-account-bar strong { color: var(--xb-brand-navy); }
.recharge-steps { color: var(--xb-muted); }
.recharge-steps span { color: var(--xb-subtle); background: #e6eef9; }
.recharge-steps .active { color: var(--xb-primary-hover); }
.recharge-steps .active span { color: #fff; background: var(--xb-primary); }
.recharge-panel, .recharge-confirmed-card { border-color: var(--xb-line); box-shadow: var(--xb-shadow); }
.recharge-panel > p { color: var(--xb-subtle); }
.recharge-mode-tabs { background: #eaf0f8; }
.recharge-mode-tabs button { color: var(--xb-muted); }
.recharge-mode-tabs button.active { color: var(--xb-primary-hover); background: #fff; box-shadow: 0 3px 10px #1944780c; }
.recharge-edit-amount { color: var(--xb-primary-hover); background: var(--xb-selected); }
.recharge-campaign { background: linear-gradient(115deg, #edf6ff, #f6fcff); border-color: #cce1fa; padding: 22px; }
.recharge-campaign.inactive { background: var(--xb-surface-soft); border-color: var(--xb-line); }
.recharge-campaign-head small { color: #fff; background: var(--xb-primary); }
.recharge-campaign-icon { color: var(--xb-primary); box-shadow: var(--xb-shadow); }
.recharge-campaign-tiers { gap: 12px; }
.recharge-tier-poster { border-color: #d6e5f8; box-shadow: var(--xb-shadow); }
.recharge-tier-poster em { background: var(--xb-selected); color: var(--xb-primary-hover); }
.recharge-campaign-tiers b, .recharge-tier-poster b { color: var(--xb-primary-hover); }
.recharge-campaign-tiers em { color: var(--xb-primary-hover); }
.recharge-campaign > p, .recharge-poster-note { color: var(--xb-subtle); }
.recharge-campaign-summary div { border: 1px solid var(--xb-line); border-radius: var(--xb-radius-sm); }
.recharge-campaign-summary span { color: var(--xb-muted); }
.recharge-campaign-summary .total { background: #103b7c; color: #fff; border-color: #103b7c; }
.recharge-campaign-summary .total span { color: #d2e6ff; }
.recharge-campaign-summary .total b { color: #bde9ff; }
.recharge-amount-field span { color: var(--xb-subtle); }
.recharge-amount-input { border-color: var(--xb-line-strong); border-radius: var(--xb-radius-sm); }
.recharge-amount-input:focus-within { border-color: var(--xb-primary); box-shadow: 0 0 0 3px var(--xb-focus-ring); }
.recharge-amount-input b { color: var(--xb-primary); }
/* One focus ring belongs to the currency/input wrapper, not its clipped input. */
.recharge-amount-input > #rechargeAmount,
.recharge-amount-input > #rechargeAmount:focus,
.recharge-amount-input > #rechargeAmount:focus-visible {
  border: 0;
  outline: none;
  box-shadow: none;
  font-size: 18px;
  line-height: 1.5;
  caret-color: currentColor;
}
.recharge-payment { border-color: var(--xb-line); background: var(--xb-surface-soft); }
.recharge-payment > p, .recharge-contact-layout p { color: var(--xb-subtle); }
.recharge-upload { color: var(--xb-primary-hover); border-color: #a9c7f7; background: #fff; border-radius: var(--xb-radius-sm); }
.recharge-remove-proof, .recharge-contact-layout a { color: var(--xb-primary-hover); }
.recharge-notice, .recharge-nonrefundable { color: #334155 !important; border-color: #e2e8f0; background: #f8fafc; }
.recharge-compliance { color: #334155; border-color: #e2e8f0; background: #f8fafc; line-height: 1.9; }
.recharge-compliance h3, .recharge-compliance h4 { color: #0f172a; }
.recharge-consent { color: var(--xb-subtle); }
.recharge-consent input { accent-color: var(--xb-primary); }
.recharge-shell button:focus-visible, .recharge-consent input:focus-visible { outline-color: var(--xb-focus); }
.recharge-feedback { color: var(--xb-subtle) !important; }
.recharge-feedback.error { color: var(--xb-danger) !important; }
.recharge-feedback.success { color: var(--xb-success) !important; background: var(--xb-success-bg); }
.recharge-status { color: var(--xb-warning); }
.recharge-status.credited { color: var(--xb-success); }
.recharge-status.rejected { color: var(--xb-danger); }
.recharge-request-item div span, .recharge-request-item small { color: var(--xb-muted); }

/* Existing admin presentation receives the same palette, not a new admin permission/session system. */
.admin-notice { color: #334155; border-color: #e2e8f0; background: #f8fafc; }
.admin-stat, .admin-card, .request-card { border-color: var(--xb-line); border-radius: var(--xb-radius); box-shadow: var(--xb-shadow); }
.admin-stat:hover, .product-source-card-clickable:hover { border-color: #aacaf5; box-shadow: var(--xb-shadow-hover); }
.admin-stat em, .open-client { color: var(--xb-primary-hover); background: var(--xb-selected); }
.admin-nav-icon { color: var(--xb-primary); }
.admin-topbar { border-color: var(--xb-line); background: #ffffffed; }
.admin-product-input, .admin-search input, .admin-toolbar select { border-color: var(--xb-line-strong); background: #fff; }
.product-type-filter { color: var(--xb-subtle); border-color: var(--xb-line); background: var(--xb-surface-soft); }
.product-type-filter:hover, .product-type-filter.active { background: var(--xb-selected); color: var(--xb-primary-hover); border-color: #9fbff0; }
.product-type-filter.active span { background: var(--xb-primary); color: #fff; }
.delivery-editor { border-color: #bad6fa; }
.customer-detail, .resource-editor, .ranking-meta > div, .feedback-description { background: var(--xb-surface-soft); border-color: var(--xb-line); }
.customer-search-result.selected { border-color: #9fbff0; background: var(--xb-selected); }
.customer-detail-tabs .active { background: var(--xb-primary); color: #fff; }
.balance { background: linear-gradient(120deg, #0f3979, #246bb4); }
.credit-context { background: #f8fafc; color: #334155; border-color: #e2e8f0; }
.button.paste-qr { color: var(--xb-primary-hover); background: var(--xb-selected); border-color: #bdd4f6; }
.qr-upload:focus-within { border-color: var(--xb-primary); box-shadow: 0 0 0 3px var(--xb-focus-ring); }
.delivery-feedback { color: var(--xb-subtle); }
.inventory-audit summary, .admin-customer-link { color: var(--xb-primary-hover); }
.inventory-audit-item { background: var(--xb-surface-soft); border-color: var(--xb-line); }
.service-source-label { color: var(--xb-primary-hover); background: var(--xb-selected); }

/* Sidebar is desktop-only; mobile keeps its original order, controls, grids and bottom navigation. */
.xb-desktop-sidebar { display: none; }
.xb-brand-icon { display: none; }
@media (min-width: 1024px) {
  body { --xb-layout-sidebar-width: var(--xb-sidebar-width); }
  body.xb-sidebar-collapsed { --xb-layout-sidebar-width: var(--xb-sidebar-collapsed-width); }
  .xb-desktop-sidebar {
    display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--xb-layout-sidebar-width);
    z-index: 35; gap: 0; padding: 20px 14px 14px; border-right: 1px solid var(--xb-line); background: #fff; color: var(--xb-navy);
    overflow: visible; transition: width var(--xb-transition), padding var(--xb-transition);
  }
  .xb-desktop-sidebar .xb-sidebar-brand { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 100%; min-height: 86px; margin-bottom: 16px; padding: 0 0 15px !important; border: 0; border-bottom: 1px solid var(--xb-line); border-radius: 0; background: transparent; box-shadow: none; }
  .xb-sidebar-brand button { background: transparent; border: 0; padding: 0; }
  .xb-legacy-sidebar-brand { display: none; }
  .xb-sidebar-brand .xb-brand-full, .xb-sidebar-brand .brand-logo { width: 206px; height: 79px; aspect-ratio: 34 / 13; filter: none; }
  .xb-sidebar-brand .xb-brand-icon { width: 42px; height: 46px; }
  .xb-sidebar-nav { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 0 14px; scrollbar-width: thin; scrollbar-color: #cfdef0 transparent; }
  .xb-sidebar-group { margin: 10px 0 16px; }
  .xb-desktop-sidebar .desktop-nav-caption, .xb-sidebar-group > span { display: block; margin: 0; padding: 0 12px 9px; color: var(--xb-muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; }
  .xb-desktop-sidebar :is(.xb-sidebar-link, .xb-sidebar-sub-link, .xb-sidebar-group-toggle) { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px !important; margin: 4px 0; padding: 11px 12px !important; border: 0; border-radius: var(--xb-radius-sm); background: transparent; color: var(--xb-subtle); text-align: left; font-size: 14px; line-height: 1.45; cursor: pointer; box-shadow: none; }
  .xb-sidebar-group-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
  .xb-sidebar-group-row > .xb-sidebar-link { flex: 1; min-width: 0; width: auto; }
  .xb-desktop-sidebar .xb-sidebar-group-row > .xb-sidebar-group-toggle { flex: 0 0 28px; width: 28px; padding-inline: 4px !important; }
  .xb-sidebar-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 21px; width: 21px; height: 23px; color: #526d91; font-size: 20px; line-height: 1; }
  .xb-sidebar-icon svg, svg.xb-sidebar-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .xb-sidebar-text { min-width: 0; color: inherit; }
  .xb-desktop-sidebar :is(.xb-sidebar-link, .xb-sidebar-sub-link, .xb-sidebar-group-toggle):hover { color: var(--xb-primary-hover); background: var(--xb-surface-soft); }
  .xb-desktop-sidebar :is(.xb-sidebar-link, .xb-sidebar-sub-link).active, .xb-desktop-sidebar [aria-current="page"] { color: var(--xb-primary-hover); background: var(--xb-selected); box-shadow: inset 3px 0 var(--xb-primary); font-weight: 700; }
  .xb-desktop-sidebar :is(.xb-sidebar-link, .xb-sidebar-sub-link).active .xb-sidebar-icon, .xb-desktop-sidebar [aria-current="page"] .xb-sidebar-icon { color: var(--xb-primary); }
  .xb-desktop-sidebar .xb-sidebar-group-toggle::after { content: "›"; margin-left: auto; transform: rotate(90deg); font-size: 18px; color: var(--xb-muted); transition: transform var(--xb-transition); }
  .xb-desktop-sidebar .xb-sidebar-group-toggle[aria-expanded="true"]::after { transform: rotate(-90deg); }
  .xb-desktop-sidebar .xb-sidebar-sub-link { padding-left: 22px !important; font-size: 13px; }
  .xb-desktop-sidebar .xb-sidebar-sub-link .xb-sidebar-icon { font-size: 16px; }
  .xb-sidebar-toggle { display: flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 10px; min-height: 44px !important; margin-top: 10px; padding: 11px !important; border: 1px solid var(--xb-line) !important; border-radius: var(--xb-radius-sm); background: var(--xb-surface-soft) !important; color: var(--xb-subtle) !important; cursor: pointer; }
  .xb-sidebar-toggle:hover { color: var(--xb-primary-hover) !important; background: var(--xb-selected) !important; }
  .xb-sidebar-toggle svg { width: 18px; height: 18px; }
  .xb-sidebar-collapsed .xb-desktop-sidebar { padding-inline: 10px; }
  .xb-sidebar-collapsed .xb-brand-full, .xb-sidebar-collapsed .xb-sidebar-brand .brand-logo, .xb-sidebar-collapsed .xb-sidebar-text, .xb-sidebar-collapsed .desktop-nav-caption, .xb-sidebar-collapsed .xb-sidebar-group > span { display: none; }
  .xb-sidebar-collapsed .xb-brand-icon { display: block; }
  .xb-sidebar-collapsed .admin-nav-group > span { display: none; }
  .xb-sidebar-collapsed .xb-sidebar-brand { min-height: 86px; }
  .xb-sidebar-collapsed .xb-sidebar-group { margin: 6px 0 10px; }
  .xb-sidebar-collapsed .xb-desktop-sidebar :is(.xb-sidebar-link, .xb-sidebar-sub-link, .xb-sidebar-group-toggle) { justify-content: center; gap: 0; padding-inline: 10px !important; }
  .xb-sidebar-collapsed .xb-sidebar-group-toggle::after { display: none; }
  .xb-sidebar-collapsed .xb-sidebar-group-row > .xb-sidebar-group-toggle { display: none; }
  .xb-sidebar-collapsed .xb-desktop-sidebar .admin-nav-badge { display: none; }
  .xb-sidebar-collapsed .xb-sidebar-toggle svg { transform: rotate(180deg); }
  .app { margin-left: var(--xb-layout-sidebar-width); margin-right: 0; width: calc(100% - var(--xb-layout-sidebar-width)); transition: width var(--xb-transition), margin-left var(--xb-transition); }
  .app-topbar { left: var(--xb-layout-sidebar-width); padding-inline: 24px; transition: left var(--xb-transition); }
  /* Only the repeated desktop client topbar brand is hidden. Sidebar, mobile
   * header and independent login/register brands keep their original assets. */
  .app-topbar > .brand-button { display: none; }
  .app-topbar > .desktop-page-title { display: block; margin-left: 0; margin-right: auto; padding-left: 0; border-left: 0; color: #0f172a; font-size: 17px; font-weight: 650; }
  .content, .detail-wrap, .owned-page, .guide-view, .order-screen, .account-view, .vps-view, .relay-view, .broadband-view, .airport-view, .inbox-wrap { max-width: 1440px; padding-inline: 28px; }
  .home-top { padding-inline: max(28px, calc((100% - 1384px) / 2)); }
  .detail-wrap { max-width: 1120px; }
  .detail-card { padding: 28px; }
  .app-card { padding: 24px; }
  .country-card, .relay-card, .vps-card, .account-card { padding: 22px; }
  .country-grid, .relay-grid, .vps-grid, .account-grid { gap: 18px; }
  .owned-table-wrap { overflow-x: auto; overflow-y: visible; }
  .admin-main { margin-left: var(--xb-layout-sidebar-width); transition: margin-left var(--xb-transition); }
  .admin-sidebar .admin-brand-copy { display: none; }
  .admin-sidebar .admin-brand { border-bottom-color: var(--xb-line); }
  .admin-nav button { color: var(--xb-subtle); }
  .admin-nav button:hover, .admin-nav button.active { color: var(--xb-primary-hover); background: var(--xb-selected); }
  .delivery-attention:hover .delivery-attention-content, .delivery-attention:focus-within .delivery-attention-content,
  .proxy-info-hover:hover > .proxy-info-tooltip, .proxy-info-hover:focus > .proxy-info-tooltip { background: var(--xb-navy); color: #fff; }
}

/* Independent authentication layout. The auth shell is a sibling of main.app,
 * not a modal or an overlay over the site's sidebar/content frame. */
body.auth-screen { margin: 0; padding: 0; background: #edf3f9; }
body.auth-screen :is(main.app, .xb-desktop-sidebar, .desktop-sidebar, .app-topbar, #customerNav, #mobileTabs) { display: none !important; }
.auth-shell[hidden], .auth-shell .screen[hidden] { display: none !important; }
.auth-shell {
  display: flex; flex-direction: column; width: 100%; max-width: none; min-width: 0;
  min-height: 100vh; min-height: 100dvh; margin: 0; padding: 0; border: 0;
  border-radius: 0; background: #edf3f9; box-shadow: none;
}
.auth-page-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 10px clamp(16px, 3vw, 42px); color: #d3e8fa; }
.auth-page-nav > button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 44px; min-height: 44px; padding: 9px 16px; border: 1px solid #1d5b9f;
  border-radius: var(--xb-radius-sm); background: #174a82; color: #fff;
  font: inherit; font-size: 14px; line-height: 1.5; cursor: pointer;
}
.auth-page-nav > button:hover { border-color: #8ccced; background: #133653; color: #fff; }
.auth-page-nav > button:active { background: #0b2e52; border-color: #0b2e52; }
.auth-page-nav > button:focus-visible { outline-color: #7bd9f3; }
.auth-demo-indicator { max-width: 100%; font-size: 12px; line-height: 1.5; color: #c5dceb; overflow-wrap: anywhere; }
.auth-shell > .registration-screen.active { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; width: 100%; margin: 0; padding: 0; }
.auth-shell :is(#clientView, #registerView) { display: flex; flex: 1; flex-direction: column; min-width: 0; width: 100%; max-width: none; margin: 0; padding: 0; }
.auth-shell .registration-shell {
  display: grid; flex: 1; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  min-width: 0; min-height: 0; width: 100%; max-width: none; margin: 0; padding: 0;
  border: 0; border-radius: 0; overflow: visible; box-shadow: none;
}
.auth-shell .registration-shell.xb-auth-surface { border-radius: 0; background: #edf3f9; box-shadow: none; }
.auth-shell :is(.register-promo, .register-form-panel) { min-width: 0; }
.auth-shell .register-promo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .88fr);
  grid-template-rows: auto auto; align-content: center; gap: 28px 24px;
  padding: clamp(28px, 3.2vw, 60px); color: #355876;
  background: linear-gradient(140deg, #edf3f9, #e6eef8);
}
.auth-shell .registration-shell.xb-auth-surface .register-promo { background: linear-gradient(140deg, #edf3f9, #e6eef8); color: #355876; }
.auth-shell .register-logo { grid-column: 1 / -1; align-self: start; }
.auth-shell .register-promo-copy { grid-column: 1; grid-row: 2; align-self: center; margin: 0; }
.auth-shell .register-promo-copy h1 { margin: 0; color: #174a82; font-size: clamp(28px, 2.7vw, 42px); line-height: 1.45; }
.auth-shell .register-promo-copy strong { color: #1468b2; }
.auth-shell .register-points { display: grid; gap: 13px; margin: 23px 0 0 !important; padding: 0; color: #355876; }
.auth-shell .register-points li { color: inherit; }
.auth-shell .register-points .support-hours { color: #496781; }
.auth-shell .register-form-panel { padding: clamp(28px, 4vw, 66px); background: #f8fafd; }
.auth-shell .register-form-wrap { width: min(100%, 520px); min-width: 0; }
.auth-shell .xb-auth-art { grid-column: 2; grid-row: 2; align-self: center; justify-self: center; width: min(100%, 260px); margin: 0; }
.auth-shell .xb-auth-art-mark { width: 74px; height: 79px; opacity: 1; }

/* Light-weight CSS-only network motion; no canvas, timers, external fonts or interactive decoration. */
.registration-screen { background: #edf3f9; }
.registration-shell.xb-auth-surface { background: #edf3f9; box-shadow: 0 20px 64px #07162621; }
.register-promo { background: linear-gradient(140deg, #edf3f9, #e6eef8); color: #355876; }
.register-promo::before { width: 260px; height: 260px; right: -80px; top: 28%; bottom: auto; border-radius: 50%; background: radial-gradient(circle, #c9def333, transparent 68%); box-shadow: none; transform: none; }
.register-promo::after { inset: 0; width: auto; height: auto; border-radius: 0; background-image: linear-gradient(#1b5f9e05 1px, transparent 1px), linear-gradient(90deg, #1b5f9e05 1px, transparent 1px); background-size: 40px 40px; box-shadow: none; transform: none; }
.register-promo-copy { z-index: 2; }
.register-promo-copy h1 { color: #174a82; }
.register-promo-copy strong { color: #1468b2; }
.register-points { color: #355876; font-size: 14px; line-height: 1.8; }
.register-points li::before { border-color: #2783b4; color: #1b6f9d; }
.register-points .support-hours { color: #496781; }
.register-form-panel { position: relative; z-index: 2; background: #fff; }
.register-form-wrap h1 { color: var(--xb-navy); }
.register-form-wrap > p, .register-login-link { color: var(--xb-muted); }
.register-form label { color: var(--xb-subtle); font-size: 14px; }
.register-form input { height: 54px; border-color: var(--xb-line-strong); border-radius: var(--xb-radius-sm); background: var(--xb-surface-soft); color: var(--xb-navy); padding-inline: 16px; }
.register-form input:focus { background: #fff; border-color: var(--xb-primary); box-shadow: 0 0 0 3px var(--xb-focus-ring); }
.register-form .terms-check input { accent-color: var(--xb-primary); }
.terms-link, .register-login-link button { color: var(--xb-primary-hover); }
.register-warning { color: var(--xb-warning); }
.terms-check { color: var(--xb-subtle); }
.xb-auth-art { position: relative; z-index: 1; width: min(100%, 260px); aspect-ratio: 1; margin: 0; pointer-events: none; }
.xb-auth-art-mark { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 62px; height: 66px; object-fit: contain; opacity: .86; }
.xb-auth-orbit { position: absolute; inset: 9%; border: 1px dashed #2a78a966; border-radius: 50%; animation: xb-orbit 42s linear infinite; }
body:not(.auth-screen) .auth-shell .xb-auth-orbit, .auth-shell[hidden] .xb-auth-orbit { animation-play-state: paused; }
.xb-auth-orbit::before { content: ""; position: absolute; inset: 29%; border: 1px solid #2788b670; border-radius: 25%; transform: rotate(45deg); background: linear-gradient(135deg, #2865b21c, #24b4d218); box-shadow: 0 0 34px #38bdf80a; }
.xb-auth-orbit::after { content: ""; position: absolute; left: 46%; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: #218bb8; box-shadow: 0 0 10px #38bdf82a; }
.xb-auth-orbit span { position: absolute; inset: 13%; border: 1px solid #3b9bcd4d; border-radius: 29%; transform: rotate(22deg); }
.xb-auth-orbit span:nth-child(2) { transform: rotate(70deg); border-color: #6dc6e333; }
.xb-auth-orbit span:nth-child(3) { inset: 0; border-radius: 50%; transform: scaleY(.58) rotate(28deg); border-color: #37badd42; }
@keyframes xb-orbit { to { transform: rotate(360deg); } }
@media (min-width: 1024px) {
  .register-promo { padding: 35px; }
  .register-promo-copy { margin-top: 30px; }
  .register-promo-copy h1 { font-size: clamp(27px, 2.5vw, 36px); }
  .register-points { margin-top: 28px; gap: 14px; }
  .register-form-panel { padding: 38px clamp(28px, 3.5vw, 65px); }
}
@media (max-width: 1023px) {
  .xb-desktop-sidebar { display: none !important; }
  .mobile-note-edit, .delivery-attention-label { border-color: var(--xb-line); color: var(--xb-subtle); }
  .delivery-attention.open .delivery-attention-content { background: #f8fafc; color: #334155; border-color: #e2e8f0; }
}
@media (max-width: 759px) {
  .auth-page-nav { padding: 8px 16px; }
  .auth-shell .registration-shell { display: flex; flex-direction: column; }
  .auth-shell .register-promo { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; padding: 20px; }
  .auth-shell .register-logo { grid-column: 1 / -1; }
  .auth-shell .register-promo-copy { grid-column: 1; grid-row: 2; margin: 0; }
  .auth-shell .register-promo-copy h1 { margin: 0; font-size: 23px; }
  .auth-shell .register-points { gap: 8px; margin-top: 15px !important; font-size: 13px; }
  .auth-shell .register-points li { font-size: 13px; line-height: 1.55; }
  .auth-shell .register-points li::before { margin-right: 7px; }
  .auth-shell .register-points .support-hours { margin-left: 26px; font-size: 12px; line-height: 1.6; }
  .auth-shell .register-form-panel { flex: 1; padding: 28px 20px 34px; }
  .auth-shell .register-form-wrap { margin: auto; }
  .auth-shell .xb-auth-art { position: relative; grid-column: 2; grid-row: 2; align-self: center; width: 104px; max-width: 100%; margin: 0; opacity: 1; }
  .auth-shell .xb-auth-art-mark { width: 40px; height: 43px; }
  .auth-shell .xb-auth-orbit { animation-duration: 48s; }
  .auth-shell .xb-auth-orbit::before { box-shadow: none; }
  .auth-shell .xb-auth-orbit::after { box-shadow: none; width: 5px; height: 5px; top: -3px; }
}
@media (max-width: 759px) {
  .brand-logo { width: 102px; height: 39px; }
  .register-logo .brand-logo { width: 190px; height: 73px; }
  .app-topbar { padding-left: 10px; }
  .register-promo { background: linear-gradient(140deg, #edf3f9, #e6eef8); }
  .register-promo-copy h1 { color: #174a82; }
  .register-form-wrap > p { line-height: 1.8; }
  .recharge-campaign { padding: 16px; }
  .recharge-campaign-tiers { gap: 10px; }
  .xb-info-disclosure > summary { padding: 12px 14px; }
  .xb-info-content { padding: 14px; }
  .owned-table td::before { color: var(--xb-muted); }
}
@media (max-width: 359px) { .brand-logo { width: 80px; height: 31px; } }
@media (min-width: 360px) and (max-width: 430px) {
  .app-topbar .brand-logo { width: 90px; height: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


@media (min-width: 1024px) {
  .banner.banner-ip-check-tech {
    border-color: #bfd6f5;
  }
  .banner.banner-ip-check-tech .ip-check-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
  }
}


@media (min-width: 1024px) {
  .banner.banner-ip-check-tech-v2 .banner-ip-copy h2 { color: #e8f6ff; }
  .banner.banner-ip-check-tech-v2 .banner-ip-copy p { color: #9ad7f0; }
  .banner.banner-ip-check-tech-v2 .ip-check-link:focus-visible {
    outline: 2px solid #67e8f9;
    outline-offset: 6px;
    border-radius: 12px;
  }
}

/* Overview service-grid tech polish — soft cyan hairline + icon wells; equal row heights. */
.service-panel {
  align-items: stretch;
  gap: 12px;
  padding: 14px 10px;
  background: transparent;
  border: none;
  box-shadow: none;
}
.service-panel .service {
  position: relative;
  isolation: isolate;
  align-self: stretch;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid #c8ddf0aa;
  background: #fff;
  box-shadow:
    0 0 0 1px #38bdf812,
    0 8px 18px #1d4ed80a,
    inset 0 1px 0 #ffffffd9;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}
.service-panel .service::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 0 1px #7dd3fc1f;
}
.service-panel .service > * {
  position: relative;
  z-index: 1;
}
.service-panel .service:hover,
.service-panel .service:active {
  border-color: #7dd3fc99;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px #22d3ee1f,
    0 0 16px #38bdf81f,
    0 10px 20px #1d4ed810,
    inset 0 1px 0 #fff;
}
.service-panel .service:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}
.service-panel .service .service-icon {
  border: 1px solid #b9e6fe77;
  box-shadow:
    0 0 0 1px #38bdf810,
    0 0 10px #67e8f924,
    inset 0 1px 0 #ffffffef,
    inset 0 -1px 0 #93c5fd18;
}
@media (min-width: 1024px) {
  .service-panel {
    align-items: stretch;
    gap: 14px;
    padding: 18px;
  }
  .service-panel .service {
    padding: 14px 12px;
    border-radius: 16px;
    height: 100%;
    align-content: start;
  }
}
@media (max-width: 759px) {
  .service-panel {
    align-items: stretch;
    gap: 10px;
    padding: 12px 8px;
  }
  .service-panel .service {
    padding: 10px 6px;
    border-radius: 13px;
    height: 100%;
  }
}

/* service-panel stretch lock — beat web-app align-items:start so row bottoms align */
.service-panel.service-panel {
  align-items: stretch;
}
.service-panel.service-panel .service {
  align-self: stretch;
  height: 100%;
}
