:root {
  --next-bg: #f7faff;
  --next-surface: #ffffff;
  --next-surface-soft: #f1f6ff;
  --next-border: #dfe8f6;
  --next-border-strong: #c8d6ea;
  --next-text: #0f172a;
  --next-muted: #64748b;
  --next-soft: #94a3b8;
  --next-blue: #2563eb;
  --next-blue-soft: #eaf2ff;
  --next-blue-2: #60a5fa;
  --next-green: #10b981;
  --next-green-soft: #e9fbf4;
  --next-amber: #f59e0b;
  --next-amber-soft: #fff7df;
  --next-violet: #8b5cf6;
  --next-violet-soft: #f2edff;
  --next-radius-lg: 28px;
  --next-radius-md: 20px;
  --next-radius-sm: 14px;
  --next-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  --next-shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.06);
  --next-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body.next-ui {
  margin: 0;
  min-height: 100vh;
  color: var(--next-text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.09), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--next-bg) 100%);
  font-family: var(--next-font);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

body.next-ui a {
  color: inherit;
  text-decoration: none;
}

.next-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.next-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 232, 246, 0.72);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.next-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.next-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: fit-content;
}

.next-logo img {
  width: 132px;
  max-width: 34vw;
  height: auto;
  display: block;
}

.next-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #334155;
  font-size: 13px;
}

.next-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.next-button,
.next-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  font: 500 14px/1 var(--next-font);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.next-button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.2);
}

.next-button.secondary,
.next-link-button {
  color: #1e293b;
  border-color: var(--next-border);
  background: rgba(255, 255, 255, 0.86);
}

.next-button.ghost {
  color: #2563eb;
  background: var(--next-blue-soft);
}

.next-hero {
  padding: 86px 0 54px;
}

.next-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: 48px;
}

.next-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 22px;
  border: 1px solid var(--next-border);
  border-radius: 999px;
  padding: 7px 12px;
  color: #1d4ed8;
  background: rgba(234, 242, 255, 0.72);
  font-size: 12px;
  font-weight: 500;
}

.next-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--next-blue);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.11);
}

.next-h1,
.next-h2 {
  margin: 0;
  color: var(--next-text);
  letter-spacing: -0.055em;
}

.next-h1 {
  max-width: 660px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 650;
}

.next-h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  font-weight: 640;
}

.next-lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.75;
}

.next-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.next-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  color: var(--next-muted);
  font-size: 12px;
}

.next-trust span {
  border: 1px solid var(--next-border);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.7);
}

.next-app-frame {
  position: relative;
  border: 1px solid var(--next-border);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--next-shadow);
}

.next-app-grid {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  min-height: 520px;
}

.next-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--next-border);
  padding: 22px 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.next-sidebar-mark {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: url("/assets/brand/new/cubrox-symbol-512.png") center / cover no-repeat;
}

.next-side-item {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 12px;
  padding: 10px;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
}

.next-side-item.active {
  color: var(--next-blue);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
}

.next-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.9;
}

.next-preview-main {
  min-width: 0;
  padding: 24px;
}

.next-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.next-preview-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.next-filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--next-border);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--next-muted);
  background: #ffffff;
  font-size: 12px;
}

.next-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.next-metric {
  min-width: 0;
  border: 1px solid var(--next-border);
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--next-shadow-soft);
}

.next-metric span {
  display: block;
  color: var(--next-muted);
  font-size: 11px;
}

.next-metric strong {
  display: block;
  margin-top: 7px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.next-metric em {
  display: block;
  margin-top: 6px;
  color: var(--next-green);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.next-preview-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(230px, 0.85fr);
  gap: 14px;
}

.next-panel {
  border: 1px solid var(--next-border);
  border-radius: 22px;
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--next-shadow-soft);
}

.next-panel-title {
  margin: 0 0 16px;
  color: var(--next-text);
  font-size: 14px;
  font-weight: 600;
}

