/* sign-in pop-up, locked terminal, billing and settings pages. Uses the colour variables from main.css. */
.ax-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 16px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; background: var(--ink); color: var(--ink-text); text-decoration: none; }
.ax-btn:hover { opacity: .9; }
.ax-btn[disabled] { opacity: .5; cursor: default; }
.ax-btn.block { width: 100%; }
.ax-btn.ghost { background: var(--card-2); color: var(--text); }
.ax-btn.line { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.ax-btn.danger { background: var(--red-soft); color: var(--red); }
.ax-btn.sm { padding: 7px 12px; font-size: 12px; border-radius: 10px; }
.ax-link { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; text-decoration: underline; }
.ax-link:hover { color: var(--text); }
.ax-field { display: block; margin: 0 0 12px; }
.ax-field > span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.ax-field input { width: 100%; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 11px; padding: 11px 13px; font: inherit; font-size: 14px; outline: none; }
.ax-field input:focus { border-color: var(--ink); }
.ax-code { text-align: center; font-size: 26px !important; letter-spacing: 10px; font-weight: 700; padding-left: 22px !important; }
.ax-msg { min-height: 18px; margin: 4px 0 10px; font-size: 12.5px; color: var(--red); }
.ax-msg.ok { color: var(--green); }
.ax-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: 11.5px; }
.ax-or::before, .ax-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- pop-up ---- */
.ax-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(22, 22, 26, .38); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.ax-modal { width: 100%; max-width: 410px; max-height: calc(100vh - 40px); overflow: auto; background: var(--card); color: var(--text); border-radius: 22px; padding: 26px 26px 22px; box-shadow: 0 40px 110px rgba(0, 0, 0, .42), 0 16px 40px rgba(0, 0, 0, .24), 0 2px 8px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .05); }
.ax-modal.wide { max-width: 560px; }
.ax-modal h2 { margin: 0 0 4px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.ax-modal .sub { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ax-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-weight: 800; font-size: 15px; }
.ax-logo img { width: 28px; height: auto; }
.ax-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--card-2); border-radius: 12px; margin-bottom: 18px; }
.ax-tabs button { border: 0; background: transparent; padding: 8px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.ax-tabs button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.ax-google svg { width: 18px; height: 18px; }
.ax-view[hidden] { display: none; }
.ax-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; }
.ax-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 14px; }
.ax-plan { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--card); display: flex; flex-direction: column; gap: 4px; }
.ax-plan.best { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ax-plan .name { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ax-plan .price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ax-plan .price small { font-size: 12px; font-weight: 600; color: var(--muted); }
.ax-plan .note { font-size: 11.5px; color: var(--muted); min-height: 16px; }
.ax-plan .badge { position: absolute; top: -9px; right: 12px; background: var(--ink); color: var(--ink-text); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.ax-plan .ax-btn { margin-top: 8px; }
.ax-features { list-style: none; margin: 0 0 14px; padding: 0; font-size: 12.5px; color: var(--muted); display: grid; gap: 5px; }
.ax-features li::before { content: "\2713"; color: var(--green); font-weight: 800; margin-right: 8px; }
@media (max-width: 520px) { .ax-plans { grid-template-columns: 1fr; } .ax-modal { padding: 22px 18px 18px; } }

/* ---- locked terminal behind the pop-up ---- */
.lk-wrap { filter: blur(3px); pointer-events: none; user-select: none; }
.lk-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.lk-pill { height: 34px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.lk-grid { display: grid; grid-template-columns: 1fr 300px; gap: 14px; }
.lk-card { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); min-height: 120px; }
.lk-chart { height: 460px; position: relative; overflow: hidden; }
.lk-chart::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 59px, var(--line) 59px 60px), repeating-linear-gradient(90deg, transparent 0 79px, var(--line) 79px 80px); opacity: .7; }
.lk-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lk-side { display: grid; gap: 14px; align-content: start; }
@media (max-width: 900px) { .lk-grid { grid-template-columns: 1fr; } }

/* ---- billing + settings pages ---- */
.pg-head { margin-bottom: 18px; }
.pg-grid { display: grid; gap: 16px; max-width: 980px; }
.pg-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 20px 22px; }
.pg-card h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.pg-card > .sub { margin: 0 0 14px; color: var(--muted); font-size: 12.5px; }
.pg-split { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.pg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-st { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--card-2); color: var(--muted); vertical-align: middle; margin-left: 8px; }
.badge-st.ok { background: var(--green-soft); color: var(--green); }
.badge-st.warn { background: #fdf3d4; color: #8a6a00; }
.badge-st.bad { background: var(--red-soft); color: var(--red); }
.pg-plan { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.pg-meta { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.6; }
.pg-banner { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 13px; font-weight: 600; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl a { color: var(--text); font-weight: 600; }
.tbl-empty { color: var(--muted); font-size: 13px; padding: 6px 0; }
.ax-dialog { border: 0; border-radius: 18px; padding: 22px; max-width: 400px; width: calc(100% - 32px); background: var(--card); color: var(--text); box-shadow: 0 24px 70px rgba(0, 0, 0, .3); }
.ax-dialog::backdrop { background: rgba(22, 22, 26, .4); }
.ax-dialog h3 { margin: 0 0 6px; }
.ax-dialog p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 16px; }
.st-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.st-qr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.st-qr svg { width: 168px; height: 168px; background: #fff; border-radius: 12px; padding: 6px; border: 1px solid var(--line); }
.st-secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--card-2); padding: 8px 10px; border-radius: 8px; word-break: break-all; user-select: all; }
.st-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--card-2); border-radius: 12px; padding: 14px 16px; margin: 10px 0; max-width: 320px; }
@media (max-width: 600px) { .st-row { grid-template-columns: 1fr; } .tbl { font-size: 12px; } }

#ax [hidden], #st [hidden], #bill [hidden] { display: none !important; }

:root[data-theme="dark"] .ax-modal { box-shadow: 0 40px 110px rgba(0, 0, 0, .7), 0 16px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .07); }
