:root {
  --brand-blue: #0296ff;
  --brand-blue-soft: #e3f3ff;
  --brand-text-main: #0f172a;
  --brand-text-muted: #6b7280;
  --brand-border-soft: #d0e2ff;
  --bg-page: #f5f7ff;

  /* aliases for convenience */
  --text-main: var(--brand-text-main);
  --text-muted: var(--brand-text-muted);
}

/* Global reset & base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
}

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

button {
  font: inherit;
}

/* Generic shell */

.shell {
  max-width: 1120px;
  margin: 0 auto;
}

/* Logo image size */
.brand-logo-img {
  height: 40px;      /* tweak to 32–48px as you like */
  width: auto;
  display: block;
}


/* Top bar / navbar (used on landing + can be reused elsewhere) */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 18px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-page);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
}

.brand-main {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-blue);
}

.brand-sub,
.brand-text-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.brand-text-main {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-blue);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--brand-border-soft);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  display: none;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.nav-dropdown-subtitle {
  margin: 6px 0 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.top-user {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.top-link {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.top-link:hover {
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
  border-color: #bfdbfe;
}

.top-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--brand-blue);
}

.top-login .icon {
  font-size: 13px;
  transform: translateY(0.5px);
}

/* Button base styles (colours overridden per-page) */

.btn-primary {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: none;
}

.btn-primary .chevron,
.btn-primary .icon {
  font-size: 15px;
  transform: translateY(0.5px);
}

.btn-secondary {
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* ============================================================
   Landing page (minimal, light theme)
   ============================================================ */

.page-landing {
  min-height: 100vh;
  padding: 32px 16px 56px;
}

.page-auth {
  min-height: 100vh;
  padding: 32px 16px 56px;
}

.shell-landing {
  /* .shell already sets max-width and centering */
}

/* Hero layout */

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  padding: 32px 4px 28px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(2, 150, 255, 0.35);
  background: rgba(2, 150, 255, 0.04);
  font-size: 11px;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-blue);
}

.hero-title-main {
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  color: var(--text-main);
}

.hero-title-highlight {
  color: var(--brand-blue);
}

.hero-subtext-main {
  font-size: 15px;
  max-width: 32rem;
  color: var(--text-muted);
  margin: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hero-trust {
  font-size: 12px;
  color: var(--text-muted);
}

/* Hero right side */

.hero-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-right-card {
  width: 100%;
  max-width: 340px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  border: 1px solid var(--brand-border-soft);
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.hero-right-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 10px;
}

.hero-right-body {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.hero-right-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Sections below hero */

.section {
  padding: 20px 4px 0;
}

.section-header {
  margin-bottom: 12px;
}

.section-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 4px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Simple 3-column grid for cards */

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

.section-card {
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid var(--brand-border-soft);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.section-card-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}

.section-card-body {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* 3-step list */

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.step-item {
  display: flex;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--brand-border-soft);
  background: #ffffff;
}

.step-badge {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text-main {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 2px;
}

.step-text-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Simple bullet list for "who it's for" */

.section-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Contact band */

.section-contact {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--brand-border-soft);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

/* Landing-specific button colours */

.page-landing .btn-primary {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(2, 150, 255, 0.35);
}

.page-landing .btn-primary:hover {
  filter: brightness(1.03);
  box-shadow: 0 16px 36px rgba(2, 150, 255, 0.4);
}

.page-landing .btn-secondary {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: #ffffff;
}

.page-landing .btn-secondary:hover {
  background: var(--brand-blue-soft);
}

/* ============================================================
   Auth / Login layout (light blue to match landing)
   ============================================================ */

.shell-auth {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  padding: 0;
  margin: 32px auto 0;
  border-radius: 24px;
  border: 1px solid var(--brand-border-soft);
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

@media (max-width: 960px) {
  .shell-auth {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Left panel */

.panel-left {
  padding: 24px 24px 18px;
  border-right: 1px solid var(--brand-border-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top left, rgba(2, 150, 255, 0.1), transparent 60%),
    radial-gradient(circle at bottom right, rgba(2, 150, 255, 0.05), transparent 60%),
    #ffffff;
}

.hero-block {
  max-width: 360px;
}

.hero-title {
  font-size: 1.8rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--text-main);
}

.hero-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-list {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.panel-footer {
  border-top: 1px solid var(--brand-border-soft);
  margin-top: 18px;
  padding-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Brand inside auth header */

.panel-left .brand-row {
  margin-bottom: 4px;
}

/* Right panel */

.panel-right {
  padding: 24px 24px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
}

.panel-right-inner {
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  border: 1px solid var(--brand-border-soft);
  background: #ffffff;
  padding: 20px 18px 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

/* Dashboard (minimal, same palette) */

.dashboard-page {
  padding: 32px 16px 56px;
}

.shell-dashboard {
  margin: 32px auto 0;
  border-radius: 24px;
  border: 1px solid var(--brand-border-soft);
  background:
    linear-gradient(135deg, rgba(2, 150, 255, 0.06), transparent 55%),
    #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

.dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dashboard-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--brand-border-soft);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.dashboard-header-row > div {
  max-width: 620px;
}

.upload-alert {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--text-main);
  font-size: 0.95rem;
}

.dashboard-period-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.range-card {
  padding: 16px 18px;
}

.range-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.range-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-outline.compact.is-active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

.export-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.range-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.range-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.range-input {
  min-width: 160px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--brand-border-soft);
  background: #ffffff;
  font-size: 13px;
  color: var(--text-main);
}

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

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

@media (min-width: 700px) {
  .rate-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .detail-grid.rate-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
}

.rate-field {
  display: grid;
  gap: 6px;
}

.rate-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.table-input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  background: #ffffff;
  font-size: 12px;
  color: var(--text-main);
}

.rate-actions {
  display: flex;
  justify-content: flex-end;
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-button {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--brand-border-soft);
  background: #ffffff;
  font-size: 12px;
  color: var(--text-main);
  cursor: pointer;
}

.tab-button.active,
.tab-button[aria-selected="true"] {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

.tab-panel {
  display: none;
  gap: 18px;
}

.tab-panel.active {
  display: grid;
  gap: 18px;
}

.rate-sidebar {
  align-self: start;
  position: sticky;
  top: 96px;
}

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

.version-item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--brand-border-soft);
  background: #f8fbff;
}

.version-item.is-current {
  border-color: #bfdbfe;
  box-shadow: 0 0 0 1px rgba(2, 150, 255, 0.18);
}

.version-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.version-meta {
  margin-top: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #ffffff;
  color: var(--brand-blue);
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline[aria-current="true"] {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

.analytics-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.chart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.chart-toggle input {
  accent-color: var(--brand-blue);
}

.chart-select {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--brand-border-soft);
  background: #ffffff;
  font-size: 12px;
  color: var(--text-main);
}

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

.analytics-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--brand-border-soft);
  background: #f8fbff;
  font-size: 0.95rem;
  color: var(--text-main);
}

.chart-canvas-wrap {
  position: relative;
  height: 220px;
  max-height: 220px;
}

.chart-canvas {
  width: 100%;
  height: 100%;
}

.chart-canvas-wrap .analytics-placeholder {
  position: absolute;
  inset: 0;
  height: 100%;
}

[hidden] {
  display: none !important;
}

.dashboard-analytics {
  display: grid;
  gap: 18px;
}

.detail-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--brand-border-soft);
  background: #f8fbff;
  font-size: 0.95rem;
  color: var(--text-main);
}

.list-row:hover {
  border-color: #bfdbfe;
  box-shadow: 0 0 0 1px rgba(2, 150, 255, 0.15);
}

.empty-note {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed #bfdcff;
  color: var(--text-muted);
  background: #f8fbff;
  font-size: 0.9rem;
}

.info-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 700px) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.info-row {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--brand-border-soft);
  background: #f8fbff;
}

