@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap");

/* ===============================
   OmniRiver Inspired Shared UI
   DigitKard Frontend Theme
================================= */

:root {
  --bg-shell:
    radial-gradient(circle at 20% 20%, #1e3a8a 0%, transparent 40%),
    radial-gradient(circle at 80% 0%, #9333ea 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, #06b6d4 0%, transparent 40%),
    linear-gradient(135deg, #020617, #0f172a, #1e3a8a);
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-bg-strong: rgba(255, 255, 255, 0.09);
  --card-border: rgba(255, 255, 255, 0.15);
  --panel-bg: rgba(255, 255, 255, 0.07);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-soft: rgba(255, 255, 255, 0.55);
  --green-a: #22c55e;
  --green-b: #16a34a;
  --blue-a: #6366f1;
  --blue-b: #06b6d4;
  --orange-a: #f59e0b;
  --orange-b: #f97316;
  --danger-a: #ef4444;
  --danger-b: #dc2626;
  --shadow-card: 0 15px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(59, 130, 246, 0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 16px;
  --radius-sm: 14px;
  --font-display: clamp(2rem, 3vw, 2.7rem);
  --font-h1: clamp(1.85rem, 2.4vw, 2.35rem);
  --font-h2: clamp(1.45rem, 1.8vw, 1.9rem);
  --font-h3: 1.15rem;
  --font-section: 1.35rem;
  --font-body: 0.98rem;
  --font-small: 0.92rem;
  --font-label: 0.84rem;
  --font-pill: 0.76rem;
  --font-button: 0.96rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Noto Sans Devanagari", "Noto Sans", "Segoe UI", sans-serif;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  padding: 24px;
  color: var(--text-main);
  background: var(--bg-shell);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
}

body::before {
  top: 7%;
  right: 8%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  filter: blur(8px);
}

body::after {
  left: -90px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08), transparent 72%);
  filter: blur(20px);
}

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

h1,
h2,
h3,
strong,
button,
label {
  letter-spacing: -0.01em;
}

.page-shell,
.dashboard-shell {
  width: 100%;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.container.narrow {
  max-width: 600px;
}

.container.medium {
  max-width: 760px;
}

.stack-lg {
  display: grid;
  gap: 24px;
}

.stack-md,
.stack {
  display: grid;
  gap: 14px;
}

.card,
.panel,
.chart-card,
.table-card,
.metric-card,
.status-card,
.sidebar,
.staff-bar {
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.card,
.panel,
.chart-card,
.table-card,
.status-card {
  padding: 30px;
}

.card,
.panel,
.chart-card,
.table-card,
.metric-card,
.status-card,
.sidebar,
.staff-bar {
  position: relative;
  overflow: hidden;
}

.card::before,
.panel::before,
.chart-card::before,
.table-card::before,
.metric-card::before,
.status-card::before,
.sidebar::before,
.staff-bar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
}

.metric-card {
  padding: 22px;
}

.surface,
.result-item,
.empty-state,
.option-card,
.consent {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.page-hero,
.dashboard-header,
.staff-bar,
.card-header,
.section-header,
.progress-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.page-hero {
  padding: 6px 0 2px;
}

.hero-copy,
.header-copy {
  display: grid;
  gap: 12px;
}

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

.button-row button,
.button-row .button,
.button-row .secondary-button,
.actions button,
.actions .button,
.actions .secondary-button {
  width: auto;
  min-width: 180px;
}

.eyebrow,
.pill,
.status-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--font-pill);
  color: var(--text-main);
}

.pill-soft,
.status-neutral {
  color: var(--text-main);
}

.status-success {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(74, 222, 128, 0.22);
  color: #86efac;
}

.status-warning {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(251, 191, 36, 0.22);
  color: #fcd34d;
}

.status-danger {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.22);
  color: #fca5a5;
}

.page-title,
.title,
h1,
h2,
h3 {
  color: var(--text-main);
  line-height: 1.15;
}

.page-title,
h1 {
  font-size: var(--font-display);
}

h2 {
  font-size: var(--font-h2);
}

h3 {
  font-size: var(--font-h3);
}

.title {
  font-size: var(--font-h1);
  font-weight: 700;
}

.section-title {
  font-size: var(--font-section);
  font-weight: 700;
}

.page-subtitle,
.subtitle,
.notice,
.helper-text,
.section-subtitle,
.footer-note,
.sidebar p,
.header-copy p {
  color: var(--text-muted);
  font-size: var(--font-body);
  line-height: 1.6;
}

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

.staff-bar {
  padding: 18px 22px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.06);
  border-color: var(--card-border);
}

