/* LSK CONNECT — site styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #000;
  --surface: #0a1220;
  --surface-2: #10192c;
  --surface-3: #131e35;
  --border: rgba(56, 189, 248, .18);
  --border-strong: rgba(56, 189, 248, .35);
  --neon: #38bdf8;
  --neon-bright: #7dd3fc;
  --neon-dark: #0ea5e9;
  --text: #f0f9ff;
  --muted: #94a3b8;
  --green: #22d3a4;
  --red: #fb7185;
  --warn: #fbbf24;
  --safe-top: env(safe-area-inset-top, 0);
  --safe-bot: env(safe-area-inset-bottom, 0);
  --max-w: 1100px;
}
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
body {
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(56,189,248,.16), transparent 55%),
    radial-gradient(900px 600px at 90% 30%, rgba(122,77,255,.10), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(34,211,164,.06), transparent 60%),
    var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: var(--neon); text-decoration: none; }
a:hover { color: var(--neon-bright); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.65);
  border-bottom: 1px solid var(--border);
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: .01em; }
.brand--small { font-size: 16px; }
.brand__logo { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--border); display: grid; place-items: center; box-shadow: 0 0 24px rgba(56,189,248,.15); }
.brand--small .brand__logo { width: 32px; height: 32px; border-radius: 9px; }
.brand__logo img { width: 100%; height: 100%; object-fit: cover; }
.accent { background: linear-gradient(120deg, var(--neon-bright), var(--neon)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; gap: 18px; align-items: center; }
.nav__link { color: var(--text); font-weight: 600; font-size: 14px; transition: color .15s; }
.nav__link:hover { color: var(--neon); }
.nav__link--muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; cursor: pointer;
  font-weight: 800; font-size: 15px; letter-spacing: .01em;
  border: 0; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .15s;
  white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: 13px; border-radius: 11px; }
.btn--lg { padding: 16px 28px; font-size: 17px; border-radius: 16px; min-height: 56px; }
.btn--primary {
  color: #001124;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8 55%, #7dd3fc);
  box-shadow: 0 14px 30px rgba(56,189,248,.30), inset 0 -2px 0 rgba(0,0,0,.15);
}
.btn--primary:hover { color: #001124; }
.btn--primary:active { transform: translateY(1px) scale(.99); }
.btn--ghost {
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.btn--ghost:hover { background: rgba(56,189,248,.08); border-color: var(--border-strong); color: var(--text); }
.btn--full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* Main */
.main { flex: 1; padding: 40px 0 60px; }

/* Hero */
.hero { text-align: center; padding: 60px 0 32px; }
.hero h1 { font-size: clamp(38px, 7vw, 68px); font-weight: 900; letter-spacing: -.02em; line-height: 1; margin-bottom: 18px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 32px; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 40px 0; }
.feature {
  padding: 24px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 20px;
}
.feature__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(56,189,248,.12); color: var(--neon); margin-bottom: 14px; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Tariffs */
.tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 30px 0; }
.tariff {
  position: relative;
  padding: 28px 22px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 22px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.tariff:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 20px 40px rgba(56,189,248,.10); }
