/* Account dialogs use the full available WebView, with an internal safe header. */
.crm-overlay.crm-overlay-account-v2 {
  z-index: 1100; inset: 0; box-sizing: border-box; padding: 8px;
  padding-top: max(8px, env(safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px));
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
  display: flex; justify-content: center; align-items: stretch; overflow: hidden; background: #070e0a;
}
.crm-panel.crm-panel-account-v2 {
  --ac-accent: #61d4b0; --ac-edge: #294d3d;
  display: flex; flex-direction: column; width: min(100%, 480px); height: 100%; min-height: 0; max-height: 100%;
  padding: 0; margin: 0; border: 1px solid var(--ac-edge); border-radius: 0; box-shadow: none;
  background: #080f0b; color: #edf6f0; overflow: hidden;
  font: 400 15px/1.45 'VPN1337 Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.crm-panel-account-v2 .mm-original-content-r35:not([hidden]) { display: flex; flex: 1; min-height: 0; }
.crm-panel-account-v2 [hidden] { display: none !important; }
.ac-window { display: flex; flex: 1; flex-direction: column; width: 100%; min-width: 0; min-height: 0; font: 400 15px/1.45 'VPN1337 Sans',Arial,sans-serif; }
.ac-window p, .ac-window h3, .ac-window time, .ac-window label, .ac-window button { font-family: 'VPN1337 Sans',Arial,sans-serif; }
.ac-top { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; padding: 12px 16px; margin: 0; box-sizing: border-box; border-bottom: 1px solid var(--ac-edge); }
.ac-brand { color: var(--ac-accent); font: 400 23px/1.2 '1337VPN Pixel',var(--font-display,monospace); -webkit-font-smoothing: none; }
.ac-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 22px 16px 28px; }
.ac-heading { display: grid; grid-template-columns: 34px minmax(0,1fr) 40px; align-items: start; gap: 10px; margin: 0 0 24px; }
.ac-heading > svg { color: var(--ac-accent); width: 32px; height: 32px; }
.ac-heading h2 { font: 400 clamp(20px, 5.5vw, 24px)/1.2 '1337VPN Pixel',var(--font-display,monospace); margin: 0 0 8px; overflow-wrap: anywhere; -webkit-font-smoothing: none; }
.ac-heading p { margin: 0; color: #b3c7ba; font-size: 14px; line-height: 1.45; }
.ac-button { box-sizing: border-box; position: relative; display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; max-width: 100%; padding: 10px 14px; border: 1px solid var(--ac-edge); border-radius: 4px; background: #0c1911; color: var(--ac-accent); font: inherit; line-height: 1.35; text-align: center; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ac-button > *, .onboarding-next-button > *, .onboarding-back-button > * { pointer-events: none; }
.onboarding-next-button, .onboarding-back-button { touch-action: manipulation; }
.ac-button:hover:enabled { border-color: var(--ac-accent); background: #10251a; }
.ac-button:focus-visible { outline: 2px solid #b5f8d9; outline-offset: 3px; }
.ac-button:disabled { opacity: .45; cursor: default; }
.ac-button svg { flex: none; width: 22px; height: 22px; }
.ac-close.ac-button { width: 48px; height: 48px; flex: 0 0 48px; padding: 10px; border-radius: 0; }
.ac-close.ac-button svg { width: 27px; height: 27px; }
.ac-refresh.ac-button { width: 40px; min-height: 44px; padding: 8px; border: 0; background: transparent; }
.ac-feedback:empty { display: none; }
.ac-feedback { color: #b9cdbe; margin-bottom: 14px; }
.ac-feedback [role=alert] { color: #ffb8ad; }
.ac-card { position: relative; box-sizing: border-box; min-width: 0; margin: 0 0 16px; padding: 18px 16px; border: 1px solid var(--ac-edge); background: linear-gradient(135deg,#0c1911,#09120d); box-shadow: inset 3px 0 #173324; }
.ac-card::before, .ac-card::after { content: ''; position: absolute; width: 5px; height: 5px; pointer-events: none; border-color: #4f8067; border-style: solid; }
.ac-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.ac-card::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.ac-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.35; font-weight: 600; }
.ac-card p { margin: 8px 0 0; color: #afc5b5; font-size: 14px; overflow-wrap: anywhere; }
.ac-card > .ac-button { margin-top: 12px; }
.ac-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ac-metric { display: flex; align-items: center; gap: 12px; }
.ac-metric > svg { flex: none; width: 30px; height: 30px; color: var(--ac-accent); }
.ac-metric span { display: block; color: #c5d3ca; font-size: 13px; }
.ac-metric strong { display: block; margin-top: 5px; font: 400 24px/1.2 '1337VPN Pixel',var(--font-display,monospace); }
.ac-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; border: 1px solid var(--ac-edge); border-radius: 5px; padding: 4px; margin: 6px 0 18px; }
.ac-filters .ac-button { min-height: 42px; padding: 8px 3px; border: 0; color: #c8d8cc; background: transparent; }
.ac-filters [aria-pressed=true] { background: var(--ac-accent); color: #06140b; }
.ac-list { list-style: none; padding: 0; margin: 0; }
.ac-list .ac-card { margin-bottom: 12px; }
.ac-transaction { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 12px; }
.ac-transaction > svg { width: 26px; height: 26px; color: var(--ac-accent); }
.ac-transaction h3 { font-size: 14px; }
.ac-transaction time { color: #b2c5b7; font-size: 12px; }
.ac-transaction-total { max-width: 112px; text-align: right; }
.ac-transaction-total strong { display: block; white-space: nowrap; font: 400 21px/1.25 '1337VPN Pixel',var(--font-display,monospace); }
.ac-transaction-total span { display: block; margin-top: 7px; color: var(--ac-accent); font-size: 12px; }
.ac-empty { text-align: center; padding: 30px 16px; }
.ac-empty > svg { width: 34px; height: 34px; margin-bottom: 12px; color: var(--ac-accent); }
.ac-note { margin: 12px 0 18px; color: #a5bbac; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.ac-method { display: flex; align-items: center; gap: 18px; padding-top: 24px; padding-bottom: 24px; }
.ac-method > svg { box-sizing: border-box; width: 48px; height: 48px; flex: 0 0 48px; color: var(--ac-accent); padding: 8px; border: 1px solid var(--ac-edge); }
.ac-method > div { min-width: 0; flex: 1; }
.ac-method h3 { font: 400 25px/1.2 '1337VPN Pixel',var(--font-display,monospace); }
.ac-status { display: inline-block; color: var(--ac-accent); font-size: 13px; }
.ac-renewal { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ac-renewal p { margin-top: 0; }
.ac-switch.ac-button { flex: none; width: 64px; min-height: 48px; height: 48px; padding: 8px; border-radius: 24px; justify-content: flex-start; background: #0b1710; }
.ac-switch span { width: 26px; height: 26px; border-radius: 50%; background: #a6bbae; }
.ac-switch.is-on { justify-content: flex-end; border-color: var(--ac-accent); }
.ac-switch.is-on span { background: var(--ac-accent); }
.ac-card .ac-renewal-price { margin-top: 16px; color: #eaf8ee; font-size: 19px; }
.ac-rows { padding: 0; }
.ac-row.ac-button { display: flex; justify-content: space-between; width: 100%; margin: 0; padding: 18px 16px; border-width: 0 0 1px; border-radius: 0; text-align: left; color: #e2f1e6; background: transparent; }
.ac-row:last-child { border-bottom: 0; }
.ac-row span { min-width: 0; }
.ac-danger.ac-button { color: #f29a8d; }
.ac-primary.ac-button { border-color: var(--ac-accent); color: var(--ac-accent); width: 100%; }
.ac-confirm { border-color: #56816b; }
.ac-confirm > .ac-button { width: 100%; }
.ac-card a { display: inline-block; color: var(--ac-accent); margin-top: 10px; text-decoration: underline; }
.ac-balance { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 12px; padding-top: 24px; padding-bottom: 24px; }
.ac-balance > svg { width: 34px; height: 34px; color: var(--ac-accent); }
.ac-balance strong { display: block; margin-top: 7px; font: 400 clamp(25px,7vw,34px)/1.2 '1337VPN Pixel',var(--font-display,monospace); overflow-wrap: anywhere; }
.ac-balance > .ac-button { margin: 0; padding-left: 12px; padding-right: 12px; }
.ac-invite h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ac-invite h3 svg { flex: none; width: 24px; height: 24px; color: var(--ac-accent); }
.ac-invite input, .ac-form input, .ac-form textarea { width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px; border: 1px solid var(--ac-edge); border-radius: 4px; color: #e4f3e8; background: #070f0a; font: 400 16px/1.4 'VPN1337 Sans',Arial,sans-serif; }
.ac-invite input { text-overflow: ellipsis; }
.ac-invite > .ac-button { display: flex; width: 100%; }
.ac-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ac-between > .ac-button { padding: 8px; }
.ac-page-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0; }
.ac-page-controls span { color: #b7c9bc; font-size: 13px; }
.ac-back.ac-button { border: 0; padding-left: 0; margin-bottom: 16px; background: transparent; text-align: left; }
.ac-form label { display: block; margin: 18px 0 10px; color: #d3e2d7; }
.ac-form label input, .ac-form label textarea { display: block; margin-top: 8px; }
.ac-form textarea { min-height: 110px; resize: vertical; }
.crm-panel-account-v2 > header { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 12px 16px; margin: 0; }
.crm-panel-account-v2 > header > h2 { font-size: 17px; }
.crm-panel-account-v2 > header > button { position: static; flex: none; min-width: 48px; min-height: 48px; color: #61d4b0; background: #0b1910; border: 1px solid #294d3d; padding: 8px; }
.crm-panel-account-v2 .mm-legal-host-r35 { overflow: auto; min-height: 0; padding: 0 16px 20px; }
@media (max-width: 359px) {
  .ac-top { padding: 10px 12px; }
  .ac-scroll { padding-left: 12px; padding-right: 12px; }
  .ac-heading { grid-template-columns: 26px minmax(0,1fr) 36px; gap: 8px; }
  .ac-heading > svg { width: 26px; height: 26px; }
  .ac-heading h2 { font-size: 20px; }
  .ac-card { padding-left: 12px; padding-right: 12px; }
  .ac-metric { gap: 8px; }.ac-metric > svg { width: 22px; height: 22px; }
  .ac-metric strong { font-size: 21px; }
  .ac-transaction { grid-template-columns: 22px minmax(0,1fr) auto; gap: 8px; }
  .ac-transaction-total strong { font-size: 18px; }
  .ac-transaction-total { max-width: 92px; }
  .ac-balance { grid-template-columns: 26px minmax(0,1fr) auto; gap: 8px; }
  .ac-balance > svg { width: 26px; height: 26px; }
  .ac-balance > .ac-button { padding: 8px; font-size: 13px; }
}