.next-chart {
  position: relative;
  height: 218px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0)),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(148, 163, 184, 0.14) 43px);
  overflow: hidden;
}

.next-chart svg,
.next-mini-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.next-donut-wrap {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 18px;
}

.next-donut {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: conic-gradient(#2563eb 0 42%, #60a5fa 42% 66%, #93c5fd 66% 82%, #dbeafe 82% 100%);
  display: grid;
  place-items: center;
}

.next-donut::before {
  content: "$664k";
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  color: var(--next-text);
  background: #ffffff;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.next-legend {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--next-muted);
  font-size: 12px;
}

.next-legend li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.next-legend b {
  color: var(--next-text);
  font-weight: 500;
}

.next-swatch {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--swatch, var(--next-blue));
  flex: 0 0 auto;
}

.next-section {
  padding: 64px 0;
}

.next-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 24px;
}

.next-section-head p {
  max-width: 520px;
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

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

.next-feature-card,
.next-plan,
.next-auth-card,
.next-video-card {
  border: 1px solid var(--next-border);
  border-radius: var(--next-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--next-shadow-soft);
}

.next-feature-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  padding: 24px;
}

.next-feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: var(--next-blue);
  background: var(--next-blue-soft);
  font-size: 19px;
}

.next-feature-card h3,
.next-plan h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.next-feature-card p,
.next-plan p {
  margin: 0;
  color: var(--next-muted);
  line-height: 1.65;
}

.next-mini-visual {
  margin-top: auto;
  border: 1px solid var(--next-border);
  border-radius: 20px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.next-fast-quote {
  display: grid;
  gap: 9px;
}

.next-fast-line {
  border-radius: 12px;
  padding: 10px 12px;
  color: #334155;
  background: #f1f6ff;
  font-size: 12px;
}

.next-fast-line.result {
  color: #1d4ed8;
  background: #eaf2ff;
  font-weight: 500;
}

.next-3d-box {
  position: relative;
  height: 150px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.11), rgba(96, 165, 250, 0.04)),
    #ffffff;
  overflow: hidden;
}

.next-container-wire {
  position: absolute;
  inset: 28px 20px 22px;
  border: 2px solid #bfd4f5;
  border-radius: 10px;
  transform: skewY(-7deg);
}

.next-cargo {
  position: absolute;
  width: 44px;
  height: 34px;
  border-radius: 8px;
  background: #93c5fd;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.next-cargo.one { left: 52px; top: 74px; }
.next-cargo.two { left: 98px; top: 68px; background: #bfdbfe; }
.next-cargo.three { left: 144px; top: 62px; background: #60a5fa; }

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

.next-bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 44px;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 12px;
}

.next-bar {
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.next-bar span {
  display: block;
  height: 100%;
  width: var(--value, 60%);
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.next-video-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
}

.next-video-frame {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--next-border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 72% 28%, rgba(96, 165, 250, 0.22), transparent 12rem),
    linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
  overflow: hidden;
}

.next-play {
  position: absolute;
  inset: 50%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--next-blue);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.3);
  font-size: 22px;
}

.next-video-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  border: 1px solid rgba(223, 232, 246, 0.85);
  border-radius: 18px;
  padding: 14px;
  color: #475569;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
}

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

.next-plan {
  padding: 24px;
}

.next-plan.featured {
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: 0 26px 70px rgba(37, 99, 235, 0.12);
}

.next-price {
  display: flex;
  align-items: end;
  gap: 7px;
  margin: 22px 0;
  font-size: 38px;
  font-weight: 650;
  letter-spacing: -0.05em;
}

.next-price small {
  padding-bottom: 7px;
  color: var(--next-muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.next-checks {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: #475569;
  font-size: 13px;
}

.next-checks li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--next-green);
  font-weight: 600;
}

.next-cta {
  margin: 70px 0;
  border: 1px solid var(--next-border);
  border-radius: 34px;
  padding: clamp(32px, 6vw, 56px);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 22rem),
    #ffffff;
  box-shadow: var(--next-shadow);
}

