:root {
  --ink: #101820;
  --ink-2: #273241;
  --muted: #667085;
  --line: #d9dee7;
  --line-soft: #edf1f5;
  --panel: #ffffff;
  --soft: #f4f7fa;
  --teal: #0f766e;
  --teal-dark: #0b5f59;
  --blue: #2563eb;
  --amber: #f59e0b;
  --green: #16a34a;
  --red: #dc2626;
  --steel: #44546a;
  --navy: #0f172a;
  --shadow: 0 24px 70px rgba(16, 24, 32, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.muted {
  color: var(--muted);
}

.brand,
.landing-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img,
.landing-brand img {
  display: block;
  width: 168px;
  height: auto;
}

.brand span,
.landing-brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-light {
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(217, 222, 231, .56);
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
}

.brand-light img {
  width: 176px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button.primary,
button.primary {
  background: var(--teal);
  color: #fff;
}

.button.primary:hover,
button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.landing-page {
  background: var(--soft);
}

.landing-shell {
  min-height: 720px;
  color: var(--ink);
  background: var(--soft);
}

.landing-nav,
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 80px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
}

.landing-links,
.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
}

.nav-login {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  font-weight: 750;
}

.nav-disabled,
.button-disabled {
  cursor: default;
  opacity: .72;
  pointer-events: none;
}

.closed-registration {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid rgba(245, 158, 11, .32);
  border-radius: 8px;
  background: rgba(245, 158, 11, .08);
}

.closed-registration strong {
  color: var(--ink);
  font-size: 16px;
}

.closed-registration span {
  color: var(--ink-2);
  line-height: 1.55;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 600px);
  gap: 64px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 68px 40px 72px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow,
.dashboard-eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.hero-copy h1 {
  margin-bottom: 24px;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 630px;
  margin-bottom: 28px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.port-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.port-strip span,
.status-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--steel);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.port-strip span:first-child,
.status-pill.blue {
  background: var(--blue);
}

.port-strip span:last-child,
.status-pill {
  background: var(--teal);
}

.topology-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) 38px minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-height: 380px;
  padding: 38px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.topology-card p {
  position: absolute;
  right: 38px;
  bottom: 32px;
  left: 38px;
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
}

.device-card {
  min-width: 0;
  min-height: 170px;
  padding: 22px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #172033;
}

.plc-device {
  min-height: 198px;
}

.hub-device {
  background: #132f2b;
}

.device-title {
  display: block;
  margin-bottom: 24px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.device-line {
  display: block;
  width: 78px;
  height: 8px;
  margin-bottom: 18px;
  border-radius: 4px;
  background: #44546a;
}

.device-ports {
  display: flex;
  gap: 10px;
}

.device-ports i {
  width: 12px;
  height: 44px;
  border-radius: 3px;
  background: #44546a;
}

.device-ports i:nth-child(2) {
  background: var(--amber);
}

.tunnel-line {
  height: 3px;
  background: var(--teal);
}

.metrics-band,
.section,
.landing-cta {
  background: var(--soft);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 86px;
}

.metric-card {
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.1;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-card small {
  display: block;
  margin-top: 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 40px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section h2,
.landing-cta h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 36px;
  line-height: 1.15;
}

.section-heading p,
.security-layout p,
.landing-cta p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.route-showcase {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  min-height: 520px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(244, 247, 250, .98) 58%, #e8f1ed 100%);
  box-shadow: 0 30px 90px rgba(16, 24, 32, .09);
}

.route-showcase::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(15, 118, 110, .08);
  border-radius: 12px;
  pointer-events: none;
}

.route-sky,
.route-ground,
.route-line {
  position: absolute;
  pointer-events: none;
}

.route-sky {
  inset: 0;
}

.route-cloud {
  position: absolute;
  width: 112px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 36px rgba(16, 24, 32, .06);
}

.route-cloud::before,
.route-cloud::after {
  content: "";
  position: absolute;
  bottom: 12px;
  border-radius: 50%;
  background: inherit;
}

.route-cloud::before {
  left: 22px;
  width: 38px;
  height: 38px;
}

.route-cloud::after {
  right: 22px;
  width: 48px;
  height: 48px;
}

.cloud-a {
  top: 48px;
  left: 10%;
  animation: cloudDrift 14s ease-in-out infinite;
}

.cloud-b {
  top: 74px;
  right: 13%;
  transform: scale(.78);
  animation: cloudDrift 18s ease-in-out infinite reverse;
}

.route-line {
  top: 166px;
  right: 17%;
  left: 17%;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, .12), rgba(15, 118, 110, .72), rgba(37, 99, 235, .72), rgba(15, 118, 110, .12));
  box-shadow: 0 0 0 8px rgba(15, 118, 110, .07);
}

.route-pulse {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 8px rgba(15, 118, 110, .16);
  transform: translate(-50%, -50%);
  animation: routePulse 4.8s linear infinite;
}

.pulse-two {
  animation-delay: 1.6s;
  background: var(--amber);
  box-shadow: 0 0 0 8px rgba(245, 158, 11, .18);
}

.pulse-three {
  animation-delay: 3.2s;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, .16);
}

.route-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 240px minmax(190px, auto);
  gap: 20px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(217, 222, 231, .72);
  border-radius: 12px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 18px 50px rgba(16, 24, 32, .08);
  outline: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.route-stage:hover,
.route-stage:focus-visible {
  border-color: rgba(15, 118, 110, .36);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 26px 70px rgba(16, 24, 32, .14);
  transform: translateY(-6px);
}

.route-illustration {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 78%, rgba(15, 118, 110, .14), transparent 38%),
    linear-gradient(180deg, #eaf3f5 0%, #eef5ee 100%);
  overflow: hidden;
}

.route-illustration::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 28px;
  left: 24px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16, 24, 32, .12);
  filter: blur(10px);
}

.route-copy {
  padding: 0 6px 6px;
}

.route-copy span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.route-stage-plclink .route-copy span {
  background: rgba(245, 158, 11, .13);
  color: #a86405;
}

.route-stage-engineer .route-copy span {
  background: rgba(37, 99, 235, .1);
  color: var(--blue);
}

.route-copy strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.22;
}

.route-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.factory-scene,
.plclink-scene,
.engineer-scene {
  position: relative;
  z-index: 1;
  width: 230px;
  height: 190px;
}

.factory-building {
  position: absolute;
  right: 28px;
  bottom: 26px;
  width: 126px;
  height: 82px;
  border: 2px solid #334155;
  border-radius: 10px;
  background: #172033;
  box-shadow: inset 0 -10px 0 rgba(255, 255, 255, .04);
}

.factory-roof {
  position: absolute;
  right: 24px;
  bottom: 104px;
  width: 134px;
  height: 38px;
  background: var(--teal);
  clip-path: polygon(0 100%, 18% 28%, 36% 100%, 54% 28%, 72% 100%, 100% 28%, 100% 100%);
}

.factory-window {
  position: absolute;
  bottom: 56px;
  width: 20px;
  height: 24px;
  border-radius: 5px;
  background: var(--amber);
}

.window-a {
  right: 112px;
}

.window-b {
  right: 78px;
  background: #64748b;
}

.factory-stack {
  position: absolute;
  right: 172px;
  bottom: 50px;
  width: 34px;
  height: 112px;
  border: 2px solid #334155;
  border-radius: 8px 8px 4px 4px;
  background: #1e293b;
}

.factory-smoke {
  position: absolute;
  right: 174px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  animation: smokeFloat 3.8s ease-in-out infinite;
}

.smoke-a {
  top: 18px;
  width: 34px;
  height: 34px;
}

.smoke-b {
  top: 4px;
  right: 146px;
  width: 46px;
  height: 46px;
  animation-delay: 1.2s;
}

.plc-box {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: flex;
  gap: 7px;
  width: 74px;
  height: 94px;
  padding: 16px 12px;
  border: 2px solid #334155;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(16, 24, 32, .18);
}

.plc-box i {
  flex: 1;
  border-radius: 5px;
  background: #94a3b8;
}

.plc-box i:nth-child(2) {
  background: var(--amber);
}

.plclink-scene {
  display: grid;
  place-items: center;
}

.plclink-core {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 3px solid rgba(255, 255, 255, .74);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, .92), rgba(11, 95, 89, .96)),
    var(--teal);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 22px 50px rgba(15, 118, 110, .32);
}

.orbit {
  position: absolute;
  inset: 28px;
  border: 2px solid rgba(15, 118, 110, .22);
  border-radius: 50%;
  animation: orbitSpin 8s linear infinite;
}

.orbit-b {
  inset: 6px;
  border-color: rgba(37, 99, 235, .18);
  animation-duration: 11s;
  animation-direction: reverse;
}

.orbit-dot {
  position: absolute;
  z-index: 4;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 8px 16px rgba(16, 24, 32, .18);
}

.dot-a {
  top: 30px;
  right: 52px;
  animation: bob 2.8s ease-in-out infinite;
}

.dot-b {
  right: 26px;
  bottom: 44px;
  background: var(--blue);
  animation: bob 3.2s ease-in-out infinite reverse;
}

.engineer-scene {
  width: 250px;
}

.desk {
  position: absolute;
  right: 24px;
  bottom: 28px;
  left: 24px;
  height: 16px;
  border-radius: 999px;
  background: #334155;
}

