From fe43fdbf9cf8bdc735fc77cd2340d4da34244ece Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 3 Oct 2026 04:02:39 +0800 Subject: [PATCH] refactor: remove retired frontend residues --- web/public/cloud/account.css | 128 +- web/public/cloud/client.css | 22 +- web/public/theme/venix/css/admin-home.css | 54 - web/public/theme/venix/css/user-home.css | 4291 ----------------- web/public/theme/venix/js/user-home.js | 89 - web/resources/views/venix/layout_assets.tpl | 2 +- .../views/venix/user/account_drawer.tpl | 1 - web/resources/views/venix/user/edit.tpl | 2 +- web/resources/views/venix/user/invite.tpl | 2 +- .../views/venix/user/layout_modal.tpl | 14 - .../views/venix/user/layout_toast.tpl | 1 + web/resources/views/venix/user/paytaro.tpl | 2 +- web/resources/views/venix/user/shop.tpl | 2 +- .../views/venix/user/ticket_create.tpl | 2 +- .../views/venix/user/ticket_view.tpl | 2 +- web/tests/AnnouncementDrawerBehaviorTest.mjs | 4 + web/tests/FrontendResidueCleanupTest.php | 82 + 17 files changed, 121 insertions(+), 4579 deletions(-) delete mode 100644 web/public/theme/venix/css/user-home.css delete mode 100644 web/resources/views/venix/user/layout_modal.tpl create mode 100644 web/resources/views/venix/user/layout_toast.tpl create mode 100644 web/tests/FrontendResidueCleanupTest.php diff --git a/web/public/cloud/account.css b/web/public/cloud/account.css index df2df4e6..5135f0ef 100644 --- a/web/public/cloud/account.css +++ b/web/public/cloud/account.css @@ -89,8 +89,7 @@ body.vu-body .vu-kicker { text-transform: uppercase; } -body.vu-body :where(.vu-top-actions, .vu-hero-actions, - .vu-ticket-actions, .vu-form-actions, .vu-support-actions, .vu-invite-actions) { +body.vu-body :where(.vu-top-actions, .vu-support-actions) { display: flex; flex-wrap: wrap; align-items: center; @@ -188,7 +187,7 @@ body.vu-body .vu-theme-toggle:hover { body.vu-body :where(.vu-card, .vu-hero-main, .vu-edit-hero-main, .vu-invite-hero-main, .vu-pay-hero-main, .vu-profile-hero-main, .vu-support-hero-main, - .vu-edit-summary, .vu-support-summary, .vu-stat, .vu-pay-balance, + .vu-edit-summary, .vu-support-summary, .vu-pay-balance, .vu-profile-account, .vu-invite-balance) { min-width: 0; padding: 26px; @@ -301,40 +300,12 @@ body.vu-body :where(.vu-hero-main, .vu-edit-hero-main, font-size: 14px; line-height: 1.8; } -body.vu-body .vu-hero-actions { margin-top: 24px; } - -body.vu-body :where(.vu-stat-grid, .vu-stats, .vu-home-grid, .vu-ticket-grid) { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); - gap: 18px; - margin-bottom: 22px; -} -body.vu-body .vu-stat { position: relative; min-height: 142px; overflow: hidden; } -body.vu-body .vu-stat::before { - position: absolute; - inset: 0 auto 0 0; - width: 4px; - content: ""; - background: linear-gradient(180deg, #36c8c9, rgba(54, 200, 201, .2)); -} -body.vu-body .vu-stat > span { color: var(--vu-muted); font-size: 12px; font-weight: 700; } -body.vu-body .vu-stat strong { - display: block; - margin: 15px 0 14px; - overflow: hidden; - color: var(--vu-text); - font-size: clamp(21px, 2vw, 27px); - letter-spacing: -.4px; - text-overflow: ellipsis; -} -body.vu-body .vu-stat a, body.vu-body .vu-text-link { color: var(--vu-brand-strong); font-size: 12px; font-weight: 750; text-decoration: none; } -body.vu-body .vu-stat a:hover, body.vu-body .vu-text-link:hover { text-decoration: underline; text-underline-offset: 3px; } body.vu-body :where(.vu-content-grid, .vu-shop-grid) { @@ -391,8 +362,8 @@ body.vu-body :where(.vu-muted, .vu-form-message, .vu-inline-message, .vu-profile } body.vu-body .vu-date { font-weight: 700; } /* Forms: checkbox/radio are deliberately excluded from text-input sizing. */ -body.vu-body :where(.vu-form, .vu-support-form) { display: grid; gap: 18px; } -body.vu-body :where(.vu-form-row, .vu-form-grid, .vu-invite-wallet-grid) { +body.vu-body .vu-support-form { display: grid; gap: 18px; } +body.vu-body .vu-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; @@ -401,7 +372,7 @@ body.vu-body .vu-password-factor-grid { display: grid; gap: 16px; } body.vu-body .vu-password-code-row { display: flex; align-items: stretch; gap: 8px; } body.vu-body .vu-password-code-row .vu-input { min-width: 0; flex: 1 1 auto; } body.vu-body .vu-password-code-row .vu-btn { flex: 0 0 auto; min-width: 110px; } -body.vu-body :where(.vu-field, .vu-support-field) { +body.vu-body .vu-support-field { display: flex; flex-direction: column; gap: 9px; @@ -409,8 +380,7 @@ body.vu-body :where(.vu-field, .vu-support-field) { font-size: 13px; font-weight: 750; } -body.vu-body :where(.vu-input, .vu-field input, .vu-field select, .vu-field textarea, - .vu-support-input), +body.vu-body :where(.vu-input, .vu-support-input), body.vu-body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]):not([type="range"]):not([type="color"]), body.vu-body select, body.vu-body textarea { @@ -424,11 +394,10 @@ body.vu-body textarea { box-shadow: inset 0 1px 1px rgba(21, 42, 63, .015); font: inherit; } -body.vu-body :where(.vu-input, .vu-field input, .vu-support-input)::placeholder, +body.vu-body :where(.vu-input, .vu-support-input)::placeholder, body.vu-body input::placeholder, body.vu-body textarea::placeholder { color: var(--vu-faint); } -body.vu-body :where(.vu-input, .vu-field input, .vu-field select, .vu-field textarea, - .vu-support-input):focus, +body.vu-body :where(.vu-input, .vu-support-input):focus, body.vu-body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus, body.vu-body select:focus, body.vu-body textarea:focus { @@ -678,18 +647,17 @@ body.vu-body .vu-support-message-head { color: var(--vu-muted); font-size: 12px; } -body.vu-body .vu-support-message-content, body.vu-body .vu-support-message-body p { margin: 12px 0 0; line-height: 1.8; overflow-wrap: anywhere; } -body.vu-body :where(.vu-support-info, .vu-support-meta) { +body.vu-body .vu-support-info { display: grid; gap: 0; margin-bottom: 20px; } -body.vu-body :where(.vu-support-info, .vu-support-meta) > div { +body.vu-body .vu-support-info > div { display: flex; align-items: center; justify-content: space-between; @@ -697,7 +665,7 @@ body.vu-body :where(.vu-support-info, .vu-support-meta) > div { padding: 13px 0; border-bottom: 1px solid var(--vu-border); } -body.vu-body :where(.vu-support-info, .vu-support-meta) span { +body.vu-body .vu-support-info span { color: var(--vu-muted); font-size: 12px; } @@ -724,7 +692,6 @@ body.vu-body .vu-ticket-tag { line-height: 1.25; } body.vu-body .vu-ticket-tag.is-high { color: #9b681d; background: #fff5df; } -body.vu-body .vu-ticket-tag.is-urgent { color: var(--vu-danger); background: var(--vu-danger-soft); } body.vu-body .vu-support-ticket-main > p { display: flex; align-items: center; gap: 5px; } body.vu-body .vu-support-ticket-main > p i { font-size: 14px; } body.vu-body .vu-support-upload-field { display: grid; gap: 10px; } @@ -990,7 +957,6 @@ body.vu-body .vu-survey-option[aria-pressed="true"] { body.vu-body .vu-survey-option strong { min-width: 0; flex: 1; } body.vu-body .vu-survey-question h3 { font-size: 16px; } -body.vu-body .vu-modal, body.vu-body .vu-pay-dialog { position: fixed; inset: 0; @@ -1002,14 +968,12 @@ body.vu-body .vu-pay-dialog { background: rgba(5, 17, 30, .66); backdrop-filter: blur(5px); } -body.vu-body .vu-modal.is-open, body.vu-body .vu-pay-dialog.is-open { display: flex; } -body.vu-body .vu-modal-backdrop, body.vu-body .vu-pay-dialog-backdrop { position: absolute; inset: 0; } -body.vu-body :where(.vu-modal-panel, .vu-modal-card, .vu-pay-dialog-panel) { +body.vu-body .vu-pay-dialog-panel { position: relative; z-index: 1; - width: min(100%, 520px); + width: min(100%, 500px); max-height: min(86vh, 760px); overflow-y: auto; padding: 30px; @@ -1019,7 +983,7 @@ body.vu-body :where(.vu-modal-panel, .vu-modal-card, .vu-pay-dialog-panel) { border-radius: 16px; box-shadow: 0 28px 80px rgba(4, 17, 31, .24); } -body.vu-body .vu-pay-dialog-panel { width: min(100%, 500px); text-align: center; } +body.vu-body .vu-pay-dialog-panel { text-align: center; } body.vu-body .vu-modal-close { position: absolute; top: 14px; @@ -1037,12 +1001,6 @@ body.vu-body .vu-modal-close { font-size: 21px; } body.vu-body .vu-modal-close:hover { color: var(--vu-danger); background: var(--vu-danger-soft); } -body.vu-body .vu-modal-actions { - display: flex; - justify-content: flex-end; - gap: 10px; - margin-top: 24px; -} body.vu-body .vu-modal-mark { width: 52px; height: 52px; @@ -1055,7 +1013,7 @@ body.vu-body .vu-modal-mark { border-radius: 15px; font-size: 29px; } -body.vu-body .vu-modal-lock { overflow: hidden; } +body.vu-body.vu-modal-lock { overflow: hidden; } body.vu-body .vu-pay-qrcode { display: flex; justify-content: center; margin: 20px 0; } body.vu-body .vu-pay-qrcode :where(img, canvas) { max-width: 100%; @@ -1076,31 +1034,6 @@ body.vu-body .vu-pay-address small { display: grid; gap: 6px; } body.vu-body .vu-pay-address { margin: 16px 0; } body.vu-body .vu-pay-address code { overflow-wrap: anywhere; } -body.vu-body .vu-notification { position: relative; } -body.vu-body .vu-notify-menu { display: none; } -body.vu-body .vu-notification.is-open .vu-notify-menu { - position: absolute; - top: calc(100% + 8px); - right: 0; - z-index: 50; - width: min(320px, calc(100vw - 32px)); - max-height: 440px; - display: block; - overflow: auto; - padding: 16px; - background: var(--vu-panel); - border: 1px solid var(--vu-border); - border-radius: 12px; - box-shadow: var(--vu-shadow-lg); -} -body.vu-body .vu-notify-toggle { - min-height: 41px; - color: var(--vu-text-soft); - background: var(--vu-panel); - border: 1px solid var(--vu-border-strong); - border-radius: 9px; -} - /* Disabled account */ body.vu-body .vu-disabled-page { min-height: 100vh; @@ -1418,10 +1351,9 @@ body.venix-auth .auth-modal-actions { body.vu-body :where(.vu-card, .vu-hero-main, .vu-edit-hero-main, .vu-invite-hero-main, .vu-pay-hero-main, .vu-profile-hero-main, .vu-support-hero-main, - .vu-edit-summary, .vu-support-summary, .vu-stat, .vu-pay-balance, + .vu-edit-summary, .vu-support-summary, .vu-pay-balance, .vu-profile-account, .vu-invite-balance) { padding: 21px; border-radius: 12px; } - body.vu-body :where(.vu-form-row, .vu-form-grid, .vu-invite-wallet-grid, - .vu-shop-features) { grid-template-columns: 1fr; } + body.vu-body :where(.vu-form-grid, .vu-shop-features) { grid-template-columns: 1fr; } body.vu-body .vu-ga-setup { grid-template-columns: 1fr; } body.vu-body .vu-support-ticket { align-items: flex-start; flex-direction: column; } body.vu-body .vu-support-ticket-side { width: 100%; justify-content: space-between; } @@ -1451,10 +1383,9 @@ body.venix-auth .auth-modal-actions { body.vu-body .vu-support-summary > div:last-child { border-bottom: 0; } body.vu-body .vu-support-message-item { padding: 17px; } body.vu-body .vu-table-footer { align-items: flex-start; flex-direction: column; } - body.vu-body .vu-modal, body.vu-body .vu-pay-dialog, body.venix-auth .auth-modal { align-items: flex-end; padding: 12px; } - body.vu-body :where(.vu-modal-panel, .vu-modal-card, .vu-pay-dialog-panel), + body.vu-body .vu-pay-dialog-panel, body.venix-auth .auth-modal-panel { max-height: 91vh; padding: 25px 20px; @@ -1515,7 +1446,7 @@ body.venix-auth .auth-modal-actions { @media print { body.vu-body { color: #17283f !important; background: #fff !important; } - body.vu-body :where(.panel-sidebar, .panel-topbar, .vu-topbar, .vu-print-btn, .vu-modal) { display: none !important; } + body.vu-body :where(.panel-sidebar, .panel-topbar, .vu-topbar, .vu-print-btn) { display: none !important; } body.vu-body .user-dashboard { display: block; } body.vu-body .vu-main { max-width: none; padding: 0; } body.vu-body .vu-invoice-card { padding: 0; border: 0; box-shadow: none; } @@ -1827,9 +1758,9 @@ body.vu-body .vu-compact-panel-heading { } body.vu-body .vu-panel-kicker { display: block; margin-bottom: 3px; color: var(--vu-brand); font-size: 8px; font-weight: 850; letter-spacing: .15em; } body.vu-body .vu-compact-panel-heading h2 { margin: 0; color: var(--vu-text); font-size: 15px; line-height: 1.4; } -body.vu-body .vu-compact-panel-heading + :where(.vu-compact-form, .vu-compact-hint, .vu-compact-link-row, .vu-inline-empty) { margin-right: 14px; margin-left: 14px; } +body.vu-body .vu-compact-hint { margin: 0; color: var(--vu-muted); font-size: 10px; line-height: 1.55; } +body.vu-body .vu-compact-panel-heading + :where(.vu-compact-form, .vu-compact-link-row, .vu-inline-empty) { margin-right: 14px; margin-left: 14px; } body.vu-body .vu-compact-panel-heading + .vu-compact-form { margin-top: 14px; margin-bottom: 14px; } -body.vu-body .vu-compact-panel-heading + .vu-compact-hint { margin-top: 12px; } body.vu-body .vu-referral-hint { display: flex; align-items: center; gap: 7px; width: calc(100% - 28px); max-width: none; margin: 12px 14px 0; padding: 9px 10px; box-sizing: border-box; background: #f7fbfb; border-radius: 8px; line-height: 1.5; } body.vu-body .vu-referral-hint i { flex: 0 0 auto; margin-top: 0; color: var(--vu-brand); font-size: 14px; line-height: 1; } body.vu-body .vu-referral-hint span { min-width: 0; line-height: 1.5; } @@ -1839,10 +1770,6 @@ body.vu-body .vu-compact-grid { display: grid; grid-template-columns: repeat(2, body.vu-body .vu-compact-field { display: grid; gap: 6px; min-width: 0; color: var(--vu-text-soft); font-size: 11px; font-weight: 750; } body.vu-body .vu-compact-field .vu-input, body.vu-body .vu-factor-line .vu-input { min-height: 40px; padding: 8px 11px; border-radius: 8px; font-size: 12px; } -body.vu-body .vu-compact-hint { margin: 0; color: var(--vu-muted); font-size: 10px; line-height: 1.55; } -/* The referral hint also carries .vu-compact-hint; keep its inset after the - shared compact-hint reset so it aligns with the link row below. */ -body.vu-body .vu-compact-hint.vu-referral-hint { width: calc(100% - 28px); max-width: none; margin: 12px 14px 0; } body.vu-body .vu-inline-status, body.vu-body .vu-inline-empty { display: flex; @@ -2035,19 +1962,6 @@ body.vu-body .vu-toast-close { body.vu-body .vu-toast-close:hover { color: var(--vu-text); background: var(--vu-panel-soft); } body.vu-body .vu-toast-actions { grid-column: 2 / -1; display: flex; justify-content: flex-end; gap: 7px; margin-top: 2px; } body.vu-body .vu-toast-actions .vu-btn { min-width: 64px; min-height: 32px; padding: 6px 10px; font-size: 11px; } -body.vu-body .vu-modal { - align-items: flex-end; - justify-content: flex-end; - padding: 16px; - background: transparent; - backdrop-filter: none; - pointer-events: none; -} -body.vu-body .vu-modal .vu-modal-backdrop { display: none; } -body.vu-body .vu-modal.is-open { pointer-events: none; } -body.vu-body .vu-modal .vu-modal-panel { width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 460px); padding: 18px; border-radius: 14px; pointer-events: auto; } -body.vu-body .vu-modal .vu-modal-actions { flex-direction: row; margin-top: 14px; } -body.vu-body .vu-modal .vu-modal-actions .vu-btn { width: auto; } @keyframes vu-toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } } @media (prefers-reduced-motion: reduce) { body.vu-body .vu-toast { transition: none; } diff --git a/web/public/cloud/client.css b/web/public/cloud/client.css index 5e4bc905..50cb98d7 100644 --- a/web/public/cloud/client.css +++ b/web/public/cloud/client.css @@ -103,15 +103,14 @@ html.panel-announcements-open body { position: fixed; top: var(--panel-announcem .panel-user-menu-options button i { width: 18px; color: #2b9da5; font-size: 17px; text-align: center; } html.panel-account-open { overflow: hidden; overscroll-behavior: none; scroll-behavior: auto !important; } html.panel-account-open body { position: fixed; top: var(--panel-account-scroll-top, 0px); left: 0; right: 0; width: 100%; overflow: hidden; } -.panel-account-drawer { position: fixed; inset: 0 0 0 auto; display: none; width: min(720px, 100%); max-width: 100%; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #f4f7fb; color: #25384e; box-shadow: -14px 0 52px rgba(19,42,65,.18); overflow: hidden; } +.panel-account-drawer { position: fixed; inset: 0 0 0 auto; display: none; width: min(540px, 100%); max-width: 100%; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #f4f7fb; color: #25384e; box-shadow: -14px 0 52px rgba(19,42,65,.18); overflow: hidden; } .panel-account-drawer[open] { display: flex; flex-direction: column; } -.panel-account-drawer-header { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 24px 18px; border-bottom: 1px solid #e1e9ef; background: #fff; } +.panel-account-drawer-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; border-bottom: 1px solid #e1e9ef; background: #fff; } .panel-account-drawer-header > div { min-width: 0; } -.panel-account-drawer-kicker { margin: 0 0 4px; color: #159da9; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; } -.panel-account-drawer-header h2 { margin: 0 0 6px; color: #25384e; font-size: 20px; line-height: 1.45; font-weight: 800; } -.panel-account-drawer-header p:last-child { margin: 0; color: #7a8c9d; font-size: 12px; line-height: 1.7; } -.panel-account-drawer-close.button { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 22px; } -.panel-account-drawer-frame-wrap { min-height: 0; flex: 1 1 auto; position: relative; background: #f4f7fb; } +.panel-account-drawer-header h2 { margin: 0; color: #25384e; font-size: 18px; line-height: 1.3; font-weight: 800; } +#panel-account-drawer-description { display: none; } +.panel-account-drawer-close.button { flex: 0 0 40px; width: 40px; height: 40px; min-height: 40px; padding: 0; font-size: 20px; } +.panel-account-drawer-frame-wrap { min-height: 0; flex: 1 1 auto; position: relative; background: #f7f9fb; } .panel-account-drawer-frames { position: relative; width: 100%; height: 100%; min-height: 0; } .panel-account-drawer-frame-wrap[aria-busy="true"]::before { content: "正在加载…"; position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: #7d91a0; font-size: 12px; pointer-events: none; } .panel-account-drawer-frame-wrap[aria-busy="false"]::before { display: none; } @@ -124,15 +123,6 @@ body.vu-embedded .dashboard > .main-area > .panel-topbar { display: none; } body.vu-embedded .dashboard > .main-area { min-height: 100vh; } body.vu-embedded .dashboard > .main-area > .vu-main { max-width: none; padding: 0; } body.vu-embedded .dashboard > .main-area > .vu-main > .vu-topbar { margin: 0; } - -/* The account drawer is a compact editor, not a second full dashboard. */ -.panel-account-drawer { width: min(540px, 100%); } -.panel-account-drawer-header { align-items: center; padding: 12px 18px; } -.panel-account-drawer-kicker, -.panel-account-drawer-header p:last-child { display: none; } -.panel-account-drawer-header h2 { margin: 0; font-size: 18px; line-height: 1.3; } -.panel-account-drawer-close.button { width: 40px; height: 40px; min-height: 40px; flex-basis: 40px; font-size: 20px; } -.panel-account-drawer-frame-wrap { background: #f7f9fb; } @media (max-width: 600px) { .panel-user-menu-options { right: -5px; min-width: 170px; } .panel-account-drawer { width: 100%; } diff --git a/web/public/theme/venix/css/admin-home.css b/web/public/theme/venix/css/admin-home.css index daa51e5e..5a227c41 100644 --- a/web/public/theme/venix/css/admin-home.css +++ b/web/public/theme/venix/css/admin-home.css @@ -1341,11 +1341,6 @@ html.admin-instance-detail-open body { background: rgba(93, 216, 158, 0.18); } -.admin-ticket-tabs a[aria-disabled="true"] { - cursor: wait; - opacity: 0.68; -} - .admin-ticket-title { max-width: 520px; color: #00081a; @@ -1411,12 +1406,6 @@ html.admin-instance-detail-open body { font-size: 22px; } -.admin-ticket-avatar img { - width: 100%; - height: 100%; - object-fit: cover; -} - .admin-ticket-bubble { min-width: 0; padding: 16px; @@ -1473,10 +1462,6 @@ html.admin-instance-detail-open body { word-break: break-word; } -.admin-ticket-content p:last-child { - margin-bottom: 0; -} - .admin-ticket-pagination { margin-bottom: 14px; } @@ -2005,16 +1990,6 @@ html.admin-instance-detail-open body { gap: 10px; } -.admin-user-create { - display: flex; - min-height: 100%; - flex-direction: column; -} - -.admin-user-create .admin-modal-icon { - margin-bottom: 14px; -} - .admin-user-control-card .card-body { display: grid; gap: 12px; @@ -2127,27 +2102,6 @@ html.admin-instance-detail-open body { word-break: break-all; } -.admin-user-main, -.admin-user-meta{ - display: grid; - gap: 3px; -} - -.admin-user-main strong, -.admin-user-meta strong{ - color: #00081a; - font-weight: 900; -} - -.admin-user-main span, -.admin-user-meta span, -.admin-user-main small, -.admin-user-meta small { - color: #7c8ba0; - font-size: 12px; - font-weight: 800; -} - .admin-user-money { color: #08785b; font-weight: 900; @@ -2172,14 +2126,6 @@ html.admin-instance-detail-open body { background: rgba(251, 44, 54, 0.14); } -.admin-user-actions-cell { - display: inline-flex; - align-items: center; - justify-content: flex-end; - flex-wrap: wrap; - gap: 8px; -} - .admin-user-pagination { display: flex; align-items: center; diff --git a/web/public/theme/venix/css/user-home.css b/web/public/theme/venix/css/user-home.css deleted file mode 100644 index 2f2c6678..00000000 --- a/web/public/theme/venix/css/user-home.css +++ /dev/null @@ -1,4291 +0,0 @@ -:root { - --vu-bg: #f6f8fb; - --vu-surface: #ffffff; - --vu-surface-rgb: 255, 255, 255; - --vu-ink: #121826; - --vu-muted: #687386; - --vu-line: #e5eaf1; - --vu-soft: #edf7f3; - --vu-primary: #18a87b; - --vu-primary-dark: #0f7d5e; - --vu-on-primary: #ffffff; - --vu-blue: #2563eb; - --vu-amber: #b7791f; - --vu-coral: #d94848; - --vu-shadow: 0 18px 45px rgba(18, 24, 38, 0.08); - --vu-grid-line: rgba(18, 24, 38, 0.03); - --vu-sidebar-bg: rgba(255, 255, 255, 0.86); - --vu-card-bg: rgba(255, 255, 255, 0.94); - --vu-panel-bg: rgba(255, 255, 255, 0.98); - --vu-hero-bg: linear-gradient(120deg, rgba(24, 168, 123, 0.12), transparent 44%), linear-gradient(135deg, #ffffff, #f8fbff); - --vu-ghost-bg: #ffffff; - --vu-ghost-hover: #f9fafb; - --vu-soft-hover: #dbf4eb; - --vu-muted-bg: #eef2f7; - --vu-ring-track: #e6edf5; - --vu-input-bg: #f8fafc; - --vu-sub-bg: #fbfdff; - --vu-danger-soft: #fff1f1; - --vu-warning-soft: #fff7e6; - --vu-overlay: rgba(15, 23, 42, 0.42); - --vu-modal-border: rgba(255, 255, 255, 0.65); -} - -:root[data-bs-theme="dark"] { - color-scheme: dark; - --vu-bg: #0f1218; - --vu-surface: #181c24; - --vu-surface-rgb: 24, 28, 36; - --vu-ink: #f4f7fb; - --vu-muted: #9aa6b8; - --vu-line: #2a303b; - --vu-soft: rgba(93, 216, 158, 0.14); - --vu-primary: #5dd89e; - --vu-primary-dark: #76e6b2; - --vu-on-primary: #07130f; - --vu-blue: #7aa7ff; - --vu-amber: #f4c56f; - --vu-coral: #ff8b8b; - --vu-shadow: 0 18px 45px rgba(0, 0, 0, 0.28); - --vu-grid-line: rgba(255, 255, 255, 0.045); - --vu-sidebar-bg: rgba(18, 21, 28, 0.9); - --vu-card-bg: rgba(24, 28, 36, 0.94); - --vu-panel-bg: rgba(24, 28, 36, 0.98); - --vu-hero-bg: linear-gradient(120deg, rgba(93, 216, 158, 0.13), transparent 46%), linear-gradient(135deg, #181c24, #111722); - --vu-ghost-bg: #161b24; - --vu-ghost-hover: #1e2530; - --vu-soft-hover: rgba(93, 216, 158, 0.2); - --vu-muted-bg: #222936; - --vu-ring-track: #2a303b; - --vu-input-bg: #121720; - --vu-sub-bg: #151a23; - --vu-danger-soft: rgba(255, 139, 139, 0.14); - --vu-warning-soft: rgba(244, 197, 111, 0.14); - --vu-overlay: rgba(0, 0, 0, 0.58); - --vu-modal-border: rgba(255, 255, 255, 0.09); -} - -* { - box-sizing: border-box; -} - -body.vu-body { - min-height: 100vh; - margin: 0; - color: var(--vu-ink); - background: - linear-gradient(var(--vu-grid-line) 1px, transparent 1px), - linear-gradient(90deg, var(--vu-grid-line) 1px, transparent 1px), - var(--vu-bg); - background-size: 34px 34px, 34px 34px, auto; - font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -} - -[hidden] { - display: none !important; -} - -a { - color: inherit; -} - -button, -input, -textarea { - font: inherit; -} - -.vu-app { - min-height: 100vh; - display: grid; - grid-template-columns: 248px minmax(0, 1fr); -} - -.vu-sidebar { - position: sticky; - top: 0; - height: 100vh; - display: flex; - flex-direction: column; - gap: 26px; - padding: 28px 18px; - border-right: 1px solid var(--vu-line); - background: var(--vu-sidebar-bg); - backdrop-filter: blur(18px); -} - -.vu-brand { - display: inline-flex; - align-items: center; - gap: 12px; - padding: 0 10px; - color: var(--vu-ink); - font-size: 18px; - font-weight: 800; - text-decoration: none; -} - -.vu-brand img { - width: 34px; - height: 34px; -} - -.vu-nav { - display: grid; - gap: 6px; -} - -.vu-nav a, -.vu-mobile-logout, -.vu-logout { - display: flex; - align-items: center; - gap: 12px; - min-height: 44px; - padding: 0 12px; - border-radius: 8px; - color: var(--vu-muted); - font-size: 14px; - font-weight: 700; - text-decoration: none; -} - -.vu-nav i, -.vu-mobile-logout i, -.vu-logout i { - font-size: 20px; -} - -.vu-nav a:hover, -.vu-nav a.is-active { - color: var(--vu-primary-dark); - background: var(--vu-soft); -} - -.vu-nav .vu-mobile-logout { - display: none; -} - -.vu-mobile-logout:hover { - color: var(--vu-coral); - background: var(--vu-danger-soft); -} - -.vu-logout { - margin-top: auto; -} - -.vu-logout:hover { - color: var(--vu-coral); - background: var(--vu-danger-soft); -} - -.vu-pill.is-live { - color: var(--vu-primary-dark); - background: var(--vu-soft); -} - -.vu-pill.is-warning { - color: var(--vu-amber); - background: var(--vu-warning-soft); -} - -.vu-main { - min-width: 0; - width: min(1440px, 100%); - padding: 32px; -} - -.vu-topbar { - display: flex; - align-items: center; - justify-content: space-between; - gap: 24px; - margin-bottom: 24px; -} - -.vu-kicker { - margin: 0 0 8px; - color: var(--vu-primary-dark); - font-size: 12px; - font-weight: 800; - letter-spacing: 0; - text-transform: uppercase; -} - -.vu-topbar h1, -.vu-card h2, -.vu-hero h2 { - margin: 0; - letter-spacing: 0; -} - -.vu-topbar h1 { - font-size: clamp(26px, 3vw, 38px); - line-height: 1.12; -} - -.vu-title-with-help { - display: inline-flex; - align-items: center; - gap: 8px; -} - -.vu-help-bubble { - position: relative; - width: 22px; - height: 22px; - display: inline-flex; - align-items: center; - justify-content: center; - border: 1px solid rgba(24, 168, 123, 0.28); - border-radius: 999px; - background: var(--vu-soft); - color: var(--vu-primary-dark); - font-size: 13px; - cursor: help; -} - -.vu-help-bubble::after { - content: attr(data-tooltip); - position: absolute; - left: 50%; - bottom: calc(100% + 10px); - z-index: 30; - width: max-content; - max-width: min(320px, 72vw); - padding: 10px 12px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-ink); - color: var(--vu-surface); - box-shadow: 0 16px 34px rgba(18, 24, 38, 0.18); - font-size: 12px; - font-weight: 700; - line-height: 1.5; - text-align: left; - white-space: normal; - opacity: 0; - pointer-events: none; - transform: translate(-50%, 4px); - transition: opacity 0.15s ease, transform 0.15s ease; -} - -.vu-help-bubble::before { - content: ""; - position: absolute; - left: 50%; - bottom: calc(100% + 5px); - z-index: 31; - width: 10px; - height: 10px; - background: var(--vu-ink); - opacity: 0; - pointer-events: none; - transform: translate(-50%, 4px) rotate(45deg); - transition: opacity 0.15s ease, transform 0.15s ease; -} - -.vu-help-bubble:hover::before, -.vu-help-bubble:hover::after, -.vu-help-bubble:focus-visible::before, -.vu-help-bubble:focus-visible::after { - opacity: 1; - transform: translate(-50%, 0) rotate(45deg); -} - -.vu-help-bubble:hover::after, -.vu-help-bubble:focus-visible::after { - transform: translate(-50%, 0); -} - -.vu-top-actions, -.vu-hero-actions, -.vu-isp-actions { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 10px; -} - -.vu-theme-toggle { - min-height: 42px; - display: inline-flex; - align-items: center; - justify-content: center; - gap: 8px; - padding: 0 14px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-ghost-bg); - color: var(--vu-ink); - font-size: 14px; - font-weight: 800; - cursor: pointer; -} - -.vu-theme-toggle:hover { - background: var(--vu-ghost-hover); -} - -.vu-theme-toggle i { - color: var(--vu-primary-dark); - font-size: 18px; -} - -.vu-notification { - position: relative; - flex: 0 0 auto; -} - -.vu-notify-toggle { - position: relative; - width: 42px; - height: 42px; - display: inline-flex; - align-items: center; - justify-content: center; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-ghost-bg); - color: var(--vu-ink); - cursor: pointer; -} - -.vu-notify-toggle:hover, -.vu-notification.is-open .vu-notify-toggle { - background: var(--vu-ghost-hover); -} - -.vu-notify-toggle i { - color: var(--vu-primary-dark); - font-size: 20px; -} - -.vu-notify-toggle span { - position: absolute; - top: -7px; - right: -7px; - min-width: 20px; - height: 20px; - display: inline-flex; - align-items: center; - justify-content: center; - padding: 0 6px; - border: 2px solid var(--vu-surface); - border-radius: 999px; - background: var(--vu-coral); - color: #fff; - font-size: 11px; - font-weight: 900; - line-height: 1; -} - -.vu-notify-menu { - position: absolute; - top: calc(100% + 12px); - right: 0; - z-index: 30; - width: min(380px, calc(100vw - 32px)); - padding: 14px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-panel-bg); - box-shadow: var(--vu-shadow); -} - -.vu-notify-head { - display: flex; - align-items: flex-start; - justify-content: space-between; - gap: 14px; - padding-bottom: 12px; - border-bottom: 1px solid var(--vu-line); -} - -.vu-notify-head h2 { - margin: 0; - color: var(--vu-ink); - font-size: 18px; - line-height: 1.2; -} - -.vu-notify-head a { - color: var(--vu-primary-dark); - font-size: 12px; - font-weight: 900; - text-decoration: none; - white-space: nowrap; -} - -.vu-notify-list { - display: grid; - gap: 10px; - padding-top: 12px; -} - -.vu-notify-item { - display: grid; - grid-template-columns: 42px minmax(0, 1fr); - align-items: center; - gap: 12px; - padding: 10px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: rgba(var(--vu-surface-rgb), 0.62); - color: var(--vu-ink); - text-decoration: none; -} - -.vu-notify-item:hover { - border-color: rgba(24, 168, 123, 0.38); - background: var(--vu-soft); -} - -.vu-notify-item i { - width: 42px; - height: 42px; - display: inline-flex; - align-items: center; - justify-content: center; - border-radius: 8px; - background: var(--vu-soft); - color: var(--vu-primary-dark); - font-size: 20px; -} - -.vu-notify-item.is-warning i { - background: var(--vu-warning-soft); - color: var(--vu-amber); -} - -.vu-notify-item.is-danger i { - background: var(--vu-danger-soft); - color: var(--vu-coral); -} - -.vu-notify-item span { - min-width: 0; - display: grid; - gap: 4px; -} - -.vu-notify-item strong { - color: var(--vu-ink); - font-size: 14px; - font-weight: 900; -} - -.vu-notify-item small, -.vu-notify-empty small { - color: var(--vu-muted); - font-size: 12px; - line-height: 1.5; -} - -.vu-notify-empty { - display: grid; - justify-items: center; - gap: 7px; - padding: 22px 14px; - color: var(--vu-muted); - text-align: center; -} - -.vu-notify-empty i { - color: var(--vu-primary-dark); - font-size: 30px; -} - -.vu-notify-empty strong { - color: var(--vu-ink); - font-size: 15px; -} - -.vu-btn, -.vu-icon-btn{ - border: 0; - cursor: pointer; -} - -.vu-btn { - display: inline-flex; - align-items: center; - justify-content: center; - gap: 8px; - min-height: 42px; - padding: 0 15px; - border-radius: 8px; - background: var(--vu-primary); - color: var(--vu-on-primary); - font-size: 14px; - font-weight: 800; - text-decoration: none; - transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; -} - -.vu-btn:hover { - background: var(--vu-primary-dark); - box-shadow: 0 10px 24px rgba(24, 168, 123, 0.2); - transform: translateY(-1px); -} - -.vu-btn:disabled { - cursor: not-allowed; - opacity: 0.62; - box-shadow: none; - transform: none; -} - -.vu-btn-ghost { - border: 1px solid var(--vu-line); - background: var(--vu-ghost-bg); - color: var(--vu-ink); -} - -.vu-btn-ghost:hover { - border-color: var(--vu-line); - background: var(--vu-ghost-hover); - color: var(--vu-ink); - box-shadow: none; -} - -.vu-btn-soft { - background: var(--vu-soft); - color: var(--vu-primary-dark); -} - -.vu-btn-soft:hover { - background: var(--vu-soft-hover); - color: var(--vu-primary-dark); -} - -.vu-btn-small { - min-height: 34px; - padding: 0 12px; - font-size: 12px; -} - -.vu-hero { - display: grid; - grid-template-columns: minmax(0, 1fr) 370px; - gap: 18px; - margin-bottom: 18px; -} - -.vu-hero-main, -.vu-usage-card, -.vu-card, -.vu-stat { - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-card-bg); - box-shadow: var(--vu-shadow); -} - -.vu-hero-main { - min-height: 280px; - display: flex; - flex-direction: column; - justify-content: center; - padding: 34px; - background: var(--vu-hero-bg); -} - -.vu-status { - width: fit-content; - display: inline-flex; - align-items: center; - min-height: 28px; - padding: 0 10px; - border-radius: 8px; - color: var(--vu-primary-dark); - background: var(--vu-soft); - font-size: 12px; - font-weight: 800; -} - -.vu-status.is-muted { - color: var(--vu-muted); - background: var(--vu-muted-bg); -} - -.vu-status.is-warning { - color: #9a3412; - background: rgba(251, 146, 60, 0.14); -} - -.vu-status.is-live::before { - content: ""; - width: 7px; - height: 7px; - margin-right: 7px; - border-radius: 50%; - background: var(--vu-primary); -} - -.vu-hero h2 { - margin-top: 18px; - font-size: clamp(30px, 4vw, 54px); - line-height: 1.03; - max-width: 760px; -} - -.vu-hero p { - max-width: 660px; - margin: 16px 0 0; - color: var(--vu-muted); - font-size: 15px; - line-height: 1.7; -} - -.vu-hero-actions { - margin-top: 24px; -} - -.vu-inline-message { - min-height: 24px; -} - -.vu-usage-card { - display: grid; - place-items: center; - gap: 18px; - padding: 26px; -} - -.vu-ring { - --value: 0; - width: 190px; - aspect-ratio: 1; - display: grid; - place-items: center; - border-radius: 50%; - background: - radial-gradient(circle at center, var(--vu-surface) 0 58%, transparent 59%), - conic-gradient(var(--vu-primary) calc(var(--value) * 1%), var(--vu-ring-track) 0); -} - -.vu-ring strong, -.vu-ring span { - grid-area: 1 / 1; -} - -.vu-ring strong { - margin-top: -14px; - font-size: 34px; -} - -.vu-ring span { - margin-top: 42px; - color: var(--vu-muted); - font-size: 13px; - font-weight: 700; -} - -.vu-usage-list { - width: 100%; - display: grid; - gap: 10px; -} - -.vu-usage-list div, -.vu-secret-list div { - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; -} - -.vu-usage-list span, -.vu-secret-list span { - color: var(--vu-muted); - font-size: 13px; -} - -.vu-usage-list strong, -.vu-secret-list strong { - min-width: 0; - overflow-wrap: anywhere; - font-size: 14px; -} - -.vu-stat-grid { - display: grid; - grid-template-columns: repeat(4, minmax(0, 1fr)); - gap: 14px; - margin-bottom: 18px; -} - -.vu-stat { - padding: 18px; -} - -.vu-stat span { - color: var(--vu-muted); - font-size: 13px; - font-weight: 700; -} - -.vu-stat strong { - display: block; - min-height: 32px; - margin-top: 8px; - font-size: 24px; - line-height: 1.2; - overflow-wrap: anywhere; -} - -.vu-stat small { - display: block; - min-height: 18px; - margin-top: 8px; - color: var(--vu-muted); - font-size: 12px; - font-weight: 700; - line-height: 1.5; -} - -.vu-stat a, -.vu-text-link { - display: inline-flex; - margin-top: 12px; - color: var(--vu-blue); - font-size: 13px; - font-weight: 800; - text-decoration: none; -} - -.vu-grid { - display: grid; - gap: 18px; -} - -.vu-grid-main { - grid-template-columns: minmax(0, 1fr) 370px; - align-items: start; -} - -.vu-plan-card { - border-color: rgba(24, 168, 123, 0.32); - background: - linear-gradient(120deg, rgba(24, 168, 123, 0.08), transparent 40%), - var(--vu-card-bg); -} - -.vu-content-stack, -.vu-side-stack { - display: grid; - gap: 18px; -} - -.vu-section-title { - display: flex; - align-items: flex-start; - justify-content: space-between; - gap: 16px; - margin-bottom: 16px; -} - -.vu-section-title h2 { - margin: 0; - color: var(--vu-ink); - font-size: 22px; - line-height: 1.25; - letter-spacing: 0; -} - -.vu-shop-hero { - display: grid; - grid-template-columns: minmax(0, 1fr) 340px; - gap: 18px; - margin-bottom: 18px; -} - -.vu-shop-hero-main, -.vu-shop-account, -.vu-shop-card { - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-card-bg); - box-shadow: var(--vu-shadow); -} - -.vu-shop-hero-main { - min-height: 230px; - display: flex; - flex-direction: column; - justify-content: center; - padding: 30px; - background: var(--vu-hero-bg); -} - -.vu-shop-hero-main h2 { - max-width: 760px; - margin: 16px 0 0; - color: var(--vu-ink); - font-size: clamp(28px, 4vw, 46px); - line-height: 1.08; - letter-spacing: 0; -} - -.vu-shop-hero-main p { - max-width: 640px; - margin: 14px 0 0; - color: var(--vu-muted); - font-size: 15px; - line-height: 1.7; -} - -.vu-shop-account { - display: grid; - align-content: center; - gap: 12px; - padding: 24px; -} - -.vu-shop-account div{ - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; -} - -.vu-shop-account div { - padding-bottom: 12px; - border-bottom: 1px solid var(--vu-line); -} - -.vu-shop-account div:last-child { - padding-bottom: 0; - border-bottom: 0; -} - -.vu-shop-account span, -.vu-shop-features span { - color: var(--vu-muted); - font-size: 13px; - font-weight: 700; -} - -.vu-shop-account strong{ - min-width: 0; - color: var(--vu-ink); - font-size: 15px; - text-align: right; - overflow-wrap: anywhere; -} - -.vu-shop-layout { - display: grid; - grid-template-columns: minmax(0, 1fr) 340px; - gap: 18px; - align-items: start; -} - -.vu-shop-list, -.vu-shop-side { - min-width: 0; -} - -.vu-shop-side { - position: sticky; - top: 24px; -} - -.vu-shop-grid { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 14px; -} - -.vu-shop-card { - min-width: 0; - display: grid; - gap: 18px; - padding: 18px; - box-shadow: none; -} - -.vu-shop-card-head { - display: flex; - align-items: flex-start; - justify-content: space-between; - gap: 16px; -} - -.vu-shop-card-head h3 { - margin: 8px 0 0; - color: var(--vu-ink); - font-size: 20px; - line-height: 1.25; - letter-spacing: 0; - overflow-wrap: anywhere; -} - -.vu-plan-badge { - display: inline-flex; - align-items: center; - min-height: 26px; - padding: 0 9px; - border-radius: 8px; - color: var(--vu-primary-dark); - background: var(--vu-soft); - font-size: 12px; - font-weight: 800; -} - -.vu-shop-price { - flex: 0 0 auto; - text-align: right; -} - -.vu-shop-price strong { - display: block; - color: var(--vu-ink); - font-size: 24px; - line-height: 1.15; -} - -.vu-shop-price span { - display: block; - margin-top: 5px; - color: var(--vu-muted); - font-size: 12px; - font-weight: 800; -} - -.vu-shop-features { - display: grid; - grid-template-columns: 1fr; - gap: 0; - padding: 8px 0; - border-top: 1px solid var(--vu-line); - border-bottom: 1px solid var(--vu-line); -} - -.vu-shop-features div { - min-width: 0; - display: grid; - grid-template-columns: 92px minmax(0, 1fr); - align-items: center; - gap: 14px; - padding: 9px 0; - border-bottom: 1px solid var(--vu-line); -} - -.vu-shop-features div:last-child { - border-bottom: 0; -} - -.vu-shop-features span { - white-space: nowrap; -} - -.vu-shop-features strong { - min-width: 0; - color: var(--vu-ink); - font-size: 14px; - font-weight: 900; - text-align: right; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.vu-shop-card-foot { - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; -} - -.vu-shop-guide-list { - display: grid; - gap: 12px; - margin-bottom: 18px; -} - -.vu-shop-guide-list div { - display: grid; - grid-template-columns: 34px minmax(0, 1fr); - gap: 10px; - align-items: start; -} - -.vu-shop-guide-list i { - width: 34px; - height: 34px; - display: grid; - place-items: center; - border-radius: 8px; - color: var(--vu-primary-dark); - background: var(--vu-soft); - font-size: 18px; -} - -.vu-shop-guide-list span { - color: var(--vu-muted); - font-size: 13px; - line-height: 1.65; -} - -.vu-mini-list { - width: 100%; - display: grid; - gap: 10px; -} - -.vu-mini-list div { - display: grid; - grid-template-columns: minmax(0, 1fr) auto; - align-items: center; - gap: 12px; - min-height: 48px; - padding: 10px 12px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: rgba(var(--vu-surface-rgb), 0.58); -} - -.vu-mini-list span { - color: var(--vu-muted); - font-size: 13px; - font-weight: 800; -} - -.vu-mini-list strong { - color: var(--vu-ink); - font-size: 15px; - font-weight: 900; - text-align: right; - overflow-wrap: anywhere; -} - - - -.vu-segmented { - display: inline-flex; - flex-wrap: wrap; - gap: 6px; - padding: 4px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-muted-bg); -} - -.vu-segmented a, -.vu-segmented button { - display: inline-flex; - align-items: center; - justify-content: center; - min-height: 32px; - padding: 0 11px; - border-radius: 8px; - color: var(--vu-muted); - font-size: 13px; - font-weight: 800; - text-decoration: none; -} - -.vu-segmented a:hover, -.vu-segmented a.is-active, -.vu-segmented button:hover, -.vu-segmented button.is-active { - color: var(--vu-primary-dark); - background: var(--vu-surface); -} - -.vu-segmented button { - border: 0; - background: transparent; - cursor: pointer; -} - -.vu-table-wrap { - width: 100%; - overflow-x: auto; - border: 1px solid var(--vu-line); - border-radius: 8px; -} - -.vu-data-table { - width: 100%; - min-width: 760px; - border-collapse: collapse; - color: var(--vu-ink); -} - -.vu-data-table th, -.vu-data-table td { - padding: 14px; - border-bottom: 1px solid var(--vu-line); - text-align: left; - vertical-align: middle; - font-size: 14px; -} - -.vu-data-table th { - color: var(--vu-muted); - background: var(--vu-sub-bg); - font-size: 12px; - font-weight: 800; -} - -.vu-data-table tbody tr:last-child td { - border-bottom: 0; -} - -.vu-data-table tbody tr:hover { - background: rgba(24, 168, 123, 0.04); -} - -.vu-table-primary { - display: flex; - align-items: center; - gap: 9px; - min-width: 0; -} - -.vu-table-primary strong { - min-width: 0; - overflow-wrap: anywhere; -} - -.vu-table-pill { - display: inline-flex; - align-items: center; - min-height: 28px; - padding: 0 9px; - border-radius: 8px; - color: var(--vu-primary-dark); - background: var(--vu-soft); - font-size: 12px; - font-weight: 800; -} - -.vu-table-pill.is-warning { - color: var(--vu-amber); - background: var(--vu-warning-soft); -} - -.vu-table-pill.is-danger { - color: var(--vu-coral); - background: var(--vu-danger-soft); -} - -.vu-table-footer { - display: flex; - align-items: center; - justify-content: space-between; - gap: 14px; - margin-top: 16px; - color: var(--vu-muted); - font-size: 13px; - font-weight: 700; -} - -.vu-pagination-wrap { - min-width: 0; -} - -.vu-pagination-wrap .pagination { - display: flex; - flex-wrap: wrap; - justify-content: flex-end; - gap: 6px; - padding: 0; - margin: 0; - list-style: none; -} - -.vu-pagination-wrap .pagination li { - display: inline-flex; -} - -.vu-pagination-wrap .pagination a, -.vu-pagination-wrap .pagination span { - min-width: 34px; - height: 34px; - display: inline-flex; - align-items: center; - justify-content: center; - padding: 0 10px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-ghost-bg); - color: var(--vu-muted); - font-size: 13px; - font-weight: 800; - text-decoration: none; -} - -.vu-pagination-wrap .pagination a:hover, -.vu-pagination-wrap .pagination .active a, -.vu-pagination-wrap .pagination .active span { - border-color: rgba(24, 168, 123, 0.36); - color: var(--vu-primary-dark); - background: var(--vu-soft); -} - -.vu-pagination-wrap .pagination .disabled a, -.vu-pagination-wrap .pagination .disabled span { - cursor: not-allowed; - opacity: 0.55; -} - -.vu-invoice-shell { - display: grid; - gap: 18px; -} - -.vu-invoice-card { - padding: 30px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-card-bg); - box-shadow: var(--vu-shadow); -} - -.vu-invoice-head { - display: flex; - align-items: flex-start; - justify-content: space-between; - gap: 20px; - padding-bottom: 24px; - border-bottom: 1px solid var(--vu-line); -} - -.vu-invoice-brand { - display: flex; - align-items: center; - gap: 14px; -} - -.vu-invoice-brand img { - width: 44px; - height: 44px; - border-radius: 8px; -} - -.vu-invoice-brand strong, -.vu-invoice-state strong { - display: block; - color: var(--vu-ink); - font-size: 22px; - font-weight: 900; -} - -.vu-invoice-brand span, -.vu-invoice-state small { - display: block; - margin-top: 4px; - color: var(--vu-muted); - font-size: 13px; - font-weight: 800; -} - -.vu-invoice-state { - text-align: right; -} - -.vu-invoice-state .vu-status { - margin-bottom: 10px; -} - -.vu-invoice-parties { - display: grid; - grid-template-columns: repeat(3, minmax(0, 1fr)); - gap: 14px; - padding: 24px 0; -} - -.vu-invoice-parties section { - min-width: 0; - padding: 16px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-sub-bg); -} - -.vu-invoice-parties span, -.vu-invoice-notes span, -.vu-invoice-total span { - display: block; - color: var(--vu-muted); - font-size: 13px; - font-weight: 800; -} - -.vu-invoice-parties strong { - display: block; - margin-top: 8px; - color: var(--vu-ink); - font-size: 16px; - font-weight: 900; - overflow-wrap: anywhere; -} - -.vu-invoice-parties p, -.vu-invoice-notes p { - margin: 8px 0 0; - color: var(--vu-muted); - font-size: 13px; - line-height: 1.6; - font-weight: 700; -} - -.vu-invoice-table-wrap { - overflow-x: auto; - border: 1px solid var(--vu-line); - border-radius: 8px; -} - -.vu-invoice-table { - width: 100%; - min-width: 720px; - border-collapse: collapse; -} - -.vu-invoice-table th, -.vu-invoice-table td { - padding: 18px; - border-bottom: 1px solid var(--vu-line); - color: var(--vu-ink); - text-align: left; - vertical-align: top; -} - -.vu-invoice-table th { - color: var(--vu-muted); - font-size: 13px; - font-weight: 900; -} - -.vu-invoice-table td { - font-size: 14px; - font-weight: 800; -} - -.vu-invoice-table tbody tr:last-child td { - border-bottom: 0; -} - -.vu-invoice-table td strong, -.vu-invoice-table td span { - display: block; -} - -.vu-invoice-table td span { - margin-top: 5px; - color: var(--vu-muted); - font-size: 12px; -} - -.vu-invoice-table .is-right { - text-align: right; -} - -.vu-invoice-bottom { - display: grid; - grid-template-columns: minmax(0, 1fr) 320px; - gap: 18px; - align-items: start; - padding-top: 24px; -} - -.vu-invoice-notes { - min-width: 0; -} - -.vu-invoice-total { - padding: 16px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-sub-bg); -} - -.vu-invoice-total div { - display: flex; - align-items: center; - justify-content: space-between; - gap: 14px; - padding: 10px 0; - border-bottom: 1px solid var(--vu-line); -} - -.vu-invoice-total div:first-child { - padding-top: 0; -} - -.vu-invoice-total div:last-child { - padding-bottom: 0; - border-bottom: 0; -} - -.vu-invoice-total strong { - color: var(--vu-ink); - font-size: 15px; - font-weight: 900; - text-align: right; -} - -.vu-invoice-total .is-total strong { - font-size: 24px; -} - -.vu-disabled-page { - min-height: 100vh; - display: grid; - place-items: center; - padding: 28px; -} - -.vu-disabled-card { - width: min(100%, 760px); - padding: 34px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-card-bg); - box-shadow: var(--vu-shadow); -} - -.vu-disabled-brand { - display: inline-flex; - align-items: center; - gap: 10px; - color: var(--vu-ink); - font-size: 15px; - font-weight: 900; -} - -.vu-disabled-brand img { - width: 34px; - height: 34px; - border-radius: 8px; -} - -.vu-disabled-mark { - width: 66px; - height: 66px; - display: inline-flex; - align-items: center; - justify-content: center; - margin: 34px 0 18px; - border-radius: 8px; - color: #b45309; - background: rgba(245, 158, 11, 0.14); - font-size: 34px; -} - -.vu-disabled-card h1 { - max-width: 620px; - margin: 14px 0 0; - color: var(--vu-ink); - font-size: clamp(34px, 7vw, 66px); - line-height: 1.02; - letter-spacing: 0; -} - -.vu-disabled-desc { - max-width: 620px; - margin: 18px 0 0; - color: var(--vu-muted); - font-size: 16px; - line-height: 1.8; - font-weight: 700; -} - -.vu-disabled-info { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 12px; - margin-top: 26px; -} - -.vu-disabled-info div { - min-width: 0; - padding: 16px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-sub-bg); -} - -.vu-disabled-info span { - display: block; - color: var(--vu-muted); - font-size: 13px; - font-weight: 800; -} - -.vu-disabled-info strong { - display: block; - margin-top: 7px; - color: var(--vu-ink); - font-size: 15px; - font-weight: 900; - overflow-wrap: anywhere; -} - -.vu-disabled-actions { - display: flex; - flex-wrap: wrap; - gap: 12px; - margin-top: 26px; -} - -@media print { - .vu-sidebar, - .vu-topbar, - .vu-modal { - display: none !important; - } - - .vu-app, - .vu-main { - display: block; - padding: 0; - min-height: auto; - background: #fff; - } - - .vu-invoice-card { - box-shadow: none; - border-color: #d8dee8; - } -} - -.vu-ticket-hero { - display: grid; - grid-template-columns: minmax(0, 1fr) 320px; - gap: 18px; - margin-bottom: 18px; -} - -.vu-ticket-hero-main, -.vu-ticket-summary { - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-card-bg); - box-shadow: var(--vu-shadow); -} - -.vu-ticket-hero-main { - min-height: 220px; - display: flex; - flex-direction: column; - justify-content: center; - padding: 30px; - background: var(--vu-hero-bg); -} - -.vu-ticket-hero-main h2 { - max-width: 760px; - margin: 16px 0 0; - color: var(--vu-ink); - font-size: clamp(28px, 4vw, 46px); - line-height: 1.08; - letter-spacing: 0; -} - -.vu-ticket-hero-main p { - max-width: 620px; - margin: 14px 0 0; - color: var(--vu-muted); - font-size: 15px; - line-height: 1.7; -} - -.vu-ticket-summary { - display: grid; - align-content: center; - gap: 12px; - padding: 24px; -} - -.vu-ticket-summary div, -.vu-ticket-side-list div { - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; - padding-bottom: 12px; - border-bottom: 1px solid var(--vu-line); -} - -.vu-ticket-summary div:last-child, -.vu-ticket-side-list div:last-child { - padding-bottom: 0; - border-bottom: 0; -} - -.vu-ticket-summary span, -.vu-ticket-side-list span { - color: var(--vu-muted); - font-size: 13px; - font-weight: 700; -} - -.vu-ticket-summary strong, -.vu-ticket-side-list strong { - color: var(--vu-ink); - font-size: 15px; - text-align: right; - overflow-wrap: anywhere; -} - -.vu-ticket-card, -.vu-ticket-form-card, -.vu-ticket-reply-card { - padding: 22px; -} - -.vu-ticket-status { - display: inline-flex; - align-items: center; - gap: 7px; - min-height: 28px; - padding: 0 9px; - border-radius: 8px; - font-size: 12px; - font-weight: 800; - white-space: nowrap; -} - -.vu-ticket-status::before { - content: ""; - width: 7px; - height: 7px; - border-radius: 50%; - background: currentColor; -} - -.vu-ticket-status.is-open { - color: var(--vu-amber); - background: var(--vu-warning-soft); -} - -.vu-ticket-status.is-closed { - color: var(--vu-primary-dark); - background: var(--vu-soft); -} - -.vu-ticket-layout, -.vu-ticket-view-layout { - display: grid; - grid-template-columns: minmax(0, 1fr) 330px; - gap: 18px; - align-items: start; -} - -.vu-ticket-thread { - min-width: 0; - display: grid; - gap: 18px; -} - -.vu-ticket-guide { - position: sticky; - top: 24px; -} - -.vu-form { - display: grid; - gap: 14px; -} - -.vu-field { - display: grid; - gap: 8px; - color: var(--vu-muted); - font-size: 13px; - font-weight: 800; -} - -.vu-input { - display: block; - width: 100%; - min-height: 44px; - padding: 0 12px; - border: 1px solid var(--vu-line); - border-radius: 8px; - outline: 0; - background: var(--vu-input-bg); - color: var(--vu-ink); - font-size: 14px; - font-weight: 700; -} - -.vu-field select.vu-input { - height: 46px; - min-height: 46px; - padding-right: 42px; - line-height: 46px; - appearance: none; - -webkit-appearance: none; - background-color: var(--vu-input-bg); - background-image: linear-gradient(45deg, transparent 50%, var(--vu-muted) 50%), linear-gradient(135deg, var(--vu-muted) 50%, transparent 50%); - background-position: calc(100% - 20px) 19px, calc(100% - 14px) 19px; - background-size: 6px 6px, 6px 6px; - background-repeat: no-repeat; -} - -.vu-textarea { - min-height: 170px; - padding: 12px; - resize: vertical; - line-height: 1.65; -} - -.vu-input:focus { - border-color: rgba(24, 168, 123, 0.58); - box-shadow: 0 0 0 3px rgba(24, 168, 123, 0.12); -} - -.vu-form-message { - min-height: 20px; - margin: 0; - color: var(--vu-muted); - font-size: 13px; - line-height: 1.5; -} - -.vu-form-message.is-error { - color: var(--vu-coral); -} - -.vu-form-actions { - display: flex; - flex-wrap: wrap; - justify-content: flex-end; - gap: 10px; -} - -.vu-ticket-message-list { - display: grid; - gap: 12px; -} - -.vu-ticket-message { - display: grid; - grid-template-columns: 42px minmax(0, 1fr); - gap: 12px; - align-items: start; -} - -.vu-ticket-avatar { - width: 42px; - height: 42px; - display: grid; - place-items: center; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-card-bg); - color: var(--vu-primary-dark); - font-size: 21px; -} - -.vu-ticket-message.is-admin .vu-ticket-avatar { - color: var(--vu-blue); - background: rgba(37, 99, 235, 0.1); -} - -.vu-ticket-bubble { - min-width: 0; - padding: 14px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-card-bg); - box-shadow: var(--vu-shadow); -} - -.vu-ticket-message.is-admin .vu-ticket-bubble { - border-color: rgba(37, 99, 235, 0.22); -} - -.vu-ticket-message-head { - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; - margin-bottom: 8px; -} - -.vu-ticket-message-head strong { - color: var(--vu-ink); - font-size: 14px; - overflow-wrap: anywhere; -} - -.vu-ticket-message-head span { - flex: 0 0 auto; - color: var(--vu-muted); - font-size: 12px; - font-weight: 700; -} - -.vu-ticket-bubble p { - margin: 0; - color: var(--vu-ink); - font-size: 14px; - line-height: 1.75; - overflow-wrap: anywhere; -} - -.vu-ticket-side-list { - display: grid; - gap: 12px; - margin-bottom: 18px; -} - -.vu-support-hero { - display: grid; - grid-template-columns: minmax(0, 1fr) 320px; - gap: 18px; - margin-bottom: 18px; -} - -.vu-support-hero-main, -.vu-support-summary { - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-card-bg); - box-shadow: var(--vu-shadow); -} - -.vu-support-hero-main { - min-height: 220px; - display: flex; - flex-direction: column; - justify-content: center; - padding: 30px; - background: var(--vu-hero-bg); -} - -.vu-support-hero-main h2 { - max-width: 760px; - margin: 16px 0 0; - color: var(--vu-ink); - font-size: clamp(28px, 4vw, 46px); - line-height: 1.08; - letter-spacing: 0; -} - -.vu-support-hero-main p { - max-width: 640px; - margin: 14px 0 0; - color: var(--vu-muted); - font-size: 15px; - line-height: 1.7; -} - -.vu-support-summary { - display: grid; - align-content: center; - gap: 12px; - padding: 24px; -} - -.vu-support-summary div, -.vu-support-info div { - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; - padding-bottom: 12px; - border-bottom: 1px solid var(--vu-line); -} - -.vu-support-summary div:last-child, -.vu-support-info div:last-child { - padding-bottom: 0; - border-bottom: 0; -} - -.vu-support-summary span, -.vu-support-info span { - color: var(--vu-muted); - font-size: 13px; - font-weight: 700; -} - -.vu-support-summary strong, -.vu-support-info strong { - min-width: 0; - color: var(--vu-ink); - font-size: 15px; - text-align: right; - overflow-wrap: anywhere; -} - -.vu-support-card, -.vu-support-editor, -.vu-support-reply { - padding: 22px; -} - -.vu-support-list { - display: grid; - gap: 10px; -} - -.vu-support-ticket { - display: grid; - grid-template-columns: minmax(0, 1fr) auto; - gap: 14px; - align-items: center; - padding: 14px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-sub-bg); -} - -.vu-support-ticket-main { - min-width: 0; -} - -.vu-support-id { - display: inline-flex; - align-items: center; - min-height: 24px; - padding: 0 8px; - border-radius: 8px; - color: var(--vu-primary-dark); - background: var(--vu-soft); - font-size: 12px; - font-weight: 800; -} - -.vu-support-ticket h3 { - margin: 8px 0 0; - color: var(--vu-ink); - font-size: 16px; - line-height: 1.35; - letter-spacing: 0; - overflow-wrap: anywhere; -} - -.vu-support-ticket p { - margin: 6px 0 0; - color: var(--vu-muted); - font-size: 13px; -} - -.vu-support-ticket-side { - display: inline-flex; - align-items: center; - gap: 10px; -} - -.vu-support-status { - display: inline-flex; - align-items: center; - gap: 7px; - min-height: 28px; - padding: 0 9px; - border-radius: 8px; - font-size: 12px; - font-weight: 800; - white-space: nowrap; -} - -.vu-support-status::before { - content: ""; - width: 7px; - height: 7px; - border-radius: 50%; - background: currentColor; -} - -.vu-support-status.is-open { - color: var(--vu-amber); - background: var(--vu-warning-soft); -} - -.vu-support-status.is-closed { - color: var(--vu-primary-dark); - background: var(--vu-soft); -} - -.vu-support-editor-layout, -.vu-support-detail-layout { - display: grid; - grid-template-columns: minmax(0, 1fr) 330px; - gap: 18px; - align-items: start; -} - -.vu-support-thread { - min-width: 0; - display: grid; - gap: 18px; -} - -.vu-support-aside { - position: sticky; - top: 24px; -} - -.vu-support-form { - display: grid; - gap: 14px; -} - -.vu-support-field { - display: grid; - gap: 8px; - color: var(--vu-muted); - font-size: 13px; - font-weight: 800; -} - -.vu-support-input { - width: 100%; - min-height: 44px; - padding: 0 12px; - border: 1px solid var(--vu-line); - border-radius: 8px; - outline: 0; - background: var(--vu-input-bg); - color: var(--vu-ink); -} - -.vu-support-textarea { - min-height: 180px; - padding: 12px; - resize: vertical; - line-height: 1.65; -} - -.vu-support-input:focus { - border-color: rgba(24, 168, 123, 0.58); - box-shadow: 0 0 0 3px rgba(24, 168, 123, 0.12); -} - -.vu-support-message { - min-height: 20px; - margin: 0; - color: var(--vu-muted); - font-size: 13px; - line-height: 1.5; -} - -.vu-support-message.is-error { - color: var(--vu-coral); -} - -.vu-support-actions { - display: flex; - flex-wrap: wrap; - justify-content: flex-end; - gap: 10px; -} - -.vu-support-tips { - display: grid; - gap: 12px; -} - -.vu-support-tips div { - display: grid; - grid-template-columns: 34px minmax(0, 1fr); - gap: 10px; - align-items: center; -} - -.vu-support-tips i { - width: 34px; - height: 34px; - display: grid; - place-items: center; - border-radius: 8px; - color: var(--vu-primary-dark); - background: var(--vu-soft); - font-size: 18px; -} - -.vu-support-tips span { - color: var(--vu-muted); - font-size: 13px; - line-height: 1.6; -} - -.vu-support-info { - display: grid; - gap: 12px; - margin-bottom: 18px; -} - -.vu-support-messages { - display: grid; - gap: 12px; -} - -.vu-support-message-item { - display: grid; - grid-template-columns: 42px minmax(0, 1fr); - gap: 12px; - align-items: start; -} - -.vu-support-message-icon { - width: 42px; - height: 42px; - display: grid; - place-items: center; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-card-bg); - color: var(--vu-primary-dark); - font-size: 21px; -} - -.vu-support-message-item.is-admin .vu-support-message-icon { - color: var(--vu-blue); - background: rgba(37, 99, 235, 0.1); -} - -.vu-support-message-body { - min-width: 0; - padding: 14px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-card-bg); - box-shadow: var(--vu-shadow); -} - -.vu-support-message-item.is-admin .vu-support-message-body { - border-color: rgba(37, 99, 235, 0.22); -} - -.vu-support-message-head { - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; - margin-bottom: 8px; -} - -.vu-support-message-head strong { - color: var(--vu-ink); - font-size: 14px; - overflow-wrap: anywhere; -} - -.vu-support-message-head span { - flex: 0 0 auto; - color: var(--vu-muted); - font-size: 12px; - font-weight: 700; -} - -.vu-support-message-body p { - margin: 0; - color: var(--vu-ink); - font-size: 14px; - line-height: 1.75; - overflow-wrap: anywhere; -} - -.vu-profile-hero { - display: grid; - grid-template-columns: minmax(0, 1fr) 340px; - gap: 18px; - margin-bottom: 18px; -} - -.vu-profile-hero-main, -.vu-profile-account { - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-card-bg); - box-shadow: var(--vu-shadow); -} - -.vu-profile-hero-main { - min-height: 230px; - display: flex; - flex-direction: column; - justify-content: center; - padding: 30px; - background: var(--vu-hero-bg); -} - -.vu-profile-hero-main h2 { - max-width: 760px; - margin: 16px 0 0; - color: var(--vu-ink); - font-size: clamp(30px, 4vw, 50px); - line-height: 1.08; - letter-spacing: 0; - overflow-wrap: anywhere; -} - -.vu-profile-hero-main p { - max-width: 650px; - margin: 14px 0 0; - color: var(--vu-muted); - font-size: 15px; - line-height: 1.7; -} - -.vu-profile-account { - display: grid; - align-content: center; - gap: 12px; - padding: 24px; -} - -.vu-profile-account div { - display: grid; - gap: 6px; - padding-bottom: 12px; - border-bottom: 1px solid var(--vu-line); -} - -.vu-profile-account div:last-child { - padding-bottom: 0; - border-bottom: 0; -} - -.vu-profile-account span { - color: var(--vu-muted); - font-size: 13px; - font-weight: 800; -} - -.vu-profile-account strong { - min-width: 0; - color: var(--vu-ink); - font-size: 15px; - overflow-wrap: anywhere; -} - -.vu-profile-stats { - margin-bottom: 18px; -} - -.vu-profile-layout { - display: grid; - grid-template-columns: minmax(0, 1fr) 340px; - gap: 18px; - align-items: start; -} - -.vu-profile-main { - min-width: 0; - display: grid; - gap: 18px; -} - -.vu-profile-side { - position: sticky; - top: 24px; -} - -.vu-profile-card { - min-width: 0; - padding: 22px; -} - -.vu-profile-note { - margin: -4px 0 14px; - padding: 12px; - border: 1px solid rgba(37, 99, 235, 0.16); - border-radius: 8px; - color: var(--vu-muted); - background: rgba(37, 99, 235, 0.06); - font-size: 13px; - line-height: 1.65; -} - -.vu-profile-note.is-warning { - border-color: rgba(183, 121, 31, 0.2); - background: var(--vu-warning-soft); -} - -.vu-profile-table { - min-width: 520px; -} - -.vu-profile-card .vu-table-wrap { - max-width: 100%; - background: var(--vu-card-bg); -} - -.vu-profile-card .vu-data-table { - min-width: 680px; -} - -.vu-profile-card#online-ip .vu-data-table { - min-width: 520px; -} - -.vu-profile-card .vu-data-table th, -.vu-profile-card .vu-data-table td { - padding: 12px; - overflow-wrap: anywhere; -} - -.vu-profile-stats .vu-stat strong { - font-size: 20px; -} - -.vu-profile-tips { - display: grid; - gap: 12px; -} - -.vu-profile-tips div { - display: grid; - grid-template-columns: 34px minmax(0, 1fr); - gap: 10px; - align-items: center; -} - -.vu-profile-tips i { - width: 34px; - height: 34px; - display: grid; - place-items: center; - border-radius: 8px; - color: var(--vu-primary-dark); - background: var(--vu-soft); - font-size: 18px; -} - -.vu-profile-tips span { - color: var(--vu-muted); - font-size: 13px; - line-height: 1.6; -} - -.vu-edit-hero { - display: grid; - grid-template-columns: minmax(0, 1fr) 330px; - gap: 18px; - margin-bottom: 18px; -} - -.vu-edit-hero-main, -.vu-edit-summary { - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-card-bg); - box-shadow: var(--vu-shadow); -} - -.vu-edit-hero-main { - min-width: 0; - padding: 28px; -} - -.vu-edit-hero-main h2 { - max-width: 720px; - margin: 14px 0 10px; - color: var(--vu-ink); - font-size: clamp(28px, 4vw, 46px); - line-height: 1.08; -} - -.vu-edit-hero-main p { - max-width: 680px; - margin: 0; - color: var(--vu-muted); - line-height: 1.75; -} - -.vu-edit-summary { - min-width: 0; - display: grid; - align-content: center; - padding: 22px; -} - -.vu-edit-summary div { - display: grid; - gap: 6px; - padding: 16px 0; - border-bottom: 1px solid var(--vu-line); -} - -.vu-edit-summary div:last-child { - border-bottom: 0; -} - -.vu-edit-summary span, -.vu-current-line span, -.vu-edit-info-list span { - color: var(--vu-muted); - font-size: 13px; - font-weight: 800; -} - -.vu-edit-summary strong, -.vu-current-line strong, -.vu-edit-info-list strong, -.vu-edit-info-list a { - min-width: 0; - color: var(--vu-ink); - font-size: 18px; - font-weight: 900; - word-break: break-word; -} - -.vu-edit-layout { - display: grid; - grid-template-columns: minmax(0, 1fr) 330px; - gap: 18px; - align-items: start; -} - -.vu-edit-main, -.vu-edit-side { - min-width: 0; - display: grid; - gap: 18px; -} - -.vu-edit-side { - position: sticky; - top: 24px; -} - -.vu-setting-card { - min-width: 0; -} - -.vu-form-grid { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 14px; -} - -.vu-current-line { - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; - padding: 14px; - border: 1px solid rgba(24, 168, 123, 0.18); - border-radius: 8px; - background: rgba(24, 168, 123, 0.08); -} - -.vu-ga-card { - display: grid; - gap: 16px; -} - -.vu-security-method-form select.vu-input { - min-height: 46px; -} - -.vu-ga-setup { - display: grid; - grid-template-columns: 192px minmax(0, 1fr); - gap: 16px; - align-items: start; -} - -.vu-ga-qr { - display: grid; - place-items: center; - min-height: 192px; - padding: 12px; - border: 1px dashed var(--vu-line); - border-radius: 8px; - background: var(--vu-muted-bg); - color: var(--vu-muted); - font-weight: 700; -} - -.vu-ga-qr img, -.vu-ga-qr canvas { - width: 172px !important; - height: 172px !important; -} - -.vu-ga-setup-body { - min-width: 0; - display: grid; - gap: 14px; -} - -.vu-ga-secret { - width: fit-content; - max-width: 100%; - grid-template-columns: minmax(0, auto) 42px; -} - -.vu-ga-secret code { - max-width: min(100%, 420px); - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.vu-security-method-form, -.vu-ga-disable-form { - padding-top: 16px; - border-top: 1px solid var(--vu-line); -} - -.vu-edit-info-list { - display: grid; - gap: 12px; - margin-bottom: 14px; -} - -.vu-edit-info-list div { - display: grid; - gap: 6px; - padding-bottom: 12px; - border-bottom: 1px solid var(--vu-line); -} - -.vu-edit-info-list div:last-child { - padding-bottom: 0; - border-bottom: 0; -} - -.vu-pay-hero { - display: grid; - grid-template-columns: minmax(0, 1fr) 330px; - gap: 18px; - margin-bottom: 18px; -} - -.vu-pay-hero-main, -.vu-pay-balance { - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-card-bg); - box-shadow: var(--vu-shadow); -} - -.vu-pay-hero-main { - min-width: 0; - padding: 28px; -} - -.vu-pay-hero-main h2 { - max-width: 760px; - margin: 14px 0 10px; - color: var(--vu-ink); - font-size: clamp(30px, 4vw, 48px); - line-height: 1.08; -} - -.vu-pay-hero-main p { - max-width: 680px; - margin: 0; - color: var(--vu-muted); - line-height: 1.75; -} - -.vu-pay-balance { - min-width: 0; - display: grid; - align-content: center; - gap: 12px; - padding: 24px; -} - -.vu-pay-balance span { - color: var(--vu-muted); - font-size: 13px; - font-weight: 800; -} - -.vu-pay-balance strong { - color: var(--vu-ink); - font-size: 36px; - line-height: 1; -} - -.vu-pay-layout { - display: grid; - grid-template-columns: minmax(0, 1fr) 330px; - gap: 18px; - align-items: start; -} - -.vu-pay-main, -.vu-pay-side { - min-width: 0; - display: grid; - gap: 18px; -} - -.vu-pay-side { - position: sticky; - top: 24px; -} - -.vu-pay-card { - min-width: 0; -} - -.vu-pay-methods { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); - align-items: stretch; - gap: 12px; -} - -.vu-pay-methods .vu-btn { - width: 100%; - min-width: 0; - min-height: 48px; - padding: 10px 14px; - line-height: 1.3; -} - -.vu-pay-methods .vu-btn span { - min-width: 0; - white-space: normal; - overflow-wrap: anywhere; -} - -.vu-pay-table strong { - color: var(--vu-ink); -} - -.vu-pay-code { - display: inline-flex; - align-items: center; - max-width: 260px; - gap: 8px; -} - -.vu-pay-code code { - min-width: 0; - max-width: 210px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; - color: var(--vu-ink); - background: var(--vu-sub-bg); - border: 1px solid var(--vu-line); - border-radius: 8px; - padding: 6px 9px; -} - -.vu-pay-code .vu-icon-btn { - width: 34px; - height: 34px; - flex: 0 0 34px; -} - -.vu-pay-dialog { - position: fixed; - inset: 0; - z-index: 1000; - display: none; - align-items: center; - justify-content: center; - padding: 18px; -} - -.vu-pay-dialog.is-open { - display: flex; -} - -.vu-pay-dialog-backdrop { - position: absolute; - inset: 0; - background: var(--vu-overlay); - backdrop-filter: blur(8px); -} - -.vu-pay-dialog-panel { - position: relative; - z-index: 1; - width: min(420px, 100%); - padding: 26px; - border: 1px solid var(--vu-modal-border); - border-radius: 8px; - background: var(--vu-panel-bg); - box-shadow: 0 28px 72px rgba(15, 23, 42, 0.24); -} - -.vu-pay-dialog-panel h2 { - margin: 0; - padding-right: 42px; - color: var(--vu-ink); - font-size: 22px; -} - -.vu-pay-dialog-panel p { - margin: 10px 0 18px; - color: var(--vu-muted); - line-height: 1.7; -} - -.vu-pay-qrcode { - min-height: 240px; - display: grid; - place-items: center; - margin-bottom: 16px; - padding: 12px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: #fff; -} - -.vu-pay-chain-details { - display: grid; - gap: 12px; - margin-bottom: 16px; -} - -.vu-pay-chain-details[hidden] { - display: none; -} - -.vu-pay-chain-summary { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 10px; -} - -.vu-pay-chain-summary span, -.vu-pay-address { - min-width: 0; - padding: 10px 12px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-sub-bg); -} - -.vu-pay-chain-summary small, -.vu-pay-address > small { - display: block; - margin-bottom: 5px; - color: var(--vu-muted); -} - -.vu-pay-chain-summary strong { - color: var(--vu-ink); - font-size: 15px; - overflow-wrap: anywhere; -} - -.vu-pay-address > div { - display: flex; - align-items: center; - gap: 8px; -} - -.vu-pay-address code { - min-width: 0; - flex: 1; - color: var(--vu-ink); - font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; - font-size: 12px; - overflow-wrap: anywhere; -} - -.vu-pay-address .vu-icon-btn { - width: 34px; - height: 34px; - flex: 0 0 34px; -} - -.vu-invite-hero { - display: grid; - grid-template-columns: minmax(0, 1fr) 330px; - gap: 18px; - margin-bottom: 18px; -} - -.vu-invite-hero-main, -.vu-invite-balance { - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-card-bg); - box-shadow: var(--vu-shadow); -} - -.vu-invite-hero-main { - min-width: 0; - padding: 28px; - background: var(--vu-hero-bg); -} - -.vu-invite-hero-main h2 { - max-width: 760px; - margin: 14px 0 10px; - color: var(--vu-ink); - font-size: clamp(30px, 4vw, 48px); - line-height: 1.08; -} - -.vu-invite-hero-main p { - max-width: 680px; - margin: 0; - color: var(--vu-muted); - line-height: 1.75; -} - -.vu-invite-link { - width: fit-content; - max-width: 100%; - margin-top: 18px; - grid-template-columns: minmax(0, auto) 36px; -} - -.vu-invite-link code { - max-width: min(100%, 620px); - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.vu-invite-actions { - display: flex; - flex-wrap: wrap; - gap: 10px; - margin-top: 14px; -} - -.vu-invite-balance { - min-width: 0; - display: grid; - align-content: stretch; - gap: 16px; - padding: 24px; - overflow: hidden; - position: relative; -} - -.vu-invite-balance::before { - content: ""; - position: absolute; - inset: 0; - background: - radial-gradient(circle at 88% 12%, rgba(24, 168, 123, 0.18), transparent 34%), - linear-gradient(135deg, rgba(24, 168, 123, 0.08), transparent 46%); - pointer-events: none; -} - -.vu-invite-balance > * { - position: relative; - z-index: 1; -} - -.vu-invite-balance-head { - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; -} - -.vu-invite-balance-head span { - display: inline-flex; - align-items: center; - gap: 8px; - color: var(--vu-muted); - font-size: 13px; - font-weight: 800; -} - -.vu-invite-balance-head i { - width: 36px; - height: 36px; - display: inline-flex; - align-items: center; - justify-content: center; - border-radius: 8px; - color: var(--vu-primary-dark); - background: var(--vu-soft); - font-size: 20px; -} - -.vu-invite-balance-head em { - padding: 7px 10px; - border-radius: 999px; - color: var(--vu-primary-dark); - background: var(--vu-soft); - font-size: 12px; - font-style: normal; - font-weight: 900; -} - -.vu-invite-balance strong { - color: var(--vu-ink); - font-size: clamp(38px, 5vw, 56px); - line-height: 1; -} - -.vu-invite-balance-meter { - height: 8px; - overflow: hidden; - border-radius: 999px; - background: var(--vu-muted-bg); -} - -.vu-invite-balance-meter span { - display: block; - width: calc(var(--value) * 1%); - height: 100%; - border-radius: inherit; - background: linear-gradient(90deg, var(--vu-primary), #64d6b3); -} - -.vu-invite-balance-stats { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 10px; -} - -.vu-invite-balance-stats div { - min-width: 0; - padding: 12px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-sub-bg); -} - -.vu-invite-balance-stats small { - color: var(--vu-muted); - font-size: 13px; - line-height: 1.6; -} - -.vu-invite-balance-stats b { - display: block; - margin-top: 2px; - color: var(--vu-ink); - font-size: 16px; - line-height: 1.25; -} - -.vu-invite-balance-action { - width: fit-content; -} - -.vu-invite-stats { - margin-bottom: 18px; -} - -.vu-invite-layout { - display: grid; - grid-template-columns: minmax(0, 1fr) 330px; - gap: 18px; - align-items: start; -} - -.vu-invite-main, -.vu-invite-side { - min-width: 0; - display: grid; - gap: 18px; -} - -.vu-invite-side { - position: sticky; - top: 24px; -} - -.vu-invite-card { - min-width: 0; - padding: 22px; -} - -.vu-invite-wallet-grid { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 16px; -} - -.vu-invite-action { - min-width: 0; - padding: 14px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-sub-bg); -} - -.vu-invite-action .vu-btn { - width: fit-content; -} - -.vu-invite-table { - min-width: 760px; -} - -.vu-pay-qrcode img, -.vu-pay-qrcode canvas { - width: 220px; - height: 220px; -} - -.vu-announcement-hero { - display: grid; - grid-template-columns: minmax(0, 1fr) 340px; - gap: 18px; - margin-bottom: 18px; -} - -.vu-announcement-hero-main, -.vu-announcement-summary { - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-card-bg); - box-shadow: var(--vu-shadow); -} - -.vu-announcement-hero-main { - min-width: 0; - padding: 30px; - background: var(--vu-hero-bg); -} - -.vu-announcement-hero-main h2 { - max-width: 760px; - margin: 16px 0 0; - color: var(--vu-ink); - font-size: clamp(30px, 4vw, 50px); - line-height: 1.08; -} - -.vu-announcement-hero-main p { - max-width: 680px; - margin: 14px 0 0; - color: var(--vu-muted); - font-size: 15px; - line-height: 1.75; -} - -.vu-announcement-summary { - min-width: 0; - display: grid; - align-content: center; - gap: 12px; - padding: 24px; -} - -.vu-announcement-summary div { - display: grid; - gap: 6px; - padding-bottom: 14px; - border-bottom: 1px solid var(--vu-line); -} - -.vu-announcement-summary div:last-child { - padding-bottom: 0; - border-bottom: 0; -} - -.vu-announcement-summary span { - color: var(--vu-muted); - font-size: 13px; - font-weight: 800; -} - -.vu-announcement-summary strong { - min-width: 0; - color: var(--vu-ink); - font-size: 22px; - font-weight: 900; - overflow-wrap: anywhere; -} - -.vu-announcement-layout { - display: grid; - grid-template-columns: minmax(0, 1fr) 340px; - gap: 18px; - align-items: start; -} - -.vu-announcement-list, -.vu-announcement-side { - min-width: 0; - display: grid; - gap: 18px; -} - -.vu-announcement-side { - position: sticky; - top: 24px; -} - -.vu-announcement-card { - min-width: 0; -} - -.vu-announcement-content { - color: var(--vu-ink); - font-size: 15px; - line-height: 1.85; - overflow-wrap: anywhere; -} - -.vu-announcement-content p:first-child { - margin-top: 0; -} - -.vu-announcement-content p:last-child { - margin-bottom: 0; -} - -.vu-card { - min-width: 0; - padding: 22px; -} - -.vu-card-large { - padding: 24px; -} - -.vu-card-compact { - padding: 18px; -} - -.vu-card-compact .vu-card-head { - margin-bottom: 12px; -} - -.vu-card-head { - display: flex; - align-items: flex-start; - justify-content: space-between; - gap: 16px; - margin-bottom: 18px; -} - -.vu-card h2 { - font-size: 20px; -} - -.vu-card-icon { - color: var(--vu-primary-dark); - font-size: 26px; -} - -.vu-muted, -.vu-date { - color: var(--vu-muted); - font-size: 14px; - line-height: 1.65; -} - -.vu-date { - margin: 0 0 10px; - font-weight: 800; -} - -.vu-download-hero { - display: grid; - grid-template-columns: minmax(0, 1fr) 340px; - gap: 18px; - margin-bottom: 18px; -} - -.vu-download-hero-main, -.vu-download-jump, -.vu-download-card { - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-card-bg); - box-shadow: var(--vu-shadow); -} - -.vu-download-hero-main { - min-height: 280px; - display: flex; - flex-direction: column; - justify-content: center; - padding: 34px; - background: var(--vu-hero-bg); -} - -.vu-download-hero-main h2 { - max-width: 820px; - margin: 18px 0 0; - font-size: clamp(34px, 4vw, 58px); - line-height: 1.08; - font-weight: 900; - letter-spacing: 0; -} - -.vu-download-hero-main p { - max-width: 780px; - margin: 18px 0 0; - color: var(--vu-muted); - font-size: 17px; - line-height: 1.8; - font-weight: 700; -} - -.vu-download-jump { - display: grid; - align-content: center; - gap: 10px; - padding: 18px; -} - -.vu-download-jump a { - min-height: 48px; - display: flex; - align-items: center; - gap: 12px; - padding: 0 14px; - border: 1px solid var(--vu-line); - border-radius: 8px; - color: var(--vu-ink); - background: var(--vu-ghost-bg); - font-size: 14px; - font-weight: 900; - text-decoration: none; -} - -.vu-download-jump a:hover { - color: var(--vu-primary-dark); - background: var(--vu-soft); -} - -.vu-download-jump i { - color: var(--vu-primary-dark); - font-size: 22px; -} - -.vu-download-note-grid { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 18px; - margin-bottom: 18px; -} - -.vu-download-note { - min-height: 112px; - display: flex; - align-items: center; - gap: 16px; -} - -.vu-download-note > i { - width: 52px; - height: 52px; - flex: 0 0 auto; - display: grid; - place-items: center; - border-radius: 8px; - color: var(--vu-primary-dark); - background: var(--vu-soft); - font-size: 26px; -} - -.vu-download-note h2 { - margin: 0; -} - -.vu-download-note p { - margin: 8px 0 0; - color: var(--vu-muted); - font-size: 14px; - line-height: 1.7; - font-weight: 700; -} - -.vu-download-section { - margin-top: 18px; -} - -.vu-download-grid { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 16px; -} - -.vu-download-grid.is-single { - grid-template-columns: minmax(0, 1fr); -} - -.vu-download-card { - min-height: 260px; - display: flex; - flex-direction: column; - padding: 22px; - box-shadow: none; - background: var(--vu-sub-bg); -} - -.vu-download-card.is-recommended { - border-color: rgba(24, 168, 123, 0.42); - background: - linear-gradient(135deg, rgba(24, 168, 123, 0.08), transparent 48%), - var(--vu-sub-bg); -} - -.vu-download-card-head { - display: grid; - gap: 10px; -} - -.vu-download-card-head span { - width: fit-content; - min-height: 28px; - display: inline-flex; - align-items: center; - padding: 0 10px; - border-radius: 8px; - color: var(--vu-primary-dark); - background: var(--vu-soft); - font-size: 12px; - font-weight: 900; -} - -.vu-download-card-head h3 { - margin: 0; - color: var(--vu-ink); - font-size: clamp(22px, 2.2vw, 30px); - line-height: 1.15; - font-weight: 900; - letter-spacing: 0; -} - -.vu-download-card p { - margin: 16px 0 0; - color: var(--vu-muted); - font-size: 15px; - line-height: 1.75; - font-weight: 700; -} - -.vu-download-links { - display: flex; - flex-wrap: wrap; - gap: 10px; - margin-top: 16px; -} - -.vu-download-links a { - color: var(--vu-blue); - font-size: 14px; - font-weight: 900; - text-decoration: none; -} - -.vu-download-links a:hover { - text-decoration: underline; -} - -.vu-download-actions { - display: flex; - align-items: center; - gap: 10px; - flex-wrap: wrap; - margin-top: auto; - padding-top: 22px; -} - -.vu-download-actions .vu-btn { - width: auto; - min-height: 42px; - padding: 0 14px; -} - -.vu-ann-content { - color: var(--vu-ink); - font-size: 14px; - line-height: 1.75; - overflow-wrap: anywhere; -} - -.vu-isp-panel { - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; - margin-bottom: 12px; -} - -.vu-radio-group { - display: flex; - flex-wrap: wrap; - gap: 6px; -} - -.vu-radio-group input { - position: absolute; - opacity: 0; - pointer-events: none; -} - -.vu-radio-group span { - display: inline-flex; - align-items: center; - justify-content: center; - min-height: 32px; - padding: 0 11px; - border: 1px solid var(--vu-line); - border-radius: 8px; - color: var(--vu-muted); - background: var(--vu-ghost-bg); - font-size: 13px; - font-weight: 800; - cursor: pointer; -} - -.vu-radio-group input:checked + span { - border-color: rgba(24, 168, 123, 0.36); - color: var(--vu-primary-dark); - background: var(--vu-soft); -} - -.vu-switch { - display: flex; - align-items: center; - gap: 10px; - width: fit-content; - margin-bottom: 14px; - color: var(--vu-muted); - font-size: 13px; - font-weight: 700; - cursor: pointer; -} - -.vu-switch input { - position: absolute; - opacity: 0; - pointer-events: none; -} - -.vu-switch span { - width: 42px; - height: 24px; - border-radius: 999px; - background: var(--vu-muted-bg); - transition: background 0.15s ease; -} - -.vu-switch span::before { - content: ""; - display: block; - width: 18px; - height: 18px; - margin: 3px; - border-radius: 50%; - background: var(--vu-surface); - transition: transform 0.15s ease; -} - -.vu-switch input:checked + span { - background: var(--vu-primary); -} - -.vu-switch input:checked + span::before { - transform: translateX(18px); -} - -.vu-switch em { - font-style: normal; -} - -.vu-empty-state { - display: grid; - justify-items: center; - gap: 10px; - padding: 36px 18px; - border: 1px dashed var(--vu-line); - border-radius: 8px; - color: var(--vu-muted); - text-align: center; -} - -.vu-empty-state i { - color: var(--vu-amber); - font-size: 34px; -} - -.vu-empty-state strong { - color: var(--vu-ink); -} - -.vu-code-row { - display: grid; - grid-template-columns: minmax(0, 1fr) 36px; - gap: 8px; - align-items: center; - margin-top: 12px; -} - -.vu-code-row code { - min-width: 0; - padding: 10px 12px; - border: 1px solid var(--vu-line); - border-radius: 8px; - background: var(--vu-input-bg); - overflow-wrap: anywhere; - font-size: 13px; -} - -.vu-icon-btn { - width: 36px; - height: 36px; - display: inline-grid; - place-items: center; - border-radius: 8px; - background: var(--vu-soft); - color: var(--vu-primary-dark); -} - -.vu-icon-btn:hover { - background: var(--vu-soft-hover); -} - -.vu-secret-list { - display: grid; - gap: 13px; -} - -.vu-secret-list div { - display: grid; - grid-template-columns: 82px minmax(0, 1fr) 36px; -} - -.vu-pill { - display: inline-flex; - align-items: center; - min-height: 28px; - padding: 0 9px; - border-radius: 8px; - color: var(--vu-muted); - background: var(--vu-muted-bg); - font-size: 12px; - font-weight: 800; -} - -.vu-pill-warning { - color: var(--vu-amber); - background: var(--vu-warning-soft); -} - -.vu-pill-danger { - color: var(--vu-coral); - background: var(--vu-danger-soft); -} - -.vu-modal { - position: fixed; - inset: 0; - z-index: 1200; - display: grid; - place-items: center; - padding: 18px; - opacity: 0; - pointer-events: none; - transition: opacity 0.18s ease; -} - -.vu-modal[hidden] { - display: none !important; -} - -.vu-modal.is-open { - opacity: 1; - pointer-events: auto; -} - -.vu-modal-backdrop { - position: absolute; - inset: 0; - z-index: 0; - background: var(--vu-overlay); - backdrop-filter: blur(8px); -} - -.vu-modal-panel { - position: relative; - z-index: 1; - width: min(440px, 100%); - max-height: calc(100vh - 36px); - overflow: auto; - padding: 26px; - border: 1px solid var(--vu-modal-border); - border-radius: 8px; - background: var(--vu-panel-bg); - box-shadow: 0 28px 72px rgba(15, 23, 42, 0.24); - transform: translateY(10px) scale(0.98); - transition: transform 0.18s ease; -} - -.vu-modal.is-open .vu-modal-panel { - transform: translateY(0) scale(1); -} - -.vu-modal-close { - position: absolute; - top: 14px; - right: 14px; - width: 34px; - height: 34px; - display: grid; - place-items: center; - border: 0; - border-radius: 8px; - background: var(--vu-muted-bg); - color: var(--vu-muted); - cursor: pointer; -} - -.vu-modal-close:hover { - color: var(--vu-ink); - background: var(--vu-ghost-hover); -} - -.vu-modal-mark { - width: 48px; - height: 48px; - display: grid; - place-items: center; - margin-bottom: 18px; - border-radius: 8px; - background: var(--vu-soft); - color: var(--vu-primary-dark); - font-size: 25px; -} - -.vu-modal-mark.is-error { - background: var(--vu-danger-soft); - color: var(--vu-coral); -} - -.vu-modal-mark.is-warning { - background: var(--vu-warning-soft); - color: var(--vu-amber); -} - -.vu-modal-panel h2 { - margin: 0; - padding-right: 42px; - color: var(--vu-ink); - font-size: 22px; - line-height: 1.25; - letter-spacing: 0; -} - -.vu-modal-panel p { - margin: 10px 0 0; - color: var(--vu-muted); - font-size: 14px; - line-height: 1.7; - overflow-wrap: anywhere; -} - -.vu-modal-actions { - display: flex; - justify-content: flex-end; - gap: 10px; - margin-top: 24px; -} - -.vu-modal-actions .vu-btn { - flex: 0 0 auto; - min-width: 96px; -} - -body.vu-modal-lock { - overflow: hidden; -} - -@media (prefers-reduced-motion: reduce) { - .vu-modal, - .vu-modal-panel, - .vu-btn{ - transition: none; - } -} - -@media (max-width: 1180px) { - .vu-app { - grid-template-columns: 1fr; - } - - .vu-sidebar { - position: static; - height: auto; - display: grid; - grid-template-columns: 1fr; - gap: 16px; - padding: 18px; - } - - .vu-nav { - display: flex; - overflow-x: auto; - padding-bottom: 4px; - } - - .vu-nav a, - .vu-mobile-logout, - .vu-logout { - flex: 0 0 auto; - } - - .vu-nav .vu-mobile-logout { - display: flex; - } - - .vu-sidebar > .vu-logout { - display: none; - } - - .vu-hero, - .vu-grid-main, - .vu-shop-hero, - .vu-shop-layout, - .vu-shop-grid, - .vu-ticket-hero, - .vu-ticket-layout, - .vu-ticket-view-layout, - .vu-support-hero, - .vu-support-editor-layout, - .vu-support-detail-layout, - .vu-profile-hero, - .vu-profile-layout, - .vu-edit-hero, - .vu-edit-layout, - .vu-pay-hero, - .vu-pay-layout, - .vu-invite-hero, - .vu-invite-layout, - .vu-announcement-hero, - .vu-announcement-layout, - .vu-download-hero, - .vu-download-note-grid, - .vu-download-grid, - .vu-invoice-parties, - .vu-invoice-bottom { - grid-template-columns: 1fr; - } - - .vu-shop-side, - .vu-ticket-guide, - .vu-support-aside, - .vu-profile-side, - .vu-edit-side, - .vu-pay-side, - .vu-invite-side, - .vu-announcement-side { - position: static; - } -} - -@media (max-width: 820px) { - .vu-main { - padding: 18px; - } - - .vu-topbar, - .vu-isp-panel { - align-items: stretch; - flex-direction: column; - } - - .vu-top-actions, - .vu-hero-actions, - .vu-isp-actions { - width: 100%; - } - - .vu-btn { - flex: 1 1 auto; - } - - .vu-notify-menu { - position: fixed; - top: 74px; - left: 18px; - right: 18px; - width: auto; - } - - .vu-help-bubble::after { - position: absolute; - left: -8px; - right: auto; - bottom: auto; - top: calc(100% + 6px); - width: min(250px, 68vw); - max-width: none; - transform: translateY(4px); - } - - .vu-help-bubble::before { - display: block; - top: calc(100% + 2px); - bottom: auto; - left: 6px; - right: auto; - transform: translateY(4px) rotate(45deg); - } - - .vu-help-bubble:hover::before, - .vu-help-bubble:focus-visible::before { - transform: translateY(0) rotate(45deg); - } - - .vu-help-bubble:hover::after, - .vu-help-bubble:focus-visible::after { - transform: translateY(0); - } - - .vu-hero-main, - .vu-card, - .vu-card-large { - padding: 18px; - } - - .vu-stat-grid { - grid-template-columns: 1fr; - } - - .vu-shop-features div { - grid-template-columns: 1fr; - gap: 4px; - align-items: start; - } - - .vu-shop-features strong { - text-align: left; - white-space: normal; - overflow: visible; - text-overflow: clip; - } - - .vu-ring { - width: 160px; - } - .vu-shop-hero-main, - .vu-ticket-hero-main, - .vu-ticket-card, - .vu-ticket-form-card, - .vu-ticket-reply-card, - .vu-support-hero-main, - .vu-support-card, - .vu-support-editor, - .vu-support-reply, - .vu-profile-hero-main, - .vu-profile-card, - .vu-edit-hero-main, - .vu-setting-card, - .vu-pay-hero-main, - .vu-pay-card, - .vu-invite-hero-main, - .vu-invite-card, - .vu-announcement-hero-main, - .vu-announcement-card, - .vu-invoice-card { - padding: 18px; - } - - .vu-invoice-head { - flex-direction: column; - } - - .vu-invoice-state { - text-align: left; - } - - .vu-invoice-bottom { - padding-top: 18px; - } - - .vu-invite-wallet-grid { - grid-template-columns: 1fr; - } - - .vu-invite-action .vu-btn { - width: 100%; - } - - .vu-section-title, - .vu-shop-card-head, - .vu-shop-card-foot, - .vu-table-footer, - .vu-ticket-message-head, - .vu-support-ticket, - .vu-support-ticket-side, - .vu-support-message-head { - align-items: stretch; - flex-direction: column; - } - - .vu-segmented { - width: 100%; - } - - .vu-segmented a { - flex: 1 1 auto; - } - - .vu-shop-price { - text-align: left; - } - - .vu-shop-card-foot .vu-btn, - .vu-shop-guide .vu-btn, - .vu-download-actions .vu-btn, - .vu-form-actions .vu-btn, - .vu-ticket-guide .vu-btn, - .vu-support-actions .vu-btn, - .vu-support-aside .vu-btn, - .vu-profile-card .vu-btn { - width: 100%; - } - - .vu-profile-account, - .vu-profile-side, - .vu-edit-summary, - .vu-edit-side, - .vu-pay-balance, - .vu-pay-side, - .vu-announcement-summary, - .vu-announcement-side { - min-width: 0; - } - - .vu-form-grid { - grid-template-columns: 1fr; - } - - .vu-pay-methods { - grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); - } - - .vu-pay-methods .vu-btn { - width: 100%; - min-width: 0; - } - - .vu-profile-card .vu-data-table, - .vu-profile-card#online-ip .vu-data-table { - min-width: 620px; - } - - .vu-ticket-message { - grid-template-columns: 1fr; - } - - .vu-support-message-item { - grid-template-columns: 1fr; - } - - .vu-support-ticket { - grid-template-columns: 1fr; - } - - .vu-ticket-avatar, - .vu-support-message-icon { - display: none; - } -} - -@media (max-width: 520px) { - .vu-pay-methods { - grid-template-columns: 1fr; - } - - .vu-modal { - align-items: end; - padding: 12px; - } - - .vu-modal-panel { - width: 100%; - padding: 22px; - } - - .vu-modal-actions { - flex-direction: column-reverse; - } - - .vu-modal-actions .vu-btn { - width: 100%; - } - - .vu-ga-setup { - grid-template-columns: 1fr; - } - - .vu-ga-secret { - width: 100%; - } - - .vu-invoice-table { - min-width: 640px; - } - - .vu-disabled-page { - padding: 16px; - } - - .vu-disabled-card { - padding: 24px; - } - - .vu-disabled-info { - grid-template-columns: 1fr; - } - - .vu-disabled-actions .vu-btn { - flex: 1 1 auto; - } - - .vu-nav a span { - display: none; - } - - .vu-nav a { - justify-content: center; - width: 46px; - padding: 0; - } - - .vu-brand span { - font-size: 16px; - } - - .vu-secret-list div { - grid-template-columns: 1fr 36px; - } - - .vu-secret-list span { - grid-column: 1 / -1; - } -} - -.vu-survey-card { - border-color: rgba(34, 197, 94, .18); -} - -.vu-survey-card .vu-card-head { - margin-bottom: 10px; -} - -.vu-survey-card .vu-survey-desc { - display: -webkit-box; - font-size: 13px; - line-height: 1.55; - margin-bottom: 10px; - overflow: hidden; - -webkit-box-orient: vertical; - -webkit-line-clamp: 2; -} - -.vu-survey-card .vu-survey-questions { - gap: 10px; - max-height: min(42vh, 360px); - overflow-y: auto; - padding-right: 4px; - scrollbar-width: thin; -} - -.vu-survey-card .vu-survey-question { - padding: 10px; -} - -.vu-survey-card .vu-survey-question h3 { - font-size: 14px; - margin-bottom: 4px; -} - -.vu-survey-card .vu-survey-question-desc { - display: -webkit-box; - font-size: 12px; - line-height: 1.45; - margin-bottom: 8px; - overflow: hidden; - -webkit-box-orient: vertical; - -webkit-line-clamp: 1; -} - -.vu-survey-card .vu-survey-options { - gap: 6px; -} - -.vu-survey-card .vu-survey-option { - grid-template-columns: 30px minmax(0, 1fr); - gap: 8px; - padding: 8px 10px; -} - -.vu-survey-card .vu-survey-option span { - border-radius: 7px; - font-size: 12px; - height: 28px; - width: 28px; -} - -.vu-survey-card .vu-survey-option strong { - font-size: 13px; - line-height: 1.4; -} - -.vu-survey-card .vu-survey-submit { - margin-top: 10px; -} - -.vu-notify-item.is-info i, -.vu-modal-mark.is-info { - background: rgba(37, 99, 235, .12); - color: #2563eb; -} - -.vu-survey-desc { - color: var(--vu-muted); - line-height: 1.7; - margin: 0 0 16px; - overflow-wrap: anywhere; -} - -.vu-survey-questions { - display: grid; - gap: 16px; -} - -.vu-survey-question { - border: 1px solid rgba(148, 163, 184, .2); - border-radius: 8px; - padding: 14px; - background: rgba(248, 250, 252, .68); -} - -[data-bs-theme="dark"] .vu-survey-question { - background: rgba(15, 23, 42, .34); -} - -.vu-survey-question h3 { - color: var(--vu-text); - font-size: 15px; - line-height: 1.45; - margin: 0 0 6px; - overflow-wrap: anywhere; -} - -.vu-survey-question-desc { - color: var(--vu-muted); - font-size: 13px; - line-height: 1.6; - margin: 0 0 12px; - overflow-wrap: anywhere; -} - -.vu-survey-options { - display: grid; - gap: 10px; -} - -.vu-survey-option { - appearance: none; - border: 1px solid var(--vu-border); - border-radius: 8px; - background: var(--vu-surface); - color: var(--vu-text); - cursor: pointer; - display: grid; - grid-template-columns: 40px minmax(0, 1fr); - gap: 12px; - align-items: center; - padding: 12px; - text-align: left; - transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; -} - -.vu-survey-option:hover:not(:disabled) { - border-color: rgba(37, 99, 235, .55); - box-shadow: 0 10px 26px rgba(15, 23, 42, .08); - transform: translateY(-1px); -} - -.vu-survey-option.is-selected { - border-color: rgba(37, 99, 235, .76); - box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); -} - -.vu-survey-option.is-selected span { - background: #2563eb; - color: #fff; -} - -.vu-survey-option:disabled { - cursor: wait; - opacity: .68; -} - -.vu-survey-option span { - align-items: center; - background: rgba(37, 99, 235, .1); - border-radius: 8px; - color: #2563eb; - display: inline-flex; - font-weight: 800; - height: 36px; - justify-content: center; - width: 36px; -} - -.vu-survey-option strong { - font-size: 14px; - line-height: 1.55; - min-width: 0; - overflow-wrap: anywhere; -} - -.vu-inline-message.is-error { - color: #dc2626; -} - -.vu-survey-submit { - margin-top: 14px; - width: 100%; -} - -.vu-survey-modal-panel { - width: min(720px, calc(100vw - 28px)); - max-height: calc(100vh - 48px); - overflow: hidden; - display: flex; - flex-direction: column; -} - -.vu-survey-modal-panel .vu-survey-desc { - flex: 0 0 auto; -} - -.vu-survey-questions-modal { - flex: 1 1 auto; - max-height: min(46vh, 520px); - overflow-y: auto; - padding-right: 4px; -} - -.vu-survey-modal-panel .vu-modal-actions { - flex: 0 0 auto; -} - -@media (max-width: 640px) { - .vu-survey-modal-panel { - width: calc(100vw - 20px); - max-height: calc(100vh - 24px); - } - - .vu-survey-option { - grid-template-columns: 34px minmax(0, 1fr); - padding: 10px; - } - - .vu-survey-option span { - width: 32px; - height: 32px; - } - - .vu-survey-question { - padding: 12px; - } -} diff --git a/web/public/theme/venix/js/user-home.js b/web/public/theme/venix/js/user-home.js index d903afcf..8052d40b 100644 --- a/web/public/theme/venix/js/user-home.js +++ b/web/public/theme/venix/js/user-home.js @@ -1,10 +1,6 @@ (function () { "use strict"; - var modalState = { - resolver: null, - previousFocus: null - }; var toastSequence = 0; var settings = window.VU_HOME || {}; @@ -170,22 +166,6 @@ return promise; } - function closeModal(result) { - var modal = qs("#vuModal"); - if (!modal) return; - modal.classList.remove("is-open"); - modal.setAttribute("aria-hidden", "true"); - modal.setAttribute("hidden", "hidden"); - document.body.classList.remove("vu-modal-lock"); - if (modalState.previousFocus && modalState.previousFocus.focus) { - modalState.previousFocus.focus(); - } - if (modalState.resolver) { - modalState.resolver(result); - modalState.resolver = null; - } - } - function openModal(options) { var config = options || {}; return showToast(config); @@ -637,38 +617,6 @@ }); } } - - - function bindModalActions() { - var modal = qs("#vuModal"); - var confirm = qs("#vuModalConfirm"); - var cancel = qs("#vuModalCancel"); - - qsa("[data-modal-close]").forEach(function (item) { - item.addEventListener("click", function () { - closeModal(false); - }); - }); - - if (confirm) { - confirm.addEventListener("click", function () { - closeModal(true); - }); - } - - if (cancel) { - cancel.addEventListener("click", function () { - closeModal(false); - }); - } - - document.addEventListener("keydown", function (event) { - if (event.key === "Escape" && modal && modal.classList.contains("is-open")) { - closeModal(false); - } - }); - } - function bindThemeToggle() { var toggle = qs("#light-dark-mode"); applyTheme(currentTheme()); @@ -678,41 +626,6 @@ }); } - function bindNotificationMenu() { - var wrapper = qs(".vu-notification"); - var toggle = qs("[data-notify-toggle]"); - var menu = qs("[data-notify-menu]"); - if (!wrapper || !toggle || !menu) return; - - function close() { - wrapper.classList.remove("is-open"); - toggle.setAttribute("aria-expanded", "false"); - menu.setAttribute("hidden", "hidden"); - } - - function open() { - wrapper.classList.add("is-open"); - toggle.setAttribute("aria-expanded", "true"); - menu.removeAttribute("hidden"); - } - - toggle.addEventListener("click", function (event) { - event.preventDefault(); - event.stopPropagation(); - if (wrapper.classList.contains("is-open")) close(); - else open(); - }); - - menu.addEventListener("click", function (event) { - event.stopPropagation(); - }); - - document.addEventListener("click", close); - document.addEventListener("keydown", function (event) { - if (event.key === "Escape") close(); - }); - } - window.VuModal = { alert: alertModal, confirm: confirmModal @@ -720,11 +633,9 @@ document.addEventListener("DOMContentLoaded", function () { bindThemeToggle(); - bindModalActions(); bindCopyActions(); bindEditActions(); renderAuthenticatorQrCode(); bindInviteActions(); - bindNotificationMenu(); }); })(); diff --git a/web/resources/views/venix/layout_assets.tpl b/web/resources/views/venix/layout_assets.tpl index 28c9acf4..21ee2fb7 100644 --- a/web/resources/views/venix/layout_assets.tpl +++ b/web/resources/views/venix/layout_assets.tpl @@ -1,2 +1,2 @@ {* Shared Venix CSS/JS cache key. Increment whenever a shared browser asset changes. *} -{assign var=venix_asset_version value='2026100305' scope='global'} +{assign var=venix_asset_version value='2026100306' scope='global'} diff --git a/web/resources/views/venix/user/account_drawer.tpl b/web/resources/views/venix/user/account_drawer.tpl index 4e2a9a4d..4dcfd16b 100644 --- a/web/resources/views/venix/user/account_drawer.tpl +++ b/web/resources/views/venix/user/account_drawer.tpl @@ -1,7 +1,6 @@