/* ==========================================================================
   ORIUN Agente - design system
   Public pages / authenticated portal / portal backoffice
   ========================================================================== */

:root {
  --oriun-purple: #60014a;
  --oriun-purple-2: #862165;
  --oriun-purple-3: #a4408a;
  --oriun-purple-deep: #450136;
  --oriun-orange: #f5a12a;
  --oriun-orange-soft: #fff3df;
  --oriun-ink: #241f26;
  --oriun-heading: #1a1220;
  --oriun-muted: #6b6472;
  --oriun-line: #e8e4ec;
  --oriun-line-strong: #dcd5e2;
  --oriun-soft: #f8f5fa;
  --oriun-bg: #f7f5f9;
  --oriun-surface: #ffffff;
  --oriun-success: #12805c;
  --oriun-warning: #a8620a;
  --oriun-danger: #c0234b;
  --oriun-info: #1f6fb2;

  --oriun-radius-sm: 8px;
  --oriun-radius: 12px;
  --oriun-radius-lg: 18px;
  --oriun-radius-xl: 26px;

  --oriun-shadow-xs: 0 1px 2px rgba(26, 18, 32, 0.05);
  --oriun-shadow-sm: 0 4px 14px rgba(26, 18, 32, 0.06);
  --oriun-shadow-md: 0 14px 38px rgba(26, 18, 32, 0.08);
  --oriun-shadow-lg: 0 28px 70px rgba(96, 1, 74, 0.14);
  --oriun-shadow-brand: 0 22px 55px rgba(96, 1, 74, 0.22);

  --oriun-ring: 0 0 0 0.22rem rgba(96, 1, 74, 0.18);
  --oriun-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --oriun-fast: 160ms var(--oriun-ease);
  --oriun-base: 260ms var(--oriun-ease);

  --oriun-font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --oriun-font-display: "Poppins", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--oriun-font);
}

::selection {
  background: rgba(96, 1, 74, 0.16);
  color: var(--oriun-heading);
}

:focus-visible {
  outline: 2px solid var(--oriun-purple-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000;
  background: #fff;
  color: var(--oriun-purple);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  box-shadow: var(--oriun-shadow-md);
  transition: top var(--oriun-fast);
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------- typography */

.public-body {
  background: var(--oriun-surface);
  color: var(--oriun-ink);
  font-family: var(--oriun-font);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.public-body h1,
.public-body h2,
.public-body h3,
.public-body h4,
.public-body h5,
.public-body h6 {
  color: var(--oriun-heading);
  font-family: var(--oriun-font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--oriun-orange);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.75;
}

.eyebrow.no-line::before {
  display: none;
}

.section-head {
  max-width: 780px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-head .eyebrow {
  justify-content: center;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.14;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--oriun-muted);
  font-size: 1.03rem;
  margin-bottom: 0;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.section-head.left .eyebrow {
  justify-content: flex-start;
}

/* ----------------------------------------------------------------- buttons */

.btn {
  --bs-btn-font-family: var(--oriun-font);
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform var(--oriun-fast), box-shadow var(--oriun-fast),
    background-color var(--oriun-fast), border-color var(--oriun-fast),
    color var(--oriun-fast);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--oriun-purple);
  border-color: var(--oriun-purple);
  box-shadow: 0 8px 20px rgba(96, 1, 74, 0.22);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--oriun-purple-2);
  border-color: var(--oriun-purple-2);
  box-shadow: 0 10px 26px rgba(96, 1, 74, 0.28);
}

.btn-outline-primary {
  color: var(--oriun-purple);
  border-color: rgba(96, 1, 74, 0.35);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background: var(--oriun-purple);
  border-color: var(--oriun-purple);
  color: #fff;
}

.btn-warning {
  background: var(--oriun-orange);
  border-color: var(--oriun-orange);
  color: #3d2600;
}

.btn-warning:hover,
.btn-warning:focus {
  background: #e79515;
  border-color: #e79515;
  color: #3d2600;
}

.btn-lg {
  padding: 0.72rem 1.5rem;
  font-size: 1rem;
}

.btn-sm {
  font-size: 0.85rem;
}

.btn-soft {
  background: var(--oriun-soft);
  border: 1px solid var(--oriun-line);
  color: var(--oriun-heading);
}

.btn-soft:hover {
  background: #f0ebf3;
  border-color: var(--oriun-line-strong);
  color: var(--oriun-heading);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ------------------------------------------------------------------- forms */

.public-body .form-label,
.public-body label {
  color: var(--oriun-heading);
  font-family: var(--oriun-font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 7px;
}

.public-body .form-control,
.public-body .form-select {
  font-family: var(--oriun-font);
  font-size: 0.9375rem;
  min-height: 50px;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  border-color: var(--oriun-line-strong);
  background-color: #fff;
  transition: border-color var(--oriun-fast), box-shadow var(--oriun-fast),
    background-color var(--oriun-fast);
}

.public-body .form-control::placeholder {
  color: #9d95a6;
}

.public-body .form-control:hover,
.public-body .form-select:hover {
  border-color: #c8bfd1;
}

.public-body .form-control:focus,
.public-body .form-select:focus {
  border-color: var(--oriun-purple-2);
  box-shadow: var(--oriun-ring);
}

.public-body textarea.form-control {
  min-height: 120px;
  line-height: 1.6;
}

.form-control,
.form-select {
  border-radius: 10px;
}

.field-hint {
  color: var(--oriun-muted);
  font-size: 0.8rem;
  margin-top: 6px;
  display: block;
}

.text-danger,
.field-validation-error {
  color: var(--oriun-danger) !important;
  font-size: 0.8rem;
  font-weight: 500;
}

.validation-summary {
  background: #fff5f7;
  border: 1px solid rgba(192, 35, 75, 0.22);
  border-radius: var(--oriun-radius);
  color: var(--oriun-danger);
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.validation-summary ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

fieldset.form-section {
  border: 0;
  padding: 0;
  margin: 0 0 30px;
}

fieldset.form-section:last-of-type {
  margin-bottom: 0;
}

fieldset.form-section > legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 0 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--oriun-line);
  color: var(--oriun-heading);
  font-family: var(--oriun-font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

fieldset.form-section > legend .legend-index {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--oriun-purple);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.check-grid label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--oriun-line-strong);
  border-radius: var(--oriun-radius);
  padding: 14px 15px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--oriun-heading);
  cursor: pointer;
  transition: border-color var(--oriun-fast), background-color var(--oriun-fast),
    box-shadow var(--oriun-fast), transform var(--oriun-fast);
}

.check-grid label:hover {
  border-color: rgba(96, 1, 74, 0.4);
  transform: translateY(-1px);
}

.check-grid label:has(input:checked) {
  border-color: var(--oriun-purple);
  background: #fdf7fb;
  box-shadow: 0 0 0 3px rgba(96, 1, 74, 0.1);
}

.check-grid input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  accent-color: var(--oriun-purple);
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--oriun-line);
}