.laptop {
  position: absolute;
  right: 26px;
  bottom: 44px;
  width: 122px;
  height: 78px;
  border: 3px solid #334155;
  border-radius: 10px 10px 5px 5px;
  background: #172033;
}

.laptop i {
  position: absolute;
  inset: 16px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, var(--teal) 0 42%, transparent 42% 52%, var(--blue) 52% 100%);
  opacity: .95;
}

.engineer-head {
  position: absolute;
  left: 62px;
  bottom: 108px;
  width: 48px;
  height: 48px;
  border: 3px solid #334155;
  border-radius: 50%;
  background: #f3c9a6;
}

.engineer-body {
  position: absolute;
  left: 42px;
  bottom: 42px;
  width: 88px;
  height: 78px;
  border: 3px solid #334155;
  border-radius: 28px 28px 12px 12px;
  background: var(--blue);
}

.check-badge {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 14px 28px rgba(22, 163, 74, .24);
}

.check-badge::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  width: 12px;
  height: 18px;
  border-right: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: rotate(42deg);
}

.route-ground {
  right: 34px;
  bottom: 18px;
  left: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.route-ground span {
  height: 18px;
  border-radius: 50%;
  background: rgba(15, 118, 110, .12);
  filter: blur(10px);
}

.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 56px;
  align-items: start;
}

.security-list {
  display: grid;
  gap: 12px;
}

.security-list span {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font-weight: 750;
}

.landing-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 34px 40px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}

.landing-cta h2 {
  color: #fff;
  font-size: 28px;
}

.landing-cta p {
  margin: 0;
  color: #cbd5e1;
}

.pricing-page .app-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.pricing-hero,
.pricing-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 40px;
}

.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 52px;
  align-items: center;
}

.pricing-hero-copy {
  max-width: 780px;
}

.pricing-hero h1 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 52px;
  line-height: 1.08;
}

.pricing-hero p,
.pricing-heading p,
.calculator-copy p,
.billing-panel p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.pricing-wallet-card {
  position: relative;
  min-height: 280px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, .22);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, .95), rgba(16, 24, 32, .98)),
    var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.pricing-wallet-card::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 32px solid rgba(245, 158, 11, .72);
  border-radius: 50%;
}

.pricing-wallet-card::after {
  content: "";
  position: absolute;
  top: 34px;
  right: 34px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--amber);
  box-shadow: 0 18px 42px rgba(245, 158, 11, .34);
}

.wallet-label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #d9f2ec;
  font-size: 12px;
  font-weight: 850;
}

.pricing-wallet-card strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 260px;
  margin-bottom: 16px;
  font-size: 34px;
  line-height: 1.12;
}

.pricing-wallet-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #d9dee7;
}

.pricing-heading {
  max-width: 820px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(16, 24, 32, .07);
}

.pricing-card.featured {
  border-color: rgba(15, 118, 110, .35);
  box-shadow: 0 28px 78px rgba(15, 118, 110, .13);
}

.pricing-card.scada {
  border-color: rgba(245, 158, 11, .42);
}

.plan-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 20px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.pricing-card.scada .plan-kicker {
  background: rgba(245, 158, 11, .14);
  color: #a86405;
}

.pricing-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.15;
}

.pricing-card-head p {
  min-height: 78px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}

.plan-price strong {
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
}

.plan-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.plan-features {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
}

.plan-features li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 5px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(42deg);
}

.calculator-section {
  padding-top: 36px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 560px);
  gap: 56px;
  align-items: start;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #fff 0%, rgba(244, 247, 250, .92) 100%);
  box-shadow: 0 28px 76px rgba(16, 24, 32, .08);
}

.calculator-copy h2,
.billing-panel h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 36px;
  line-height: 1.15;
}

.mix-example {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 10px;
  background: rgba(15, 118, 110, .07);
}

.mix-example strong {
  color: var(--ink);
  font-size: 15px;
}

.mix-example span {
  color: var(--teal);
  font-size: 14px;
  font-weight: 850;
}

.pricing-calculator {
  display: grid;
  gap: 14px;
}

.calculator-row,
.balance-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.calculator-row strong,
.balance-field span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 16px;
}

.calculator-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.quantity-control {
  display: grid;
  grid-template-columns: 40px 72px 40px;
  gap: 8px;
  align-items: center;
}

.quantity-control button {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.quantity-control input,
.balance-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 850;
  text-align: center;
}

.balance-field input {
  max-width: 160px;
  padding: 0 12px;
  text-align: right;
}

.calculator-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.calculator-result div {
  min-height: 112px;
  padding: 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}

.calculator-result div:nth-child(2) {
  background: var(--teal);
}

.calculator-result div:nth-child(3) {
  background: var(--steel);
}

.calculator-result div:nth-child(4) {
  background: #1e293b;
}

.calculator-result span {
  display: block;
  margin-bottom: 12px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.calculator-result strong {
  display: block;
  color: #fff;
  font-size: 26px;
  line-height: 1.12;
}

.billing-section {
  padding-top: 36px;
}

.billing-panel {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 44px;
  padding: 34px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.billing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.billing-steps article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--soft);
}

.billing-steps span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.billing-steps strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
}

.billing-steps p {
  margin: 0;
  font-size: 14px;
}

.pricing-cta .landing-cta-inner {
  margin-bottom: 80px;
}

.app-header {
  color: var(--ink);
}

.app-main {
  max-width: 1120px;
  margin: 24px auto;
  padding: 0 16px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(420px, 620px) minmax(360px, 1fr);
  min-height: calc(100vh - 76px);
  background: var(--soft);
}

.auth-aside {
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: 64px 72px;
  background: var(--ink);
  color: #fff;
}

.auth-aside h1 {
  max-width: 500px;
  margin-bottom: 24px;
  font-size: 43px;
  line-height: 1.16;
}

.auth-aside p:not(.eyebrow) {
  max-width: 460px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.62;
}

.auth-topology {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 470px;
  margin-top: 54px;
  padding: 18px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0f172a;
}

.auth-topology span {
  min-width: 0;
  padding: 12px;
  border-radius: 6px;
  background: #172033;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.auth-topology i {
  flex: 1 0 24px;
  height: 3px;
  background: var(--teal);
}

.form-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 76px);
  padding: 32px;
}

.form-page-dashboard {
  min-height: auto;
  place-items: start center;
}

.form-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow);
}

.form-panel {
  width: min(100%, 440px);
  padding: 36px;
}

/* PLCLink 2026 visual refresh for legacy templates.
   These pages still use the older template names, but should feel like the
   new landing and cabinet instead of a second product. */

:root {
  --plc-navy: #0d1a33;
  --plc-navy-2: #122446;
  --plc-blue: #1e3f74;
  --plc-teal: #0f8175;
  --plc-orange: #f5a020;
  --plc-bg: #edf0f6;
  --plc-card: #ffffff;
  --plc-card-2: #f6f8fc;
  --plc-border: #cdd5e3;
  --plc-text: #111d2e;
  --plc-muted: #60738b;
  --plc-shadow: 0 18px 55px rgba(18,36,70,.11);
}

body {
  background: var(--plc-bg);
  color: var(--plc-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-header,
.landing-nav {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 10px clamp(22px, 4vw, 64px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(13, 26, 51, .96);
  box-shadow: 0 12px 35px rgba(6, 18, 32, .22);
  backdrop-filter: blur(14px);
}

.public-header .brand,
.landing-brand {
  display: flex;
  align-items: center;
  width: 214px;
  height: 62px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

.public-header .brand img,
.landing-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.public-header .brand span,
.landing-brand span {
  display: none;
}

.top-nav,
.landing-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-nav a,
.landing-links a {
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.62);
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s, color .18s;
}

.top-nav a:hover,
.landing-links a:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.95);
}

.top-nav .nav-cta,
.landing-links .nav-cta,
.button.primary,
button.primary,
.form-panel button.primary,
.form-panel button[type="submit"],
.head-actions .button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--plc-teal);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15,129,117,.18);
  transition: transform .18s, background .18s, box-shadow .18s;
}

.top-nav .nav-cta,
.landing-links .nav-cta {
  background: var(--plc-orange);
  color: var(--plc-navy);
  box-shadow: 0 10px 22px rgba(245,160,32,.25);
}

.button.primary:hover,
button.primary:hover,
.form-panel button.primary:hover,
.form-panel button[type="submit"]:hover,
.head-actions .button.primary:hover {
  background: #0b7268;
  transform: translateY(-1px);
}

.button.secondary,
.button,
.auth-switch a {
  color: var(--plc-teal);
  font-weight: 800;
  text-decoration: none;
}

.public-main {
  min-height: calc(100vh - 82px);
}

.auth-layout {
  display: grid;
  min-height: calc(100vh - 82px);
  grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
  background: var(--plc-bg);
}

