/* Connect Vartelio customer portal. Same room as the site: night ground,
   cyan accent, Unbounded for headings, Onest for text. */
:root {
  --ground: #060A13; --paper: #0C1322; --paper-2: #111A2D; --ink: #E8EEF7; --soft: #AEBACB; --rule: #1A2438;
  --accent: #22D3EE; --accent-ink: #03222A; --ok: #3FB950; --warn: #F0A43A; --bad: #F07070;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif; --text: "Onest", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); color: var(--ink);
  font: 400 16px/1.55 var(--text); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 500px at 85% -10%, rgba(34,211,238,.10), transparent 60%),
              radial-gradient(700px 500px at -10% 110%, rgba(34,211,238,.06), transparent 60%); }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: 1.15rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.pt-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--rule); background: rgba(6,10,19,.8); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; }
.pt-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1rem var(--display); }
.pt-brand svg { width: 26px; height: 21px; fill: var(--accent); }
.pt-brand em { font: 500 .8rem var(--text); font-style: normal; color: var(--accent-ink); background: var(--accent); padding: 2px 8px; border-radius: 999px; }
.pt-who { display: flex; align-items: center; gap: 16px; color: var(--soft); font-size: .92rem; }
main { flex: 1; width: min(1180px, 100%); margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 40px) 60px; outline: none; }
.pt-loading { color: var(--soft); padding: 40px 0; }
.pt-foot { padding: 20px clamp(16px, 4vw, 40px); border-top: 1px solid var(--rule); color: var(--soft); font-size: .88rem; }
.pt-soft { color: var(--soft); }
.pt-error { color: var(--bad); margin: 6px 0 0; }
.pt-notice { border-left: 3px solid var(--accent); padding: 8px 12px; background: rgba(34,211,238,.06); border-radius: 0 8px 8px 0; }

/* buttons and fields */
.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px;
  border: 1px solid var(--rule); background: var(--paper-2); color: var(--ink); font: 600 .97rem var(--text); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s; }
.pt-btn:hover { border-color: var(--accent); }
.pt-btn:active { transform: translateY(1px); }
.pt-btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pt-btn.primary:hover { background: #4FE0F3; }
.pt-btn:disabled, .pt-btn.is-busy { opacity: .6; cursor: progress; }
.pt-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pt-field { display: grid; align-content: start; gap: 6px; font-size: .92rem; color: var(--soft); }
.pt-field input { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--rule); background: var(--ground); color: var(--ink); font: 400 1rem var(--text); }
.pt-field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.pt-field small { color: #7D8BA0; }
.pt-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--soft); }
.pt-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
form { display: grid; gap: 16px; }
.pt-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pt-grid2 > .pt-error, .pt-grid2 > .pt-actions { grid-column: 1 / -1; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* signed out */
.pt-auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: start; margin-top: 10px; }
.pt-auth { display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--rule); border-radius: 20px; background: var(--paper);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); animation: pt-in .45s cubic-bezier(.2,.7,.2,1); }
.pt-auth-head { display: grid; gap: 8px; }
.pt-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--ground); border: 1px solid var(--rule); }
.pt-tabs button { min-height: 38px; border: 0; border-radius: 9px; background: none; color: var(--soft); font: 600 .95rem var(--text); cursor: pointer; }
.pt-tabs button[aria-selected="true"] { background: var(--paper-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.pt-auth-side { padding-top: 14px; }
.pt-flow { list-style: none; counter-reset: flow; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; }
.pt-flow li { counter-increment: flow; display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; }
.pt-flow li::before { content: counter(flow); grid-row: span 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--rule); color: var(--accent); font: 600 .95rem var(--display); }
.pt-flow b { font-weight: 600; }
.pt-flow span { color: var(--soft); font-size: .93rem; }

/* signed in */
.pt-dash { display: grid; gap: 26px; animation: pt-in .4s cubic-bezier(.2,.7,.2,1); }
.pt-hello { display: grid; gap: 6px; }
.pt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pt-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--rule); background: var(--paper);
  color: var(--soft); font-size: .9rem; position: relative; overflow: hidden; }
.pt-steps i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 .8rem var(--display); font-style: normal;
  border: 1px solid var(--rule); }
.pt-steps li.done { color: var(--ink); }
.pt-steps li.done i { background: rgba(63,185,80,.15); border-color: var(--ok); color: var(--ok); }
.pt-steps li.now { color: var(--ink); border-color: var(--accent); background: linear-gradient(180deg, rgba(34,211,238,.10), var(--paper)); }
.pt-steps li.now i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pt-steps li.now::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 40%; background: var(--accent); animation: pt-run 2.4s ease-in-out infinite; }
.pt-panels { display: grid; gap: 18px; }
.pt-panel { display: grid; gap: 16px; padding: clamp(18px, 2.6vw, 28px); border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); }
.pt-more summary { cursor: pointer; font: 600 1rem var(--display); }
.pt-more[open] summary { margin-bottom: 16px; }
.pt-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pt-plans button { display: grid; gap: 4px; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--rule); background: var(--ground);
  color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.pt-plans button span { color: var(--soft); font-size: .92rem; }