/* ------------------------------------------------------- public header/nav */

.oriun-public-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: linear-gradient(120deg, var(--oriun-purple) 0%, var(--oriun-purple-2) 100%);
  box-shadow: 0 10px 30px rgba(96, 1, 74, 0.16);
  transition: box-shadow var(--oriun-base), background-color var(--oriun-base);
}

.oriun-public-header.is-scrolled {
  background: linear-gradient(120deg, rgba(69, 1, 54, 0.98), rgba(134, 33, 101, 0.97));
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 14px 36px rgba(96, 1, 74, 0.28);
}

.oriun-public-navbar {
  min-height: 74px;
}

.oriun-public-navbar .main-menu {
  gap: 4px;
}

.oriun-public-navbar .main-menu li a.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.82) !important;
  font-family: var(--oriun-font);
  font-size: 14.5px;
  font-weight: 500;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  transition: color var(--oriun-fast), background-color var(--oriun-fast);
}

.oriun-public-navbar .main-menu li a.nav-link:hover,
.oriun-public-navbar .main-menu li a.nav-link:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
}

.oriun-public-navbar .main-menu li a.nav-link.active,
.oriun-public-navbar .main-menu li a.nav-link[aria-current="page"] {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 600;
}

.oriun-menu-toggle {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.oriun-public-navbar .action-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.oriun-public-navbar .action-btns .btn {
  font-size: 13.5px;
  font-weight: 600;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
}

.oriun-navbar-cta {
  background: #fff;
  color: var(--oriun-purple);
  border-color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.oriun-navbar-cta:hover {
  background: var(--oriun-orange);
  border-color: var(--oriun-orange);
  color: #3d2600;
}

.oriun-navbar-brand img {
  max-height: 32px;
  width: auto;
}

.oriun-public-header .logo-color {
  display: none !important;
}

.oriun-public-header .logo-white {
  display: block !important;
}

/* offcanvas mobile menu */
#offcanvasWithBackdrop {
  width: min(88vw, 360px);
  background: #fff;
}

#offcanvasWithBackdrop .offcanvas-header {
  border-bottom: 1px solid var(--oriun-line);
  padding: 18px 20px;
}

#offcanvasWithBackdrop .close-btn {
  border: 1px solid var(--oriun-line-strong);
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 700;
  line-height: 1;
}

#offcanvasWithBackdrop .offcanvas-body {
  padding: 22px 20px;
}

#offcanvasWithBackdrop .main-menu {
  display: grid;
  gap: 4px;
}

#offcanvasWithBackdrop .main-menu li a.nav-link {
  display: block;
  padding: 13px 14px;
  border-radius: 10px;
  color: var(--oriun-heading) !important;
  font-weight: 600;
  font-size: 15px;
}

#offcanvasWithBackdrop .main-menu li a.nav-link:hover,
#offcanvasWithBackdrop .main-menu li a.nav-link.active {
  background: var(--oriun-soft);
  color: var(--oriun-purple) !important;
}

/* ------------------------------------------------------------- alert strip */

.public-alert {
  padding-top: 92px;
}

.public-alert .alert {
  border-radius: var(--oriun-radius);
  border-width: 1px;
  font-weight: 500;
  box-shadow: var(--oriun-shadow-sm);
}

/* -------------------------------------------------------------------- hero */

.hero-band {
  position: relative;
  display: flex;
  align-items: center;
  padding: 92px 0 96px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(245, 161, 42, 0.24), transparent 62%),
    radial-gradient(700px 500px at 8% 96%, rgba(164, 64, 138, 0.5), transparent 60%),
    linear-gradient(135deg, #4a0139 0%, #60014a 45%, #862165 100%);
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-band::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -170px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 76px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--oriun-orange);
  box-shadow: 0 0 0 4px rgba(245, 161, 42, 0.25);
}

.hero-content h1 {
  color: #fff !important;
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--oriun-orange);
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 1.09rem;
  line-height: 1.75;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions .btn {
  min-height: 50px;
  padding-inline: 1.5rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
}

