.lk-body { min-height: 100vh; font-size: 16px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.lk-body header { min-height: 56px; }
.lk-body .nav { min-height: 56px; gap: 16px; }
.lk-body .nav-links { gap: 16px; font-size: 13px; }
.lk-logout {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.lk-logout:hover { color: var(--text); }

.lk {
  padding: 28px 0 64px;
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 440px;
}
.lk-home {
  width: 100%;
  display: grid;
  gap: 12px;
}
.lk-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(16, 38, 28, 0.88), rgba(9, 22, 16, 0.92));
  border: 1px solid rgba(111, 232, 154, 0.14);
  border-radius: 22px;
  padding: 22px 20px 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}
.lk-boot {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 20px;
}
.lk-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(111, 232, 154, 0.2);
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: lk-spin 0.7s linear infinite;
}
@keyframes lk-spin { to { transform: rotate(360deg); } }

.lk h1 {
  font-size: 26px;
  letter-spacing: -0.05em;
  margin: 0 0 6px;
  text-align: center;
}
.lk h2 {
  font-size: 20px;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
}
.lk .lead {
  color: var(--muted);
  margin: 0 0 18px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
}
.lk-home .lead { text-align: left; margin-bottom: 14px; }
.lk-wide { width: 100%; justify-content: center; }

.oauth { display: grid; gap: 8px; }
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(241, 247, 243, 0.1);
  background: rgba(241, 247, 243, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 560;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.oauth-btn:hover {
  border-color: rgba(111, 232, 154, 0.35);
  background: rgba(111, 232, 154, 0.07);
}
.oauth-btn:active { transform: scale(0.985); }
.oauth-google {
  position: relative;
  overflow: hidden;
  padding: 0;
}
.oauth-google .oauth-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  pointer-events: none;
}
.google-slot {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  overflow: hidden;
  z-index: 2;
}
.google-slot > div,
.google-slot iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 46px;
}
.oauth-ico {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 18px;
}
.oauth-ico svg { width: 18px; height: 18px; }
.oauth-ya {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #fc3f1d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
  color: var(--dim);
  font-size: 12px;
}
.or::before, .or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(111, 232, 154, 0.12);
}
.or span { white-space: nowrap; }

.lk-form { display: grid; gap: 8px; }
.lk-form input {
  width: 100%;
  border: 1px solid rgba(111, 232, 154, 0.12);
  background: rgba(6, 17, 12, 0.55);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
}
.lk-form input:focus {
  outline: none;
  border-color: rgba(111, 232, 154, 0.45);
  box-shadow: 0 0 0 3px rgba(111, 232, 154, 0.1);
}
.lk-form input::placeholder { color: var(--dim); }
.lk-form .btn { margin-top: 4px; }

.error { color: #ffb4b4; font-size: 13px; margin: 2px 0 0; text-align: center; }
.linkish {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: 0;
  color: var(--mint);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-align: center;
}
.lk-legal {
  margin: 16px 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
  color: var(--dim);
}
.lk-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lk-legal a:hover { color: var(--muted); }
.tg-hint { margin: 8px 0 0; text-align: center; font-size: 13px; }

.sub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.is-on {
  color: #7ef0ad;
  background: rgba(53, 217, 138, 0.12);
}
.status-pill.is-off {
  color: var(--dim);
  background: rgba(241, 247, 243, 0.04);
}
.lk-sub.is-on { border-color: rgba(111, 232, 154, 0.28); }

.tariffs { display: grid; gap: 8px; margin: 0 0 12px; }
.tariff {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(111, 232, 154, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  background: rgba(6, 17, 12, 0.28);
}
.tariff input { position: absolute; opacity: 0; pointer-events: none; }
.tariff-copy { display: grid; gap: 2px; }
.tariff-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 560;
}
.tariff-title i {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(241, 247, 243, 0.08);
  color: var(--muted);
}
.tariff.is-hot .tariff-title i {
  background: rgba(53, 217, 138, 0.18);
  color: #7ef0ad;
}
.tariff.is-mark:not(.is-hot) .tariff-title i {
  background: rgba(255, 196, 92, 0.16);
  color: #ffd27a;
}
.tariff small { color: var(--dim); font-size: 12px; }
.tariff b { font-size: 16px; font-weight: 700; letter-spacing: -0.03em; }
.tariff.is-on {
  border-color: rgba(111, 232, 154, 0.55);
  background: rgba(111, 232, 154, 0.1);
  box-shadow: inset 0 0 0 1px rgba(111, 232, 154, 0.12);
}
.tariff.is-hot {
  border-color: rgba(111, 232, 154, 0.28);
}

.steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}
.steps li {
  display: grid;
  gap: 8px;
  padding-left: 28px;
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  background: rgba(111, 232, 154, 0.14);
  color: var(--mint);
}
.steps b { font-size: 14px; font-weight: 650; }
.store-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.store {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(111, 232, 154, 0.16);
  background: rgba(241, 247, 243, 0.04);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.store:hover { border-color: rgba(111, 232, 154, 0.4); }

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 14px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(6, 17, 12, 0.5);
  border: 1px solid rgba(111, 232, 154, 0.1);
}
.seg-item {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
}
.seg-item input { position: absolute; opacity: 0; pointer-events: none; }
.seg-item:has(input:checked) {
  background: rgba(111, 232, 154, 0.14);
  color: var(--text);
}

.connect-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.steps a:not(.btn):not(.store) { color: var(--mint); }
.small { font-size: 13px; }
.muted { color: var(--muted); }

@media (max-width: 640px) {
  .lk { padding: 18px 0 48px; }
  .lk-card { padding: 20px 16px 18px; border-radius: 20px; }
  .connect-actions { grid-template-columns: 1fr; }
}