.auth-aside {
  display: flex;
  align-items: center;
  padding: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(circle at 18% 18%, rgba(245,160,32,.14), transparent 30%),
    linear-gradient(150deg, var(--plc-navy) 0%, #07111f 100%);
  color: #fff;
}

.auth-aside-inner {
  max-width: 560px;
}

.auth-aside-inner::before {
  display: block;
  width: 214px;
  height: 62px;
  margin-bottom: 34px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 8px;
  background: #fff url("../img/plclink-logo-header.543e1490e9fa.png") center / contain no-repeat;
  box-shadow: 0 14px 30px rgba(0,0,0,.2);
  content: "";
}

.auth-aside .eyebrow,
.dashboard-eyebrow,
.section-heading .eyebrow {
  margin: 0 0 14px;
  color: var(--plc-teal);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-aside h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.auth-aside p {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  line-height: 1.75;
}

.auth-topology {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
}

.auth-topology span {
  padding: 13px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-weight: 800;
}

.auth-topology i {
  width: 64px;
  height: 3px;
  border-radius: 99px;
  background: var(--plc-teal);
}

.form-panel,
.auth-card,
.contact-form-panel,
.legal-document,
.pricing-card,
.pricing-wallet-card,
.pricing-calculator,
.billing-note,
.finance-card,
.settings-card {
  border: 1px solid var(--plc-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow: var(--plc-shadow);
}

.auth-card,
.auth-layout > .form-panel {
  align-self: center;
  width: min(100% - 56px, 460px);
  margin: 54px auto;
  padding: 34px;
}

.form-panel h1,
.form-panel h2,
.contact-copy h1,
.legal-document h1,
.pricing-hero h1,
.pricing-heading h2 {
  color: var(--plc-text);
  font-weight: 800;
  letter-spacing: -.03em;
}

.form-panel h1 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 2.65rem);
}

.form-panel p,
.contact-copy p,
.legal-document p,
.legal-document li,
.pricing-hero p,
.pricing-heading p {
  color: var(--plc-muted);
  line-height: 1.7;
}

.form-panel form p,
.form-field {
  margin: 0 0 18px;
}

.form-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--plc-text);
  font-size: .9rem;
  font-weight: 800;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(18,36,70,.18);
  border-radius: 10px;
  background: #fff;
  color: var(--plc-text);
  font: inherit;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.form-panel textarea {
  min-height: 128px;
  resize: vertical;
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  border-color: rgba(15,129,117,.65);
  box-shadow: 0 0 0 4px rgba(15,129,117,.12);
}

.form-panel .helptext {
  display: block;
  margin-top: 7px;
  color: var(--plc-muted);
  font-size: .82rem;
  line-height: 1.45;
}

.auth-switch {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(18,36,70,.1);
  color: var(--plc-muted);
}

.closed-registration,
.message {
  border-radius: 10px;
  background: #f5f8fc;
}

.contact-page,
.legal-page,
.pricing-page .app-main {
  padding: clamp(34px, 6vw, 76px) clamp(20px, 4vw, 64px);
}

.contact-layout {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: minmax(320px, .85fr) minmax(420px, 1fr);
  gap: 36px;
  align-items: start;
}

.contact-copy {
  padding: 34px 0;
}

.contact-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--plc-border);
  border-radius: 12px;
  background: #fff;
}

.contact-details span {
  color: var(--plc-muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-details a {
  color: var(--plc-blue);
  font-weight: 800;
}

.contact-form-panel {
  padding: 32px;
}

.legal-document {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
}

.legal-document h1 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.legal-document h2 {
  margin-top: 32px;
  color: var(--plc-blue);
}

.legal-note {
  padding: 16px 18px;
  border: 1px solid rgba(245,160,32,.35);
  border-radius: 10px;
  background: #fff7e8;
}

.pricing-page {
  background: var(--plc-bg);
}

.pricing-hero,
.pricing-section {
  max-width: 1180px;
  margin: 0 auto;
}

.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 32px;
  align-items: center;
  padding: 52px 0 32px;
}

.pricing-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
}

.pricing-wallet-card,
.pricing-card,
.pricing-calculator {
  padding: 28px;
}

.pricing-card.featured,
.pricing-card.scada {
  border-color: rgba(245,160,32,.45);
}

.legacy-cabinet-main .form-page,
.legacy-cabinet-main .account-page,
.legacy-cabinet-main .billing-page,
.legacy-cabinet-main .team-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px;
}

.legacy-cabinet-main .form-panel {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 34px;
}

.legacy-cabinet-main .gateway-form-grid,
.legacy-cabinet-main .device-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.legacy-cabinet-main .gateway-form-grid .primary,
.legacy-cabinet-main .device-form-grid .primary,
.legacy-cabinet-main .form-errors,
.legacy-cabinet-main .form-field-notes {
  grid-column: 1 / -1;
}

.legacy-cabinet-main .auth-switch {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .auth-layout,
  .contact-layout,
  .pricing-hero,
  .legacy-cabinet-main .gateway-form-grid,
  .legacy-cabinet-main .device-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    min-height: auto;
    padding: 42px 28px;
  }

  .auth-card,
  .auth-layout > .form-panel {
    width: min(100% - 32px, 520px);
    margin: 28px auto 46px;
  }

  .top-nav,
  .landing-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .public-header,
  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .top-nav,
  .landing-links {
    justify-content: flex-start;
  }

  .auth-topology {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-topology i {
    width: 3px;
    height: 32px;
    margin-left: 20px;
  }

  .contact-page,
  .legal-page,
  .pricing-page .app-main,
  .legacy-cabinet-main .form-page,
  .legacy-cabinet-main .account-page,
  .legacy-cabinet-main .billing-page,
  .legacy-cabinet-main .team-page {
    padding: 24px 14px;
  }
}

.gateway-form-panel {
  width: min(100%, 1040px);
}

.gateway-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 22px;
}

.gateway-form-grid .form-field {
  margin: 0;
}

.gateway-form-grid .form-errors,
.gateway-form-grid button {
  grid-column: 1 / -1;
}

.gateway-form-grid .form-field-new_group_name.is-hidden {
  display: none;
}

.gateway-form-grid .helptext {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.gateway-form-grid .errorlist {
  display: block;
  margin-top: 7px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.auth-card {
  align-self: center;
  justify-self: center;
}

.form-panel h1,
.panel h1,
.panel h2 {
  margin-bottom: 10px;
  color: var(--ink);
}

.form-panel p {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.5;
}

label {
  display: block;
  margin: 14px 0 7px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #bcc7d4;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 118, 110, .14);
}

select {
  min-height: 44px;
  padding-right: 42px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 19px,
    calc(100% - 16px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select:hover {
  border-color: #95a3b5;
}

textarea {
  min-height: 110px;
}

.form-panel button {
  width: 100%;
  margin-top: 18px;
}

.auth-switch {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.auth-switch a {
  color: var(--teal);
  font-weight: 800;
}

.helptext {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.errorlist {
  margin: 8px 0;
  padding: 0;
  color: var(--red);
  font-size: 13px;
  list-style: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  position: sticky;
  top: 0;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px 18px;
  background: var(--ink);
  color: #cbd5e1;
}

.sidebar .brand-light {
  width: 100%;
  padding: 7px 8px;
  border-radius: 8px;
}

.sidebar .brand-light img {
  width: 156px;
}

.side-nav {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, .14);
}

.side-nav a,
.logout-form button {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 720;
}

.side-nav a::before {
  flex: 0 0 auto;
  width: 4px;
  height: 18px;
  margin-right: 10px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

.side-nav a.active,
.side-nav a:hover {
  background: rgba(30, 41, 59, .94);
  color: #fff;
}

.side-nav a.active::before {
  background: var(--orange);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, .14);
}

.sidebar-account {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
}

.sidebar-account strong {
  overflow: hidden;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account span {
  overflow: hidden;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-form {
  margin: 0;
}

.logout-form button {
  width: 100%;
  border: 0;
  background: transparent;
  justify-content: flex-start;
  color: #94a3b8;
  font-size: 13px;
}

.app-main-dashboard {
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 48px;
}

.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.dashboard-head > div {
  min-width: 0;
}

.dashboard-head .head-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  min-width: fit-content;
}

.head-actions .button {
  min-width: 180px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-head h1 {
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.dashboard-head p:not(.dashboard-eyebrow) {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-title-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-title-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.device-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -10px 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.device-toolbar-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.device-toolbar-stats span,
.device-toolbar-note {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.device-toolbar-stats strong {
  margin-right: 5px;
  color: var(--ink);
  font-size: 14px;
}

.device-toolbar-note {
  color: var(--teal);
}

.billing-panel-dashboard {
  margin-bottom: 32px;
}

.billing-dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: stretch;
}

.billing-dashboard-main h2 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 1.2;
}

.billing-dashboard-main p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.billing-balance-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 210px;
  padding: 22px;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, .96), rgba(16, 24, 32, .98));
  color: #fff;
}

.billing-balance-card span,
.billing-balance-card small {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}

.billing-balance-card strong {
  color: #fff;
  font-size: 36px;
  line-height: 1.1;
}

.billing-balance-card .button {
  width: 100%;
  margin-top: 12px;
  background: #fff;
  color: var(--teal);
}

.billing-warning {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 8px;
  background: rgba(245, 158, 11, .1);
  color: #8a5304;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

.billing-warning.compact {
  margin-top: 18px;
  font-weight: 650;
}

.is-hidden {
  display: none !important;
}

.billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.billing-summary-grid div {
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--soft);
}

.billing-summary-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.billing-summary-grid strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.finance-overview {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.finance-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 96px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 118, 110, .28);
  border-radius: 8px;
  background: rgba(15, 118, 110, .08);
  color: var(--ink);
}

.finance-balance-card span,
.finance-balance-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.finance-balance-card strong {
  display: block;
  margin-top: 6px;
  color: var(--teal);
  font-size: 34px;
  line-height: 1.05;
}

.finance-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.finance-stat-grid div {
  min-height: 96px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
}

.finance-stat-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.finance-stat-grid strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.1;
}

.finance-activity-panel {
  margin-top: 18px;
}

.finance-activity-panel .panel-head {
  margin-bottom: 10px;
}

.finance-activity-panel .panel-head h2 {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.25;
}

.finance-activity-panel .panel-head p {
  font-size: 14px;
}

.finance-activity-panel .activity-list {
  gap: 0;
}

.finance-activity-panel .activity-item {
  grid-template-columns: 92px minmax(0, 1fr) 150px;
  gap: 14px;
  padding: 10px 0;
}

.finance-activity-panel .activity-item strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.finance-activity-panel .activity-item span,
.finance-activity-panel .activity-item em {
  font-size: 12px;
}

.finance-activity-panel .activity-item em {
  text-align: right;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, 560px);
  gap: 16px;
}

.settings-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.settings-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.settings-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.panel {
  min-width: 0;
  padding: 22px;
  box-shadow: none;
}

.panel + .panel {
  margin-top: 18px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.panel-head h2,
.activity-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

td {
  color: var(--ink-2);
  font-size: 14px;
}

td code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.status-badge.online {
  background: var(--green);
}

.status-badge.offline {
  background: var(--steel);
}

.table-action {
  color: var(--teal);
  font-weight: 800;
  white-space: nowrap;
}

.table-action-button {
  appearance: none;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--teal);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.table-action-button:hover {
  background: transparent;
  box-shadow: none;
  color: var(--teal-dark);
}

.table-action-danger {
  color: var(--red);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.gateway-actions form {
  margin: 0;
}

.gateway-table th:last-child,
.gateway-table td:last-child {
  width: 360px;
}

.gateway-expand-button {
  display: inline-flex;
  min-height: 0;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gateway-expand-button:hover {
  background: transparent;
  box-shadow: none;
}

.gateway-expand-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--teal);
  font-size: 18px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .16s ease;
}

.gateway-expand-button[aria-expanded="true"] .gateway-expand-icon {
  transform: rotate(90deg);
}

.gateway-devices-row td {
  padding-top: 0;
  background: #f8fafc;
}

.gateway-devices-panel {
  margin: 0 0 12px 30px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.gateway-devices-head,
.gateway-device-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) minmax(180px, auto) 90px;
  gap: 14px 18px;
  align-items: center;
}

.gateway-devices-head {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.gateway-devices-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: flex-end;
}

.gateway-devices-actions form {
  margin: 0;
}

.gateway-devices-actions button:disabled {
  opacity: .55;
  cursor: wait;
}

.gateway-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}

.gateway-telemetry-strip span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(30, 50, 75, .1);
  border-radius: 8px;
  background: rgba(244, 248, 252, .85);
}