.hero-proof span::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--oriun-orange);
  font-size: 0.78rem;
}

/* hero visual preview card */
.hero-visual {
  position: relative;
}

.hero-preview {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--oriun-radius-xl);
  padding: 24px;
  color: var(--oriun-ink);
  box-shadow: 0 40px 90px rgba(28, 2, 22, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--oriun-line);
  margin-bottom: 16px;
}

.hero-preview-head strong {
  display: block;
  color: var(--oriun-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-preview-head span {
  color: var(--oriun-muted);
  font-size: 0.76rem;
}

.hero-preview-chip {
  background: var(--oriun-orange-soft);
  color: #8a5200;
  border: 1px solid #f6dcae;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  white-space: nowrap;
}

.hero-preview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.hero-preview-stats div {
  background: var(--oriun-soft);
  border: 1px solid var(--oriun-line);
  border-radius: var(--oriun-radius);
  padding: 12px;
}

.hero-preview-stats span {
  display: block;
  color: var(--oriun-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-preview-stats strong {
  display: block;
  color: var(--oriun-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: -0.02em;
}

.hero-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--oriun-line);
}

.hero-preview-row:first-of-type {
  border-top: 0;
}

.hero-preview-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(96, 1, 74, 0.09);
  color: var(--oriun-purple);
  font-size: 15px;
}

.hero-preview-row strong {
  display: block;
  color: var(--oriun-heading);
  font-size: 0.86rem;
  font-weight: 600;
}

.hero-preview-row span {
  color: var(--oriun-muted);
  font-size: 0.76rem;
}

.hero-preview-foot {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--oriun-radius);
  background: linear-gradient(120deg, var(--oriun-purple), var(--oriun-purple-2));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-preview-foot i {
  color: var(--oriun-orange);
}

.hero-float {
  position: absolute;
  right: -14px;
  bottom: -26px;
  background: #fff;
  border-radius: var(--oriun-radius-lg);
  box-shadow: 0 24px 55px rgba(28, 2, 22, 0.3);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: oriun-float 6s var(--oriun-ease) infinite;
}

.hero-float strong {
  display: block;
  color: var(--oriun-heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-float span {
  color: var(--oriun-muted);
  font-size: 0.74rem;
}

.hero-float .hero-float-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--oriun-orange-soft);
  color: #a8620a;
}

@keyframes oriun-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* --------------------------------------------------------------- sections */

.public-section {
  padding: 92px 0;
  position: relative;
}

.public-section.alt {
  background: var(--oriun-bg);
}

.public-section h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.14;
  margin-bottom: 16px;
}

.public-section p {
  color: var(--oriun-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.content-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel,
.form-panel,
.result-panel,
.metric {
  background: var(--oriun-surface);
  border: 1px solid var(--oriun-line);
  border-radius: var(--oriun-radius-lg);
  box-shadow: var(--oriun-shadow-sm);
}

.panel,
.form-panel,
.result-panel {
  padding: 28px;
}

.panel h2,
.form-panel h2 {
  color: var(--oriun-heading);
  font-family: var(--oriun-font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.panel p,
.page-heading p,
.result-panel p {
  color: var(--oriun-muted);
  font-size: 0.97rem;
  line-height: 1.72;
}

.public-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 30px 28px;
  overflow: hidden;
  border: 1px solid var(--oriun-line);
  border-radius: var(--oriun-radius-lg);
  background: #fff;
  box-shadow: var(--oriun-shadow-sm);
  transition: transform var(--oriun-base), box-shadow var(--oriun-base),
    border-color var(--oriun-base);
}

.public-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--oriun-purple), var(--oriun-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--oriun-base);
}

.public-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 1, 74, 0.18);
  box-shadow: var(--oriun-shadow-md);
}

.public-card:hover::after {
  transform: scaleX(1);
}

.public-card .icon-box {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--oriun-purple), var(--oriun-purple-2));
  box-shadow: 0 12px 26px rgba(96, 1, 74, 0.28);
  margin-bottom: 20px;
  font-size: 22px;
}

