/* Tokens from Figma senq (Admin / Auth / Landing / App shell) */
@font-face {
  font-family: "Museo Sans Cyrl";
  src: url("fonts/MuseoSansCyrl-300.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Museo Sans Cyrl";
  src: url("fonts/MuseoSansCyrl-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Museo Sans Cyrl";
  src: url("fonts/MuseoSansCyrl-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #151515;
  --bg-elev: #191919;
  --card: #222;
  --card-2: #232627;
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.5);
  --soft: rgba(255, 255, 255, 0.8);
  --line: rgba(255, 255, 255, 0.15);
  --line-strong: rgba(255, 255, 255, 0.3);
  --accent: #f7d547;
  --link: #80beea;
  --nav-active: #191919;
  --danger: rgba(255, 112, 112, 0.9);
  --chip: #2c4170;
  font-family: "Museo Sans Cyrl", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
a { color: var(--link); text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* —— Landing Figma 2038:3436 —— */
.lp {
  min-height: 100vh;
  background: #151515 url("/assets/img/landing-leaf.jpg") center top / cover no-repeat;
  color: #fff;
}
.lp-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(21, 21, 21, 0.95) 100%);
  min-height: 100vh;
}
.lp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 80px 0;
  gap: 1.5rem;
}
.lp-logo { height: 37px; width: auto; display: block; }
.lp-nav {
  display: flex;
  gap: 28px;
  font-size: 16px;
  font-weight: 500;
}
.lp-nav a { color: #fff; }
.lp-reg {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 10px 22px;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
}
.lp-hero {
  text-align: center;
  padding: 140px 24px 80px;
}
.lp-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.lp-hero .sub {
  margin: 48px auto 0;
  max-width: 860px;
  font-size: clamp(22px, 3vw, 48px);
  font-weight: 500;
  line-height: 1.15;
}
.lp-section {
  padding: 80px 80px 100px;
  max-width: 1200px;
  margin: 0 auto;
}
.lp-section h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  line-height: 0.95;
}
.lp-section h2 .c-chat { color: #f7d547; }
.lp-section h2 .c-know { color: #58adf2; }
.lp-section h2 .c-task { color: #999; }
.lp-section .lead {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 24px;
  max-width: 32rem;
}
.lp-section .body {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
  max-width: 28rem;
}
.lp-feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
  max-width: 720px;
}
.lp-feats p {
  margin: 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.2;
}
.lp-footer {
  padding: 40px 80px 60px;
  display: flex;
  gap: 24px;
  color: var(--link);
  font-size: 14px;
  font-weight: 300;
}
@media (max-width: 900px) {
  .lp-header { padding: 24px 20px 0; flex-wrap: wrap; }
  .lp-nav { display: none; }
  .lp-section { padding: 48px 20px; }
  .lp-feats { grid-template-columns: 1fr; }
}

/* —— Senq login parity (src/auth/pages.ts) —— */
.senq-login {
  margin: 0;
  min-height: 100vh;
  background: #191919;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.senq-login .card {
  width: 100%;
  max-width: 658px;
  background: #222;
  border-radius: 19px;
  padding: 53px 40px 57px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.senq-login .logo {
  height: 24px;
  width: auto;
  aspect-ratio: 56 / 17.8786;
  object-fit: contain;
  margin: 0 auto 40px;
  display: block;
}
.senq-login form {
  width: 100%;
  max-width: 416px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.senq-login .field {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #fff;
  font-size: 17px;
  text-align: center;
  outline: none;
  transition: border-color 0.15s ease;
  margin-bottom: 20px;
  font-family: inherit;
}
.senq-login .field::placeholder { color: rgba(255, 255, 255, 0.5); }
.senq-login .field:focus { border-color: rgba(255, 255, 255, 0.6); }
.senq-login .btn {
  width: 100%;
  max-width: 170px;
  height: 50px;
  margin: 0 auto;
  background: #f7d547;
  color: #000;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.15s ease;
  font-family: inherit;
}
.senq-login .btn:hover { filter: brightness(0.96); }
.senq-login .btn:disabled { opacity: 0.6; cursor: default; }
.senq-login .links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 43px;
}
.senq-login .links a {
  color: #80beea;
  font-size: 13px;
  font-weight: 300;
  text-decoration: none;
  cursor: pointer;
}
.senq-login .msg {
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  min-height: 1em;
  margin: 8px 0;
}
.senq-login .msg.error { color: #ff8a8a; }
.senq-login .success-title {
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  margin: 0 0 12px;
}
.senq-login .success-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin: 0;
}
.senq-login .hidden { display: none !important; }
.senq-login #view-login,
.senq-login #view-forgot {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* —— Auth signup / invite (dark card shell) —— */
.auth-page {
  min-height: 100vh;
  background: #151515;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 55px 16px 40px;
}
.auth-page.login { background: #191919; justify-content: center; padding-top: 0; }
.auth-logo { height: 24px; width: auto; margin-bottom: 28px; }
.auth-title {
  margin: 0 0 48px;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
}
.auth-card {
  width: min(658px, 100%);
  background: #222;
  border-radius: 8px;
  padding: 56px 40px 40px;
}
.auth-card.login-card {
  border-radius: 19px;
  padding: 52px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(420px, 100%);
  background: #222;
}
.auth-card.login-card.signup-card { width: min(520px, 100%); }
.auth-card.login-card .auth-logo { margin: 0 0 40px; }
.auth-card.login-card form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
  width: min(420px, 100%);
}
.auth-field { margin-bottom: 18px; width: 100%; max-width: 259px; }
.auth-row .auth-field { margin-bottom: 0; max-width: none; }
.auth-field input {
  width: 100%;
  height: 43px;
  border-radius: 8px;
  border: 0.7px solid var(--line);
  background: transparent;
  color: #fff;
  padding: 0 16px;
  text-align: center;
  font-weight: 300;
  font-size: 14px;
}
.auth-field input::placeholder { color: var(--muted); }
.auth-field input:focus {
  outline: none;
  border-color: var(--line-strong);
}
.auth-actions {
  text-align: center;
  width: 100%;
}
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 141px;
  height: 41px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 20px;
}
.auth-consent {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  max-width: 360px;
  font-size: 12px;
  font-weight: 300;
  color: var(--soft);
}
.auth-consent input { margin-top: 2px; }
.auth-consent a { color: var(--link); }
.auth-links {
  margin-top: 28px;
  display: flex;
  gap: 40px;
  justify-content: center;
  font-size: 12px;
  font-weight: 300;
}
.error { color: var(--danger); text-align: center; margin: 12px 0 0; font-size: 13px; }

/* —— App shell Figma menu (3226:5076 / billing shell) —— */
.app-shell { min-height: 100vh; background: var(--bg-elev); }
.app-top {
  height: 56px;
  background: #222;
  display: flex;
  align-items: center;
  padding: 0 34px;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.app-top .logo { height: 18px; width: auto; }
.app-brand { display: inline-flex; align-items: center; line-height: 0; }
.app-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}
.app-tabs a {
  color: var(--soft);
  font-size: 16px;
  font-weight: 300;
  padding: 8px 16px;
  border-radius: 8px;
}
.app-tabs a.is-active {
  background: var(--nav-active);
  color: #fff;
  font-weight: 500;
}
.app-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.app-main h1 {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 500;
}
.panel {
  background: var(--card);
  border-radius: 8px;
  padding: 24px;
}
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 20px; }
.row label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 300; }
.row input, .row select, .panel input, .panel textarea, .panel select {
  height: 40px;
  border-radius: 8px;
  border: 0.7px solid var(--line-strong);
  background: transparent;
  color: #fff;
  padding: 0 12px;
  min-width: 180px;
}
.panel textarea { height: auto; padding: 10px 12px; min-height: 96px; width: 100%; }
.btn {
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  border: 0.7px solid var(--accent);
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 300;
  color: var(--soft);
}
.list li strong { font-weight: 500; color: #fff; font-size: 18px; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  border: 0.7px solid var(--line-strong);
  font-size: 12px;
  color: var(--muted);
}
.muted { color: var(--muted); font-size: 13px; font-weight: 300; }

/* Billing settings layout Figma 16486:21343 */
.billing-layout {
  display: grid;
  grid-template-columns: 249px 1fr;
  gap: 0;
  background: var(--card);
  border-radius: 8px;
  min-height: 640px;
  overflow: hidden;
}
.billing-side {
  background: var(--card-2);
  padding: 32px 24px;
  border-right: 0.5px solid rgba(255, 255, 255, 0.12);
}
.billing-side .side-item {
  display: block;
  padding: 10px 18px;
  border-radius: 8px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 4px;
}
.billing-side .side-item.is-active {
  background: #2c3133;
  color: #fff;
  font-weight: 500;
}
.billing-body { padding: 32px 40px; }
.billing-body h1 { font-size: 24px; margin: 0 0 28px; }
.billing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.billing-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
}
.billing-grid label.full { grid-column: 1 / -1; }
.billing-grid input {
  height: 37px;
  border: 0.7px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  padding: 0 12px;
  font-weight: 500;
  font-size: 14px;
}