.next-cta-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.next-footer {
  border-top: 1px solid var(--next-border);
  padding: 34px 0 44px;
  color: var(--next-muted);
  background: rgba(255, 255, 255, 0.58);
}

.next-footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.next-auth-body {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 32px 16px;
  background: #f7f9fc;
}

.next-auth-layout {
  display: block;
  width: min(560px, calc(100vw - 32px));
  overflow: visible;
  border: 1px solid #d9e1ee;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 54px rgba(15, 31, 58, 0.1);
}

.next-auth-card {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 28px;
  padding: 52px;
  box-shadow: none;
}

.next-auth-body.auth-page--login .next-auth-card {
  padding-top: 44px;
  padding-bottom: 44px;
}

.auth-card,
.auth-register-form,
.auth-register-card {
  display: grid;
  width: 100%;
}

.auth-card,
.auth-register-card {
  gap: 0;
  justify-items: stretch;
}

.auth-logo,
.auth-register-logo {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  margin: 0 0 34px;
  text-decoration: none;
}

.auth-logo img,
.auth-register-logo img {
  display: block;
  width: 196px;
  max-width: min(72vw, 210px);
  height: auto;
}

.auth-heading,
.auth-register-heading {
  display: grid;
  gap: 10px;
  margin: 0 0 34px;
  text-align: center;
}