.public-card h2 {
  color: var(--oriun-heading);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.public-card p {
  color: var(--oriun-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.public-card .card-tag {
  margin-top: auto;
  padding-top: 18px;
  color: var(--oriun-purple-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- opportunity */

.opportunity-section {
  background: var(--oriun-bg);
}

.opportunity-section h2,
.benefits-section h2,
.steps-section h2,
.faq-section h2,
.public-cta h2 {
  color: var(--oriun-heading);
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.opportunity-section p,
.benefits-section p,
.steps-section p,
.faq-section p {
  color: var(--oriun-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.earning-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 240px at 90% 0%, rgba(245, 161, 42, 0.28), transparent 60%),
    linear-gradient(140deg, #4a0139 0%, #60014a 50%, #862165 100%);
  border-radius: var(--oriun-radius-lg);
  box-shadow: var(--oriun-shadow-lg);
  color: #fff;
  padding: 34px;
}

.earning-row {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 0;
}

.earning-row:first-child {
  padding-top: 0;
}

.earning-row span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 500;
  font-size: 0.93rem;
}

.earning-row strong {
  color: #fff;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: right;
}

.earning-panel p {
  color: rgba(255, 255, 255, 0.8) !important;
  margin-top: 20px;
  margin-bottom: 0;
  font-size: 0.9rem !important;
}

/* ------------------------------------------------------------------- steps */

.steps-section {
  background: #fff;
}

.steps-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--oriun-line);
  border-radius: var(--oriun-radius-lg);
  box-shadow: var(--oriun-shadow-sm);
  padding: 26px 22px;
  transition: transform var(--oriun-base), box-shadow var(--oriun-base),
    border-color var(--oriun-base);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 1, 74, 0.2);
  box-shadow: var(--oriun-shadow-md);
}

.step-card > span {
  align-items: center;
  background: linear-gradient(135deg, var(--oriun-purple), var(--oriun-purple-2));
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(96, 1, 74, 0.24);
  color: #fff;
  display: flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
  margin-bottom: 18px;
  font-size: 0.98rem;
}

.step-card h3,
.faq-grid h3 {
  color: var(--oriun-heading);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--oriun-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- benefits */

.benefits-section {
  background: var(--oriun-bg);
}

.benefit-list {
  display: grid;
  gap: 14px;
}

.benefit-list > div {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--oriun-line);
  border-radius: var(--oriun-radius);
  box-shadow: var(--oriun-shadow-xs);
  display: grid;
  gap: 4px 16px;
  grid-template-columns: 46px 1fr;
  padding: 20px;
  transition: transform var(--oriun-base), box-shadow var(--oriun-base),
    border-color var(--oriun-base);
}

.benefit-list > div:hover {
  transform: translateX(4px);
  border-color: rgba(96, 1, 74, 0.18);
  box-shadow: var(--oriun-shadow-sm);
}

.benefit-list i {
  align-items: center;
  background: rgba(96, 1, 74, 0.08);
  border-radius: 12px;
  color: var(--oriun-purple);
  display: flex;
  font-size: 18px;
  height: 46px;
  justify-content: center;
  width: 46px;
  grid-row: span 2;
}

.benefit-list strong {
  color: var(--oriun-heading);
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.benefit-list span {
  color: var(--oriun-muted);
  display: block;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------- faq */

.faq-section {
  background: #fff;
}

.faq-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid article,
.faq-item {
  background: var(--oriun-soft);
  border: 1px solid var(--oriun-line);
  border-radius: var(--oriun-radius);
  padding: 22px;
  transition: border-color var(--oriun-base), background-color var(--oriun-base);
}

.faq-grid article:hover,
.faq-item:hover {
  border-color: rgba(96, 1, 74, 0.2);
  background: #fff;
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  color: var(--oriun-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--oriun-line-strong);
  color: var(--oriun-purple);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
  transition: transform var(--oriun-base), background-color var(--oriun-base),
    color var(--oriun-base);
}

.faq-item[open] summary::after {
  content: "\2212";
  background: var(--oriun-purple);
  border-color: var(--oriun-purple);
  color: #fff;
  transform: rotate(180deg);
}

.faq-item .faq-answer {
  padding: 0 22px 20px;
  color: var(--oriun-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------- cta */

.public-cta {
  background:
    radial-gradient(700px 320px at 88% 10%, rgba(245, 161, 42, 0.3), transparent 62%),
    linear-gradient(120deg, #4a0139 0%, #60014a 52%, #862165 100%);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.public-cta-inner {
  position: relative;
  z-index: 1;
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: space-between;
}

.public-cta .eyebrow,
.public-cta h2 {
  color: #fff;
}

.public-cta h2 {
  margin-bottom: 0;
  max-width: 780px;
}

.public-cta .btn-light {
  min-height: 52px;
  padding-inline: 1.6rem;
  white-space: nowrap;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

/* ------------------------------------------------------------------ footer */

.oriun-public-footer {
  background:
    radial-gradient(600px 260px at 10% 10%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(135deg, #3d0130 0%, #2a0021 60%, #1c0018 100%);
  padding: 56px 0 30px;
}

.oriun-public-footer .footer-logo {
  display: block;
  max-height: 34px;
  margin-bottom: 16px;
  width: auto;
}

.oriun-public-footer .footer-copy {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 420px;
}

.oriun-public-footer .footer-label {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.oriun-public-footer .footer-links {
  display: grid;
  gap: 10px;
}

.oriun-public-footer a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  transition: color var(--oriun-fast), transform var(--oriun-fast);
}

.oriun-public-footer a:hover,
.oriun-public-footer a:focus {
  color: #fff;
}

.oriun-public-footer .footer-site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.oriun-public-footer .footer-legal {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.55;
}

.oriun-public-footer .footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.83rem;
}

/* ----------------------------------------------------------- page headings */

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 30px;
}

.page-heading.split {
  align-items: center;
}

.page-heading h1 {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.public-body .page-heading h1 {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
}

.page-heading p {
  max-width: 640px;
  margin-bottom: 0;
}

/* --------------------------------------------------------------- credentials */

.credential-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.credential-box div,
.copy-line {
  background: var(--oriun-soft);
  border: 1px dashed var(--oriun-line-strong);
  border-radius: var(--oriun-radius);
  padding: 16px;
}

.credential-box span,
.metric span,
.list-row span,
.list-row small {
  display: block;
  color: var(--oriun-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.credential-box strong {
  display: block;
  color: var(--oriun-heading);
  font-size: 1.02rem;
  font-weight: 700;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.copy-line {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  color: var(--oriun-heading);
  overflow-wrap: anywhere;
}

.result-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px;
  text-align: left;
  border-radius: var(--oriun-radius-xl);
  box-shadow: var(--oriun-shadow-md);
}

.result-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #12805c, #1aa877);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 14px 30px rgba(18, 128, 92, 0.32);
  margin-bottom: 22px;
}

.result-panel h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.next-steps-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 4px;
  padding: 0;
  list-style: none;
  counter-reset: nx;
}

.next-steps-list li {
  counter-increment: nx;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--oriun-muted);
  font-size: 0.94rem;
}

.next-steps-list li::before {
  content: counter(nx);
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(96, 1, 74, 0.1);
  color: var(--oriun-purple);
  font-size: 0.75rem;
  font-weight: 700;
}

.copy-btn {
  border: 1px solid var(--oriun-line-strong);
  background: #fff;
  color: var(--oriun-purple);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: background-color var(--oriun-fast), color var(--oriun-fast),
    border-color var(--oriun-fast);
}

.copy-btn:hover {
  background: var(--oriun-purple);
  border-color: var(--oriun-purple);
  color: #fff;
}

.copy-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--oriun-soft);
  border: 1px solid var(--oriun-line);
  border-radius: var(--oriun-radius);
  padding: 8px 8px 8px 16px;
  margin-top: 14px;
}

.copy-field .copy-value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--oriun-heading);
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------- application form */

.application-section {
  padding-top: 74px;
  background: var(--oriun-bg);
}

.form-panel {
  max-width: 960px;
}

.application-form {
  max-width: none;
  padding: 34px;
}

.form-aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 18px;
}

.aside-card {
  background: #fff;
  border: 1px solid var(--oriun-line);
  border-radius: var(--oriun-radius-lg);
  padding: 24px;
  box-shadow: var(--oriun-shadow-sm);
}

.aside-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.aside-card.tinted {
  background: linear-gradient(140deg, #4a0139, #862165);
  border-color: transparent;
  color: #fff;
}

.aside-card.tinted h3 {
  color: #fff;
}

.aside-card.tinted p,
.aside-card.tinted li {
  color: rgba(255, 255, 255, 0.82);
}

.aside-steps {
  display: grid;
  gap: 16px;
}

.aside-steps > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 14px;
  align-items: start;
}

.aside-steps i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--oriun-orange);
  font-size: 14px;
}

.aside-steps strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.aside-steps span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  line-height: 1.55;
}

.aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.aside-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--oriun-muted);
}

