/* Accounts: header buttons and the sign-up / sign-in drawer (right side on desktop, from the top on phones). */
.auth { display: flex; align-items: center; gap: 8px; flex: none; }
.auth-link { font: inherit; font-size: 14px; color: var(--brand-soft); background: none; border: 0; cursor: pointer; padding: 6px 6px; text-decoration: underline; text-underline-offset: 3px; }
.auth-cta { font: inherit; font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--brand);
            background: var(--brand-soft); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.auth-cta:hover { background: var(--card); }
.auth-email { font-size: 13px; color: var(--brand-soft); max-width: 16em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-link:focus-visible, .auth-cta:focus-visible, .auth-inline:focus-visible, .drawer-close:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
@media (max-width: 560px) { .auth-email { display: none; } .auth-cta { padding: 7px 12px; } }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(20, 5, 8, .45); z-index: 90; opacity: 0; transition: opacity .25s; }
.drawer-backdrop.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 100; background: var(--card); color: var(--ink);
          box-shadow: -8px 0 30px rgba(0, 0, 0, .25); padding: 28px 26px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
.drawer.open { transform: none; }
@media (max-width: 560px) {
  .drawer { left: 0; bottom: auto; width: 100%; max-height: 92vh; border-radius: 0 0 18px 18px; transform: translateY(-100%); padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-backdrop { transition: none; } }
.drawer-close { position: absolute; top: 10px; right: 12px; font-size: 26px; line-height: 1; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.drawer h2 { font-size: 24px; margin: 0 0 10px; padding-right: 30px; }
.drawer p { margin: 0 0 12px; }
.perks { margin: 0 0 16px; padding-left: 18px; color: var(--ink); }
.dfield { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.dfield input { font: inherit; font-size: 17px; font-weight: 400; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.dfield input:focus { outline: none; border-color: var(--accent); }
#d-code { letter-spacing: 6px; font-size: 22px; }
.dnote { font-size: 13px; color: var(--muted); }
.dnote.small { font-size: 12px; margin-top: 10px; }
.plans { display: grid; gap: 8px; margin: 6px 0 14px; }
.plan { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; cursor: pointer; }
.plan:has(input:checked) { border-color: var(--brand); background: var(--panel); }
.plan em { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--green-dark, #1f8a4c); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.pp { min-height: 50px; }
.btn.wide { width: 100%; }
.drawer-msg { font-size: 14px; min-height: 1.2em; }
.drawer-msg.err { color: var(--danger, #b3261e); }
.drawer-msg.ok { color: var(--green-dark, #1f8a4c); }
.dswitch { font-size: 14px; color: var(--muted); margin-top: 14px; }
.auth-inline, .linkbtn.inline { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
.fake-link { color: var(--accent); text-decoration: underline; }

/* Cost Optimizer preview for visitors */
.opt.preview > :not(.preview-cta) { filter: blur(6px); pointer-events: none; user-select: none; }
.preview-cta { position: sticky; top: 120px; z-index: 5; margin: 0 auto -260px; max-width: 460px; text-align: center;
               background: var(--card); border-radius: var(--radius); box-shadow: 0 10px 40px var(--shadow), 0 2px 8px var(--shadow); padding: 26px 24px; }
.preview-cta h2 { margin: 0 0 8px; }
.preview-cta p { color: var(--muted); margin: 0 0 16px; }
.preview-cta .btn { width: 100%; font-size: 17px; }
.preview-cta .small { font-size: 14px; margin: 12px 0 0; }
.foot a { color: inherit; }
.paywall .or { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--muted); }

/* launch special */
.launch { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
          color: var(--on-brand); background: var(--accent); border-radius: 999px; padding: 3px 10px; margin: 0 0 10px; }
.plan s, .paywall s { color: var(--muted); font-weight: 400; margin-right: 2px; }
.paywall .price .was { font-size: .65em; }

/* Ukraine: the support tier and the site-wide line */
.flag { width: 1.4em; height: .95em; vertical-align: -0.1em; border-radius: 2px; display: inline-block; }
.plan.ukraine span { display: grid; gap: 2px; }
.plan.ukraine small { font-size: 12px; color: var(--muted); }
.ukraine-line { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center;
                margin: 24px auto 0; padding: 16px; font-size: 16px; font-weight: 700; color: var(--ink);
                background: linear-gradient(90deg, color-mix(in srgb, #0057B7 22%, transparent), color-mix(in srgb, #FFD700 18%, transparent));
                border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ukraine-line .flag { width: 2em; height: 1.35em; }
.ukraine-line span { font-weight: 500; }