.staff-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.staff-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.18);
}

.staff-meta strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

#staffNameDisplay {
  color: var(--text-muted);
  font-size: 0.94rem;
  white-space: normal;
  word-break: break-word;
}

.staff-bar .secondary-button {
  width: auto;
  min-width: 210px;
  flex-shrink: 0;
  align-self: center;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.input-group,
.field,
.form-group {
  display: grid;
  gap: 8px;
}

label,
.field-label,
.form-group label {
  font-size: var(--font-label);
  color: var(--text-muted);
}

input,
select,
textarea,
.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  outline: none;
  font-size: var(--font-body);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-soft);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(125, 211, 252, 0.8);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
  background: rgba(255, 255, 255, 0.11);
}

button,
.button,
.secondary-button {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  font-weight: 700;
  font-size: var(--font-button);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
  color: var(--text-main);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.92), rgba(6, 182, 212, 0.86));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.04) inset, inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

button::before,
.button::before,
.secondary-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: translateX(-140%);
  transition: transform 0.65s ease;
}

button:hover,
.button:hover,
.secondary-button:hover {
  transform: translateY(-3px) scale(1.01);
}

button:hover::before,
.button:hover::before,
.secondary-button:hover::before {
  transform: translateX(140%);
}

button:active,
.button:active,
.secondary-button:active {
  transform: scale(0.98);
}

button:disabled,
.button:disabled,
.secondary-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.secondary-button {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.secondary-button:hover {
  border-color: rgba(125, 211, 252, 0.6);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(125, 211, 252, 0.09));
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.38), 0 0 22px rgba(56, 189, 248, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.full-width {
  width: 100%;
}

.rules-list,
.feature-list,
.activity-list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 1.6;
}

.stats-grid,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.metric-card small,
.stat b,
.result-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: var(--font-label);
}

.metric-card .metric-value,
.metric-card h2,
.stat span {
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 700;
}

.metric-card p,
.result-item span {
  color: var(--text-muted);
  line-height: 1.6;
}

.metric-card {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.06));
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.24);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.22);
}

.split-grid,
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.chart-wrap {
  position: relative;
  min-height: 300px;
}

.progress-bar,
.progress,
.fill {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.progress-fill,
.progress-bar > div,
.fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-a), #4ade80);
}

.question-title {
  font-size: var(--font-h2);
}

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

.option-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.option-card:hover {
  border-color: rgba(125, 211, 252, 0.26);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.option-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.option-control {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin-top: 2px;
}

.option-indicator {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 18px rgba(0, 0, 0, 0.14);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.option-indicator.radio {
  border-radius: 999px;
}

.option-indicator.checkbox {
  border-radius: 8px;
}

.option-indicator.radio::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #ffffff;
  transform: scale(0.4);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.option-indicator.checkbox::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg) scale(0.7);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.option-card input:checked + .option-control .option-indicator {
  border-color: rgba(134, 239, 172, 0.72);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(6, 182, 212, 0.88));
  box-shadow: 0 14px 26px rgba(34, 197, 94, 0.22), 0 0 22px rgba(6, 182, 212, 0.16);
}

.option-card input:checked + .option-control .option-indicator::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.option-card input:checked + .option-control .option-indicator.radio::after {
  transform: scale(1);
}

.option-card input:focus + .option-control .option-indicator {
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.option-content {
  display: grid;
  gap: 4px;
}

.option-card strong {
  color: var(--text-main);
  font-size: 15px;
}

.result-panel,
.result-grid {
  display: grid;
  gap: 14px;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.result-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.result-item {
  display: block;
  min-height: 132px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(99, 102, 241, 0.05));
}

.result-display-card {
  display: grid;
  gap: 18px;
}

.result-display-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.result-form-card,
.result-aside {
  height: 100%;
}

.result-aside {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(6, 182, 212, 0.05));
}

.result-search-shell .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.result-search-shell .feature-chip {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 16px;
}

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

.result-aside-item {
  display: grid;
  gap: 6px;
}

.result-aside-item strong {
  color: var(--text-main);
  font-size: 0.95rem;
}