.aside-list i {
  color: var(--oriun-purple);
  font-size: 0.78rem;
  margin-top: 0.32em;
}

.form-panel.compact {
  max-width: 460px;
}

/* --------------------------------------------------------------------- auth */

.oriun-auth-bg {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(164, 64, 138, 0.85), transparent 62%),
    radial-gradient(700px 420px at 6% 104%, rgba(96, 1, 74, 0.7), transparent 58%),
    linear-gradient(135deg, #4a0139 0%, #2a0021 72%);
}

.oriun-auth-bg .account-pages {
  padding-top: 1rem;
}

.oriun-auth-card {
  border: none;
  border-radius: var(--oriun-radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4);
}

.oriun-auth-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(245, 161, 42, 0.35), transparent 60%),
    linear-gradient(135deg, #60014a 0%, #862165 100%);
  padding: 30px 28px !important;
}

.oriun-auth-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, 0.08);
}

.oriun-auth-hero h5 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.oriun-auth-hero p {
  font-size: 0.88rem;
  opacity: 0.9;
}

.oriun-auth-logo {
  height: 40px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.oriun-auth-card .card-body {
  padding: 28px !important;
}

.oriun-auth-card .form-label {
  font-weight: 600;
  color: var(--oriun-heading);
}

.oriun-auth-card .form-control {
  border-radius: 12px;
  border-color: var(--oriun-line-strong);
  padding: 0.75rem 1rem;
}

.oriun-auth-card .form-control:focus {
  border-color: var(--oriun-purple);
  box-shadow: var(--oriun-ring);
}

.btn-oriun-auth {
  background: var(--oriun-purple);
  border-color: var(--oriun-purple);
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 50px;
  box-shadow: 0 12px 26px rgba(96, 1, 74, 0.26);
}

.btn-oriun-auth:hover,
.btn-oriun-auth:focus {
  background: var(--oriun-purple-2);
  border-color: var(--oriun-purple-2);
  color: #fff;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  margin: 22px 0 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.auth-footer,
.auth-links,
.auth-links a {
  color: rgba(255, 255, 255, 0.82);
}

.auth-links a {
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.auth-subtitle {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.auth-inline-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-inline-links a {
  color: var(--oriun-purple);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-inline-links a:hover {
  color: var(--oriun-purple-deep);
  text-decoration: underline;
}

.auth-inline-links span {
  color: var(--oriun-line-strong);
}

.oriun-auth-footnote {
  padding: 14px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(96, 1, 74, 0.06);
  color: var(--oriun-muted);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  margin-bottom: 14px;
}

.auth-back:hover {
  color: #fff !important;
}

/* ------------------------------------------------------------ portal shell */

.portal-body {
  background: var(--oriun-bg);
  color: #3b3542;
  font-family: var(--oriun-font);
  font-size: 14.5px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.portal-body #layout-wrapper {
  min-height: 100vh;
}

.portal-body #page-topbar {
  height: 72px;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1002;
}

.portal-body .navbar-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--oriun-line);
  box-shadow: 0 8px 26px rgba(26, 18, 32, 0.06);
  display: flex;
  height: 72px;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 0 24px;
}

.portal-body .navbar-brand-box {
  background: transparent;
  height: 72px;
  min-width: 0;
  padding: 0;
  width: auto;
  display: flex;
  align-items: center;
}

.portal-body .navbar-brand-box .logo {
  align-items: center;
  display: flex;
  height: 72px;
  text-decoration: none;
}

.portal-body .navbar-brand-box .logo-sm {
  display: none !important;
}

.portal-body .navbar-brand-box .logo-dark,
.portal-body .navbar-brand-box .logo-lg {
  display: flex !important;
  align-items: center;
}

.portal-body .navbar-brand-box .logo-light {
  display: none !important;
}

.portal-body .logo-lg img {
  max-width: 128px;
  height: auto;
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-nav .btn {
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.portal-user {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--oriun-soft);
  border: 1px solid var(--oriun-line);
  color: var(--oriun-heading);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.portal-user .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--oriun-purple), var(--oriun-purple-2));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.portal-title {
  color: var(--oriun-heading);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.portal-subtitle {
  color: var(--oriun-muted);
  font-size: 0.76rem;
}

.portal-body .main-content,
.portal-body .page-content {
  background: var(--oriun-bg);
}

.portal-body .main-content {
  min-height: 100vh;
  overflow: hidden;
  padding-top: 72px;
}

.portal-body .page-content {
  padding: 30px 22px 96px;
}

.portal-body .container-fluid {
  max-width: 1440px;
}

.portal-body .card,
.portal-body .panel,
.portal-body .form-panel,
.portal-body .metric {
  border: 1px solid var(--oriun-line);
  border-radius: var(--oriun-radius-lg);
  box-shadow: var(--oriun-shadow-sm);
  background: var(--oriun-surface);
}

.portal-body .panel {
  padding: 26px;
}

.portal-body .panel h2 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--oriun-heading);
  letter-spacing: -0.015em;
}

.portal-body .footer {
  background: #fff;
  border-top: 1px solid var(--oriun-line);
  bottom: 0;
  color: var(--oriun-muted);
  height: auto;
  left: 0;
  min-height: 58px;
  padding: 18px 24px;
  position: fixed;
  right: 0;
  z-index: 999;
  font-size: 0.84rem;
}

.portal-body .page-heading {
  background: #fff;
  border: 1px solid var(--oriun-line);
  border-radius: var(--oriun-radius-lg);
  box-shadow: var(--oriun-shadow-sm);
  padding: 24px 26px;
}

.portal-body .page-heading h1 {
  color: var(--oriun-heading);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.025em;
}

.portal-body .page-heading .eyebrow {
  color: var(--oriun-purple-2);
}

.portal-body .page-heading .eyebrow::before {
  background: var(--oriun-orange);
}

.portal-body .page-heading p {
  color: var(--oriun-muted);
}

/* --------------------------------------------------------- portal metrics */

.portal-body .metric-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.portal-body .metric {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  background: #fff;
  border: 1px solid var(--oriun-line);
  border-radius: var(--oriun-radius-lg);
  padding: 22px;
  transition: transform var(--oriun-base), box-shadow var(--oriun-base);
}

.portal-body .metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--oriun-purple), var(--oriun-purple-2));
}