.gateway-telemetry-strip b {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.gateway-telemetry-strip em {
  color: var(--navy);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gateway-device-list {
  display: grid;
  gap: 10px;
}

.gateway-device-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.gateway-device-item:last-child {
  border-bottom: 0;
}

.device-access-toggle {
  margin: 0;
}

.device-access-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.device-access-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

.gateway-devices-empty {
  padding: 10px 0 0;
  text-align: left;
}

.gateway-discovery-state {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  margin-top: 12px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, .24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, .08), rgba(14, 165, 233, .08)),
    #f8fafc;
  color: var(--ink);
}

.gateway-discovery-state::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .72) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: discoverySweep 1.6s ease-in-out infinite;
}

.gateway-discovery-state > * {
  position: relative;
  z-index: 1;
}

.gateway-discovery-state small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.gateway-discovery-state.is-complete {
  border-color: rgba(22, 163, 74, .28);
  background: rgba(22, 163, 74, .08);
}

.gateway-discovery-state.is-empty {
  border-color: rgba(245, 158, 11, .28);
  background: rgba(245, 158, 11, .1);
}

.gateway-discovery-state.is-complete::after,
.gateway-discovery-state.is-empty::after {
  animation: none;
  opacity: 0;
}

.discovery-radar {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 118, 110, .28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, .18) 0 3px, transparent 4px);
}

.discovery-radar span {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(15, 118, 110, .32);
  border-radius: 50%;
  animation: radarPulse 1.5s ease-out infinite;
}

.discovery-radar span:nth-child(2) {
  animation-delay: .35s;
}

.discovery-radar span:nth-child(3) {
  animation-delay: .7s;
}

@keyframes discoverySweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes radarPulse {
  0% {
    opacity: .8;
    transform: scale(.4);
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

.config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  gap: 18px;
  align-items: start;
}

.config-guide .panel-head,
.config-raw .panel-head {
  margin-bottom: 18px;
}

.config-section + .config-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.config-section h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
}