/* Operator Admin Figma 6241:5897 */
.op-page { min-height: 100vh; background: #191919; color: #fff; }
.op-top {
  height: 56px;
  background: #222;
  display: flex;
  align-items: center;
  padding: 0 34px;
  gap: 8px;
}
.op-top .logo { height: 18px; width: auto; margin-right: 40px; }
.op-top a, .op-top span {
  color: var(--soft);
  font-size: 16px;
  font-weight: 300;
  padding: 8px 14px;
  border-radius: 8px;
}
.op-top a.is-active, .op-top span.is-active {
  background: #191919;
  color: #fff;
  font-weight: 500;
}
.op-body { padding: 40px 34px 80px; max-width: 1440px; margin: 0 auto; }
.op-search {
  display: flex;
  gap: 0;
  max-width: 624px;
  margin: 0 auto 28px;
  border: 0.7px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  height: 43px;
}
.op-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0 18px;
  font-weight: 300;
}
.op-search button {
  width: 100px;
  border: 0;
  background: #474747;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
}
.op-filters {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.op-filters .seg {
  display: flex;
  background: #222;
  border-radius: 8px;
  padding: 3px;
  gap: 0;
}
.op-filters button {
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: 14px;
  font-weight: 300;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
}
.op-filters button.is-active {
  background: var(--chip);
  color: #fff;
  font-weight: 500;
}
.op-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto 32px;
  max-width: 1100px;
}
.op-metric {
  background: #222;
  border-radius: 19px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 8px;
}
.op-metric .n {
  font-size: 24px;
  font-weight: 500;
  color: var(--soft);
}
.op-metric .l {
  font-size: 14px;
  font-weight: 300;
  color: var(--soft);
  margin-top: 6px;
  max-width: 9rem;
}
.op-table {
  background: #222;
  border-radius: 8px;
  overflow: auto;
}
.op-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-weight: 300;
  color: var(--soft);
}
.op-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  padding: 18px 16px;
}
.op-table td {
  padding: 16px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
  vertical-align: middle;
}
.op-table td.company { font-size: 18px; font-weight: 500; color: #fff; }
.op-table td.neg { color: var(--danger); }
.op-key {
  max-width: 420px;
  margin: 0 auto 24px;
  display: flex;
  gap: 12px;
  align-items: end;
}
.op-key label { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.op-key input {
  height: 40px;
  border-radius: 8px;
  border: 0.7px solid var(--line-strong);
  background: transparent;
  color: #fff;
  padding: 0 12px;
}
@media (max-width: 1100px) {
  .op-metrics { grid-template-columns: repeat(3, 1fr); }
  .billing-layout { grid-template-columns: 1fr; }
  .billing-side { border-right: 0; border-bottom: 0.5px solid rgba(255,255,255,.12); }
}
