@import "./mail-content.css";
@import "./mail-sender.css";
.search-control { position: relative; width: min(260px,24vw); height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid transparent; border-radius: 12px; color: var(--muted); background: #f1f3f6; }
.search-control:focus-within { border-color: rgba(8,126,255,.28); background: #fff; box-shadow: 0 0 0 3px rgba(8,126,255,.1); }
.search-control > svg { flex: 0 0 17px; width: 17px; }
.search-control input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-control > span { flex: 0 0 auto; padding: 3px 6px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 700; }
.search-control > span.invalid { color: var(--danger); background: #fff0ef; }
.search-control small { position: absolute; z-index: 5; left: 0; top: 48px; display: none; width: max-content; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.98); color: var(--muted); box-shadow: var(--shadow-sm); font-size: 11px; }
.search-control:focus-within small { display: block; }
.select-control { position: relative; flex: 0 1 190px; min-width: 138px; height: 42px; }
.apple-select { position: relative; min-width: 0; }
.apple-select-trigger { width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 11px 0 12px; border: 1px solid var(--line); border-radius: 12px; outline: 0; color: var(--ink); background: rgba(255,255,255,.92); font-size: 13px; font-weight: 650; text-align: left; }
.apple-select-trigger:hover { border-color: rgba(8,126,255,.2); background: #fff; }
.apple-select-trigger[aria-expanded="true"] { border-color: rgba(8,126,255,.28); background: #fff; box-shadow: 0 0 0 3px rgba(8,126,255,.1); }
.apple-select-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apple-select-trigger svg { flex: 0 0 17px; width: 17px; color: var(--muted); transition: transform .16s ease; }
.apple-select-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.apple-select-menu { position: absolute; z-index: 40; top: calc(100% + 7px); left: 0; width: max(100%,190px); max-height: min(360px,55vh); overflow-y: auto; padding: 6px; border: 1px solid rgba(60,60,67,.14); border-radius: 13px; background: rgba(255,255,255,.96); box-shadow: 0 16px 40px rgba(29,42,67,.18),0 2px 8px rgba(29,42,67,.08); backdrop-filter: blur(24px); scrollbar-width: thin; transform-origin: top center; animation: popover-in .17s cubic-bezier(.2,.8,.2,1) both; }
@keyframes popover-in { from { opacity: 0; transform: translateY(-5px) scale(.98); } to { opacity: 1; transform: none; } }
.apple-select-menu button { width: 100%; min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 9px; border: 0; border-radius: 8px; color: var(--text); background: transparent; font-size: 12px; text-align: left; white-space: nowrap; }
.apple-select-menu button:hover { color: var(--ink); background: #edf5ff; }
.apple-select-menu button span { color: var(--blue); opacity: 0; font-weight: 800; }
.apple-select-menu button.selected { color: var(--ink); background: var(--blue-soft); font-weight: 700; }
.apple-select-menu button.selected span { opacity: 1; }
.quantity-control { height: 42px; display: flex; align-items: center; gap: 5px; padding: 0 6px 0 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.92); }
.quantity-control > span { color: var(--muted); font-size: 10px; }
.quantity-control button { width: 30px; height: 30px; border: 0; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-size: 17px; }
.quantity-control strong { min-width: 20px; text-align: center; color: var(--ink); font-size: 13px; }
.primary-button { position: relative; height: 42px; border: 0; border-radius: 12px; padding: 0 22px; color: #fff; background: linear-gradient(135deg,var(--blue),#0876f3); box-shadow: 0 9px 20px rgba(8,126,255,.22); font-size: 13px; font-weight: 750; white-space: nowrap; transition: background .16s ease,transform .16s ease,box-shadow .16s ease; }
.primary-button:hover { background: var(--blue-strong); }
.primary-button.is-loading { color: transparent; pointer-events: none; }
.primary-button.is-loading::after,.compose-modal > header button.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: activity-spin .72s linear infinite; }
.compose-modal > header button.is-loading { position: relative; color: transparent; }
.compose-modal > header button.is-loading::after { border-color: rgba(8,126,255,.2); border-top-color: var(--blue); }
.icon-button.loading svg { animation: activity-spin .72s linear infinite; }
@keyframes activity-spin { to { transform: rotate(360deg); } }
.primary-button:active, .icon-button:active, .subtle-button:active { transform: scale(.97); }
.header-icon-button, .icon-button, .mobile-back-button { border: 0; display: grid; place-items: center; color: var(--blue); background: transparent; }
.header-auth-actions[data-auth-state="loading"] { visibility: hidden; }
.header-auth-actions:not([data-auth-state="guest"]) [data-auth-visible="guest"],.header-auth-actions:not([data-auth-state="user"]) [data-auth-visible="user"] { display: none; }
.login-entry-button { min-width: 72px; height: 40px; padding: 0 20px; border: 0; border-radius: 12px; color: #fff; background: var(--blue); box-shadow: 0 8px 20px rgba(8,126,255,.2); font-size: 13px; font-weight: 750; transition: transform .16s ease,box-shadow .16s ease,background .16s ease; }
.login-entry-button:hover { background: #0876ee; box-shadow: 0 10px 24px rgba(8,126,255,.27); }
.login-entry-button:active { transform: scale(.96); }
.header-icon-button { width: 40px; height: 40px; justify-self: center; border: 1px solid rgba(60,60,67,.1); border-radius: 13px; color: #63676f; background: linear-gradient(180deg,rgba(255,255,255,.98),rgba(242,243,246,.96)); box-shadow: 0 3px 10px rgba(31,42,61,.07); transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.header-icon-button:hover { border-color: rgba(60,60,67,.16); color: #30333a; background: #fff; box-shadow: 0 6px 16px rgba(31,42,61,.11); }
.header-icon-button:active { transform: scale(.94); }
.header-icon-button svg { width: 21px; }
.icon-button, .mobile-back-button { width: 38px; height: 38px; border-radius: 10px; }
.icon-button:disabled { opacity: .35; cursor: default; }
.reader-back { display: none; }
.icon-button:hover, .mobile-back-button:hover { background: var(--blue-soft); }
.icon-button svg, .mobile-back-button svg { width: 20px; }
.mobile-back-button { display: none; }
.subtle-button { height: 32px; display: flex; align-items: center; gap: 5px; padding: 0 10px; border: 0; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 700; }
.subtle-button:disabled { cursor: default; opacity: .38; }
.subtle-button svg { width: 15px; }
.folder-tabs { display: flex; align-items: center; gap: 3px; padding: 3px; border-radius: 10px; background: #e9ecf1; }
.folder-tabs button { height: 27px; padding: 0 11px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap; transition: color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease; }
.folder-tabs button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 7px rgba(31,42,61,.1); }

.empty-state { height: 100%; min-height: 220px; display: grid; place-content: center; justify-items: center; padding: 28px; text-align: center; color: var(--muted); }
.empty-state .empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 16px; color: var(--blue); background: var(--blue-soft); }
.empty-state .empty-icon svg { width: 25px; }
.empty-state h3 { margin: 0 0 6px; color: #5b616b; font-size: 17px; }
.empty-state p { max-width: 240px; margin: 0; font-size: 12px; line-height: 1.55; }
.reader-empty .brand-art { width: min(560px,86%); margin-bottom: -22px; border-radius: 26px; box-shadow: 0 20px 50px rgba(52,82,174,.14); }
.reader-empty .brand-icon { width: 66px; height: 66px; z-index: 1; margin-bottom: 15px; border: 5px solid #fff; border-radius: 20px; box-shadow: 0 10px 28px rgba(22,119,255,.18); }

.mailbox-card { width: 100%; min-height: 62px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 9px; margin-bottom: 7px; padding: 8px 9px; border: 1px solid rgba(60,60,67,.07); border-radius: 14px; background: rgba(255,255,255,.78); box-shadow: 0 3px 12px rgba(28,40,61,.025); }
.mailbox-card.selected { border-color: rgba(8,126,255,.2); background: #fff; box-shadow: 0 8px 22px rgba(28,61,118,.08); }
.mailbox-avatar { display: grid; place-items: center; border-radius: 50%; color: #fff; font-style: normal; font-weight: 800; }
.mailbox-avatar { width: 38px; height: 38px; font-size: 15px; }
.mailbox-address { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3f454d; font-size: 12px; font-weight: 650; }
.api-button { min-width: 46px; height: 30px; border: 0; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 750; }

.message-card { width: 100%; display: grid; grid-template-columns: 23px minmax(0,1fr); gap: 8px; margin-bottom: 7px; padding: 12px 11px 12px 9px; border: 1px solid rgba(60,60,67,.07); border-radius: 14px; text-align: left; background: rgba(255,255,255,.72); box-shadow: 0 3px 10px rgba(28,40,61,.025); }
.message-card:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(28,40,61,.07); }
.message-card.selected { border-color: rgba(8,126,255,.14); background: #e5f1ff; }
.message-main, .mailbox-address { min-width: 0; padding: 0; border: 0; text-align: left; color: inherit; background: transparent; }
.message-check { width: 19px; height: 19px; appearance: none; margin: 1px 0 0; border: 1.5px solid rgba(60,60,67,.28); border-radius: 50%; background: rgba(255,255,255,.85); }
.message-check:checked { border: 5px solid var(--blue); background: #fff; }
.message-main { min-width: 0; }
.message-meta { display: flex; align-items: baseline; gap: 8px; }
.message-meta b { flex: 1; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.message-meta time { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.message-subject, .message-preview, .message-recipient { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-subject-line { min-width: 0; display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.message-subject-line .message-subject { min-width: 0; flex: 1; }
.message-subject { color: var(--ink); font-size: 12px; font-weight: 650; }
.spam-badge { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 19px; padding: 1px 7px; border-radius: 999px; color: #d92d20; background: #fff0ef; font-size: 10px; font-weight: 750; line-height: 1; }
.message-preview { margin-top: 3px; color: var(--muted); font-size: 11px; }
.message-recipient { margin-top: 6px; color: #9297a0; font-size: 10px; }

.mail-surface { width: min(960px,100%); min-height: 100%; margin: 0 auto; overflow: hidden; border: 1px solid rgba(60,60,67,.08); border-radius: 21px; background: #fff; box-shadow: var(--shadow-md); }
.mail-head { padding: clamp(23px,3vw,38px) clamp(22px,3.3vw,42px) 23px; border-bottom: 1px solid var(--line); }
.mail-title-row { max-width: 850px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
.mail-head h1 { min-width: 0; flex: 1; margin: 0; color: var(--ink); font-size: clamp(25px,2.5vw,36px); line-height: 1.18; letter-spacing: -.9px; }
.mail-title-row .spam-badge { margin-top: 5px; }
.attachment-panel { padding: 16px clamp(22px,3.3vw,42px); border-bottom: 1px solid var(--line); background: #fbfbfd; }
.attachment-panel > header { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: 11px; }
.attachment-panel > header b { color: #3d4249; font-size: 13px; }
.attachment-card { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.file-icon { width: 36px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: #ff3b30; font-size: 10px; font-weight: 800; }
.attachment-card span { min-width: 0; display: grid; gap: 2px; }
.attachment-card span b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-card span small { color: var(--muted); font-size: 10px; }
.attachment-card button { border: 0; color: var(--blue); background: transparent; font-size: 12px; }
.mail-body { padding: 30px clamp(22px,3.3vw,42px) 68px; color: #2e333a; font-size: 15px; line-height: 1.75; }
.mail-body p { margin: 0 0 18px; }
.mail-body img { max-width: 100%; height: auto; }
.mail-image { display: block; width: 100%; max-width: 840px; margin: 23px auto; border-radius: 18px; box-shadow: 0 12px 34px rgba(28,40,61,.12); }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 22px 0; }
.metric-grid div { padding: 15px; border-radius: 14px; background: #f4f6f8; }
.metric-grid b, .metric-grid span { display: block; }
.metric-grid span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.thread { margin-top: 30px; }
.thread-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); font-size: 11px; }
.thread-title::before, .thread-title::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.thread-message { margin-top: 9px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #f8f9fb; }
.thread-message.outgoing { background: #eef6ff; }
.thread-message header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.thread-message header span { display: grid; }
.thread-message header small, .thread-message time { color: var(--muted); font-size: 10px; }
.thread-message p { margin: 0; font-size: 13px; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(25,28,35,.3); backdrop-filter: blur(12px); animation: backdrop-in .18s ease both; }
.modal-backdrop > section { animation: modal-in .22s cubic-bezier(.2,.8,.2,1) both; }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.compose-modal, .settings-modal, .confirm-modal { overflow: hidden; border: 1px solid rgba(255,255,255,.72); background: #f7f8fb; box-shadow: 0 24px 70px rgba(20,28,46,.28); }
.compose-modal { width: min(690px,100%); min-height: 620px; border-radius: 22px; }
.compose-modal > header { height: 58px; display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); }
.compose-modal > header h2 { margin: 0; text-align: center; font-size: 16px; }
.compose-modal > header button { height: 100%; border: 0; color: var(--blue); background: transparent; font-weight: 700; }
.compose-modal > label,.compose-row { min-height: 50px; display: grid; grid-template-columns: 85px minmax(0,1fr); align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); background: #fff; }
.compose-modal label > span,.compose-row > span { color: var(--muted); font-size: 13px; }
.compose-modal > label.is-locked { background: rgba(248, 248, 250, .82); }
.compose-modal > label.is-locked input { color: #2f3238; cursor: default; }
.compose-modal input { min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.compose-sender-picker { height: 38px; }
.compose-sender-picker .apple-select-trigger { border-color: transparent; padding-left: 0; background: transparent; font-weight: 500; }
.compose-sender-picker .apple-select-trigger:hover,.compose-sender-picker .apple-select-trigger[aria-expanded="true"] { border-color: transparent; box-shadow: none; background: transparent; }
.compose-sender-menu { width: min(420px,calc(100vw - 130px)); }
.compose-editor { min-height: 380px; padding: 20px; outline: 0; background: #fff; font-size: 14px; line-height: 1.7; }
.compose-editor:empty::before { content: attr(data-placeholder); color: #999ea7; }
.compose-editor img { max-width: 100%; height: auto; border-radius: 12px; }
.reply-quote { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.reply-quote blockquote { margin: 10px 0 0; padding-left: 12px; border-left: 3px solid #d5d9e0; }
.compose-files { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px; background: #fff; }
.compose-files:empty { display: none; }
.compose-files span { padding: 6px 9px; border-radius: 8px; background: #f0f2f5; font-size: 11px; }
.compose-modal footer { padding: 10px 16px; border-top: 1px solid var(--line); background: #fff; }
.compose-modal footer button { display: flex; align-items: center; gap: 6px; border: 0; color: var(--blue); background: transparent; }
.compose-modal footer svg { width: 18px; }

.settings-modal { width: min(620px,100%); max-height: calc(100dvh - 36px); border-radius: 24px; }
.settings-modal > header { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.76); }
.settings-modal header h2 { margin: 0; font-size: 24px; letter-spacing: -.45px; }
.settings-modal header button { border: 0; color: var(--blue); background: transparent; font-weight: 700; }
.auth-modal { width: min(460px,100%); max-height: calc(100dvh - 36px); overflow: hidden; border: 1px solid rgba(255,255,255,.78); border-radius: 24px; background: #f7f8fb; box-shadow: 0 24px 70px rgba(20,28,46,.28); }
.auth-modal-header { height: 62px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); }
.auth-modal-header h2 { grid-column: 2; margin: 0; text-align: center; color: var(--ink); font-size: 17px; letter-spacing: -.25px; }
.auth-nav-button,.auth-close-button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--blue); background: transparent; }
.auth-close-button { grid-column: 3; color: #6e737c; background: #eceef2; }
.auth-nav-button:hover { background: var(--blue-soft); }
.auth-close-button:hover { color: #33363c; background: #e4e6ea; }
.auth-nav-button svg,.auth-close-button svg { width: 20px; }
.auth-content { max-height: calc(100dvh - 100px); overflow-y: auto; }
.auth-panel { padding: 30px 28px 26px; text-align: center; }
.auth-panel[hidden] { display: none; }
.login-fields { width: min(370px,100%); margin: 0 auto 13px; overflow: hidden; border: 1px solid rgba(60,60,67,.14); border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(31,42,61,.025); transition: border-color .16s ease,box-shadow .16s ease; }
.auth-panel input { width: 100%; height: 54px; padding: 0 16px; border: 0; border-radius: 0; outline: 0; color: var(--ink); background: transparent; font-size: 15px; }
.auth-panel input::placeholder { color: #8e8e93; }
.auth-panel input:focus { background: transparent; box-shadow: none; }
.login-fields:has(input:focus-visible) { border-color: rgba(60,60,67,.28); box-shadow: 0 2px 8px rgba(31,42,61,.025); }
.auth-panel input.invalid { background: #fff8f7; box-shadow: inset 0 0 0 1.5px rgba(255,59,48,.5); }
.login-fields.login-separated { display: grid; gap: 12px; overflow: visible; margin-bottom: 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.login-separated > input,.login-separated > .password-field { border: 1px solid rgba(60,60,67,.14); border-radius: 12px; background: #fff; transition: border-color .16s ease; }
.login-separated > input:focus-visible,.login-separated > .password-field:has(input:focus-visible) { border-color: rgba(60,60,67,.32); }
.login-separated .password-field input { border-radius: 12px; }
.login-error { width: min(370px,100%); margin: -2px auto 11px; color: var(--danger); font-size: 12px; line-height: 1.4; text-align: left; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-field button { position: absolute; right: 5px; top: 5px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; color: var(--muted); background: transparent; }
.password-field button:hover { color: var(--blue); background: var(--blue-soft); }
.password-field svg { width: 19px; }
.auth-panel .primary-button { width: min(370px,100%); height: 48px; align-self: center; border-radius: 14px; box-shadow: 0 5px 14px rgba(8,126,255,.16); font-size: 15px; font-weight: 650; }
.auth-links { width: min(370px,100%); display: flex; justify-content: space-between; margin: 10px auto 0; }
.auth-links button { min-height: 36px; border: 0; color: var(--blue); background: transparent; font-size: 14px; font-weight: 500; }
.auth-links button:hover { color: #0067d9; }
.auth-form-panel { padding-top: 28px; padding-bottom: 30px; }
.auth-fields > input + input,.auth-code-row { border-top: 1px solid var(--line); }
.auth-code-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.auth-code-row input { min-width: 0; }
.auth-code-row button { height: 36px; margin-right: 7px; padding: 0 11px; border: 0; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 700; white-space: nowrap; }
.auth-code-row button:disabled { color: var(--muted); background: #f0f1f3; }
.settings-form { padding: 20px 24px 26px; }
.settings-form > h3 { margin: 13px 6px 8px; color: var(--muted); font-size: 11px; }
.settings-group { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.settings-group > label, .settings-group > div { min-height: 58px; display: grid; grid-template-columns: 160px minmax(0,1fr); align-items: center; gap: 12px; padding: 0 14px; }
.settings-group > * + * { border-top: 1px solid var(--line); }
.settings-group span { color: var(--ink); font-size: 13px; font-weight: 650; }
.settings-group input { min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 11px; text-align: left; outline: 0; background: #f7f8fa; }
.settings-group strong { color: var(--muted); text-align: left; font-size: 12px; }
.settings-value-action { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.settings-value-action button { height: 32px; padding: 0 13px; border: 0; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 750; }
.settings-value-action button:hover { background: #dcecff; }
.settings-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.danger-button { border: 0; border-radius: 12px; color: var(--danger); background: #ffeceb; font-weight: 700; }
.recharge-modal { width: min(420px,100%); overflow: hidden; border: 1px solid rgba(255,255,255,.78); border-radius: 24px; background: #f7f8fb; box-shadow: 0 24px 70px rgba(20,28,46,.28); }
.recharge-modal > header { height: 62px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); }
.recharge-modal h2 { grid-column: 2; margin: 0; text-align: center; font-size: 17px; }
.recharge-modal header button { grid-column: 3; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #6e737c; background: #eceef2; }
.recharge-modal header svg { width: 20px; }
.recharge-modal form { max-height: calc(100dvh - 100px); overflow-y: auto; padding: 26px; }
.recharge-create > label { display: block; margin: 0 0 9px; color: var(--muted); font-size: 12px; font-weight: 650; }
.recharge-amount { height: 54px; display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.recharge-amount input { min-width: 0; height: 100%; flex: 1; padding: 0 15px; border: 0; outline: 0; background: transparent; font-size: 18px; font-weight: 650; }
.recharge-amount input.invalid { background: #fff8f7; box-shadow: inset 0 0 0 1.5px rgba(255,59,48,.5); }
.recharge-amount strong { padding-right: 15px; color: var(--ink); font-size: 13px; }
.recharge-create > p:not(.login-error) { margin: 9px 2px 18px; color: var(--muted); font-size: 12px; }
.recharge-modal .login-error { width: 100%; margin: -8px 2px 14px; }
.recharge-create > .primary-button,.recharge-order > .primary-button { width: 100%; }
.recharge-order { display: grid; justify-items: stretch; gap: 14px; }
.recharge-order[hidden] { display: none; }
.deposit-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.deposit-status strong { color: var(--ink); font-size: 13px; }
.deposit-status time { margin-left: auto; color: var(--blue); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 750; }
.deposit-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(8,126,255,.11); animation: deposit-pulse 1.5s ease-in-out infinite; }
.deposit-pulse.paid { background: #22b66d; box-shadow: 0 0 0 5px rgba(34,182,109,.12); animation: none; }
.deposit-pulse.expired { background: var(--danger); box-shadow: 0 0 0 5px rgba(255,59,48,.1); animation: none; }
@keyframes deposit-pulse { 50% { box-shadow: 0 0 0 8px rgba(8,126,255,0); } }
.deposit-qr { width: 190px; height: 190px; display: grid; place-items: center; justify-self: center; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 9px 24px rgba(31,42,61,.07); transition: filter .2s ease,opacity .2s ease; }
.deposit-qr svg { width: 100%; height: 100%; }
.recharge-order.is-expired .deposit-qr { filter: grayscale(1); opacity: .34; }
.deposit-payment,.deposit-address { padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.deposit-payment > span,.deposit-address span { color: var(--muted); font-size: 11px; }
.deposit-payment > div,.deposit-address > div:last-child { min-width: 0; display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.deposit-payment strong { flex: 1; color: var(--ink); font-size: 22px; letter-spacing: -.35px; }
.deposit-payment button,.deposit-address button { height: 32px; padding: 0 11px; border: 0; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 750; }
.deposit-address > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.deposit-address small { padding: 3px 7px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 700; }
.deposit-address code { min-width: 0; flex: 1; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-family: inherit; font-size: 12px; }
.deposit-note { margin: -4px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.recharge-order.is-expired .deposit-note { color: var(--danger); }
.deposit-cancel-button { height: 42px; border: 0; border-radius: 12px; color: var(--danger); background: rgba(255,59,48,.08); font-weight: 700; }
.deposit-cancel-button:hover { background: rgba(255,59,48,.13); }
.confirm-modal { width: min(380px,100%); padding: 26px; border-radius: 22px; text-align: center; }
.warning-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 50%; color: var(--danger); background: #ffeceb; font-size: 22px; font-weight: 800; }
.confirm-modal h2 { margin: 0 0 8px; font-size: 19px; }
.confirm-modal p { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.confirm-modal > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.confirm-modal button { height: 42px; border: 0; border-radius: 11px; font-weight: 700; }
.danger-solid { color: #fff; background: var(--danger); }
#deleteButton.is-deleting, #confirmDelete.is-deleting { position: relative; color: transparent; cursor: default; }
#deleteButton.is-deleting svg { visibility: hidden; }
#deleteButton.is-deleting::after, #confirmDelete.is-deleting::after { content: ""; position: absolute; top: 50%; left: 50%; width: 17px; height: 17px; margin: -10px 0 0 -10px; border: 2px solid rgba(8,126,255,.2); border-top-color: var(--blue); border-radius: 50%; animation: activity-spin .72s linear infinite; }
#confirmDelete.is-deleting::after { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.confirm-modal .delete-error { color: var(--danger); }
#cancelDelete:disabled { opacity: .45; cursor: default; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(26px + var(--safe-bottom)); max-width: min(520px,calc(100vw - 32px)); overflow: hidden; padding: 10px 16px; border-radius: 999px; color: #fff; background: rgba(30,30,33,.9); box-shadow: 0 10px 30px rgba(0,0,0,.16); opacity: 0; transform: translate(-50%,18px); transition: .2s; pointer-events: none; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; backdrop-filter: blur(16px); }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