.config-roadmap {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 12px 14px 12px 34px;
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: 8px;
  background: rgba(15, 118, 110, .06);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.config-roadmap strong {
  color: var(--ink);
}

.config-map {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  gap: 8px 14px;
  align-items: start;
}

.config-map span {
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.config-map code {
  display: block;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.config-map small {
  grid-column: 2;
  margin: -2px 0 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.config-note {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, .22);
  border-radius: 8px;
  background: rgba(15, 118, 110, .07);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.config-raw {
  position: sticky;
  top: 24px;
}

.config-raw pre {
  max-height: calc(100vh - 220px);
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #0f172a;
  color: #e5e7eb;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tariff-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.table-subtext {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.empty-state {
  display: grid;
  gap: 6px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 160px;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.activity-item span,
.activity-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.device-activity-panel {
  margin-top: 14px;
  padding: 4px 2px 0;
  color: var(--muted);
}

.device-activity-panel h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.device-activity-panel .activity-list {
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.device-activity-panel .activity-item {
  grid-template-columns: 96px minmax(0, 1fr) 150px;
  gap: 14px;
  padding: 10px 0;
  border-top: 0;
  border-bottom: 1px solid var(--line-soft);
}

.device-activity-panel .activity-item strong {
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.device-activity-panel .activity-item span,
.device-activity-panel .activity-item em {
  color: #768295;
  font-size: 13px;
}

.device-activity-panel .activity-item em {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-activity-panel .muted {
  margin: 0;
  font-size: 13px;
}

.billing-top-up-page {
  grid-template-columns: minmax(320px, 520px) minmax(360px, 460px);
  gap: 48px;
  align-items: center;
  justify-content: center;
}

.billing-top-up-page .form-copy h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.12;
}

.billing-top-up-page .form-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.top-up-status {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: 10px;
  background: #fff;
}

.top-up-status span,
.top-up-status small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.top-up-status strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1.1;
}

.message-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.message {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(220, 38, 38, .08);
  color: var(--red);
  font-size: 13px;
  font-weight: 750;
}

.message.success {
  background: rgba(15, 118, 110, .1);
  color: var(--teal);
}

.team-add-panel .inline-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px auto;
  gap: 16px;
  align-items: end;
}

.team-add-panel .inline-form p {
  margin: 0;
}

.team-add-panel .inline-form button {
  min-width: 190px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(200px, .8fr) minmax(260px, 1fr);
  gap: 36px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 40px;
  color: var(--ink-2);
}

.site-footer strong,
.site-footer span {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 800;
}

.site-footer p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-weight: 700;
}

.legal-page {
  padding: 58px 40px 76px;
}

.legal-document {
  max-width: 920px;
  margin: 0 auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-document h1 {
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1.12;
}

.legal-document h2 {
  margin: 30px 0 12px;
  font-size: 22px;
}

.legal-document p,
.legal-document li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

.legal-document a {
  color: var(--teal);
  font-weight: 700;
}

.legal-note {
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 8px;
  background: rgba(245, 158, 11, .08);
}

.contact-cta {
  padding: 26px 40px 54px;
  background: var(--soft);
}

.contact-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 38px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-cta h2 {
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.15;
}

.contact-cta p:not(.dashboard-eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
}

.contact-page {
  padding: 58px 40px 76px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 560px);
  gap: 54px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.contact-copy h1 {
  margin-bottom: 20px;
  font-size: 48px;
  line-height: 1.1;
}

.contact-copy p {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.65;
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contact-details span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-details a {
  color: var(--teal);
  font-size: 18px;
  font-weight: 800;
}

.contact-form-panel h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

@keyframes routePulse {
  0% {
    left: 0%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.7);
  }
  10% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes cloudDrift {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(26px);
  }
}

@keyframes smokeFloat {
  0%, 100% {
    opacity: .58;
    transform: translateY(0) scale(.86);
  }
  50% {
    opacity: .94;
    transform: translateY(-12px) scale(1.04);
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1100px) {
  .landing-nav,
  .app-header {
    padding: 0 28px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 64px 28px 70px;
  }

  .topology-card {
    min-height: 360px;
  }

  .metrics-grid,
  .dashboard-metrics,
  .route-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-showcase {
    min-height: auto;
  }

  .route-stage-engineer {
    grid-column: 1 / -1;
    max-width: 520px;
    justify-self: center;
  }

  .route-line {
    display: none;
  }

  .security-layout,
  .auth-layout,
  .pricing-hero,
  .calculator-layout,
  .billing-panel,
  .billing-dashboard-main,
  .billing-top-up-page {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-card.scada {
    grid-column: 1 / -1;
  }

  .billing-steps {
    grid-template-columns: 1fr;
  }

  .billing-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-overview {
    grid-template-columns: 1fr;
  }

  .finance-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auth-aside {
    min-height: auto;
  }
}

@media (max-width: 780px) {
  .landing-nav,
  .app-header,
  .landing-links,
  .top-nav,
  .dashboard-head,
  .landing-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-links,
  .top-nav {
    gap: 14px;
  }

  .nav-login {
    padding-left: 0;
    border-left: 0;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .topology-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
    padding: 24px;
  }

  .topology-card p {
    position: static;
    margin-top: 8px;
  }

  .tunnel-line {
    width: 3px;
    height: 32px;
    justify-self: center;
  }

  .metrics-grid,
  .dashboard-metrics,
  .route-showcase,
  .billing-summary-grid,
  .finance-stat-grid {
    grid-template-columns: 1fr;
  }

  .route-showcase {
    padding: 20px;
  }

  .route-stage {
    grid-template-rows: 210px auto;
    padding: 14px;
  }

  .route-stage-engineer {
    grid-column: auto;
    max-width: none;
  }

  .route-ground {
    display: none;
  }

  .section-inner,
  .metrics-grid,
  .pricing-hero,
  .pricing-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .pricing-hero {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .pricing-hero h1 {
    font-size: 38px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card,
  .pricing-card.scada {
    grid-column: auto;
  }

  .pricing-card {
    min-height: auto;
    padding: 22px;
  }

  .pricing-card-head p {
    min-height: 0;
  }

  .calculator-layout,
  .billing-panel {
    padding: 22px;
  }

  .calculator-copy h2,
  .billing-panel h2 {
    font-size: 30px;
  }

  .calculator-row,
  .balance-field {
    grid-template-columns: 1fr;
  }

  .quantity-control {
    grid-template-columns: 44px minmax(72px, 1fr) 44px;
  }

  .quantity-control button {
    width: 44px;
  }

  .balance-field input {
    max-width: none;
    text-align: center;
  }

  .calculator-result {
    grid-template-columns: 1fr;
  }

  .landing-cta-inner {
    margin-right: 20px;
    margin-left: 20px;
    padding: 28px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .sidebar-footer {
    margin-top: 18px;
  }

  .app-main-dashboard {
    padding: 28px 18px;
  }

  .dashboard-head h1 {
    font-size: 30px;
  }

  .dashboard-head p:not(.dashboard-eyebrow) {
    overflow-wrap: anywhere;
  }

  .auth-aside,
  .form-page {
    padding: 32px 20px;
  }

  .billing-top-up-page {
    place-items: start stretch;
    gap: 26px;
  }

  .billing-top-up-page .form-copy h1 {
    font-size: 34px;
  }

  .auth-aside h1 {
    font-size: 32px;
  }

  .activity-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .settings-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-add-panel .inline-form {
    grid-template-columns: 1fr;
  }

  .gateway-form-grid {
    grid-template-columns: 1fr;
  }

  .gateway-table th:last-child,
  .gateway-table td:last-child {
    width: auto;
  }

  .gateway-actions {
    gap: 8px 12px;
  }

  .gateway-devices-panel {
    margin-left: 0;
  }

  .gateway-devices-head,
  .gateway-device-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gateway-devices-actions {
    justify-content: flex-start;
  }

  .gateway-telemetry-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .config-layout,
  .config-map {
    grid-template-columns: 1fr;
  }

  .config-raw {
    position: static;
  }

  .config-map small {
    grid-column: auto;
  }

  .device-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-head .head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .head-actions .button {
    flex: 1 1 220px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .contact-cta {
    padding: 20px 20px 42px;
  }

  .contact-cta-inner {
    display: grid;
    padding: 26px 20px;
  }

  .contact-cta h2,
  .contact-copy h1 {
    font-size: 32px;
  }

  .contact-page {
    padding: 32px 20px 48px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-page {
    padding: 32px 20px 48px;
  }

  .legal-document {
    padding: 26px 20px;
  }

  .legal-document h1 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .landing-nav,
  .app-header {
    padding: 16px 20px;
  }

  .landing-hero {
    padding: 42px 20px 54px;
  }

  .hero-actions,
  .hero-actions .button,
  .landing-cta .button {
    width: 100%;
  }

  .hero-actions .button,
  .landing-cta .button {
    justify-content: center;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .form-panel {
    padding: 26px 20px;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .head-actions .button {
    flex-basis: 100%;
    width: 100%;
  }
}

/* Final precedence layer for old public pages after legacy media rules. */
.public-header,
.landing-nav {
  background: rgba(13, 26, 51, .96);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 35px rgba(6,18,32,.22);
}

.public-header .brand,
.landing-brand {
  width: 214px;
  height: 62px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 8px;
  background: #fff;
}

.public-header .brand img,
.landing-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-nav a,
.landing-links a {
  color: rgba(255,255,255,.68);
  font-weight: 800;
}

.form-panel,
.auth-card,
.contact-form-panel,
.legal-document,
.pricing-card,
.pricing-wallet-card,
.pricing-calculator {
  border: 1px solid var(--plc-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow: var(--plc-shadow);
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  border-radius: 10px;
}

/* Standalone auth pages: login and invite password setup. */
.standalone-auth-page {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(360px, 460px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
  background:
    radial-gradient(circle at 16% 12%, rgba(245, 160, 32, .14), transparent 30%),
    radial-gradient(circle at 84% 24%, rgba(15, 129, 117, .12), transparent 32%),
    linear-gradient(135deg, #f4f6fb 0%, #e9edf5 100%);
}

.standalone-auth-page-compact {
  grid-template-columns: minmax(320px, 560px);
  justify-content: center;
}

.standalone-auth-hero {
  display: grid;
  gap: 18px;
  align-content: center;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13, 26, 51, .96), rgba(18, 36, 70, .94));
  color: #fff;
  box-shadow: 0 28px 80px rgba(13, 26, 51, .22);
}

.standalone-auth-logo {
  display: inline-flex;
  width: 228px;
  height: 72px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.standalone-auth-logo-small {
  width: 188px;
  height: 60px;
  margin-bottom: 20px;
  box-shadow: 0 12px 28px rgba(13, 26, 51, .1);
}

.standalone-auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.standalone-auth-kicker,
.standalone-auth-card-head span {
  margin: 0;
  color: var(--plc-orange);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.standalone-auth-hero h1 {
  max-width: 460px;
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.standalone-auth-hero p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 1.02rem;
  line-height: 1.65;
}

.standalone-auth-card {
  width: 100%;
  padding: 30px;
  border: 1px solid rgba(205, 213, 227, .9);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 26px 72px rgba(18, 36, 70, .15);
}

.standalone-auth-card-wide {
  max-width: 560px;
}

.standalone-auth-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.standalone-auth-card-head strong {
  color: var(--plc-text);
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.standalone-auth-note {
  margin: -6px 0 20px;
  color: var(--plc-muted);
  line-height: 1.55;
}

.standalone-auth-form {
  display: grid;
  gap: 14px;
}

.standalone-auth-form label,
.standalone-auth-form p {
  display: grid;
  gap: 7px;
  margin: 0;
}

.standalone-auth-form label span,
.standalone-auth-form label,
.standalone-auth-form p label {
  color: var(--plc-text);
  font-size: .86rem;
  font-weight: 850;
}

.standalone-auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 35, 56, .18);
  border-radius: 10px;
  background: #fff;
  color: var(--plc-text);
  font: inherit;
  font-weight: 650;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.standalone-auth-form input:focus {
  border-color: rgba(15, 129, 117, .62);
  box-shadow: 0 0 0 4px rgba(15, 129, 117, .12);
}

.standalone-auth-form em,
.standalone-auth-form .errorlist,
.standalone-auth-form .helptext {
  color: #9f3412;
  font-size: .78rem;
  font-style: normal;
  line-height: 1.45;
}

.standalone-auth-form .errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.standalone-auth-form .button,
.standalone-auth-form button {
  width: 100%;
  margin-top: 4px;
}

.standalone-auth-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 35, 56, .1);
}

.standalone-auth-foot-left {
  justify-content: flex-start;
}

.standalone-auth-foot a {
  color: var(--plc-teal);
  font-size: .88rem;
  font-weight: 850;
}

.password-reset-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 48px);
  background:
    radial-gradient(circle at 18% 14%, rgba(245, 158, 11, .13), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(14, 165, 233, .12), transparent 30%),
    linear-gradient(135deg, #f7f9fc 0%, #edf3fb 100%);
}

.password-reset-card {
  width: min(100%, 480px);
  padding: 26px;
  border: 1px solid rgba(205, 213, 227, .95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 64px rgba(15, 35, 56, .16);
}

.password-reset-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.password-reset-logo {
  display: inline-flex;
  width: 154px;
  height: 50px;
  padding: 8px 12px;
  border: 1px solid rgba(205, 213, 227, .8);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 35, 56, .1);
}

.password-reset-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.password-reset-logo-row span {
  color: var(--plc-orange);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.password-reset-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.password-reset-head strong {
  color: var(--plc-text);
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  line-height: 1.08;
}

.password-reset-head p {
  margin: 0;
  color: var(--plc-muted);
  font-size: .95rem;
  line-height: 1.55;
}

.password-reset-form {
  display: grid;
  gap: 13px;
}

.password-reset-form p {
  display: grid;
  gap: 7px;
  margin: 0;
}

.password-reset-form label {
  color: var(--plc-text);
  font-size: .82rem;
  font-weight: 850;
}

.password-reset-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(15, 35, 56, .18);
  border-radius: 10px;
  background: #fff;
  color: var(--plc-text);
  font: inherit;
  font-weight: 650;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.password-reset-form input:focus {
  border-color: rgba(245, 158, 11, .72);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .16);
}

.password-reset-form button,
.password-reset-actions a:first-child {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: #f59e0b;
  color: #101820;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(245, 158, 11, .24);
}

.password-reset-form .errorlist,
.password-reset-form .helptext,
.password-reset-form em {
  margin: 0;
  padding: 0;
  color: #9f3412;
  font-size: .76rem;
  line-height: 1.45;
  list-style: none;
}

.password-reset-actions {
  display: grid;
  gap: 10px;
}

.password-reset-actions a:last-child {
  justify-self: center;
  color: var(--plc-muted);
  font-size: .88rem;
  font-weight: 850;
  text-decoration: none;
}

.auth-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.45;
}

.auth-alert ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-alert-success {
  border: 1px solid rgba(22, 163, 74, .24);
  background: rgba(22, 163, 74, .08);
  color: #166534;
}

.auth-alert-error {
  border: 1px solid rgba(220, 38, 38, .2);
  background: rgba(220, 38, 38, .07);
  color: #991b1b;
}

@media (max-width: 920px) {
  .standalone-auth-page {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .standalone-auth-hero {
    display: none;
  }
}

@media (max-width: 560px) {
  .standalone-auth-page {
    padding: 18px;
  }

  .standalone-auth-card {
    padding: 22px;
  }
}

.settings-consents {
  display: grid;
  gap: 12px;
}

.settings-consent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px 16px;
}

.settings-consent-row strong,
.settings-consent-row span {
  display: block;
}

.settings-consent-row strong {
  color: var(--text-1);
  font-size: .95rem;
}

.settings-consent-row span {
  margin-top: 4px;
  color: var(--text-2);
  font-size: .82rem;
}

.auth-provider-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 10px;
}

.auth-provider-actions .button {
  justify-content: center;
  text-align: center;
}

.provider-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border-color: rgba(18, 36, 70, .14);
  color: #07111f;
  background: #fff;
}

.provider-button span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 900;
}

.provider-button strong {
  font-size: .92rem;
  line-height: 1.2;
}

.provider-button:disabled {
  cursor: not-allowed;
  opacity: .62;
  box-shadow: none;
}

.yandex-provider span {
  color: #fff;
  background: #fc3f1d;
}

.vk-provider span {
  color: #fff;
  background: #0077ff;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 18px;
  color: #7b8798;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(18, 36, 70, .11);
}

.auth-provider-note {
  margin: 0 0 18px;
  color: #667085;
  font-size: .92rem;
  line-height: 1.5;
}

.register-public-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 16%, rgba(245, 161, 26, .08), transparent 28%),
    radial-gradient(circle at 82% 44%, rgba(11, 35, 64, .08), transparent 34%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  color: #0d1b2a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  font-feature-settings: "ss01", "cv01", "cv11";
}

.register-page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.register-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 68px;
  padding: 0 clamp(22px, 5vw, 84px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: #07111f;
  color: #f7fafc;
}

.register-logo {
  display: inline-flex;
  align-items: center;
}

.register-logo img {
  width: 150px;
  height: auto;
  display: block;
}

.register-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  color: rgba(247, 250, 252, .74);
  font-size: .92rem;
  font-weight: 750;
}

.register-nav a {
  transition: color .16s ease;
}

.register-nav a:hover {
  color: #fff;
}

.register-nav-login {
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: #fff;
}

.register-home-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.register-home-button:hover {
  border-color: rgba(245, 160, 32, .46);
  background: rgba(245, 160, 32, .12);
  color: #fff;
}

.register-main {
  width: min(100% - 44px, 1120px);
  margin: 0 auto;
  padding: clamp(20px, 2.8vw, 34px) 0 clamp(20px, 3vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(390px, 440px);
  gap: clamp(36px, 5vw, 74px);
  align-items: center;
}

.register-copy {
  max-width: 640px;
  padding-top: 0;
}

.register-kicker,
.register-card-head span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #9a6a13;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.register-copy h1 {
  max-width: 560px;
  margin: 0;
  color: #07111f;
  font-size: clamp(2.1rem, 3.15vw, 3rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0;
}

.register-copy p {
  max-width: 570px;
  margin: 18px 0 0;
  color: #465466;
  font-size: clamp(.98rem, 1.18vw, 1.08rem);
  line-height: 1.58;
}

.auth-side-list {
  display: grid;
  gap: 10px;
  max-width: 560px;
  margin: 24px 0 0;
  padding: 0;
  color: #344054;
  font-size: .96rem;
  line-height: 1.5;
  list-style: none;
}

.auth-side-list li {
  position: relative;
  padding-left: 24px;
}

.auth-side-list li::before {
  position: absolute;
  top: .62em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5a020;
  box-shadow: 0 0 0 4px rgba(245, 160, 32, .13);
  content: "";
}

.auth-side-list li {
  font-weight: 450;
}

.register-proof-list {
  display: grid;
  gap: 10px;
  max-width: 590px;
  margin-top: 26px;
}

.register-proof-list div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 36, 70, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 14px 34px rgba(31, 43, 59, .07);
}

.register-proof-list strong {
  color: #07111f;
  font-size: 1.02rem;
  font-weight: 900;
}

.register-proof-list span {
  color: #526174;
  font-size: .92rem;
  line-height: 1.45;
}

.register-proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 660px;
  margin-top: 34px;
}

.register-proof-grid div {
  display: grid;
  grid-template-columns: minmax(170px, .42fr) 1fr;
  gap: 16px;
  align-items: center;
  min-height: 0;
  padding: 16px 18px;
  border: 1px solid rgba(18, 36, 70, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .66);
  box-shadow: none;
}

.register-proof-grid strong {
  display: block;
  margin-bottom: 0;
  color: #07111f;
  font-size: 1rem;
  font-weight: 900;
}

.register-proof-grid span {
  display: block;
  color: #657184;
  font-size: .9rem;
  line-height: 1.45;
}

.register-card {
  margin-top: 0;
  padding: clamp(22px, 2.4vw, 28px);
  border: 1px solid rgba(18, 36, 70, .09);
  border-top: 2px solid rgba(245, 161, 26, .66);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow:
    0 18px 54px rgba(31, 43, 59, .11),
    0 1px 0 rgba(255, 255, 255, .9) inset;
}

.register-card-head h2 {
  margin: 0;
  color: #07111f;
  font-size: clamp(1.55rem, 2.35vw, 1.95rem);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: 0;
}

.register-card-head p {
  margin: 0;
  color: #536174;
  font-size: .96rem;
  line-height: 1.56;
}

.register-lead-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.register-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.register-field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.register-field span {
  color: #475569;
  font-size: .8rem;
  font-weight: 600;
}

.register-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #d7dde7;
  border-radius: 11px;
  color: #07111f;
  background: #fbfcfe;
  font: inherit;
  font-weight: 450;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.register-field input::placeholder {
  color: #9aa4b2;
}

.register-field input:focus {
  border-color: rgba(245, 161, 26, .86);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 161, 26, .16);
}

.register-field em {
  color: #b42318;
  font-size: .78rem;
  font-style: normal;
  line-height: 1.3;
}

.register-field .errorlist,
.register-lead-form .errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #b42318;
  font-size: .78rem;
  line-height: 1.35;
}

.register-password-errors {
  display: grid;
  gap: 4px;
  margin-top: -2px;
  padding: 9px 11px;
  border: 1px solid rgba(180, 35, 24, .16);
  border-radius: 10px;
  color: #9f1d1d;
  background: rgba(255, 241, 241, .62);
  font-size: .78rem;
  line-height: 1.35;
}

.register-form .register-password-errors .errorlist,
.register-password-errors .errorlist {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  list-style: none;
  color: inherit;
}

.register-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.register-code-panel {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(245, 161, 26, .28);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff9ec 0%, #fff 100%);
}

.register-code-panel span {
  color: #a36600;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.register-code-panel strong {
  color: #07111f;
  font-size: 1.25rem;
  font-weight: 650;
}

.register-code-panel p {
  margin: 0;
  color: #536174;
  font-size: .92rem;
  line-height: 1.48;
}

.register-oauth-summary {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 12px;
  background: #f4fbf8;
}

.register-oauth-summary span {
  color: #0f766e;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.register-oauth-summary strong {
  color: #07111f;
  font-size: .98rem;
  font-weight: 900;
}

.register-oauth-summary p {
  margin: 0;
  color: #536174;
  font-size: .84rem;
  line-height: 1.42;
}

.oauth-complete-card {
  max-width: 430px;
}

.oauth-complete-form {
  gap: 10px;
}

.oauth-data-chip {
  display: grid;
  gap: 5px;
  padding: 11px 13px;
  border: 1px solid rgba(18, 36, 70, .08);
  border-radius: 11px;
  background: #fbfcfe;
}

.oauth-data-chip span {
  color: #64748b;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.oauth-data-chip strong {
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: .96rem;
  font-weight: 600;
}

.register-code-field input {
  text-align: center;
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: .16em;
}

.register-link-button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #9a5b00;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.register-link-button:hover,
.register-link-button:focus-visible {
  color: #07111f;
}

.register-oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 0;
  color: #7b8798;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.register-oauth-divider::before,
.register-oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(18, 36, 70, .1);
}

.register-social-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.register-social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #d7dde7;
  border-radius: 12px;
  color: #07111f;
  background: #fbfcfe;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.register-social-button span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}

.register-social-button strong {
  font-size: .92rem;
  line-height: 1;
}

.register-social-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(245, 161, 26, .38);
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 43, 59, .1);
}

.register-social-button:disabled {
  cursor: not-allowed;
  opacity: .5;
  box-shadow: none;
}

.yandex-social span {
  background: #fc3f1d;
}

.vk-social span {
  background: #0077ff;
}

.register-provider-actions .button {
  min-height: 62px;
  width: 100%;
  justify-content: flex-start;
  padding: 0 18px;
  border: 1px solid rgba(245, 161, 26, .34);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffbd3e 0%, #f59f1a 100%);
  color: #07111f;
  box-shadow: 0 14px 28px rgba(245, 161, 26, .2);
}

.register-provider-actions {
  grid-template-columns: 1fr;
  margin: 22px 0 12px;
}

.register-provider-actions .provider-button span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: #fc3f1d;
  font-size: 1rem;
}

.register-provider-actions .provider-button strong {
  font-size: 1rem;
  line-height: 1.2;
}

.register-provider-actions .provider-button:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 161, 26, .65);
  background: linear-gradient(180deg, #ffc95d 0%, #f5a020 100%);
  box-shadow: 0 20px 42px rgba(245, 161, 26, .32);
}