.portal-body .metric:hover {
  transform: translateY(-3px);
  box-shadow: var(--oriun-shadow-md);
}

.portal-body .metric span {
  color: var(--oriun-muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portal-body .metric strong {
  display: block;
  color: var(--oriun-heading);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 8px;
}

.portal-body .metric small {
  color: var(--oriun-muted);
  display: block;
  line-height: 1.45;
  margin-top: 8px;
  font-size: 0.8rem;
}

.portal-body .metric .metric-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(96, 1, 74, 0.08);
  color: var(--oriun-purple);
  font-size: 17px;
}

/* ----------------------------------------------------------- portal blocks */

.agent-hero {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  background:
    radial-gradient(600px 260px at 92% 0%, rgba(245, 161, 42, 0.3), transparent 62%),
    linear-gradient(130deg, #4a0139 0%, #60014a 48%, #862165 100%);
  border-radius: var(--oriun-radius-lg);
  box-shadow: var(--oriun-shadow-lg);
  color: #fff;
  display: flex;
  gap: 26px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 32px;
}

.agent-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 46px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.agent-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.agent-hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 720px;
}

.agent-hero .eyebrow {
  color: var(--oriun-orange);
}

.agent-hero-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.agent-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.agent-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
}

.agent-hero-meta strong {
  color: #fff;
  font-weight: 700;
}

.agent-hero-actions {
  position: relative;
  z-index: 1;
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  min-width: 170px;
}

.agent-status-alert {
  align-items: center;
  background: var(--oriun-orange-soft);
  border: 1px solid #f3d49a;
  border-radius: var(--oriun-radius);
  color: #7a4b00;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  padding: 15px 18px;
  font-size: 0.92rem;
}

.agent-status-alert i {
  color: var(--oriun-orange);
  font-size: 1.1rem;
}

.agent-status-alert strong {
  color: #6b3f00;
}

.agent-status-alert span {
  color: #8a5b1a;
}

.agent-alert {
  border-radius: var(--oriun-radius);
  font-weight: 500;
  margin-bottom: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
}

.agent-alert-success {
  background: #ecfdf5;
  border: 1px solid rgba(18, 128, 92, 0.24);
  color: #0f6b4d;
}

.agent-alert-error {
  background: #fff5f7;
  border: 1px solid rgba(192, 35, 75, 0.22);
  color: #a51d40;
}