.pt-plans button[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.pt-sum { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--ground); border: 1px solid var(--rule); }
.pt-sum div { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.pt-sum span { color: var(--soft); }
.pt-sum b { font: 600 1.05rem var(--display); text-align: right; }
.pt-sum small { grid-column: 1 / -1; color: #7D8BA0; font-size: .82rem; }
.pt-sum .total { border-top: 1px solid var(--rule); padding-top: 10px; }
.pt-sum .total b { color: var(--accent); font-size: 1.3rem; }
.pt-offer { max-height: 360px; overflow: auto; padding: 16px 18px; border-radius: 12px; background: var(--ground); border: 1px solid var(--rule);
  font-size: .93rem; color: #CBD5E1; }
.pt-offer p { margin: 0 0 8px; }
.pt-offer p.head { color: var(--ink); font-weight: 600; margin-top: 14px; }
.pt-invoice-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pt-invoice-card div { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--ground); border: 1px solid var(--rule); }
.pt-invoice-card span { color: var(--soft); font-size: .88rem; }
.pt-invoice-card b.big { font: 600 1.4rem var(--display); color: var(--accent); }
.pt-progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pt-progress li { display: flex; gap: 12px; align-items: center; color: var(--soft); }
.pt-progress li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--rule); flex: none; }
.pt-progress li.done { color: var(--ink); }
.pt-progress li.done::before { background: var(--ok); border-color: var(--ok); }
.pt-progress li.now { color: var(--ink); }
.pt-progress li.now::before { border-color: var(--accent); border-top-color: transparent; animation: pt-spin 1s linear infinite; }
.pt-progress.failed li.now::before { animation: none; border-color: var(--warn); }
.pt-kv { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; align-items: center; padding-block: 10px; border-top: 1px solid var(--rule); }
.pt-kv > span:first-child { color: var(--soft); font-size: .92rem; }
.pt-kv > .pt-pill { justify-self: start; }
.pt-copy { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.pt-copy code, .pt-secret, .pt-iso code { font-family: var(--mono); font-size: .9rem; background: var(--ground); border: 1px solid var(--rule); padding: 3px 8px; border-radius: 8px; overflow-wrap: anywhere; }
.pt-secret { display: inline-block; margin-top: 8px; color: var(--warn); font-size: 1rem; }
.pt-iso { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(34,211,238,.12), var(--ground)); border: 1px solid rgba(34,211,238,.35); }
.pt-iso > div { display: grid; gap: 4px; min-width: 0; }
.pt-iso small { color: #7D8BA0; overflow-wrap: anywhere; }
.pt-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pt-tile { display: grid; gap: 4px; padding: 16px; border-radius: 14px; background: var(--ground); border: 1px solid var(--rule); }
.pt-tile span { color: var(--soft); font-size: .88rem; }
.pt-tile b { font: 600 1.7rem var(--display); }
.pt-tile small { color: #7D8BA0; font-size: .82rem; }
.pt-tile.warn b { color: var(--warn); }
.pt-tile.bad b { color: var(--bad); }
.pt-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.pt-table th { text-align: left; color: var(--soft); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.pt-table td { padding: 10px; border-bottom: 1px solid var(--rule); }
.pt-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; border: 1px solid var(--rule); }
.pt-pill.ok { color: var(--ok); border-color: rgba(63,185,80,.5); }
.pt-pill.warn { color: var(--warn); border-color: rgba(240,164,58,.5); }
.pt-pill.bad { color: var(--bad); border-color: rgba(240,112,112,.5); }
.pt-sheet { max-width: 760px; width: calc(100% - 32px); border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); color: var(--ink); padding: 26px; }
.pt-sheet::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.pt-print table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .94rem; }
.pt-print th { text-align: left; vertical-align: top; width: 190px; color: var(--soft); font-weight: 500; padding: 8px 10px 8px 0; }
.pt-print td { padding: 8px 0; border-bottom: 1px solid var(--rule); }

@keyframes pt-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes pt-run { 0% { left: -40%; } 100% { left: 100%; } }
@keyframes pt-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .pt-auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .pt-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-invoice-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .pt-grid2, .pt-plans { grid-template-columns: minmax(0, 1fr); }
  .pt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-kv { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pt-iso { flex-direction: column; align-items: flex-start; }
  .pt-who #pt-email { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body::before, .pt-top, .pt-foot, main, .pt-sheet .pt-actions { display: none !important; }
  .pt-sheet { position: static; border: 0; background: #fff; color: #000; width: 100%; max-width: none; padding: 0; }
  .pt-sheet .pt-print th, .pt-sheet .pt-print td { color: #000; border-color: #999; }
  body { background: #fff; }
}