.register-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.register-form p {
  margin: 0;
}

.register-form label {
  display: block;
  margin-bottom: 6px;
  color: #172033;
  font-size: .86rem;
  font-weight: 600;
}

.register-form input:not([type="checkbox"]),
.register-form select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(18, 36, 70, .14);
  border-radius: 10px;
  color: #07111f;
  background: rgba(255, 255, 255, .96);
  font: inherit;
  outline: none;
}

.register-form input:focus,
.register-form select:focus {
  border-color: rgba(245, 161, 26, .86);
  box-shadow: 0 0 0 4px rgba(245, 161, 26, .14);
}

.register-form .helptext {
  display: block;
  margin-top: 5px;
  color: #7a8798;
  font-size: .78rem;
  line-height: 1.35;
}

.register-form ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #667085;
  font-size: .78rem;
  line-height: 1.35;
}

.register-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -2px;
  accent-color: #f59f1a;
}

.register-form .errorlist {
  margin: 6px 0 0;
  padding: 8px 10px;
  border-radius: 9px;
  color: #9f1d1d;
  background: #fff1f1;
  list-style: none;
}

.register-form button[type="submit"] {
  width: 100%;
}

.phone-register-details {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(18, 36, 70, .1);
  border-radius: 12px;
  background: rgba(248, 250, 252, .82);
}

