/* PostPort — /account и /r/<токен>. Язык v2: монохром, Golos Text 900 в заголовках, ночной кадр
   приглушённым слоем, плотные карточки. Токены — css/account-v2.css (собирается из v2_skin.py).
   Стили только файлом: CSP этих страниц не пускает ни <style>, ни style="". */
*{margin:0; padding:0; box-sizing:border-box}
[hidden]{display:none !important}
html{-webkit-text-size-adjust:100%}
body{min-height:100svh; display:flex; flex-direction:column; background:var(--bg); color:var(--ink);
  font-family:'Manrope',system-ui,sans-serif; font-size:16px; line-height:1.55; position:relative}
html[lang="ka"] body{font-family:'Manrope','Noto Sans Georgian',system-ui,sans-serif}
body::before{content:''; position:fixed; inset:0; z-index:-2; background:url('../img/bg-batumi-g.webp') center 46%/cover no-repeat;
  filter:brightness(.66) saturate(.95)}
body::after{content:''; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(120% 90% at 50% 0%, rgba(4,6,8,.58) 0%, rgba(4,6,8,.80) 45%, rgba(4,6,8,.94) 100%)}
a{color:var(--ink)}
button,input{font:inherit; color:inherit}
*:focus-visible{outline:3px solid rgba(255,255,255,.45); outline-offset:2px}

/* шапка */
.top{display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; max-width:640px; margin:0 auto;
  padding:max(14px, env(safe-area-inset-top)) 20px 6px}
.logo{display:flex; text-decoration:none}
.logo svg{height:44px; width:auto; display:block}
.lang{display:flex; gap:2px; background:rgba(15,20,25,.7); border:1px solid var(--line); border-radius:10px; padding:3px}
.lang button{display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:4px 6px;
  border:0; background:transparent; border-radius:6px; line-height:0; cursor:pointer}
.lang button svg{width:22px; height:15px; border-radius:3px; display:block; box-shadow:0 0 0 1px rgba(255,255,255,.12); opacity:.5;
  transition:opacity .2s, transform .2s}
.lang button.on svg{opacity:1; box-shadow:0 0 0 2px var(--ink)}
@media (hover:hover){ .lang button:hover svg{opacity:.9; transform:translateY(-1px)} }

/* колонка и экраны */
.page{flex:1; width:100%; max-width:640px; margin:0 auto; padding:26px 20px 40px}
.view{animation:ppViewIn .22s cubic-bezier(.16,1,.3,1)}
@keyframes ppViewIn{from{opacity:0; transform:translateY(6px)} to{opacity:1; transform:none}}
.view-boot{display:flex; flex-direction:column; align-items:center; gap:18px; padding-top:18vh; text-align:center}
.spinner{width:30px; height:30px; border-radius:50%; border:3px solid rgba(255,255,255,.14); border-top-color:var(--ink);
  animation:ppSpin .8s linear infinite}
@keyframes ppSpin{to{transform:rotate(360deg)}}

h1,h2{font-family:'Golos Text','Manrope',system-ui,sans-serif; font-weight:900; letter-spacing:-.035em; text-transform:uppercase; line-height:.98}
html[lang="ka"] h1, html[lang="ka"] h2{font-family:'Noto Sans Georgian','Golos Text',sans-serif; text-transform:none; letter-spacing:0; line-height:1.15}
h1{font-size:clamp(28px,6.4vw,38px); margin-bottom:10px; overflow-wrap:anywhere}
h2{font-size:clamp(20px,4.6vw,24px)}
.sub{color:var(--muted); margin-bottom:22px; overflow-wrap:anywhere}
.mono{font-family:'JetBrains Mono',ui-monospace,Consolas,monospace}

/* карточки и поля */
.card{background:var(--card); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow); padding:20px;
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px)}
.field-label{display:block; color:var(--muted); font-size:13px; font-weight:600; margin-bottom:8px}
.input, .phone{width:100%; min-height:54px; background:rgba(5,8,11,.6); border:1px solid var(--line); border-radius:12px}
.input{padding:0 16px; font-size:18px; outline:none}
.input-code{font-family:'JetBrains Mono',ui-monospace,Consolas,monospace; font-size:24px; font-weight:700; letter-spacing:.3em; text-align:center}
.phone{display:flex; align-items:center}
.phone-cc{padding:0 4px 0 16px; color:var(--muted); font-size:18px; font-weight:600}
.phone input{flex:1; min-width:0; height:52px; border:0; background:transparent; padding:0 16px 0 6px; font-size:18px; font-weight:600; outline:none}
.phone input::placeholder{color:var(--hint); font-weight:500}
.input:focus, .phone:focus-within{border-color:rgba(255,255,255,.4)}
/* согласие: вся строка нажимается; состояние видно и цветом, и галкой (на телефоне прежняя галочка терялась) */
.check{display:flex; align-items:center; gap:12px; min-height:56px; margin-top:16px; padding:12px 14px; border:1px solid rgba(255,255,255,.24); border-radius:12px;
  background:rgba(255,255,255,.03); font-size:14px; color:var(--muted); cursor:pointer; -webkit-tap-highlight-color:transparent; transition:background-color .15s, border-color .15s, color .15s}