.tariff--featured { border-color: var(--neon); box-shadow: 0 20px 50px rgba(56,189,248,.25); }
.tariff__badge { position: absolute; top: -10px; right: 16px; background: linear-gradient(120deg, #22d3a4, #38bdf8); color: #001a14; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; letter-spacing: .04em; }
.tariff__name { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: 8px; }
.tariff__price { font-size: 38px; font-weight: 900; letter-spacing: -.02em; }
.tariff__price .currency { color: var(--muted); font-size: 22px; font-weight: 700; margin-left: 4px; }
.tariff__period { color: var(--muted); font-size: 13px; margin: 6px 0 18px; }
.tariff button { width: 100%; }

/* Forms */
.form-card {
  max-width: 420px;
  margin: 60px auto;
  padding: 36px 28px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.form-card h1 { font-size: 26px; margin-bottom: 6px; font-weight: 800; }
.form-card .subtitle { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.form-card label { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: 6px; }
.form-card .field { margin-bottom: 16px; }
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="password"] {
  width: 100%;
  padding: 13px 14px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  transition: border-color .15s;
}
.form-card input:focus { outline: 0; border-color: var(--neon); }
.form-card .form-hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.form-card .form-foot { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }

.alert {
  padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; line-height: 1.45;
}
.alert--err { background: rgba(251,113,133,.10); border: 1px solid rgba(251,113,133,.3); color: #ffc6cd; }
.alert--ok { background: rgba(34,211,164,.10); border: 1px solid rgba(34,211,164,.3); color: #b6f3da; }
.alert--warn { background: rgba(251,191,36,.10); border: 1px solid rgba(251,191,36,.3); color: #ffe6a8; }

/* Cabinet */
.cabinet-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 24px 0; }
@media(min-width: 760px) { .cabinet-grid { grid-template-columns: 2fr 1fr; } }
.card {
  padding: 24px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 22px;
}
.card h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.subscription-status {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  background: rgba(0,0,0,.3); border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 16px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot--green { background: var(--green); box-shadow: 0 0 14px var(--green); }
.dot--gray { background: var(--muted); }
.dot--red { background: var(--red); box-shadow: 0 0 14px var(--red); }
.subscription-status__text strong { display: block; font-size: 15px; font-weight: 700; }
.subscription-status__text span { color: var(--muted); font-size: 13px; }

.expiry-block { text-align: center; padding: 24px 0; }
.expiry-block__label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: 8px; }
.expiry-block__date { font-size: 32px; font-weight: 800; background: linear-gradient(120deg, var(--neon-bright), var(--neon)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.copy-link {
  display: flex; gap: 8px; padding: 12px;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  font-family: ui-monospace, "SF Mono", monospace; font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}
.copy-link button {
  flex-shrink: 0;
  border: 0; background: rgba(56,189,248,.15); color: var(--neon);
  padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700;
}
.copy-link button:hover { background: rgba(56,189,248,.25); }

.divider { height: 1px; background: rgba(255,255,255,.06); margin: 18px 0; }
.row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.row span:first-child { color: var(--muted); }
.row span:last-child { font-weight: 600; }

.empty-state { text-align: center; padding: 30px 20px; color: var(--muted); }
.empty-state svg { width: 48px; height: 48px; opacity: .4; margin-bottom: 12px; }

/* Footer */
.footer { padding: 30px 0; border-top: 1px solid var(--border); margin-top: 60px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__col { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer__col a { color: var(--muted); font-size: 13px; }
.footer__col a:hover { color: var(--text); }
.footer__col--right { color: var(--muted); font-size: 12px; }
.footer__tag { color: var(--muted); font-size: 12px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: rgba(10,18,32,.95); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 18px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(34,211,164,.4); color: #bbf3df; }
.toast.err { border-color: rgba(251,113,133,.4); color: #ffd5da; }

/* Status pages */
.status-page { display: grid; place-items: center; padding: 60px 20px; text-align: center; }
.status-icon { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px; border: 1px solid; }
.status-icon--ok { background: rgba(34,211,164,.12); color: var(--green); border-color: rgba(34,211,164,.3); box-shadow: 0 0 60px rgba(34,211,164,.2); }
.status-icon--err { background: rgba(251,113,133,.12); color: var(--red); border-color: rgba(251,113,133,.3); box-shadow: 0 0 60px rgba(251,113,133,.2); }
.status-icon svg { width: 48px; height: 48px; }
.status-page h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.status-page p { color: var(--muted); font-size: 16px; max-width: 420px; margin: 0 auto 24px; }


/* ============================================ */
/* APP MODE (mobile-first cabinet)              */
/* ============================================ */

.app-container { padding-top: 10px; padding-bottom: 30px; }

.app-hero {
  text-align: center;
  padding: 24px 0 18px;
}
.app-hero__logo {
  width: 96px; height: 96px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 40%, #0b1a36 0%, #000 70%);
  border: 1px solid var(--border);
  margin: 0 auto 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1px rgba(56,189,248,.12), 0 25px 60px rgba(56,189,248,.25), inset 0 0 35px rgba(56,189,248,.08);
}
.app-hero__logo::after {
  content: ""; position: absolute; inset: -1px; border-radius: 24px;
  background: conic-gradient(from 180deg, transparent 0, rgba(56,189,248,.45) 30%, transparent 60%, rgba(56,189,248,.35) 90%, transparent);
  filter: blur(12px); opacity: .55; z-index: 0;
  animation: rot 6s linear infinite;
}
@keyframes rot { to { transform: rotate(1turn); } }
.app-hero__logo img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 24px;
}
.app-hero__title {
  font-size: 28px; font-weight: 900; letter-spacing: -.02em;
  margin-bottom: 12px;
}
.app-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.app-status--active { color: var(--green); border-color: rgba(34,211,164,.3); background: rgba(34,211,164,.06); }
.app-status--off { color: var(--muted); }

/* Big connect button */
.connect-section { margin: 18px 0; }
.big-connect {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8 50%, #7dd3fc);
  color: #001124;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(56,189,248,.35), inset 0 -2px 0 rgba(0,0,0,.15);
  transition: transform .12s ease;
  margin-bottom: 16px;
}
.big-connect:hover { color: #001124; }
.big-connect:active { transform: translateY(1px) scale(.99); }
.big-connect__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(0,17,36,.15);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.big-connect__icon svg { width: 28px; height: 28px; }
.big-connect__text { display: flex; flex-direction: column; }
.big-connect__text strong { font-size: 19px; font-weight: 800; line-height: 1; }
.big-connect__text span { font-size: 13px; opacity: .75; margin-top: 4px; }

/* App icon grid */
.app-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.app-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none; color: var(--text); cursor: pointer;
  transition: transform .12s ease, border-color .15s;
  font: inherit;
}
.app-btn:active { transform: scale(.96); }
.app-btn:hover { border-color: var(--border-strong); color: var(--text); }
.app-btn__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.app-btn__icon svg { width: 26px; height: 26px; }
.app-btn__name { font-size: 12px; font-weight: 700; }

@media (max-width: 380px) {
  .app-buttons { gap: 8px; }
  .app-btn { padding: 12px 4px; }
  .app-btn__icon { width: 48px; height: 48px; }
  .app-btn__name { font-size: 11px; }
}

/* Info cards row */
.info-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 16px 0;
}
.info-card {
  padding: 16px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 16px;
}
.info-card__label {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .12em; font-weight: 700; margin-bottom: 6px;
}
.info-card__value { font-size: 17px; font-weight: 700; }

/* Quick actions */
.quick-actions {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 18px 0;
}
.qa-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  text-decoration: none; color: var(--text);
  transition: background .15s, border-color .15s;
  font-size: 12px;
}
.qa-tile:active { transform: scale(.96); }
.qa-tile:hover { background: rgba(56,189,248,.08); border-color: var(--border-strong); color: var(--text); }
.qa-tile__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(56,189,248,.12); color: var(--neon);
  display: grid; place-items: center;
}
.qa-tile__icon svg { width: 20px; height: 20px; }
.qa-tile__name { font-weight: 600; }

/* Empty section */
.empty-section {
  text-align: center;
  padding: 30px 20px 40px;
}
.empty-section__icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(56,189,248,.08);
  border: 1px solid var(--border);
  color: var(--neon);
  display: grid; place-items: center;
  margin: 0 auto 18px;
}
.empty-section__icon svg { width: 40px; height: 40px; opacity: .6; }
.empty-section h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.empty-section p { color: var(--muted); margin-bottom: 22px; }

/* PWA standalone tweaks */
@media (display-mode: standalone) {
  body { padding-top: env(safe-area-inset-top); }
  .topbar { display: none; }
  .footer { display: none; }
  .main { padding: 14px 0 30px; }
}


.install-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(120deg, rgba(34,211,164,.10), rgba(56,189,248,.10));
  border: 1px solid rgba(34,211,164,.3);
  border-radius: 16px;
  margin-bottom: 16px;
}
.install-bar__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}
.install-bar__icon img { width: 100%; height: 100%; object-fit: cover; }
.install-bar__text { flex: 1; }
.install-bar__text strong { display: block; font-size: 14px; font-weight: 700; }
.install-bar__text span { font-size: 12px; color: var(--muted); }
.install-bar__btn {
  border: 0; background: var(--green); color: #001a14;
  padding: 9px 16px; border-radius: 10px;
  font-weight: 800; font-size: 13px; cursor: pointer;
  flex-shrink: 0;
}