.phone-register-details summary {
  cursor: pointer;
  color: #07111f;
  font-weight: 900;
}

.phone-register-details > p {
  margin: 12px 0 0;
  color: #667085;
  font-size: .9rem;
  line-height: 1.5;
}

.register-secondary-action {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  margin-top: 16px;
  border: 1px solid rgba(18, 36, 70, .12);
  border-radius: 12px;
  color: #172033;
  background: #fff;
  font-weight: 900;
}

.register-secondary-action:hover {
  border-color: rgba(245, 161, 26, .38);
  background: #fffaf0;
  color: #07111f;
}

.phone-register-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.phone-register-modal[hidden] {
  display: none;
}

.phone-register-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 17, 31, .58);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.phone-register-dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 32px;
  border: 1px solid rgba(18, 36, 70, .14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(7, 17, 31, .28);
}

.phone-register-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(18, 36, 70, .12);
  border-radius: 12px;
  color: #172033;
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.phone-register-head {
  padding-right: 34px;
  margin-bottom: 22px;
}

.phone-register-head span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #a36600;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.phone-register-head h2 {
  margin: 0 0 10px;
  color: #07111f;
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  line-height: 1.08;
}

.phone-register-head p {
  margin: 0;
  color: #5d697a;
  font-size: .95rem;
  line-height: 1.52;
}

.compact-register-form {
  gap: 14px;
  margin-top: 0;
}

.compact-form-grid {
  display: grid;
  gap: 12px;
}

.compact-form-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.compact-field > span {
  color: #263244;
  font-size: .82rem;
  font-weight: 850;
}

.compact-field input,
.compact-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(18, 36, 70, .14);
  border-radius: 12px;
  color: #07111f;
  background: #fff;
  font: inherit;
  outline: none;
}

.compact-field input:focus,
.compact-field select:focus {
  border-color: rgba(245, 161, 26, .86);
  box-shadow: 0 0 0 4px rgba(245, 161, 26, .14);
}

.compact-consents {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(18, 36, 70, .1);
  border-radius: 14px;
  background: #f8fafc;
}

.compact-consents label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  color: #526174;
  font-size: .86rem;
  line-height: 1.42;
}

.compact-consents input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: #f59f1a;
}

.compact-consents button {
  padding: 0;
  border: 0;
  color: #8a5a00;
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-decoration: underline;
  cursor: pointer;
}

.compact-submit {
  min-height: 50px;
  margin-top: 2px;
  border-radius: 12px;
  font-weight: 900;
}

body.phone-register-modal-open {
  overflow: hidden;
}

.register-status-box {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(18, 36, 70, .1);
  border-radius: 12px;
  background: #f8fafc;
}

.register-status-box strong {
  display: block;
  margin-bottom: 7px;
  color: #101820;
  font-size: .95rem;
}

.register-status-box p {
  margin: 0;
  color: #536174;
  font-size: .94rem;
  line-height: 1.52;
}

.register-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.register-actions .button {
  min-height: 46px;
}

.register-page-shell .button.primary,
.register-page-shell button.primary {
  background: #f5a020;
  color: #07111f;
  box-shadow: 0 12px 24px rgba(245, 160, 32, .2);
}

.register-page-shell .button.primary:hover,
.register-page-shell button.primary:hover {
  background: #e8910d;
  color: #07111f;
}

.register-page-shell .button.secondary {
  border-color: rgba(18, 36, 70, .14);
  background: #fff;
  color: #0d1b2a;
}

.register-page-shell .button.secondary:hover {
  border-color: rgba(245, 160, 32, .45);
  color: #07111f;
}

.register-switch {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(18, 36, 70, .08);
  color: #667085;
  font-size: .88rem;
}

.register-switch a {
  color: #9a5b00;
  font-weight: 650;
}

.register-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  min-height: 48px;
  padding: 10px 24px;
  border-top: 1px solid rgba(18, 36, 70, .1);
  color: #667085;
  background: rgba(255, 255, 255, .66);
  font-size: .86rem;
}

.register-footer a,
.register-footer button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #39475a;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.register-footer button:hover,
.register-footer button:focus-visible {
  color: #9a5b00;
}

.register-page-shell .section-label {
  display: inline-flex;
  color: #a36600;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.register-page-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.register-page-shell .btn-lg {
  min-height: 48px;
  padding: 14px 26px;
}

.register-page-shell .btn-orange {
  background: #f5a020;
  color: #07111f;
  box-shadow: 0 18px 36px rgba(245, 160, 32, .22);
}

.register-page-shell .btn-orange:hover {
  transform: translateY(-1px);
  background: #e8910d;
}

.product-inquiry-modal,
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
}

.product-inquiry-modal {
  display: grid;
  align-items: start;
  justify-items: center;
  overflow: auto;
  padding: 54px 20px;
}

.product-inquiry-modal.is-hidden,
.legal-modal[hidden] {
  display: none;
}

.product-inquiry-backdrop,
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 160, 32, .18), transparent 34%),
    rgba(7, 17, 31, .66);
  backdrop-filter: blur(7px);
}

.product-inquiry-dialog,
.legal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  border: 1px solid rgba(18, 36, 70, .14);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow: 0 28px 90px rgba(7, 17, 31, .38);
}

.product-inquiry-dialog {
  padding: 30px;
}

.product-inquiry-close,
.legal-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(18, 36, 70, .14);
  border-radius: 10px;
  background: #f8fafc;
  color: #07111f;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.product-inquiry-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.product-inquiry-dialog h2 {
  margin: 8px 42px 10px 0;
  color: #07111f;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.15;
}

