:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-2: #0b1120;
  --surface: rgba(11, 17, 30, 0.82);
  --surface-strong: rgba(18, 26, 46, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --surface-bright: rgba(255, 255, 255, 0.1);
  --line: rgba(126, 160, 235, 0.16);
  --line-strong: rgba(255, 214, 102, 0.24);
  --text: #f7f8fc;
  --text-soft: #bac6e2;
  --text-muted: #7f8daa;
  --navy: #16386f;
  --navy-2: #0f2343;
  --gold: #f2bd4a;
  --gold-2: #ffdd82;
  --lime: #98d51a;
  --danger: #ff6b7c;
  --success: #4fe0ae;
  --shadow-xl: 0 40px 120px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 16px 34px rgba(0, 0, 0, 0.24);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 221, 130, 0.12), transparent 18%),
    radial-gradient(circle at 22% 14%, rgba(22, 56, 111, 0.12), transparent 20%),
    radial-gradient(circle at 100% 0%, rgba(85, 215, 162, 0.08), transparent 16%),
    linear-gradient(180deg, #020409 0%, #08101d 26%, #060a13 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

#app {
  min-height: 100vh;
}

.glossy-card,
.glossy-subcard,
.panel,
.auth-card,
.hero-visual,
.sidebar__footer,
.boot-card,
.modal {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 28%, rgba(255, 255, 255, 0.03) 100%),
    linear-gradient(145deg, rgba(18, 30, 56, 0.92), rgba(8, 14, 26, 0.96));
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  backdrop-filter: blur(28px);
}

.glossy-card::before,
.glossy-subcard::before,
.panel::before,
.auth-card::before,
.hero-visual::before,
.sidebar__footer::before,
.boot-card::before,
.modal::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 22%, transparent 65%, rgba(255, 221, 130, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 70%);
}

.panel::before {
  content: none;
}

.panel.glossy-card::before,
.panel.glossy-card::after {
  content: none;
}

.glossy-subcard {
  padding: 18px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 30%, rgba(255, 255, 255, 0.03)),
    linear-gradient(145deg, rgba(16, 24, 44, 0.86), rgba(7, 12, 23, 0.92));
  box-shadow: var(--shadow-md);
}

.panel,
.panel.glossy-card {
  background: linear-gradient(180deg, #141d2e, #0b111d);
  backdrop-filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 48px rgba(0, 0, 0, 0.24);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup__mark {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    linear-gradient(145deg, rgba(16, 28, 52, 0.96), rgba(8, 14, 26, 0.98));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.brand-lockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-lockup strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.brand-lockup span {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.boot-shell,
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.boot-card {
  width: min(100%, 540px);
  padding: 28px;
  text-align: center;
}

.boot-card strong {
  display: block;
  margin: 18px 0 8px;
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
}

.boot-card p {
  margin: 0 0 20px;
  color: var(--text-soft);
}

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

.loading-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--lime));
  box-shadow: 0 0 22px rgba(152, 213, 26, 0.5);
  animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
  0%,
  100% {
    transform: translateX(-10%);
  }

  50% {
    transform: translateX(110%);
  }
}

.auth-shell__inner {
  width: min(1320px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.auth-hero,
.auth-card {
  padding: 28px;
}

.auth-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-hero__copy h1,
.topbar h1,
.hero-panel h2,
.panel-header h2,
.plan-card h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.auth-hero__copy p:last-child,
.topbar p,
.hero-panel__copy > p:last-of-type,
.panel-header p,
.field-hint,
.muted,
.snippet,
.settings-footnote p {
  color: var(--text-soft);
}

.auth-grid,
.hero-panel__stats,
.readiness-grid,
.vault-grid,
.plan-grid {
  display: grid;
  gap: 16px;
}

.auth-grid,
.hero-panel__stats,
.plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-visual {
  min-height: 340px;
  padding: 24px;
  display: grid;
  place-items: center;
}

.hero-visual--brand {
  align-content: center;
  gap: 18px;
  padding: 32px 26px 28px;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 214, 117, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 22%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(145deg, rgba(8, 12, 22, 0.98), rgba(6, 10, 18, 0.99));
}

.hero-visual--brand::before {
  content: none;
}

.hero-visual__brand-image {
  width: min(100%, 340px);
  max-height: 260px;
  object-fit: contain;
  margin-inline: auto;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.42));
}

.hero-visual__brand-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.hero-visual__brand-copy strong {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.hero-visual__brand-copy > span {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: rgba(235, 240, 255, 0.78);
  letter-spacing: 0.04em;
}

.hero-visual__word {
  display: inline-block;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.16),
    0 20px 38px rgba(0, 0, 0, 0.3);
}

.hero-visual__word--slot {
  color: #4a87dd;
}

.hero-visual__word--pilot {
  color: #f3c24d;
}

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

.auth-tabs,
.status-strip,
.chip-row,
.topbar__actions,
.hero-panel__actions,
.button-row,
.auth-actions,
.sidebar__footer-grid,
.suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-tab,
.ghost-button,
.secondary-button,
.primary-button,
.link-button,
.mobile-nav__button,
.nav-button,
.ghost-chip,
.icon-button {
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.auth-tab,
.ghost-button,
.secondary-button,
.primary-button,
.link-button,
.icon-button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab,
.ghost-button,
.nav-button,
.mobile-nav__button,
.link-button,
.icon-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 34%, rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.025);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -12px 18px rgba(0, 0, 0, 0.22),
    0 12px 24px rgba(0, 0, 0, 0.16);
}