.auth-heading h2,
.auth-register-heading h2 {
  margin: 0;
  color: #071836;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-heading p,
.auth-register-heading p {
  margin: 0;
  color: #5f6b80;
  font-size: 18px;
  line-height: 1.45;
}

.auth-oauth,
.auth-register-oauth,
.auth-register-actions {
  display: grid;
  gap: 14px;
}

.auth-oauth-button,
.auth-register-oauth-button {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  padding: 0 20px;
  color: #0b1730;
  background: #ffffff;
  font: 600 16px/1 var(--next-font);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.auth-oauth-button:hover,
.auth-register-oauth-button:hover {
  border-color: #b8c5d8;
  background: #f9fbff;
  transform: translateY(-1px);
}

.auth-oauth-button:disabled,
.auth-register-oauth-button:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.auth-oauth-button[aria-busy="true"],
.auth-register-oauth-button[aria-busy="true"] {
  background: #f6f8fb;
}

.auth-oauth-icon,
.auth-register-oauth-icon {
  display: block;
  width: 24px;
  height: 24px;
  justify-self: center;
}

.auth-oauth-label,
.auth-register-oauth-label {
  justify-self: center;
  text-align: center;
}

.auth-divider,
.auth-register-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 28px 0;
  color: #526079;
  font-size: 14px;
  line-height: 1;
}

.auth-divider::before,
.auth-divider::after,
.auth-register-divider::before,
.auth-register-divider::after {
  content: "";
  height: 1px;
  background: #dce3ee;
}

.auth-divider span,
.auth-register-divider span {
  min-width: 26px;
  text-align: center;
}

.auth-field,
.auth-register-field {
  display: grid;
  gap: 8px;
}

.auth-card--login .auth-field + .auth-field {
  margin-top: 16px;
}

.auth-label,
.auth-register-label {
  color: #101828;
  font: 500 16px/1.35 var(--next-font);
}

.auth-input-wrap,
.auth-register-input-wrap {
  position: relative;
  display: grid;
  align-items: center;
}

.auth-input-icon,
.auth-register-input-icon {
  position: absolute;
  left: 18px;
  width: 22px;
  height: 22px;
  color: #2563eb;
  pointer-events: none;
}

.auth-input,
.auth-register-input,
.next-input,
.next-select {
  width: 100%;
  min-height: 56px;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  padding: 0 18px 0 54px;
  color: #0b1730;
  background: #ffffff;
  font: 400 16px/1.35 var(--next-font);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.auth-input--password {
  padding-right: 54px;
}

.auth-input::placeholder,
.auth-register-input::placeholder {
  color: #8b96a8;
}

.auth-input:hover,
.auth-register-input:hover {
  border-color: #b8c5d8;
}

.auth-input:focus,
.auth-register-input:focus,
.next-input:focus,
.next-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.auth-password-toggle {
  position: absolute;
  right: 10px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  color: #526079;
  background: transparent;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.auth-password-toggle:hover {
  color: #1d4ed8;
  background: #eef4ff;
}

.auth-password-toggle svg {
  width: 21px;
  height: 21px;
}

.auth-login-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  color: #667085;
  font-size: 14px;
  line-height: 1.4;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.auth-login-meta a {
  color: #2563eb;
  text-decoration: none;
}

.auth-login-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-feedback {
  display: none;
  margin: 18px 0 0;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 14px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 14px;
  line-height: 1.45;
}

.auth-feedback.show {
  display: block;
}

.auth-feedback[data-type="error"] {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.auth-feedback[data-type="success"] {
  border-color: #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

.auth-primary-button,
.auth-register-submit,
.auth-register-secondary {
  display: inline-grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 12px;
  padding: 0 22px;
  font: 700 16px/1 var(--next-font);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.auth-primary-button,
.auth-register-submit {
  margin-top: 22px;
  color: #ffffff;
  background: #2563eb;
}

.auth-primary-button:hover,
.auth-register-submit:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.auth-primary-button:disabled,
.auth-register-submit:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.auth-primary-label,
.auth-register-submit-label {
  grid-column: 2;
  justify-self: center;
}

.auth-register-submit-arrow {
  grid-column: 3;
  justify-self: end;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.auth-register-submit[aria-busy="true"] .auth-register-submit-arrow {
  opacity: 0;
}

.auth-register-secondary {
  grid-template-columns: 1fr;
  border: 1px solid #d7dfeb;
  color: #0b1730;
  background: #ffffff;
}

.auth-register-secondary:hover {
  border-color: #b8c5d8;
  background: #f9fbff;
}

.auth-footer-link,
.auth-register-login-link {
  display: inline-flex;
  justify-self: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  border: 0;
  padding: 0;
  color: #0b1730;
  background: transparent;
  font: 500 16px/1.4 var(--next-font);
  text-align: center;
  cursor: pointer;
}

.auth-footer-link strong,
.auth-register-login-link strong {
  color: #2563eb;
  font-weight: 500;
}

.auth-footer-link:hover strong,
.auth-register-login-link:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-oauth-button:focus-visible,
.auth-register-oauth-button:focus-visible,
.auth-primary-button:focus-visible,
.auth-register-submit:focus-visible,
.auth-register-secondary:focus-visible,
.auth-footer-link:focus-visible,
.auth-register-login-link:focus-visible,
.auth-legal a:focus-visible,
.auth-register-legal a:focus-visible,
.auth-login-meta a:focus-visible,
.auth-password-toggle:focus-visible,
.auth-check input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.26);
  outline-offset: 3px;
}

.next-toast {
  position: fixed;
  left: 50%;
  top: 26px;
  z-index: 60;
  transform: translate(-50%, -16px);
  min-width: min(460px, calc(100vw - 32px));
  border: 1px solid var(--next-border);
  border-radius: 16px;
  padding: 14px 18px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--next-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.next-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.next-toast.success { border-color: #bbf7d0; background: #f0fdf4; }
.next-toast.error { border-color: #fecaca; background: #fef2f2; }
.next-toast.info { border-color: #bfdbfe; background: #eff6ff; }

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

.next-auth-body.auth-page--register {
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 32px 16px;
  background: #f7f9fc;
}

.next-auth-body.auth-page--register .next-auth-layout {
  display: block;
  width: min(560px, calc(100vw - 32px));
  overflow: visible;
  border: 1px solid #d9e1ee;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 54px rgba(15, 31, 58, 0.1);
}

.next-auth-body.auth-page--register #next-login-form {
  display: none;
}

.next-auth-body.auth-page--register .next-auth-card {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 28px;
  padding: 52px;
  box-shadow: none;
}

.auth-register-form,
.auth-register-card {
  display: grid;
  width: 100%;
}

.auth-register-card {
  gap: 0;
  justify-items: stretch;
}

.auth-register-logo {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  margin: 0 0 34px;
  text-decoration: none;
}

.auth-register-logo img {
  display: block;
  width: 196px;
  max-width: min(72vw, 210px);
  height: auto;
}

.auth-register-heading {
  display: grid;
  gap: 10px;
  margin: 0 0 34px;
  text-align: center;
}

.auth-register-heading h2 {
  margin: 0;
  color: #071836;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-register-heading p {
  margin: 0;
  color: #5f6b80;
  font-size: 18px;
  line-height: 1.45;
}

.auth-register-oauth,
.auth-register-actions {
  display: grid;
  gap: 14px;
}

.auth-register-oauth-button {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  padding: 0 20px;
  color: #0b1730;
  background: #ffffff;
  font: 600 16px/1 var(--next-font);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.auth-register-oauth-button:hover {
  border-color: #b8c5d8;
  background: #f9fbff;
  transform: translateY(-1px);
}

.auth-register-oauth-button:focus-visible,
.auth-register-submit:focus-visible,
.auth-register-secondary:focus-visible,
.auth-register-login-link:focus-visible,
.auth-register-legal a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.26);
  outline-offset: 3px;
}

.auth-register-oauth-button:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.auth-register-oauth-button[aria-busy="true"] {
  background: #f6f8fb;
}

.auth-register-oauth-icon {
  display: block;
  width: 24px;
  height: 24px;
  justify-self: center;
}

.auth-register-oauth-label {
  justify-self: center;
  text-align: center;
}

.auth-register-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 28px 0;
  color: #526079;
  font-size: 14px;
  line-height: 1;
}

.auth-register-divider::before,
.auth-register-divider::after {
  content: "";
  height: 1px;
  background: #dce3ee;
}

.auth-register-divider span {
  min-width: 26px;
  text-align: center;
}

.auth-register-field {
  display: grid;
  gap: 8px;
}

.auth-register-label {
  color: #101828;
  font: 500 16px/1.35 var(--next-font);
}

.auth-register-input-wrap {
  position: relative;
  display: grid;
  align-items: center;
}

.auth-register-input-icon {
  position: absolute;
  left: 18px;
  width: 22px;
  height: 22px;
  color: #2563eb;
  pointer-events: none;
}

.auth-register-input {
  width: 100%;
  min-height: 56px;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  padding: 0 18px 0 54px;
  color: #0b1730;
  background: #ffffff;
  font: 400 16px/1.35 var(--next-font);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.auth-register-input::placeholder {
  color: #8b96a8;
}

.auth-register-input:hover {
  border-color: #b8c5d8;
}

.auth-register-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.auth-register-submit,
.auth-register-secondary {
  display: inline-grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 12px;
  padding: 0 22px;
  font: 700 16px/1 var(--next-font);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.auth-register-submit {
  margin-top: 22px;
  color: #ffffff;
  background: #2563eb;
}

.auth-register-submit:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.auth-register-submit:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.auth-register-submit-label {
  grid-column: 2;
  justify-self: center;
}

.auth-register-submit-arrow {
  grid-column: 3;
  justify-self: end;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.auth-register-submit[aria-busy="true"] .auth-register-submit-arrow {
  opacity: 0;
}

.auth-register-secondary {
  grid-template-columns: 1fr;
  border: 1px solid #d7dfeb;
  color: #0b1730;
  background: #ffffff;
}

.auth-register-secondary:hover {
  border-color: #b8c5d8;
  background: #f9fbff;
}

.auth-register-legal {
  margin: 24px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.auth-register-legal a {
  color: #2563eb;
  text-decoration: none;
}

.auth-register-legal a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-register-login-link {
  display: inline-flex;
  justify-self: center;
  gap: 8px;
  margin-top: 30px;
  border: 0;
  padding: 0;
  color: #0b1730;
  background: transparent;
  font: 500 16px/1.4 var(--next-font);
  text-align: center;
  cursor: pointer;
}

.auth-register-login-link strong {
  color: #2563eb;
  font-weight: 500;
}

.auth-register-login-link:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1040px) {
  .next-hero-grid,
  .next-video-card,
  .next-auth-layout {
    grid-template-columns: 1fr;
  }

  .next-auth-card {
    width: min(560px, calc(100% - 40px));
    margin: 34px auto;
  }

}

@media (max-width: 860px) {
  .next-shell {
    width: min(100% - 28px, 1180px);
  }

  .next-links {
    display: none;
  }

  .next-hero {
    padding-top: 54px;
  }

  .next-app-grid,
  .next-preview-panels,
  .next-feature-grid,
  .next-pricing-grid {
    grid-template-columns: 1fr;
  }

  .next-sidebar {
    display: none;
  }

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

  .next-section-head,
  .next-cta-grid,
  .next-footer-grid {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .next-actions .next-button.secondary {
    display: none;
  }

  .next-preview-main,
  .next-feature-card,
  .next-video-card,
  .next-plan,
  .next-auth-card {
    padding: 20px;
  }

  .next-metric-grid,
  .next-donut-wrap,
  .next-form-row {
    grid-template-columns: 1fr;
  }

  .next-donut {
    margin: 0 auto;
  }

  .next-auth-body.auth-page--register {
    padding: 18px;
    place-items: center;
  }

  .next-auth-body.auth-page--register .next-auth-layout {
    width: 100%;
    min-height: auto;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
  }

  .next-auth-body.auth-page--register .next-auth-card {
    padding: 26px 22px;
  }

  .auth-register-logo {
    margin-bottom: 26px;
  }

  .auth-register-logo img {
    width: 164px;
  }

  .auth-register-heading {
    margin-bottom: 28px;
  }

  .auth-register-heading h2 {
    font-size: 32px;
  }

  .auth-register-heading p {
    font-size: 16px;
  }

  .auth-register-oauth-button,
  .auth-register-input,
  .auth-register-submit,
  .auth-register-secondary {
    min-height: 54px;
  }

  .auth-register-oauth-button {
    padding: 0 16px;
    font-size: 15px;
  }

  .auth-register-divider {
    margin: 26px 0;
  }

  .auth-register-login-link {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 2px;
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  .next-auth-body.auth-page--login,
  .next-auth-body.auth-page--register {
    padding: 18px;
    place-items: center;
  }

  .next-auth-body.auth-page--login .next-auth-layout,
  .next-auth-body.auth-page--register .next-auth-layout {
    width: 100%;
    min-height: auto;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
  }

  .next-auth-body.auth-page--login .next-auth-card,
  .next-auth-body.auth-page--register .next-auth-card {
    padding: 26px 22px;
  }

  .auth-logo,
  .auth-register-logo {
    margin-bottom: 26px;
  }

  .auth-logo img,
  .auth-register-logo img {
    width: 164px;
  }

  .auth-heading,
  .auth-register-heading {
    margin-bottom: 28px;
  }

  .auth-heading h2,
  .auth-register-heading h2 {
    font-size: 32px;
  }

  .auth-heading p,
  .auth-register-heading p {
    font-size: 16px;
  }

  .auth-oauth-button,
  .auth-register-oauth-button,
  .auth-input,
  .auth-register-input,
  .auth-primary-button,
  .auth-register-submit,
  .auth-register-secondary {
    min-height: 54px;
  }

  .auth-oauth-button,
  .auth-register-oauth-button {
    padding: 0 16px;
    font-size: 15px;
  }

  .auth-divider,
  .auth-register-divider {
    margin: 26px 0;
  }

  .auth-login-meta {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .auth-footer-link,
  .auth-register-login-link {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 2px;
    font-size: 15px;
  }
}

.next-auth-body.auth-page--login,
.next-auth-body.auth-page--register {
  padding: 20px;
  background: #f8fafc;
  letter-spacing: 0;
}

.next-auth-body.auth-page--login .next-auth-layout,
.next-auth-body.auth-page--register .next-auth-layout {
  width: min(460px, calc(100vw - 32px));
  border-color: #dbe4f0;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(15, 31, 58, 0.09);
}

.next-auth-body.auth-page--login .next-auth-card,
.next-auth-body.auth-page--register .next-auth-card {
  padding: 28px;
  border-radius: 16px;
}

.auth-logo,
.auth-register-logo,
.auth-register-logo.compact {
  margin-bottom: 18px;
}

.auth-logo img,
.auth-register-logo img {
  width: 138px;
  max-width: min(62vw, 148px);
}

.auth-heading,
.auth-register-heading {
  gap: 7px;
  margin-bottom: 22px;
}

.auth-step {
  justify-self: center;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-heading h2,
.auth-register-heading h2 {
  font-size: 29px;
  line-height: 1.12;
  letter-spacing: 0;
}

.auth-heading p,
.auth-register-heading p {
  color: #526079;
  font-size: 14px;
  line-height: 1.5;
}

.auth-field,
.auth-register-field {
  gap: 7px;
}

.auth-card--login .auth-field + .auth-field {
  margin-top: 12px;
}

.auth-label,
.auth-register-label {
  font-size: 13px;
}

.auth-input,
.auth-register-input {
  min-height: 46px;
  border-radius: 8px;
  padding-left: 44px;
  font-size: 14px;
}

.auth-input-icon,
.auth-register-input-icon {
  left: 14px;
  width: 19px;
  height: 19px;
}

.auth-input--password {
  padding-right: 50px;
}

.auth-password-toggle {
  right: 6px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.auth-login-meta {
  margin-top: 12px;
  font-size: 12px;
}

.auth-feedback {
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
}

.auth-primary-button,
.auth-register-submit,
.auth-register-secondary {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 14px;
}

.auth-primary-button,
.auth-register-submit {
  margin-top: 16px;
}

.auth-footer-link,
.auth-register-login-link {
  margin-top: 18px;
  font-size: 13px;
}

.auth-register-legal {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.45;
}

.auth-divider,
.auth-register-divider,
.auth-divider--muted {
  gap: 12px;
  margin: 18px 0 12px;
  color: #7b8798;
  font-size: 11px;
}

.auth-oauth--secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-oauth--secondary .auth-oauth-button,
.auth-oauth--secondary .auth-register-oauth-button {
  grid-template-columns: 20px minmax(0, 1fr);
  min-height: 42px;
  border-radius: 8px;
  padding: 0 12px;
  color: #475569;
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.auth-oauth--secondary .auth-oauth-icon,
.auth-oauth--secondary .auth-register-oauth-icon {
  width: 18px;
  height: 18px;
}

.auth-oauth--secondary .auth-oauth-label,
.auth-oauth--secondary .auth-register-oauth-label {
  justify-self: start;
}

.auth-status-box {
  display: grid;
  gap: 5px;
  margin-bottom: 4px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 12px;
  color: #1e3a8a;
  background: #eff6ff;
  text-align: left;
}

.auth-status-box strong {
  font-size: 13px;
}

.auth-status-box span {
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.auth-register-actions {
  gap: 10px;
}

@media (max-width: 560px) {
  .next-auth-body.auth-page--login,
  .next-auth-body.auth-page--register {
    padding: 14px;
  }

  .next-auth-body.auth-page--login .next-auth-layout,
  .next-auth-body.auth-page--register .next-auth-layout {
    width: 100%;
    border-radius: 14px;
  }

  .next-auth-body.auth-page--login .next-auth-card,
  .next-auth-body.auth-page--register .next-auth-card {
    padding: 22px 18px;
  }

  .auth-heading h2,
  .auth-register-heading h2 {
    font-size: 26px;
  }

  .auth-oauth--secondary {
    grid-template-columns: 1fr;
  }
}