.result-aside-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.result-value {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.result-rank {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1;
}

.result-status-wrap {
  min-height: 40px;
  display: flex;
  align-items: center;
}

.table-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

td {
  color: var(--text-muted);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.chart-card,
.table-card {
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
}

.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(22, 163, 74, 0.18));
  color: #86efac;
  font-size: 34px;
  font-weight: 700;
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.25);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(6, 182, 212, 0.9));
}

.sidebar {
  padding: 24px;
  position: sticky;
  top: 24px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.sidebar h1,
.sidebar .logo {
  font-size: 22px;
  font-weight: 700;
}

.menu {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.menu button {
  width: 100%;
  justify-content: flex-start;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  text-align: left;
}

.menu button.is-active {
  border-color: rgba(125, 211, 252, 0.7);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.18);
}

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

.dashboard-main #contentArea {
  display: grid;
  gap: 18px;
}

.dashboard-hero-card {
  padding: 26px 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.06));
}

.dashboard-hero-card .page-title {
  font-size: clamp(1.95rem, 3vw, 2.7rem);
}

.spaced-top {
  margin-top: 18px;
}

.spaced-top-xs {
  margin-top: 8px;
}

.spaced-top-sm {
  margin-top: 10px;
}

.spaced-top-md {
  margin-top: 20px;
}

.stack-start {
  justify-items: start;
}

.delta-badge {
  margin-top: 8px;
}

.hero-reset {
  margin: 0;
}

.copy-limit {
  max-width: 760px;
}

#loader {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(6px);
}

#loader .box {
  min-width: 220px;
  padding: 22px;
  text-align: center;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-card);
}

#loader .box p {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-note {
  text-align: center;
}

.premium-hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.08));
}

.premium-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.premium-hero > *,
.completion-hero > *,
.search-panel > *,
.sidebar > * {
  position: relative;
  z-index: 1;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.hero-kpis .surface {
  padding: 16px;
}

.hero-kpis strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
}

.hero-kpis span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: var(--font-small);
  line-height: 1.5;
}

.premium-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.login-shell,
.preview-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.luxury-note {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.luxury-note strong {
  display: block;
  color: var(--text-main);
  font-size: 1rem;
}

.luxury-note span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: var(--font-small);
}

.payment-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.premium-highlight {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.08));
}

.premium-highlight::after {
  content: "";
  position: absolute;
  inset: auto -18% -50% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 72%);
  pointer-events: none;
}

.premium-highlight > * {
  position: relative;
  z-index: 1;
}

.feature-stack {
  display: grid;
  gap: 12px;
}

.feature-chip {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.feature-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.22);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(6, 182, 212, 0.9));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.feature-chip strong {
  display: block;
  color: var(--text-main);
  font-size: 0.98rem;
}

.feature-chip span {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: var(--font-small);
}

.summary-stack {
  display: grid;
  gap: 14px;
}

.summary-total {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(134, 239, 172, 0.16);
}

.summary-total strong {
  display: block;
  color: var(--text-muted);
  font-size: var(--font-label);
}

.summary-total span {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  font-weight: 700;
  color: var(--text-main);
}

.result-search-shell {
  display: grid;
  gap: 18px;
}

.search-panel {
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.06));
}

.completion-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.completion-hero-wide {
  display: grid;
  gap: 20px;
}

.completion-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.completion-hero-copy {
  display: grid;
  gap: 12px;
}

.completion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: start;
}

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

.completion-highlight {
  display: grid;
  gap: 8px;
  min-height: 118px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(34, 197, 94, 0.08), rgba(6, 182, 212, 0.05));
}

.completion-highlight-value {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.completion-actions-card,
.completion-support-card {
  height: 100%;
}

.completion-actions-card {
  display: grid;
  gap: 14px;
}

.completion-support-card {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(6, 182, 212, 0.05));
}

.completion-steps,
.completion-support-list {
  display: grid;
  gap: 12px;
}

.completion-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.completion-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(6, 182, 212, 0.88));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(59, 130, 246, 0.18);
}

.completion-step-copy,
.completion-support-item {
  display: grid;
  gap: 6px;
}

.completion-step-copy strong,
.completion-support-item strong {
  color: var(--text-main);
}

.completion-support-item span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.completion-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(134, 239, 172, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(34, 197, 94, 0.09), rgba(6, 182, 212, 0.08));
}

.completion-hero::after {
  content: "";
  position: absolute;
  inset: auto -16% -46% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 72%);
  pointer-events: none;
}

.completion-actions {
  display: grid;
  gap: 14px;
}

