/* VPN Service UI — compact redesign with light / dark themes */ html[data-theme="dark"], :root { --bg: #0a0f0d; --bg-2: #101714; --card: #141c18; --card-2: #1a2420; --line: rgba(180, 220, 200, 0.12); --line-strong: rgba(61, 207, 154, 0.35); --text: #eaf3ee; --muted: #8fa59a; --accent: #3dcf9a; --accent-2: #1a9d6e; --accent-soft: rgba(61, 207, 154, 0.12); --danger: #ff6b6b; --warn: #e6b84d; --ok: #3dcf9a; --shadow: 0 10px 28px rgba(0, 0, 0, 0.35); --shadow-btn: 0 6px 16px rgba(26, 157, 110, 0.28); --radius: 14px; --radius-sm: 10px; --header-tg: #0a0f0d; } html[data-theme="light"] { --bg: #eef3f0; --bg-2: #e4ebe7; --card: #ffffff; --card-2: #f7faf8; --line: rgba(20, 40, 30, 0.1); --line-strong: rgba(13, 159, 110, 0.35); --text: #12201a; --muted: #5c7167; --accent: #0d9f6e; --accent-2: #0a7a54; --accent-soft: rgba(13, 159, 110, 0.1); --danger: #d64545; --warn: #c48a12; --ok: #0d9f6e; --shadow: 0 8px 22px rgba(18, 40, 30, 0.08); --shadow-btn: 0 6px 14px rgba(13, 159, 110, 0.22); --radius: 14px; --radius-sm: 10px; --header-tg: #eef3f0; } *, *::before, *::after { box-sizing: border-box; } html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: "Sora", system-ui, sans-serif; font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased; } body { padding: max(10px, env(safe-area-inset-top)) 10px max(18px, env(safe-area-inset-bottom)); } .app-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 90% 50% at 50% -15%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%), var(--bg); } #app { max-width: 1080px; margin: 0 auto; padding: 0 4px 28px; } .hidden { display: none !important; } .muted { color: var(--muted); } .small { font-size: 12px; margin: 0; } .link-accent { color: var(--accent); font-weight: 600; text-decoration: none; } .link-accent:hover { text-decoration: underline; } /* ——— Header ——— */ .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; } .header-brand { display: flex; align-items: center; gap: 8px; min-width: 0; } .brand-mark { width: 34px; height: 34px; display: grid; place-items: center; font-size: 17px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--line-strong); flex-shrink: 0; } .eyebrow { margin: 0; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 700; } .top h1, #user-name { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; } .header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; } .balance-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line-strong); cursor: pointer; white-space: nowrap; } .theme-toggle { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; padding: 0; font-size: 14px; transition: background 0.15s, border-color 0.15s, color 0.15s; } .theme-toggle:hover { border-color: var(--line-strong); color: var(--accent); } html[data-theme="dark"] .theme-toggle .icon-sun { display: none; } html[data-theme="light"] .theme-toggle .icon-moon { display: none; } /* ——— Buttons ——— */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none; text-align: center; max-width: 100%; transition: transform 0.12s, background 0.15s, border-color 0.15s, opacity 0.15s; -webkit-tap-highlight-color: transparent; } .btn:active:not(:disabled) { transform: scale(0.98); } .btn:disabled { opacity: 0.45; cursor: not-allowed; } .btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04110c; box-shadow: var(--shadow-btn); } html[data-theme="light"] .btn.primary { color: #fff; } .btn.secondary { background: var(--accent-soft); color: var(--text); border: 1px solid var(--line-strong); } .btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); } .btn.ghost:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--line-strong); } .btn.full { width: 100%; display: flex; } .btn-lg { padding: 10px 14px; font-size: 13.5px; } .small-btn { padding: 5px 9px; font-size: 11.5px; border-radius: 8px; white-space: nowrap; } .btn-icon { width: 34px; min-width: 34px; padding: 0; } .btn.full:not(.btn-stack .btn) { margin-top: 6px; } .btn-stack { display: grid; gap: 6px; margin-top: 8px; } .btn-stack .btn.full { margin-top: 0; } .btn.secondary.full strong { display: block; font-size: 12.5px; } .btn.secondary.full .btn-sub, .btn.secondary.full small.btn-sub { display: block; margin-top: 1px; font-size: 11px; font-weight: 450; color: var(--muted); } /* ——— Auth ——— */ .auth-panel { position: relative; overflow: hidden; max-width: 420px; margin: 0 auto 12px; padding: 16px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); } .auth-panel-glow { position: absolute; top: -50px; right: -30px; width: 140px; height: 140px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); pointer-events: none; } .auth-brand-row { text-align: center; margin-bottom: 6px; } .auth-fox { font-size: 28px; } .auth-welcome { margin: 0; text-align: center; font-size: 18px; font-weight: 700; } .auth-sub { text-align: center; margin: 4px 0 12px; } .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; margin-bottom: 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); } .auth-tab { border: 0; background: transparent; color: var(--muted); padding: 8px; border-radius: 8px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; } .auth-tab.active { background: var(--card); color: var(--text); box-shadow: var(--shadow); } .auth-form { display: grid; gap: 8px; } .auth-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 500; color: var(--muted); } .auth-form input, .auth-form select, .auth-form textarea, select, textarea, input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="url"] { width: 100%; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); border-radius: var(--radius-sm); padding: 9px 11px; font: inherit; font-size: 14px; } .auth-form input:focus, select:focus, textarea:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--accent-soft); } .auth-check { display: flex !important; align-items: flex-start; gap: 8px; grid-template-columns: none !important; } .auth-check input { width: auto; margin-top: 2px; } .auth-divider { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--muted); font-size: 12px; } .auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); } .auth-alt-actions { display: grid; gap: 6px; } .auth-foot { margin: 12px 0 0; text-align: center; } .site-legal-links { line-height: 1.7; } .site-footer { margin: 28px auto 12px; max-width: 920px; padding: 0 16px 24px; text-align: center; line-height: 1.75; opacity: 0.78; } .site-footer a { color: var(--accent, #3dcf9a); text-decoration: none; } .site-footer a:hover { text-decoration: underline; } .qr-auth-box { text-align: center; margin-top: 10px; } .qr-auth-img { max-width: 200px; width: 100%; border-radius: 12px; background: #fff; padding: 8px; } .telegram-login-wrap { text-align: center; margin-top: 10px; } .telegram-oidc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #2aabee !important; border-color: #2aabee !important; color: #fff !important; font-weight: 650; } .telegram-oidc-btn:hover { filter: brightness(1.06); } .telegram-oidc-btn:disabled { opacity: 0.65; } .guest-banner { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--accent-soft); color: var(--muted); font-size: 12.5px; } /* ——— Cabinet (как админка: разделы слева) ——— */ .cabinet { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; align-items: start; } .cabinet-sidebar { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 8px; padding: 12px 10px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 16px); overflow: hidden; } .cabinet-sidebar-brand { padding: 2px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 2px; } .cabinet-sidebar-kicker { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2px; } .cabinet-sidebar-title { font-size: 14px; font-weight: 700; } .cabinet-main { min-width: 0; width: 100%; } .main-panels { display: grid; gap: 8px; } .section-lead { margin: 0; font-size: 12px; } .tabs, .tabs--sidebar { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; margin: 0; padding: 0; background: transparent; border: 0; } .tabs::-webkit-scrollbar { width: 4px; } .tabs::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 35%, transparent); border-radius: 4px; } .tab { display: flex; flex-direction: row; align-items: center; gap: 8px; width: 100%; border: 1px solid transparent; background: transparent; color: var(--muted); padding: 9px 10px; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; white-space: nowrap; transition: background 0.15s, color 0.15s, border-color 0.15s; } .tab:hover:not(.active) { color: var(--text); background: var(--accent-soft); } .tab.active { color: var(--text); background: var(--accent-soft); border-color: var(--line-strong); } .tab.active .tab-icon { color: var(--accent); } .tab-icon { width: 1.15em; flex-shrink: 0; display: grid; place-items: center; font-size: 14px; color: inherit; } .tab-label { line-height: 1.1; } .panel { display: none; } .panel.active { display: grid; gap: 8px; animation: rise 0.2s ease; } @keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } } .home-greeting { margin: 0; } .home-hello { margin: 0; font-size: 16px; font-weight: 700; } .home-hello-sub { margin: 2px 0 0; } /* ——— Cards ——— */ .card, .tariff, .client, .server, .faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); } .card-hero { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, var(--card)), var(--card) 50%); border-color: var(--line-strong); } .card-dimmed { opacity: 0.72; } .card-head { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 2px; } .card-head.compact { margin-bottom: 8px; } .card-head-text { min-width: 0; flex: 1; } .card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .card-title-row h2, .card h2, .tariff h3, .client h3 { margin: 0; font-size: 14px; font-weight: 700; } .card-icon, .card-icon--shield { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; font-size: 13px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line-strong); flex-shrink: 0; } .status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; } .status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; } .status-badge--ok { color: var(--ok); background: var(--accent-soft); border: 1px solid var(--line-strong); } .status-badge--warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); } .status-badge--off { color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); } .sub-status { margin: 2px 0 0; font-size: 12px; } .sub-status.status-ok { color: var(--ok); } .sub-status.status-warn { color: var(--warn); } .sub-status.status-off { color: var(--muted); } .metrics-row { display: grid; gap: 6px; margin-top: 8px; } .metric-chip { padding: 8px 10px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); } .metric-chip-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; } .metric-label { font-size: 11px; color: var(--muted); font-weight: 600; } .metric-value { font-size: 12px; font-weight: 700; } .metric-hint { margin: 4px 0 0; font-size: 11px; } .traffic-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; } .traffic-fill { height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 0.25s; } .traffic-fill.warn { background: var(--warn); } .traffic-fill.danger { background: var(--danger); } .traffic-box, .extras-billing-box, .auto-renew-box { margin-top: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); } .traffic-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; } .extras-billing-box.suspended { opacity: 0.7; } .alert-inline { margin: 6px 0 0; font-size: 11px; color: var(--warn); } .cab-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; } .cab-switch input { position: absolute; opacity: 0; pointer-events: none; } .cab-switch-slider { width: 36px; height: 20px; border-radius: 999px; background: var(--line); position: relative; flex-shrink: 0; transition: background 0.15s; } .cab-switch-slider::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 4px rgba(0,0,0,0.2); } .cab-switch input:checked + .cab-switch-slider { background: var(--accent); } .cab-switch input:checked + .cab-switch-slider::after { transform: translateX(16px); } .cab-switch-text { display: grid; gap: 1px; min-width: 0; } .cab-switch-text strong { font-size: 12.5px; } .cab-switch-text small { color: var(--muted); font-size: 11px; } .sub-url-wrap { margin-top: 8px; } .url-label { margin: 0 0 4px; } #sub-url, .wg-sub-url, code { display: block; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); font-size: 11px; word-break: break-all; color: var(--text); opacity: 0.92; } html[data-theme="dark"] #sub-url, html[data-theme="dark"] .wg-sub-url, html[data-theme="dark"] code { color: #e8f5ee; opacity: 1; background: #0c1210; border-color: rgba(180, 220, 200, 0.18); } .quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; } .quick-action { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-align: left; padding: 7px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: inherit; cursor: pointer; font: inherit; } .quick-action:hover { border-color: var(--line-strong); background: var(--accent-soft); } .qa-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; font-size: 11px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line-strong); flex-shrink: 0; } .qa-text { display: grid; gap: 0; min-width: 0; } .qa-text strong { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .qa-text small { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Onboarding */ .onboarding-card { border-color: var(--line-strong); background: linear-gradient(160deg, var(--accent-soft), var(--card) 45%); } .onboarding-badge { display: inline-flex; margin-bottom: 6px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line-strong); } .onboarding-title { margin: 0 0 4px; font-size: 15px; } .onboarding-lead { margin: 0 0 8px; font-size: 12px; } .steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .steps-list li { display: flex; gap: 8px; align-items: flex-start; padding: 7px 9px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12px; color: var(--muted); } .step-num { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); flex-shrink: 0; } .stack { display: grid; gap: 8px; } .stack-tight { display: grid; gap: 6px; } .empty-state { text-align: center; padding: 20px 12px; } .empty-title { margin: 0 0 4px; font-weight: 700; font-size: 14px; } /* Tariffs / clients / servers */ .price { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: var(--accent); } .tariff-meta, .client-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; } .chip, .badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); } .chip.accent, .badge.accent { color: var(--accent); border-color: var(--line-strong); background: var(--accent-soft); } .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .actions .btn { min-width: 0; } .actions .btn.full-span { grid-column: 1 / -1; } .client-links { display: grid; gap: 6px; } .client-links a { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 13px; } .servers-head, .card-toolbar, .tickets-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); } .dot.on { background: var(--ok); } .dot.off { background: var(--danger); } .faq-item details { cursor: pointer; } .faq-answer { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; } /* Balance */ .balance-history-card .card-head { margin-bottom: 6px; } .tx-list { list-style: none; margin: 0; padding: 0; } .tx-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; } .tx-list--compact li { padding: 5px 0; font-size: 12px; gap: 6px; } .tx-list li:last-child { border-bottom: 0; } .tx-main { min-width: 0; flex: 1; } .tx-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tx-meta { color: var(--muted); font-size: 11px; line-height: 1.3; } .tx-list--compact .tx-meta { font-size: 10.5px; } .tx-amount { flex-shrink: 0; font-variant-numeric: tabular-nums; white-space: nowrap; } .tx-amount.plus { color: var(--ok); font-weight: 700; } .tx-amount.minus { color: var(--danger); font-weight: 700; } .tx-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); } .tx-pager-label { min-width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; } .tx-pager .btn[disabled] { opacity: 0.35; pointer-events: none; } .topup-amount-label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); margin-bottom: 6px; } .topup-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; } .topup-preset-btn { border: 1px solid var(--line); background: var(--bg-2); color: var(--text); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; } .topup-preset-btn.active, .topup-preset-btn:hover { border-color: var(--line-strong); background: var(--accent-soft); color: var(--accent); } .pay-methods-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .pay-methods-list li { display: grid; grid-template-columns: auto 1fr; gap: 8px; font-size: 12.5px; color: var(--muted); } .pay-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 4px 7px; border-radius: 7px; white-space: nowrap; height: fit-content; } .pay-badge--crypto { color: #0284c7; background: rgba(56,189,248,0.12); border: 1px solid rgba(56,189,248,0.28); } .pay-badge--code { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line-strong); } .input-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; } .passkey-block { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); } .passkey-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; } .passkey-list { margin: 0; padding-left: 16px; } /* Tickets */ .ticket-item { display: flex; justify-content: space-between; gap: 8px; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); cursor: pointer; } .ticket-item:hover { border-color: var(--line-strong); } .ticket-item-main { min-width: 0; } .ticket-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; height: fit-content; } .ticket-badge--open { color: var(--ok); background: var(--accent-soft); } .ticket-badge--answered { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); } .ticket-badge--closed { color: var(--muted); background: var(--bg-2); } .ticket-thread { padding: 12px; } .ticket-thread-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; } .ticket-messages { display: grid; gap: 8px; max-height: 360px; overflow: auto; margin-bottom: 10px; } .ticket-msg { padding: 8px 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12.5px; } .ticket-msg--user { border-color: var(--line-strong); } .ticket-msg--admin { background: var(--accent-soft); } .ticket-msg--ai { border-style: dashed; } .ticket-msg-meta { color: var(--muted); font-size: 11px; margin-bottom: 2px; } .ticket-create { padding: 12px; } .ticket-create-actions, .ticket-reply-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; } /* WG / AWG */ .wg-config-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); } .wg-config-row:first-child { border-top: 0; padding-top: 0; } .wg-qr-thumb { padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; line-height: 0; } .wg-qr-img { width: 64px; height: 64px; display: block; object-fit: contain; } .wg-config-main { min-width: 0; } .wg-meta { margin: 2px 0 0; } .wg-config-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; } .wg-config-actions .btn { flex: 1 1 auto; min-width: 0; padding: 5px 8px; font-size: 11px; } .wg-qr-dialog { border: 1px solid var(--line); border-radius: 14px; padding: 0; background: var(--card); color: inherit; max-width: min(92vw, 340px); } .wg-qr-dialog::backdrop { background: rgba(0,0,0,0.5); } .wg-qr-dialog-inner { margin: 0; padding: 14px; text-align: center; } .wg-qr-dialog-inner h3 { margin: 0 0 4px; font-size: 15px; } .wg-qr-dialog-img { display: block; margin: 10px auto; width: 240px; max-width: 100%; background: #fff; border-radius: 10px; padding: 8px; } #wg-buy-box label, #awg-buy-box label { display: block; font-size: 12px; color: var(--muted); } #wg-buy-box select, #wg-buy-box input, #awg-buy-box select, #awg-buy-box input { width: 100%; margin-top: 4px; } /* Toast */ .toast { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; max-width: min(92vw, 360px); } /* Mobile: как админка — сверху только на узких экранах */ @media (max-width: 900px) { .cabinet { grid-template-columns: 1fr; gap: 10px; } .cabinet-sidebar { position: sticky; top: 0; z-index: 40; max-height: none; overflow: visible; padding: 8px; } .cabinet-sidebar-brand { display: none; } .tabs, .tabs--sidebar { flex-direction: row; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 4px; } .tabs::-webkit-scrollbar { display: none; } .tab { width: auto; flex: 0 0 auto; padding: 8px 10px; font-size: 12px; } } body.is-telegram { padding: max(6px, env(safe-area-inset-top)) 8px max(12px, env(safe-area-inset-bottom)); } body.is-telegram #app { max-width: 1100px; padding: 0 0 18px; } body.is-telegram .home-hello-sub { display: none; } body.is-telegram .auth-panel { max-width: none; } /* Telegram на телефоне: узкая колонка иконок слева */ @media (max-width: 900px) { body.is-telegram .cabinet { grid-template-columns: 56px minmax(0, 1fr); gap: 8px; } body.is-telegram .cabinet-sidebar { position: sticky; top: 0; z-index: 40; max-height: calc(100vh - 12px); overflow: hidden; padding: 6px 4px; } body.is-telegram .cabinet-sidebar-brand { display: none; } body.is-telegram .tabs, body.is-telegram .tabs--sidebar { flex-direction: column; overflow-x: hidden; overflow-y: auto; gap: 2px; } body.is-telegram .tab { width: 100%; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 4px; font-size: 9px; white-space: normal; text-align: center; } body.is-telegram .tab-label { font-size: 9px; line-height: 1.05; max-width: 100%; overflow: hidden; text-overflow: ellipsis; } body.is-telegram .tab-icon { font-size: 14px; } } @media (max-width: 420px) { .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wg-config-row { grid-template-columns: 1fr; } }