.info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.info-value {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.search-input {
  min-width: 220px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--brand-border-soft);
  background: #ffffff;
  font-size: 13px;
  color: var(--text-main);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.filter-select {
  min-width: 180px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--brand-border-soft);
  background: #ffffff;
  font-size: 13px;
  color: var(--text-main);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-link {
  color: var(--brand-blue);
  font-weight: 600;
}

.table-link:hover {
  text-decoration: underline;
}

.analytics-panel {
  min-height: 220px;
}

.dashboard-upload {
  align-self: start;
  min-width: 220px;
  max-width: 260px;
  padding: 14px;
}

.analytics-placeholder {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed #bfdcff;
  color: var(--text-muted);
  background: #f8fbff;
  font-size: 0.9rem;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.card-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

/* Right header */

.right-header-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.right-header-title {
  font-size: 20px;
  font-weight: 600;
  margin: 4px 0 6px;
  color: var(--text-main);
}

.right-header-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

/* Dashboard stats */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}


.stat-card {
  border-radius: 10px;
  border: 1px solid var(--brand-border-soft);
  background: #f8fbff;
  padding: 12px;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.stat-value {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead th {
  text-align: left;
  padding: 8px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid #e2e8f0;
}

.data-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: var(--text-main);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Upload dropzone */

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

.upload-dropzone {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px dashed #bfdcff;
  background: #f8fbff;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.upload-dropzone:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 1px rgba(2, 150, 255, 0.2);
}

.upload-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.upload-icon {
  font-size: 20px;
}

.upload-text-main {
  font-weight: 600;
  color: var(--text-main);
}

.upload-text-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.upload-form.compact .btn-primary {
  padding: 8px 14px;
  font-size: 13px;
}

.upload-dropzone.compact {
  padding: 14px;
}

.upload-dropzone.compact .upload-text-sub {
  font-size: 11px;
}

/* Error banner */

.error-banner {
  display: none;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid #ef4444;
  background: #fee2e2;
  color: #991b1b;
}

.error-banner.visible {
  display: block;
}

/* Form fields */

.field-group {
  margin-bottom: 12px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-main);
}

.field-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  padding: 8px 10px;
  font-size: 13px;
  background: #ffffff;
  color: var(--text-main);
}

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

.field-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 1px rgba(2, 150, 255, 0.35);
}

/* Forgot link */

.forgot-link {
  font-size: 12px;
  color: var(--brand-blue);
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Primary button on auth */

.panel-right-inner .btn-primary {
  margin-top: 6px;
  width: 100%;
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(2, 150, 255, 0.4);
}

.panel-right-inner .btn-primary:hover {
  filter: brightness(1.03);
  box-shadow: 0 18px 40px rgba(2, 150, 255, 0.45);
}

/* Responsive tweaks */

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    justify-content: flex-start;
  }

  .section-grid-3,
  .steps-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .shell-auth {
    margin: 24px auto;
  }

  .shell-dashboard {
    padding: 22px;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-header-row {
    flex-direction: column;
  }

  .dashboard-upload {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-layout {
    gap: 24px;
  }

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