.ghost-button::before,
.secondary-button::before,
.primary-button::before,
.nav-button::before,
.mobile-nav__button::before,
.link-button::before,
.icon-button::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 2px;
  height: 38%;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.05) 58%, transparent);
  opacity: 0.8;
}

.ghost-button,
.auth-tab,
.link-button,
.icon-button {
  border-color: rgba(150, 168, 204, 0.18);
  background:
    linear-gradient(180deg, rgba(82, 94, 118, 0.18), rgba(32, 39, 55, 0.06) 22%, rgba(9, 13, 23, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -10px 18px rgba(0, 0, 0, 0.24),
    0 12px 20px rgba(0, 0, 0, 0.16);
}

.ghost-button::before,
.auth-tab::before,
.link-button::before,
.icon-button::before {
  left: 12px;
  right: 12px;
  top: 3px;
  height: 24%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02) 68%, transparent);
  opacity: 0.56;
}

.primary-button {
  color: #101726;
  font-weight: 800;
  border-color: rgba(255, 230, 170, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 40%),
    linear-gradient(135deg, #ffe8a6 0%, #f2bd4a 46%, #c98915 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -14px 22px rgba(174, 112, 6, 0.24),
    0 20px 36px rgba(242, 189, 74, 0.3),
    0 8px 18px rgba(0, 0, 0, 0.2);
}

.secondary-button {
  border-color: rgba(123, 167, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, #2d67c1 0%, #16386f 54%, #09142b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -14px 24px rgba(0, 0, 0, 0.26),
    0 20px 34px rgba(19, 52, 102, 0.34);
}

.ghost-button:hover,
.secondary-button:hover,
.primary-button:hover,
.link-button:hover,
.auth-tab:hover,
.icon-button:hover,
.nav-button:hover,
.mobile-nav__button:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -14px 24px rgba(0, 0, 0, 0.2),
    0 24px 40px rgba(0, 0, 0, 0.24);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-tab--active,
.nav-button--active,
.mobile-nav__button--active {
  border-color: rgba(255, 221, 130, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 221, 130, 0.18), rgba(255, 221, 130, 0.05)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.nav-button,
.mobile-nav__button {
  border-color: rgba(108, 132, 174, 0.18);
  background: linear-gradient(180deg, rgba(20, 28, 44, 0.96), rgba(8, 12, 22, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -12px 20px rgba(0, 0, 0, 0.24),
    0 12px 18px rgba(0, 0, 0, 0.18);
}

.nav-button::before,
.mobile-nav__button::before {
  content: none;
}

.nav-button--active,
.mobile-nav__button--active {
  border-color: rgba(255, 221, 130, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 221, 130, 0.1), rgba(255, 221, 130, 0.02) 34%, rgba(255, 255, 255, 0.01)),
    linear-gradient(145deg, rgba(28, 38, 62, 0.96), rgba(10, 16, 28, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -12px 22px rgba(0, 0, 0, 0.26),
    0 16px 24px rgba(0, 0, 0, 0.22);
}

.ghost-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border-color: rgba(126, 146, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(9, 14, 24, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.14);
  color: rgba(231, 237, 251, 0.88);
  font-size: 0.9rem;
  white-space: nowrap;
}

.ghost-chip::before {
  content: none;
}

.ghost-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 221, 130, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 221, 130, 0.08), rgba(255, 255, 255, 0.01)),
    rgba(11, 17, 29, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.16);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(6, 10, 18, 0.82);
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(255, 221, 130, 0.36);
  box-shadow: 0 0 0 4px rgba(255, 221, 130, 0.1);
}

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

.field--checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.field--checkbox input {
  width: 20px;
  height: 20px;
}

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

.form-grid,
.settings-form,
.modal-form,
.auth-form {
  display: grid;
  gap: 16px;
}

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

.field-hint,
.inline-error,
.muted {
  margin: 0;
  font-size: 0.94rem;
}

.inline-error {
  color: #ffd7de;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.98), rgba(5, 8, 15, 0.95)),
    radial-gradient(circle at 14% 10%, rgba(18, 32, 58, 0.16), transparent 28%);
  border-right: 1px solid var(--line);
  backdrop-filter: none;
}

.sidebar__top {
  display: grid;
  gap: 14px;
  flex-shrink: 0;
}

.nav-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding-bottom: 4px;
}

.nav-button {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  justify-content: flex-start;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-button span,
.mobile-nav__button span {
  font-weight: 700;
}

.main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(108px + var(--safe-bottom));
}

.topbar,
.content {
  padding-inline: 28px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 18px;
  backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.94), rgba(5, 8, 15, 0.66), transparent);
}