.agent-alert-info {
  background: #eff6ff;
  border: 1px solid rgba(29, 78, 216, 0.22);
  color: #1d4ed8;
  align-items: flex-start;
  font-weight: 500;
  line-height: 1.55;
}

.portal-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
}

.panel-kicker {
  color: var(--oriun-purple-2);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.referral-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #fdf9fc);
}

.referral-panel::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 1, 74, 0.1), transparent 70%);
}

.referral-panel p,
.next-steps-panel li {
  color: var(--oriun-muted);
}

.referral-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.referral-actions span {
  color: var(--oriun-muted);
  font-size: 0.88rem;
}

.next-steps-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.15rem;
}

.next-steps-panel li {
  font-size: 0.93rem;
  line-height: 1.65;
}

.lead-panel .form-control {
  min-height: 46px;
}

.lead-card-list {
  display: grid;
  gap: 14px;
}

.lead-card {
  background: #fff;
  border: 1px solid var(--oriun-line);
  border-radius: var(--oriun-radius);
  padding: 20px;
  transition: border-color var(--oriun-base), box-shadow var(--oriun-base);
}

.lead-card:hover {
  border-color: rgba(96, 1, 74, 0.2);
  box-shadow: var(--oriun-shadow-sm);
}

.lead-card-main,
.lead-card-meta,
.lead-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.lead-card-main {
  justify-content: space-between;
}