.empty-state {
  display: block;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 28px;
}

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

.step-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.step-item:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.22);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-weight: 700;
  color: var(--text-main);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(6, 182, 212, 0.9));
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.2);
}

.step-copy strong {
  display: block;
  color: var(--text-main);
  font-size: 0.98rem;
}

.step-copy span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: var(--font-body);
}

.instruction-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
}

.instruction-card .rules-list {
  padding-left: 18px;
}

.info-note {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(99, 102, 241, 0.08));
  color: var(--text-muted);
  line-height: 1.7;
}

.section-divider {
  height: 1px;
  margin: 4px 0 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.form-intro {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

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

.form-support .surface {
  padding: 15px;
}

.form-support strong {
  display: block;
  color: var(--text-main);
  font-size: var(--font-body);
}

.form-support span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: var(--font-small);
}

.consent-check {
  position: relative;
  width: 26px;
  height: 26px;
  margin-top: 2px;
}

.consent-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.consent-box {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.consent-box::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 7px;
  height: 12px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg) scale(0.7);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.consent-check input:checked + .consent-box {
  border-color: rgba(134, 239, 172, 0.72);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(6, 182, 212, 0.88));
  box-shadow: 0 14px 26px rgba(34, 197, 94, 0.24), 0 0 22px rgba(6, 182, 212, 0.16);
}

.consent-check input:checked + .consent-box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.consent-check input:focus + .consent-box {
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.consent-copy strong {
  display: block;
  color: var(--text-main);
  font-size: var(--font-body);
}

.consent-copy span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: var(--font-body);
}

.consent {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
  cursor: pointer;
}