.topbar p {
  margin: 8px 0 0;
  max-width: 760px;
}

.topbar__logout {
  margin-left: auto;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding-bottom: calc(120px + var(--safe-bottom));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-2);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.panel,
.hero-panel {
  padding: 22px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
}

.hero-panel__copy,
.hero-panel__stats,
.stack,
.section-stack {
  display: grid;
  gap: 18px;
}

.hero-panel__summary strong,
.detail-card strong,
.result-card strong,
.plan-card h2,
.panel-header h2,
.hunt-card h3,
.profile-card strong {
  position: relative;
  z-index: 1;
}

.dashboard-grid,
.detail-layout,
.assistant-layout {
  display: grid;
  gap: 24px;
}

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

.detail-layout,
.assistant-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
}

.sidebar__footer {
  margin-top: auto;
  display: grid;
  gap: 14px;
  flex-shrink: 0;
  padding: 16px;
}

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

.sidebar__footer-grid > .ghost-button {
  width: 100%;
  justify-content: center;
}

.panel-header,
.list-card,
.calendar-row,
.notification-card,
.result-card__top,
.account-card,
.list-row,
.hunt-card,
.hunt-card__side,
.calendar-row__meta,
.notification-card__actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-header h2 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.panel-header p,
.detail-card p,
.result-card p,
.notification-card p,
.list-card p,
.calendar-row p,
.timeline-row p,
.plan-card p {
  margin: 8px 0 0;
}

.stat-card {
  min-height: 132px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(8, 14, 26, 0.86);
  box-shadow: var(--shadow-md);
}

.stat-card strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.stat-card span,
.stat-card small {
  display: block;
  margin-top: 8px;
}

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

.stat-card--accent strong,
.shell-badge--accent,
.eyebrow {
  color: var(--gold-2);
}

.stat-card--success strong,
.shell-badge--success {
  color: var(--success);
}

.stat-card--danger strong,
.shell-badge--danger {
  color: #ffc1c9;
}

.shell-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.member-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

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

.icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.micro-grid,
.settings-footnote .micro-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hunt-card,
.detail-card,
.result-card,
.notification-card,
.list-card,
.readiness-card,
.profile-card,
.vault-card,
.calendar-row,
.intent-card,
.plan-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(7, 12, 23, 0.84);
  box-shadow: var(--shadow-md);
}

.hunt-card {
  align-items: stretch;
}

.hunt-card--active,
.profile-card--active,
.plan-card--active {
  border-color: rgba(255, 221, 130, 0.38);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 221, 130, 0.14);
}

.hunt-card__main,
.profile-card__button,
.notification-card__content,
.result-card,
.readiness-card,
.vault-card,
.plan-card,
.settings-footnote,
.assistant-thread,
.intent-card {
  display: grid;
  gap: 14px;
}

