/* Identical theme tokens from SF Astra login (sfastra.nsdns.in/login) */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #191A1A;
  --bg-secondary: #202222;
  --bg-tertiary: #2B2D2E;
  --bg-hover: #323435;
  --border-color: #343536;
  --text-primary: #ECECEC;
  --text-secondary: #A1A1A1;
  --text-muted: #6B6B6B;
  --accent: #20B8CD;
  --accent-hover: #1DA5B8;
  --accent-glow: rgba(32, 184, 205, 0.15);
  --success: #22C55E;
  --error: #EF4444;
  --wa: #25D366;
  --radius-md: 12px;
  --radius-lg: 16px;
}

html, body {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(32, 184, 205, 0.12), transparent 55%),
    var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.topnav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(25, 26, 26, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topnav {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topnav-wrap .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  margin: 0;
}

.topnav-wrap .brand:hover { text-decoration: none; color: var(--text-primary); }

.topnav-wrap .brand-img-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), rgba(34, 197, 94, 0.6));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topnav-wrap .brand img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.topnav-astra {
  width: min(1100px, calc(100% - 32px));
  flex-wrap: nowrap;
}

.topnav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.legal-nav > a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.legal-nav > a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.legal-nav > a.is-active {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-nav .nav-cta {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 11px;
  background: linear-gradient(135deg, #20B8CD 0%, #128293 100%);
  color: #042422 !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(32, 184, 205, 0.18);
}

.legal-nav .nav-cta:hover {
  filter: brightness(1.06);
  color: #042422 !important;
  background: linear-gradient(135deg, #20B8CD 0%, #128293 100%);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(34, 37, 39, 0.9);
  color: #F0F4F5;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(32, 184, 205, 0.5);
  outline: none;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topnav-wrap.nav-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.topnav-wrap.nav-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.topnav-wrap.nav-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .topnav.topnav-astra {
    flex-wrap: wrap;
    align-items: stretch;
    width: min(1100px, calc(100% - 24px));
    padding: 10px 0;
    gap: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .topnav-wrap .legal-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 10px 0 0;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(25, 27, 28, 0.98);
  }

  .topnav-wrap.nav-open .legal-nav {
    display: flex;
  }

  .topnav-wrap .legal-nav > a {
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.3;
    width: 100%;
    box-sizing: border-box;
  }

  .topnav-wrap .legal-nav > a:not(.nav-cta):hover {
    background: rgba(32, 184, 205, 0.1);
    color: #F0F4F5;
  }

  .topnav-wrap .legal-nav .nav-cta {
    margin: 6px 0 0;
    width: 100%;
    justify-content: center;
    padding: 13px 16px;
    font-size: 15px;
    box-sizing: border-box;
  }
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none !important;
  }

  .topnav-bar {
    width: auto;
    flex: 0 0 auto;
  }

  .topnav.topnav-astra {
    flex-wrap: nowrap;
  }

  .topnav-wrap .legal-nav {
    display: flex !important;
    width: auto;
    flex-direction: row;
    align-items: center;
    margin-top: 0;
    padding: 0;
    border: none;
    background: transparent;
  }
}

.page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}

.brand-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.brand-inline img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.steps {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.steps .n {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.steps strong {
  color: var(--text-primary);
  font-weight: 600;
}

.qr-zone {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: transparent;
  min-height: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-pad {
  background: #ffffff;
  border-radius: 10px;
  padding: 10px;
  line-height: 0;
}

.qr-pad img,
.qr-pad canvas {
  display: block;
  width: 200px;
  height: 200px;
}

.code-box {
  margin-top: 10px;
  width: 100%;
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px;
  user-select: all;
}

.meta {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.meta strong {
  color: var(--text-primary);
  font-weight: 600;
}

.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
}

.btn-wa {
  width: 100%;
  margin-top: 10px;
  min-height: 44px;
  color: #062814 !important;
  background: linear-gradient(135deg, #25D366 0%, #1EBE57 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-wa:hover {
  filter: brightness(1.05);
  color: #062814 !important;
}

.btn-wa.disabled,
.btn-wa[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.btn-secondary {
  width: 100%;
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
  min-height: 44px;
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: var(--bg-tertiary);
}

.status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  min-height: 0;
  text-align: center;
}
.status[hidden] { display: none !important; }
.status.success { color: var(--success); }
.status.error { color: var(--error); }

.login-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.login-footer .product {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.45;
  margin-bottom: 0;
}

.login-footer .product strong {
  color: var(--text-primary);
  font-weight: 600;
}

.login-footer-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
}

.login-footer-links a,
.site-foot-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
}

.login-footer-links a:hover,
.site-foot-links a:hover {
  color: var(--accent);
}

.site-foot-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
}

.login-page-foot {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding-top: 8px;
  text-align: center;
}

.site-copy {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.success-block {
  text-align: center;
  padding: 28px 8px;
}

.success-block .icon {
  color: var(--success);
  font-size: 42px;
  margin-bottom: 8px;
}

.success-block h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

@media (max-width: 600px) {
  .page {
    min-height: auto;
    align-items: flex-start;
    padding: 14px 10px;
  }

  .card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .qr-zone { padding: 10px; }
  .qr-pad img,
  .qr-pad canvas { width: 180px; height: 180px; }
}

.tip-box {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.tip-box p { margin: 0 0 8px; }
.tip-box p:last-child { margin-bottom: 0; }
.tip-box strong { color: var(--text-primary); font-weight: 600; }
.tip-link { margin-top: 10px !important; }
.tip-link a { color: var(--accent); text-decoration: none; font-weight: 500; }
.tip-link a:hover { text-decoration: underline; }

.howto-card { max-width: 560px; }
.howto-callout {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(32, 184, 205, 0.35);
  background: var(--accent-glow);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.45;
}
.howto-h {
  margin: 18px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.howto-ol, .howto-ul {
  margin: 0 0 8px;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}
.howto-ol li, .howto-ul li { margin-bottom: 6px; }
.howto-p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.howto-card code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--accent);
}

.profile-complete-form .field { margin-bottom: 14px; }
.profile-complete-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
}
.field-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--error);
}
.terms-accept-row {
  margin: 4px 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

.terms-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.45;
  margin: 0;
}

.terms-check input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.terms-check-text { flex: 1; min-width: 0; }

.terms-check a,
.terms-accept-row a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.terms-check a:hover,
.terms-accept-row a:hover { text-decoration: underline; }

.howto-card a {
  color: var(--accent);
  text-decoration: none;
}
.howto-card a:hover { text-decoration: underline; }

/* Docs (Astra-style) */
.page-docs {
  align-items: flex-start;
  max-width: none;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.docs-shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  width: 100%;
}

.docs-side {
  position: sticky;
  top: 72px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-side a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
}

.docs-side a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.docs-hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.docs-hero p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}

.docs-ver {
  display: inline-block;
  margin-left: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
}

.docs-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.docs-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.docs-card-head h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.docs-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.docs-subh {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.release-block + .release-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 8px;
}

.release-meta strong {
  color: var(--text-primary);
  font-size: 14px;
}

.release-meta span {
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 860px) {
  .docs-shell { grid-template-columns: 1fr; }
  .docs-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
  }
}