@media (max-width: 920px) {
  .dashboard-shell,
  .split-grid,
  .chart-grid,
  .premium-grid,
  .payment-shell,
  .result-layout,
  .result-search-shell,
  .completion-layout,
  .completion-shell,
  .login-shell,
  .preview-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    padding: 16px;
  }

  .card,
  .panel,
  .chart-card,
  .table-card,
  .status-card,
  .metric-card,
  .sidebar,
  .staff-bar {
    padding: 22px;
    border-radius: 20px;
  }

  .form-grid,
  .grid-2,
  .hero-kpis,
  .completion-highlight-grid,
  .form-support {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .dashboard-header,
  .staff-bar,
  .card-header,
  .section-header,
  .progress-row {
    flex-direction: column;
  }

  .page-hero {
    gap: 14px;
  }

  .hero-copy,
  .header-copy,
  .form-intro {
    gap: 10px;
  }

  .actions button,
  .actions .button,
  .actions .secondary-button,
  .button-row button,
  .button-row .button,
  .button-row .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .page-title,
  h1 {
    font-size: 1.95rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .section-title {
    font-size: 1.28rem;
  }

  .page-subtitle,
  .subtitle,
  .notice,
  .helper-text,
  .section-subtitle,
  .footer-note,
  .sidebar p,
  .header-copy p,
  input,
  select,
  textarea,
  .input,
  .consent-copy span,
  .step-copy span,
  .form-support strong {
    font-size: 0.94rem;
  }

  .feature-chip strong,
  .step-copy strong,
  .consent-copy strong,
  button,
  .button,
  .secondary-button {
    font-size: 0.95rem;
  }

  label,
  .field-label,
  .form-group label,
  .metric-card small,
  .stat b,
  .result-item strong,
  .summary-total strong,
  .staff-meta strong,
  .eyebrow,
  .pill,
  .status-badge,
  .badge {
    font-size: 0.8rem;
  }

  .feature-chip,
  .step-item,
  .consent {
    padding: 16px;
  }

  .feature-icon,
  .step-index {
    width: 40px;
    height: 40px;
  }

  .info-note {
    padding: 15px 16px;
    line-height: 1.65;
  }
}

/* =====================================================================
   NEXT-LEVEL LAYER — motion, animated loader, flow stepper, celebration
   (additive; all page-entrance motion is gated behind no-preference so
   reduced-motion users and no-animation fallbacks always see full content)
   ===================================================================== */

@keyframes arReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes arSpin { to { transform: rotate(360deg); } }
@keyframes arPulseRing {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}
@keyframes arCheckStroke { to { stroke-dashoffset: 0; } }
@keyframes arPopIn {
  0%   { opacity: 0; transform: scale(0.8); }
  60%  { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes arConfettiFall {
  0%   { opacity: 1; transform: translate3d(0, -10vh, 0) rotate(0deg); }
  100% { opacity: 0; transform: translate3d(var(--ar-dx, 0), 100vh, 0) rotate(var(--ar-rot, 540deg)); }
}

/* ---- staggered entrance for the main content blocks ---- */
@media (prefers-reduced-motion: no-preference) {
  .page-shell > *,
  .container > *,
  .dashboard-main > * {
    animation: arReveal 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .page-shell > *:nth-child(1),  .container > *:nth-child(1),  .dashboard-main > *:nth-child(1) { animation-delay: 0.02s; }
  .page-shell > *:nth-child(2),  .container > *:nth-child(2),  .dashboard-main > *:nth-child(2) { animation-delay: 0.10s; }
  .page-shell > *:nth-child(3),  .container > *:nth-child(3),  .dashboard-main > *:nth-child(3) { animation-delay: 0.18s; }
  .page-shell > *:nth-child(4),  .container > *:nth-child(4),  .dashboard-main > *:nth-child(4) { animation-delay: 0.26s; }
  .page-shell > *:nth-child(5),  .container > *:nth-child(5),  .dashboard-main > *:nth-child(5) { animation-delay: 0.34s; }
  .page-shell > *:nth-child(6),  .container > *:nth-child(6),  .dashboard-main > *:nth-child(6) { animation-delay: 0.42s; }
  .page-shell > *:nth-child(n+7), .container > *:nth-child(n+7), .dashboard-main > *:nth-child(n+7) { animation-delay: 0.50s; }
}

/* ---- animated branded loader (spinner added with no markup change) ---- */
#loader .box::before {
  content: "";
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--blue-b);
  border-right-color: var(--blue-a);
  animation: arSpin 0.8s linear infinite;
}
#loader .box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-b), transparent 70%);
  animation: arPulseRing 1.2s ease-in-out infinite;
}
#loader .box { position: relative; }

/* ---- cross-page flow stepper ---- */
.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 16px clamp(10px, 3vw, 22px);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.flow-step {
  position: relative;
  flex: 1 1 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  min-width: 0;
}
.flow-step::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--panel-border);
  z-index: 0;
}
.flow-step:first-child::before { display: none; }
.flow-dot {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--panel-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.flow-label {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  line-height: 1.25;
}
.flow-step.is-done .flow-dot {
  color: #04240f;
  background: linear-gradient(135deg, var(--green-a), var(--green-b));
  border-color: transparent;
}
.flow-step.is-done .flow-step::before,
.flow-step.is-done + .flow-step::before { background: linear-gradient(90deg, var(--green-b), var(--panel-border)); }
.flow-step.is-current .flow-dot {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-a), var(--blue-b));
  border-color: transparent;
  box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.18), 0 8px 24px rgba(6, 182, 212, 0.35);
}
.flow-step.is-current .flow-label { color: var(--text-main); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .flow-step.is-current .flow-dot { animation: arPulseRing 1.8s ease-in-out infinite; }
}

/* ---- success celebration overlay ---- */
.ar-celebrate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}
.ar-celebrate .ar-card {
  text-align: center;
  padding: 34px 40px;
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-card);
  animation: arPopIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  max-width: 340px;
}
.ar-check { width: 92px; height: 92px; margin: 0 auto 14px; display: block; }
.ar-check circle {
  fill: none;
  stroke: var(--green-a);
  stroke-width: 4;
  stroke-dasharray: 251;
  stroke-dashoffset: 251;
  animation: arCheckStroke 0.5s ease forwards;
}
.ar-check path {
  fill: none;
  stroke: var(--green-a);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: arCheckStroke 0.35s ease 0.42s forwards;
}
.ar-celebrate h3 { font-size: 1.4rem; color: var(--text-main); margin-bottom: 6px; }
.ar-celebrate p { font-size: 0.92rem; color: var(--text-muted); }
.ar-confetti-piece {
  position: fixed;
  top: 0;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  z-index: 1001;
  will-change: transform, opacity;
  animation: arConfettiFall linear forwards;
}
@media (prefers-reduced-motion: reduce) {
  .ar-check circle, .ar-check path { animation: none; stroke-dashoffset: 0; }
  .ar-confetti-piece { display: none; }
}

@media (max-width: 720px) {
  .flow-label { font-size: 0.62rem; }
  .flow-dot { width: 28px; height: 28px; font-size: 0.74rem; }
  .flow-step::before { top: 13px; }
}