.hunt-card__side {
  flex-direction: column;
  min-width: 240px;
}

.hunt-card__result {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

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

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

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--lime));
  box-shadow: 0 0 18px rgba(255, 221, 130, 0.3);
}

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

.profile-card__button {
  width: 100%;
  text-align: left;
}

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

.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.toggle input {
  width: 18px;
  height: 18px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 14px;
  align-items: start;
}

.timeline-row__dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(255, 221, 130, 0.08);
}

.timeline-row__dot--success {
  background: var(--success);
}

.timeline-row__dot--error {
  background: var(--danger);
}

.assistant-thread {
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.message {
  max-width: 88%;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(32, 41, 60, 0.74), rgba(13, 18, 30, 0.92)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 28px rgba(0, 0, 0, 0.14);
}

.message--assistant {
  justify-self: start;
  border-top-left-radius: 12px;
}

.assistant-layout > .panel:first-child {
  background: linear-gradient(180deg, #121a2a, #0a0f1a);
}

.message--user {
  justify-self: end;
  background: linear-gradient(180deg, rgba(37, 82, 155, 0.92), rgba(15, 35, 67, 0.96));
  border-top-right-radius: 10px;
}

.message__role,
.message__time {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.message__time {
  margin-top: 8px;
}

.empty-panel {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 12px;
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.empty-panel__orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 221, 130, 0.95), rgba(255, 221, 130, 0.1) 48%, transparent 70%),
    radial-gradient(circle at 70% 80%, rgba(37, 82, 155, 0.8), transparent 54%);
}

.list-card,
.list-row,
.calendar-row,
.notification-card {
  align-items: center;
}

.mobile-nav {
  position: fixed;
  left: 50%;
  bottom: calc(12px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 40;
  display: none;
  width: min(calc(100vw - 20px), 680px);
  padding: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(8, 14, 26, 0.9);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(24px);
}

.mobile-nav__button {
  min-height: 64px;
  padding: 8px 6px;
  border-radius: 20px;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--text-soft);
}

.mobile-nav__button span {
  font-size: 0.72rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(2, 4, 10, 0.68);
  backdrop-filter: blur(18px);
}

.modal {
  width: min(920px, 100%);
  max-height: min(92dvh, 980px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 14, 26, 0.92);
}

.modal__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.modal-form {
  align-content: start;
  min-height: 100%;
  padding-bottom: 14px;
}

.modal-form .button-row {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: 4px;
  padding-top: 14px;
  background: linear-gradient(180deg, rgba(8, 14, 26, 0), rgba(8, 14, 26, 0.86) 34%, rgba(8, 14, 26, 0.98));
}

.icon-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.settings-footnote {
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .auth-shell__inner,
  .hero-panel,
  .detail-layout,
  .assistant-layout,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .auth-grid,
  .hero-panel__stats,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toggle-grid,
  .profile-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual--brand {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .mobile-nav {
    display: grid;
  }

  .topbar,
  .content {
    padding-inline: 16px;
  }

  .topbar {
    padding-top: 20px;
  }

  .main-column {
    padding-bottom: calc(110px + var(--safe-bottom));
  }
}

@media (max-width: 640px) {
  .auth-shell,
  .boot-shell,
  .modal-backdrop {
    padding: 14px;
  }

  .auth-hero,
  .auth-card,
  .panel,
  .hero-panel,
  .modal__header,
  .modal__body,
  .boot-card {
    padding: 18px;
  }

  .auth-grid,
  .hero-panel__stats,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
  }

  .hero-visual--brand {
    padding: 22px 18px 20px;
  }

  .hero-visual__brand-copy strong {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .hero-visual__brand-copy > span {
    font-size: 0.95rem;
  }

  .button-row > *,
  .topbar__actions > *,
  .hero-panel__actions > *,
  .auth-actions > * {
    flex: 1 1 100%;
  }

  .modal {
    width: 100%;
    max-height: calc(100dvh - 28px);
  }

  .mobile-nav {
    width: calc(100vw - 16px);
    bottom: calc(8px + var(--safe-bottom));
  }

  .mobile-nav__button {
    min-height: 58px;
    padding-inline: 2px;
  }

  .hunt-card,
  .panel-header,
  .notification-card,
  .calendar-row,
  .list-card {
    flex-direction: column;
  }

  .hunt-card__side {
    min-width: 0;
    width: 100%;
  }
}
