/* Sonorix — accounts, pricing, the account page, the admin view and the legal pages (account.js,
   app/billing/legal). The tokens and components of style.css ("booth"), nothing of its own colours. */

/* ---------------------------------------------------------------- footer */
.sitefoot { margin-left: var(--rail); padding: 0 44px 34px; display: flex; flex-wrap: wrap; gap: 6px 18px;
  font: 500 11px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.sitefoot a, .legal-links a { color: var(--faint); text-decoration: none; }
.sitefoot a:hover, .legal-links a:hover { color: var(--paper); }
body.locked .sitefoot { margin-left: 0; justify-content: center; }
@media (max-width: 900px) { .sitefoot { margin-left: 0; padding: 0 16px 96px; margin-top: -86px; } }

/* ---------------------------------------------------------------- sign-in */
.ac-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ac-row input { flex: 1; min-width: 200px; }
.ac-or { display: flex; align-items: center; gap: 12px; color: var(--faint); font: 600 10px/1 var(--f-mono);
  letter-spacing: .12em; text-transform: uppercase; }
.ac-or::before, .ac-or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.login .check span { color: var(--dim); font-size: 13px; line-height: 1.45; }
.login .check a, .ac-minutes a:not(.btn) { color: var(--amber); }
#acMsg.bad { color: var(--err); }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ---------------------------------------------------------------- the composer's minutes line, the buy prompt */
.ac-minutes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ac-minutes b { color: var(--paper); font-weight: 600; }
.ac-modal { position: fixed; inset: 0; z-index: 150; background: rgba(14,13,12,.78); display: grid; place-items: center;
  padding: 16px; }
.ac-modal .slate { max-width: 460px; width: 100%; }

/* ---------------------------------------------------------------- #/narxlar */
#acCur { margin-bottom: 18px; }
.ac-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ac-plan { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--booth);
  border: 1px solid var(--rule); border-radius: var(--r-lg); }
.ac-plan.best { border-color: var(--rec); box-shadow: 0 0 0 3px rgba(255,74,42,.12); }
.ac-plan .k { font: 600 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.ac-plan h3 { margin: 0; font: 600 20px/1.1 var(--f-display); }
.ac-plan .price { font: 600 26px/1.1 var(--f-display); color: var(--paper); }
.ac-plan .price.uzs { font-size: 20px; white-space: nowrap; }
.ac-plan .price small { font: 500 13px/1 var(--f-ui); color: var(--dim); white-space: nowrap; }
.ac-plan .mins { font: 400 13px/1.4 var(--f-mono); }
.ac-plan .mins b { color: var(--amber); font-weight: 600; font-size: 15px; }
.ac-plan ul { margin: 0; padding-left: 18px; color: var(--dim); font-size: 14px; flex: 1; }
.ac-plan .buy { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-plan .buy .btn { flex: 1; }
.ac-plan .buy .btn.rec { min-height: 42px; }
.ac-notes { margin: 22px 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ac-notes a, .ac-sub a:not(.btn) { color: var(--amber); }

/* ---------------------------------------------------------------- #/hisob, #/admin */
.ac-sub { margin: 14px 0 6px; display: flex; flex-direction: column; gap: 12px; }
.ac-table { border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.ac-table .tr { display: grid; grid-template-columns: 110px minmax(0, 1.4fr) minmax(0, 1fr) 140px 120px; gap: 12px;
  padding: 9px 12px; border-top: 1px solid var(--rule); align-items: center; font-size: 14px; }
.ac-table .tr:first-child { border-top: 0; }
.ac-table .tr > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ac-table .mono { font-size: 12.5px; color: var(--dim); }
.ac-table .pos { color: var(--ok); }
.ac-table .neg { color: var(--amber); }
.ac-table a { color: var(--amber); }
@media (max-width: 760px) { .ac-table .tr { grid-template-columns: 1fr 1fr; gap: 4px 10px; } }

/* ---------------------------------------------------------------- mobile tab bar with the account tab */
@media (max-width: 900px) {
  body.accounts .tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  body.accounts .tabbar a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------------------------------------------------------------- legal pages (/terms, /privacy, /refund) */
body.legal-page { background: var(--ink); }
.legal { max-width: 780px; margin: 0 auto; padding: 32px 20px 80px; }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 26px;
  font: 500 12px/1.4 var(--f-mono); letter-spacing: .04em; }
.legal-nav a { color: var(--dim); text-decoration: none; }
.legal-nav a:hover, .legal-nav a[aria-current] { color: var(--paper); }
.legal h1 { font-size: clamp(26px, 4vw, 38px); }
.legal h2 { margin-top: 30px; }
.legal p, .legal li { color: #e3d9c8; line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--amber); }
.legal-ru { margin-top: 44px; padding-top: 8px; border-top: 1px dashed var(--rule-2); }