.product-inquiry-dialog p,
.product-inquiry-success p {
  margin: 0 0 20px;
  color: #536174;
  line-height: 1.62;
}

.product-inquiry-form p {
  margin: 0 0 15px;
}

.product-inquiry-form label {
  display: block;
  margin-bottom: 7px;
  color: #07111f;
  font-size: .82rem;
  font-weight: 850;
}

.product-inquiry-form input,
.product-inquiry-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 36, 70, .14);
  border-radius: 10px;
  background: #fff;
  color: #07111f;
  font: inherit;
  outline: none;
}

.product-inquiry-form textarea {
  min-height: 118px;
  resize: vertical;
}

.product-inquiry-form input:focus,
.product-inquiry-form textarea:focus {
  border-color: rgba(245, 160, 32, .75);
  box-shadow: 0 0 0 4px rgba(245, 160, 32, .14);
}

.product-inquiry-form input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  accent-color: #f5a020;
}

.product-inquiry-form .errorlist {
  margin: 7px 0 0;
  padding: 0;
  color: #b42318;
  font-size: .78rem;
  font-weight: 800;
  list-style: none;
}

.product-inquiry-form .btn {
  width: 100%;
}

.product-inquiry-success {
  padding: 24px 0 4px;
}

.product-inquiry-success > span {
  color: #a36600;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-modal {
  display: grid;
  place-items: center;
  padding: 28px;
}

.legal-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(920px, 100%);
  max-height: min(82vh, 760px);
  overflow: hidden;
}

.legal-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(18, 36, 70, .1);
}

.legal-dialog-head h2 {
  margin: 8px 0 0;
  color: #07111f;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.legal-dialog-body {
  overflow: auto;
  padding: 24px 32px 32px;
  color: #536174;
  font-size: .95rem;
  line-height: 1.7;
}

.legal-dialog-body h3 {
  margin: 22px 0 8px;
  color: #07111f;
  font-size: 1rem;
}

.legal-dialog-body p {
  margin: 0 0 12px;
}

.legal-note {
  padding: 14px 16px;
  border: 1px solid rgba(245, 160, 32, .28);
  border-radius: 10px;
  background: #fff8e8;
}

body.product-modal-open,
body.legal-modal-open {
  overflow: hidden;
}

.login-public-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 16%, rgba(245, 161, 26, .08), transparent 28%),
    radial-gradient(circle at 82% 44%, rgba(11, 35, 64, .08), transparent 34%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  color: #0d1b2a;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.login-main {
  width: min(100% - 44px, 1120px);
  margin: 0 auto;
  padding: clamp(20px, 2.8vw, 34px) 0 clamp(20px, 3vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(390px, 440px);
  gap: clamp(36px, 5vw, 74px);
  align-items: center;
}

.login-copy {
  max-width: 620px;
}

.login-copy h1 {
  margin: 0;
  color: #07111f;
  font-size: clamp(2.1rem, 3.15vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.login-copy p {
  max-width: 570px;
  margin: 18px 0 0;
  color: #465466;
  font-size: clamp(.98rem, 1.18vw, 1.08rem);
  line-height: 1.58;
}

.login-card {
  padding: clamp(24px, 2.7vw, 30px);
  border: 1px solid rgba(18, 36, 70, .1);
  border-top: 3px solid rgba(245, 161, 26, .82);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow:
    0 24px 70px rgba(31, 43, 59, .13),
    0 1px 0 rgba(255, 255, 255, .9) inset;
}

.login-card-head span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #a36600;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.login-card-head h2 {
  margin: 0;
  color: #07111f;
  font-size: clamp(1.75rem, 2.7vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.login-card-head p {
  margin: 0 0 24px;
  color: #536174;
  line-height: 1.62;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-field label {
  display: block;
  margin-bottom: 6px;
  color: #344054;
  font-size: .8rem;
  font-weight: 850;
}

.login-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #d7dde7;
  border-radius: 12px;
  background: #fbfcfe;
  color: #07111f;
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.login-field input:focus {
  border-color: rgba(245, 160, 32, .86);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 160, 32, .16);
}

.login-field input.is-invalid {
  border-color: rgba(180, 35, 24, .72);
  background: #fffafa;
}

.login-field input.is-invalid:focus {
  border-color: rgba(180, 35, 24, .84);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .12);
}

.login-field-note {
  display: block;
  margin-top: 6px;
  color: #b42318;
  font-size: .74rem;
  font-weight: 520;
  line-height: 1.35;
}

.login-field-note[hidden] {
  display: none;
}

.login-form-errors,
.login-field .errorlist {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(180, 35, 24, .18);
  border-radius: 10px;
  background: #fff4f3;
  color: #b42318;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.45;
  list-style: none;
}

.login-field .errorlist {
  margin-top: 8px;
  margin-bottom: 0;
}

.auth-status-messages {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.auth-status-message {
  padding: 11px 13px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.42;
}

.auth-status-message.success {
  border-color: rgba(15, 118, 110, .2);
  background: #ecfdf5;
  color: #0f766e;
}

.auth-status-message.error {
  border-color: rgba(180, 35, 24, .18);
  background: #fff4f3;
  color: #b42318;
}

.auth-status-message.info {
  border-color: rgba(245, 160, 32, .28);
  background: #fff8eb;
  color: #8a5a08;
}

.login-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
  border-radius: 12px;
  font-weight: 900;
}

.login-page-shell .button.primary,
.login-page-shell button.primary {
  background: #f5a020;
  color: #07111f;
  box-shadow: 0 18px 36px rgba(245, 160, 32, .22);
}

.login-page-shell .button.primary:hover,
.login-page-shell button.primary:hover {
  background: #e8910d;
  color: #07111f;
}

.login-card-foot {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(18, 36, 70, .08);
  color: #667085;
  font-size: .88rem;
  line-height: 1.5;
}

.login-social-row {
  margin-top: 22px;
  margin-bottom: 12px;
}

.login-card-foot a {
  color: #9a5b00;
  font-weight: 850;
}

@media (max-width: 860px) {
  .login-main {
    width: min(100% - 32px, 620px);
    grid-template-columns: 1fr;
    padding: 42px 0 56px;
  }

  .login-copy h1 {
    font-size: clamp(2.6rem, 10vw, 3.5rem);
  }
}

.phone-verification-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 161, 26, .35);
  border-radius: 14px;
  background: #fff8e8;
  color: #132238;
}

.phone-verification-banner strong {
  font-size: .95rem;
}

.phone-verification-banner span {
  flex: 1;
  color: #596579;
  font-size: .88rem;
}

.phone-verification-banner a {
  color: #9a5b00;
  font-weight: 850;
}

@media (max-width: 720px) {
  .settings-consent-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-provider-actions {
    grid-template-columns: 1fr;
  }

  .register-proof-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .register-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .register-nav {
    width: 100%;
    justify-content: space-between;
  }

  .register-main {
    width: min(100% - 32px, 620px);
    grid-template-columns: 1fr;
    padding: 42px 0;
  }

  .register-proof-grid,
  .register-actions {
    grid-template-columns: 1fr;
  }

  .register-field-row,
  .register-social-row {
    grid-template-columns: 1fr;
  }

  .register-card {
    padding: 24px;
  }

  .register-proof-grid div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .phone-verification-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Public auth mobile hardening */
.register-public-page,
.login-public-page {
  overflow-x: hidden;
}

.register-logo img {
  display: block;
  width: min(176px, 44vw);
  height: auto;
}

.register-card,
.login-card {
  width: min(100%, 440px);
  max-width: calc(100vw - 28px);
}

.register-field input,
.login-field input,
.register-social-button,
.register-submit,
.login-submit,
.register-home-button {
  min-height: 44px;
}

.register-password-errors,
.login-form-errors,
.auth-status-message {
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .register-page-shell,
  .login-page-shell {
    min-height: 100svh;
  }

  .register-header {
    min-height: 72px;
    padding-inline: clamp(16px, 4vw, 28px);
  }

  .register-main,
  .login-main {
    width: min(100%, 560px);
    min-height: auto;
    margin-inline: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 34px 14px 28px;
  }

  .register-copy,
  .login-copy {
    max-width: 100%;
    text-align: left;
  }

  .register-copy h1,
  .login-copy h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.08;
  }

  .register-copy p,
  .login-copy p,
  .auth-side-list {
    font-size: 1rem;
  }

  .register-card,
  .login-card {
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .register-main,
  .login-main {
    padding-top: 24px;
  }

  .register-copy h1,
  .login-copy h1 {
    font-size: clamp(1.9rem, 10vw, 2.45rem);
  }

  .register-card,
  .login-card {
    border-radius: 18px;
    padding: 24px 18px;
  }

  .register-field-row,
  .register-social-row,
  .login-social-row {
    grid-template-columns: 1fr;
  }

  .register-field input,
  .login-field input {
    width: 100%;
  }

  .register-footer {
    padding-inline: 16px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .legal-modal {
    padding: 12px;
  }

  .legal-dialog {
    width: min(100%, 680px);
    max-height: min(88svh, 760px);
    border-radius: 16px;
  }

  .legal-dialog-head {
    padding: 20px 18px 14px;
  }

  .legal-dialog-body {
    padding: 18px;
  }
}