.lead-card-main strong {
  color: var(--oriun-heading);
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lead-card-main span,
.lead-card-meta,
.lead-card p {
  color: var(--oriun-muted);
}

.lead-card-meta {
  flex-wrap: wrap;
  font-size: 0.87rem;
  margin-top: 8px;
  gap: 8px 16px;
}

.lead-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lead-card p {
  margin: 12px 0 0;
  font-size: 0.9rem;
  background: var(--oriun-soft);
  border-radius: 8px;
  padding: 10px 12px;
}

.lead-status {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.lead-status-new {
  background: #fff7ed;
  color: #9a3412;
}

.lead-status-contacted {
  background: #fdf2f8;
  color: var(--oriun-purple);
}

.lead-status-trial {
  background: #fffbeb;
  color: #92400e;
}

.lead-status-converted {
  background: #ecfdf5;
  color: #0f6b4d;
}

.lead-status-lost {
  background: #f4f4f5;
  color: #52525b;
}

.lead-status-disputed {
  background: #fff5f7;
  color: #a51d40;
}

.lead-actions {
  flex-wrap: wrap;
  margin-top: 16px;
}

.lead-actions form {
  margin: 0;
}

.lead-lost-form {
  display: flex;
  flex: 1 1 340px;
  gap: 8px;
  min-width: 260px;
}

.lead-lost-form .form-control {
  min-width: 0;
}

.empty-state {
  background: var(--oriun-soft);
  border: 1px dashed var(--oriun-line-strong);
  border-radius: var(--oriun-radius);
  color: var(--oriun-muted);
  padding: 26px 20px;
  text-align: center;
  font-size: 0.93rem;
}

.empty-state i {
  display: block;
  font-size: 26px;
  color: #c9c0d1;
  margin-bottom: 10px;
}

.list-stack {
  display: grid;
  gap: 10px;
}

.list-row {
  display: block;
  color: var(--oriun-ink);
  text-decoration: none;
  border: 1px solid var(--oriun-line);
  border-radius: var(--oriun-radius);
  padding: 14px 16px;
  background: #fff;
  transition: border-color var(--oriun-fast), transform var(--oriun-fast),
    box-shadow var(--oriun-fast);
}

a.list-row:hover {
  border-color: rgba(96, 1, 74, 0.28);
  transform: translateX(3px);
  box-shadow: var(--oriun-shadow-sm);
}

.list-row strong {
  display: block;
  color: var(--oriun-heading);
  font-weight: 600;
  font-size: 0.93rem;
}

.list-row span {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 3px;
}

.list-row small {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  font-weight: 400;
  margin-top: 4px;
  color: var(--oriun-muted);
}

.section-title,
.inline-form {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.inline-form .form-select {
  max-width: 210px;
}

.inline-form .form-control {
  flex: 1;
  min-width: 180px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 28px;
  align-items: start;
  padding-top: 18px;
}

/* ----------------------------------------------------------------- tables */

.portal-body .table-responsive {
  border-radius: var(--oriun-radius);
}

.portal-body .table {
  margin-bottom: 0;
  background: #fff;
}

.portal-body .table > :not(caption) > * > * {
  padding: 13px 16px;
  border-color: var(--oriun-line);
}

.portal-body .table thead th {
  background: var(--oriun-soft);
  color: var(--oriun-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--oriun-line-strong);
}

.portal-body .table tbody tr {
  transition: background-color var(--oriun-fast);
}

.portal-body .table tbody tr:hover {
  background: #fcfafd;
}

.portal-body .table td {
  color: var(--oriun-ink);
  font-size: 0.9rem;
  vertical-align: middle;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  white-space: nowrap;
}

.badge-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}

.badge-neutral {
  background: #f4f4f5;
  color: #52525b;
}

.badge-success {
  background: #ecfdf5;
  color: #0f6b4d;
}

.badge-warning {
  background: #fff7ed;
  color: #9a3412;
}

.badge-danger {
  background: #fff5f7;
  color: #a51d40;
}

.badge-info {
  background: #eff6ff;
  color: #1d4ed8;
}

.badge-brand {
  background: rgba(96, 1, 74, 0.1);
  color: var(--oriun-purple);
}

/* ----------------------------------------------------------- admin accents */

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-panel-head h2 {
  margin-bottom: 0;
}

.admin-form {
  display: grid;
  gap: 10px;
}

.admin-form .form-control,
.admin-form .form-select {
  min-height: 44px;
}

.payout-form {
  display: grid;
  gap: 9px;
  border: 1px solid var(--oriun-line);
  border-radius: var(--oriun-radius);
  background: var(--oriun-soft);
  padding: 15px;
  margin-bottom: 12px;
}

.payout-form .payout-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.payout-form .payout-form-head strong {
  color: var(--oriun-heading);
  font-size: 1rem;
  font-weight: 700;
}

.payout-form .payout-form-head span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--oriun-muted);
  background: #fff;
  border: 1px solid var(--oriun-line);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ------------------------------------------------------------- error page */

.error-panel {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 54px 38px;
  border-radius: var(--oriun-radius-xl);
}

.error-panel .eyebrow {
  justify-content: center;
}

.error-panel h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.error-panel p {
  color: var(--oriun-muted);
  margin-bottom: 0;
}

.error-panel .form-actions {
  justify-content: center;
}

.error-code {
  font-size: clamp(3.4rem, 9vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(120deg, var(--oriun-purple), var(--oriun-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------ utilities */

.mt-section {
  margin-top: 42px;
}

.text-muted {
  color: var(--oriun-muted) !important;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1199.98px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 560px;
  }

  .hero-float {
    right: 0;
  }
}

@media (max-width: 991.98px) {
  .portal-body {
    font-size: 13.5px;
  }

  .content-grid,
  .metric-grid,
  .two-column,
  .auth-layout,
  .credential-box,
  .check-grid,
  .steps-grid,
  .faq-grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .hero-band {
    padding: 62px 0 68px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-preview-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-section {
    padding: 58px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .public-cta-inner,
  .agent-hero,
  .agent-status-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .agent-hero-actions {
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .benefit-list > div {
    grid-template-columns: 42px 1fr;
  }

  .benefit-list i {
    height: 42px;
    width: 42px;
  }

  .application-section {
    padding-top: 40px;
  }

  .application-form {
    padding: 22px;
  }

  .form-aside {
    position: static;
  }

  .panel,
  .result-panel,
  .portal-body .panel {
    padding: 20px;
  }

  .page-heading h1,
  .public-body .page-heading h1 {
    font-size: 2.05rem;
    line-height: 1.14;
  }

  .page-heading,
  .section-title,
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .result-panel {
    padding: 28px 22px;
  }

  .navbar-brand-box {
    min-width: 0 !important;
    width: auto !important;
  }

  .portal-body .main-content {
    padding-top: 68px;
  }

  .portal-body #page-topbar,
  .portal-body .navbar-header {
    height: 68px;
  }

  .portal-body .navbar-header {
    padding: 0 14px;
  }

  .portal-body .navbar-brand-box {
    height: 68px;
    padding: 0;
  }

  .portal-body .navbar-brand-box .logo {
    height: 68px;
  }

  .portal-body .portal-title,
  .portal-body .portal-subtitle {
    display: none;
  }

  .portal-body .page-content {
    padding: 18px 12px 96px;
  }

  .portal-body .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-body .footer {
    left: 0;
    padding: 14px 16px;
    position: static;
  }

  .portal-nav .btn-label {
    display: none;
  }
}

@media (max-width: 575.98px) {
  html,
  body {
    overflow-x: hidden;
  }

  .account-pages {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
  }

  .oriun-auth-card {
    margin-inline: 0;
    border-radius: 20px;
  }

  .oriun-auth-hero {
    padding: 24px 20px !important;
  }

  .oriun-auth-card .card-body {
    padding: 22px !important;
  }

  .oriun-public-navbar {
    min-height: 66px;
    padding-inline: 6px;
  }

  .oriun-navbar-brand img {
    max-height: 27px;
  }

  .oriun-public-navbar .main-menu {
    display: none;
  }

  .application-form .row {
    --bs-gutter-y: 0.9rem;
  }

  .application-form textarea {
    min-height: 140px;
  }

  .check-grid label {
    padding: 12px;
  }

  .public-card {
    min-height: auto;
    padding: 24px 22px;
  }

  .hero-content .lead {
    font-size: 1.02rem;
  }

  .hero-proof span,
  .agent-hero-meta span {
    width: 100%;
  }

  .hero-float {
    position: static;
    margin-top: 16px;
    animation: none;
  }

  .earning-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .earning-row strong {
    text-align: left;
  }

  .lead-card-main,
  .lead-actions,
  .lead-lost-form {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-lost-form {
    flex-basis: auto;
    min-width: 0;
  }

  .public-cta {
    padding: 50px 0;
  }

  .public-cta-inner {
    gap: 22px;
  }

  .oriun-public-footer {
    padding: 34px 0 24px;
    text-align: left;
  }

  .oriun-public-footer .footer-copy {
    max-width: none;
  }

  .oriun-public-footer .footer-bottom {
    justify-content: flex-start;
  }

  .panel,
  .form-panel,
  .application-form {
    padding: 20px 18px;
  }

  .portal-body .metric-grid,
  .hero-preview-stats {
    grid-template-columns: 1fr;
  }

  .credential-box {
    gap: 10px;
  }

  .credential-box div {
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