.check input{-webkit-appearance:none; appearance:none; flex:none; width:26px; height:26px; margin:0; border:2px solid rgba(255,255,255,.85); border-radius:7px;
  background:transparent center/20px 20px no-repeat; cursor:pointer; transition:background-color .15s, border-color .15s}
.check input:checked{border-color:var(--green); background-color:var(--green);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%230b0d10' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.check:has(input:checked){border-color:rgba(125,220,106,.6); background:var(--green-bg); color:var(--ink)}
.check a{font-weight:600}

/* кнопки */
.btn{display:block; width:100%; min-height:52px; margin-top:16px; padding:12px 18px; border:0; border-radius:12px; cursor:pointer;
  background:var(--ink); color:#0b0d10; font-weight:700; transition:background-color .15s, opacity .15s, transform .1s}
.btn:active:not(:disabled){transform:scale(.985)}
.btn:disabled{opacity:.55; cursor:default}
.btn.is-busy{opacity:.7; cursor:progress}
.btn-ghost{background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.16); color:var(--ink)}
@media (hover:hover){
  .btn:hover:not(:disabled){background:var(--teal-dark)}
  .btn-ghost:hover:not(:disabled){background:rgba(255,255,255,.09); border-color:rgba(255,255,255,.34)}
}
.link{background:none; border:0; padding:10px 0; min-height:44px; color:var(--ink); font-weight:600; font-size:14px; cursor:pointer;
  text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(255,255,255,.3)}
.link:disabled{color:var(--hint); text-decoration:none; cursor:default}
.card-links{display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px 16px; margin-top:8px}
.link-out{display:block; margin:26px auto 0; color:var(--muted)}

/* сообщения */
.msg-err{margin-top:12px; color:#ff9a8f; font-size:14px; font-weight:600}
.msg-ok{margin-top:12px; color:var(--green); font-size:14px; font-weight:600}
.note{color:var(--muted); font-size:14px; margin-top:12px}
.banner{margin-bottom:14px; padding:12px 16px; border-radius:var(--r-md); background:var(--card); border:1px solid var(--line); font-size:14px; font-weight:600}
.banner-ok{background:var(--green-bg); border-color:rgba(125,220,106,.3); color:var(--green)}
.banner-bad{background:rgba(255,154,143,.1); border-color:rgba(255,154,143,.3); color:#ff9a8f}

/* кабинет */
.cab-head .sub{margin-bottom:18px}
.code-card{margin-bottom:30px}
.personal-code{font-family:'JetBrains Mono',ui-monospace,Consolas,monospace; font-weight:700; font-size:clamp(36px,11vw,50px); line-height:1.1;
  letter-spacing:.04em; white-space:nowrap; user-select:all}
.code-acts{display:flex; gap:10px}
.code-acts .btn{flex:1}
.rotate{margin-top:16px; padding-top:4px; border-top:1px solid var(--line)}
.parcels-head{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:14px}
.tabs{display:flex; gap:2px; background:rgba(15,20,25,.7); border:1px solid var(--line); border-radius:10px; padding:3px}
.tabs button{min-height:40px; padding:0 14px; border:0; border-radius:7px; background:transparent; color:var(--muted); font-size:14px; font-weight:600; cursor:pointer;
  transition:background-color .15s, color .15s}
.tabs button.on{background:rgba(255,255,255,.12); color:var(--ink)}
.parcels{display:flex; flex-direction:column; gap:12px}
.parcel-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px}
.parcel-no{font-size:16px; font-weight:700; overflow-wrap:anywhere}
.chip{flex:none; max-width:55%; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:700; text-align:center; background:rgba(255,255,255,.08); color:var(--muted)}
.chip-ok{background:var(--green-bg); color:var(--green)}
.chip-due{background:rgba(240,138,29,.14); color:#f6ac5c}
.parcel-place{margin-top:6px; overflow-wrap:anywhere}
.parcel-addr{display:block; color:var(--muted); font-size:14px}
.rows{margin-top:10px}
.row{display:flex; justify-content:space-between; gap:12px; padding:7px 0; border-top:1px solid var(--line); font-size:14px}
.row-k{color:var(--muted)}
.row-v{font-weight:700; text-align:right}
.parcel-acts{display:flex; flex-direction:column}
.parcel-acts .btn{margin-top:10px}
.empty{padding:26px 20px; border:1px dashed var(--line); border-radius:var(--r-lg); color:var(--muted); text-align:center; font-size:14px}

/* проверка номера на /r: номер крупно, как на шаге 2.8 локера */
.check-phone{font-family:'JetBrains Mono',ui-monospace,Consolas,monospace; font-weight:700; font-size:clamp(24px,7.4vw,34px); text-align:center; white-space:nowrap; padding:8px 0}

.foot{display:flex; justify-content:center; flex-wrap:wrap; gap:6px 20px; padding:18px 20px max(18px, env(safe-area-inset-bottom)); font-size:13px}
.foot a{color:var(--hint); text-decoration:none; padding:6px 0}
@media (hover:hover){ .foot a:hover{color:var(--ink)} }

@media (max-width:380px){
  .logo svg{height:38px}
  .lang button{min-width:40px}
  .code-acts{flex-direction:column; gap:0}
}
@media (prefers-reduced-motion: reduce){
  .view, .lang button svg, .btn, .tabs button, .check, .check input{animation:none; transition:none}
  .logo .c{animation:none !important; opacity:1}
  .spinner{animation-duration:2s}
}
