:root {
  --navy-980: #06101f;
  --navy-950: #081528;
  --navy-900: #0b1528;
  --navy-850: #0f1d34;
  --navy-800: #13243d;
  --steel: #2b3a55;
  --gold: #d4af37;
  --gold-2: #f1c778;
  --gold-dark: #9b7330;
  --white: #ffffff;
  --ink-soft: #d9e3f3;
  --muted: #95a4ba;
  --line: rgba(212, 175, 55, 0.32);
  --glass: rgba(12, 28, 51, 0.72);
  --glass-strong: rgba(16, 35, 61, 0.88);
  --danger: #f97066;
  --success: #32d583;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  --glow: 0 0 42px rgba(212, 175, 55, 0.24);
  --radius: 20px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--navy-980);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(93, 162, 255, 0.14), transparent 28%),
    radial-gradient(circle at 72% 42%, rgba(212, 175, 55, 0.12), transparent 18%),
    linear-gradient(135deg, #050d19 0%, var(--navy-950) 42%, #071222 100%);
  color: var(--white);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.5px),
    linear-gradient(110deg, transparent 0 18%, rgba(212, 175, 55, 0.08) 18.2%, transparent 18.6% 100%);
  background-size: 120px 120px, 100% 100%;
  opacity: 0.18;
}

body::after {
  position: fixed;
  right: -160px;
  top: 72px;
  z-index: -1;
  width: min(58vw, 660px);
  aspect-ratio: 1;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 64% 58%, rgba(241, 199, 120, 0.28), transparent 6%),
    radial-gradient(circle, transparent 0 38%, rgba(255, 255, 255, 0.08) 38.4% 38.8%, transparent 39%),
    repeating-radial-gradient(circle, transparent 0 70px, rgba(212, 175, 55, 0.08) 72px, transparent 74px),
    linear-gradient(90deg, transparent 49.8%, rgba(255, 255, 255, 0.1) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(255, 255, 255, 0.1) 50%, transparent 50.2%);
  filter: blur(0.2px);
  opacity: 0.58;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(6, 16, 31, 0.88);
  backdrop-filter: blur(18px);
}

.nav-inner,
.container,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  letter-spacing: 0.03em;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.22);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.8);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 46%, rgba(212, 175, 55, 0.24) 47% 49%, transparent 50%),
    linear-gradient(35deg, transparent 43%, rgba(212, 175, 55, 0.62) 44% 46%, transparent 47%),
    linear-gradient(145deg, transparent 43%, rgba(212, 175, 55, 0.62) 44% 46%, transparent 47%);
  box-shadow: inset 0 0 22px rgba(212, 175, 55, 0.12), 0 0 18px rgba(212, 175, 55, 0.16);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  inset: 8px;
  content: "";
  border: 1px solid rgba(212, 175, 55, 0.58);
  border-radius: 50%;
}

.brand-mark::after {
  inset: 14px 5px;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text strong::first-letter {
  color: var(--gold);
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  padding: 4px;
}

.language-button {
  min-width: 38px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.language-button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #091324;
}

.nav-link,
.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-soft);
  padding: 10px 17px;
  transition: 0.18s ease;
}

.nav-link:hover,
.btn:hover {
  border-color: rgba(241, 199, 120, 0.78);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.12);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-link.active {
  border-color: rgba(241, 199, 120, 0.68);
  background: rgba(212, 175, 55, 0.14);
  color: var(--white);
  box-shadow: inset 0 0 18px rgba(212, 175, 55, 0.08), 0 0 22px rgba(212, 175, 55, 0.1);
}

/* Slim underline nav tabs (override the shared pill style for nav links only) */
.nav-links {
  gap: 20px;
}

.nav-link {
  min-height: auto;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 8px 2px;
  color: var(--ink-soft);
  box-shadow: none;
  transform: none;
}

.nav-link:hover {
  border-color: transparent;
  border-bottom-color: rgba(241, 199, 120, 0.55);
  background: transparent;
  box-shadow: none;
  transform: none;
  color: var(--white);
}

.nav-link.active {
  border: 0;
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  box-shadow: none;
}

.btn-primary {
  border-color: rgba(241, 199, 120, 0.2);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #091324;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.18);
}

.btn-secondary {
  border-color: rgba(241, 199, 120, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn-danger {
  border-color: rgba(249, 112, 102, 0.4);
  color: #ffd6d1;
}

.btn-small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 14px;
}

.app-main {
  min-height: calc(100vh - 150px);
}

.app-main.page-exit {
  opacity: 0;
  transform: translateY(8px) scale(0.998);
  transition: opacity 90ms ease, transform 90ms ease;
}

.app-main.page-enter {
  animation: pageEnter 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.998);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-main.page-exit,
  .app-main.page-enter {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
    filter: none;
  }
}

.section {
  position: relative;
  padding: 76px 0;
}

.section-tight {
  padding: 36px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 104px 0 92px;
  background:
    radial-gradient(circle at 74% 48%, rgba(241, 199, 120, 0.22), transparent 10%),
    radial-gradient(circle at 80% 32%, rgba(93, 162, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(5, 13, 25, 0.96), rgba(11, 21, 40, 0.92));
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(212, 175, 55, 0.16) 48.2%, transparent 48.6%),
    radial-gradient(circle at 78% 64%, transparent 0 105px, rgba(212, 175, 55, 0.16) 106px 108px, transparent 110px),
    radial-gradient(circle at 83% 23%, transparent 0 210px, rgba(255, 255, 255, 0.1) 211px 212px, transparent 214px);
  opacity: 0.72;
}

.hero-grid,
.two-col {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  align-items: center;
  gap: 38px;
}

.hero-title .gold,
.gold-text {
  color: var(--gold-2);
}

.brand-rule {
  width: min(260px, 50%);
  height: 2px;
  margin: 24px 0 26px;
  background: linear-gradient(90deg, var(--gold), transparent);
  box-shadow: var(--glow);
}

.signature-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  color: var(--gold-2);
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0.08em;
}

.signature-line::before,
.signature-line::after {
  flex: 1;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.62), transparent);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.06;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
}

h1 {
  max-width: 850px;
  font-size: clamp(48px, 7vw, 86px);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(34px, 4.5vw, 58px);
  letter-spacing: -0.035em;
}

h3 {
  color: var(--white);
  font-size: 20px;
}

p {
  margin: 0 0 16px;
}

.lead {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
}

.muted {
  color: var(--muted);
}

.dark-text .muted,
.card .muted,
.panel .muted {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.card,
.panel,
.glass-card {
  border: 1px solid rgba(201, 215, 238, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--glass);
  color: var(--ink-soft);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.card:hover {
  border-color: rgba(241, 199, 120, 0.42);
}

.card {
  padding: 24px;
}

.panel {
  padding: 30px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* AI Pre-Screening panel */
.ai-overview {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
  margin-bottom: 22px;
}

.ai-group-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 150px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, var(--ai-color) 14%, transparent);
}

.ai-group-letter {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--ai-color);
}

.ai-group-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #9fb0c3);
  text-align: center;
}

.ai-score {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.ai-score-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ai-score-top strong {
  font-size: 22px;
}

.score-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.ai-scored-at {
  font-size: 12px;
}

.ai-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ai-block-title {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.ai-summary {
  margin: 0;
  line-height: 1.6;
}

.ai-feedback {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  line-height: 1.55;
}

.ai-flags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ai-flags li {
  position: relative;
  padding: 10px 14px 10px 38px;
  border-radius: 10px;
  background: rgba(217, 83, 79, 0.10);
  border: 1px solid rgba(217, 83, 79, 0.25);
  line-height: 1.5;
}

.ai-flags li::before {
  content: "\26A0";
  position: absolute;
  left: 13px;
  top: 10px;
  color: #e0736f;
}

/* Investor Deal Room toolbar + filter panel */
.deal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-panel {
  display: none;
  margin-bottom: 16px;
}

.filter-panel.open {
  display: block;
}

.filter-toggle[aria-expanded="true"] .filter-caret {
  transform: rotate(180deg);
}

/* Investor Deal Room cards */
.deal-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deal-card::after {
  display: none;
}

.deal-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.deal-card-head h3 {
  margin: 0;
  line-height: 1.25;
}

.deal-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted, #9fb0c3);
}

.deal-desc {
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-facts {
  display: flex;
  gap: 28px;
  padding: 12px 0;
  margin: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.deal-fact-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted, #9fb0c3);
  margin-bottom: 2px;
}

.deal-fact-value {
  font-weight: 600;
}

.deal-card .actions {
  margin-top: auto;
}

.glass-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.glass-card::after,
.card::after {
  display: block;
  width: 88px;
  height: 1px;
  margin-top: 18px;
  content: "";
  background: linear-gradient(90deg, var(--gold), transparent);
}

.orb-card {
  display: grid;
  place-items: center;
  min-height: 420px;
}

.hero-logo {
  display: block;
  width: min(430px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.28);
}

.world-orb {
  position: relative;
  width: min(430px, 86vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 52% 60%, rgba(241, 199, 120, 0.78), transparent 6%),
    radial-gradient(circle at 46% 42%, rgba(93, 162, 255, 0.2), transparent 24%),
    repeating-radial-gradient(circle, transparent 0 48px, rgba(212, 175, 55, 0.12) 49px, transparent 51px),
    repeating-linear-gradient(25deg, transparent 0 54px, rgba(255, 255, 255, 0.08) 55px, transparent 57px),
    radial-gradient(circle, rgba(19, 36, 61, 0.2), rgba(5, 13, 25, 0.72) 70%);
  box-shadow: inset 0 0 70px rgba(93, 162, 255, 0.1), 0 0 80px rgba(212, 175, 55, 0.12);
}

.world-orb::before {
  position: absolute;
  inset: 18%;
  content: "";
  border: 1px solid rgba(241, 199, 120, 0.32);
  border-radius: 50%;
  transform: rotate(-25deg);
}

.world-orb::after {
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 190px;
  height: 70px;
  content: "";
  border: 1px solid rgba(212, 175, 55, 0.52);
  border-radius: 50%;
  box-shadow: 0 0 38px rgba(212, 175, 55, 0.28);
  transform: translateX(-50%);
}

.icon-ring {
  display: inline-grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  color: var(--gold-2);
  font-size: 25px;
  box-shadow: inset 0 0 18px rgba(212, 175, 55, 0.1), 0 0 18px rgba(212, 175, 55, 0.14);
}

.light-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 16%, rgba(212, 175, 55, 0.09), transparent 22%),
    linear-gradient(180deg, rgba(8, 21, 40, 0.96), rgba(6, 16, 31, 0.98));
  color: var(--white);
}

.light-section::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  opacity: 0.28;
}

.grid {
  display: grid;
  align-items: start;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.dashboard-header h1,
.light-section h1,
.panel h1,
.panel h2 {
  color: var(--white) !important;
}

.stat {
  border-left: 3px solid var(--gold);
}

.stat-number {
  display: block;
  margin-top: 8px;
  color: var(--gold-2);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 38px;
  font-weight: 700;
}

.form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(201, 215, 238, 0.22);
  border-radius: 13px;
  background: rgba(5, 13, 25, 0.6);
  color: var(--white);
  padding: 11px 12px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(217, 227, 243, 0.48);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(212, 175, 55, 0.24);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
  min-height: 0;
  margin-top: 4px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(201, 215, 238, 0.18);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--ink-soft);
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid rgba(201, 215, 238, 0.13);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(255, 255, 255, 0.045);
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(201, 215, 238, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  white-space: nowrap;
}

.badge-gold {
  border-color: rgba(241, 199, 120, 0.52);
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-2);
}

.badge-green {
  border-color: rgba(50, 213, 131, 0.42);
  background: rgba(50, 213, 131, 0.12);
  color: #b7f7d2;
}

.badge-red {
  border-color: rgba(249, 112, 102, 0.42);
  background: rgba(249, 112, 102, 0.12);
  color: #ffd1cc;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(201, 215, 238, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.segmented-item {
  padding: 8px 20px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.segmented-item:hover {
  color: var(--white);
}

.segmented-item.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--navy-900);
}

.filter-disclosure {
  margin-bottom: 24px;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: fit-content;
  list-style: none;
}

.filter-toggle::-webkit-details-marker {
  display: none;
}

.filter-toggle::marker {
  content: "";
}

.filter-count {
  background: var(--navy-900);
  color: var(--gold-2);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 12px;
  font-weight: 800;
}

.filter-caret {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.filter-disclosure[open] .filter-caret {
  transform: rotate(180deg);
}

.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 18px;
}

.status-banner .badge {
  font-size: 16px;
  padding: 8px 18px;
}

.notice {
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-left: 4px solid var(--gold);
  border-radius: 15px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--ink-soft);
  padding: 16px;
}

.error {
  border-left-color: var(--danger);
  background: rgba(249, 112, 102, 0.1);
}

.success {
  border-left-color: var(--success);
  background: rgba(50, 213, 131, 0.1);
}

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-item {
  border-bottom: 1px solid rgba(201, 215, 238, 0.13);
  padding-bottom: 12px;
}

.detail-label {
  display: block;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-value {
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.footer {
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(5, 13, 25, 0.96);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.empty-state {
  border: 1px dashed rgba(212, 175, 55, 0.28);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.is-hidden {
  display: none !important;
}

.account-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 38%, rgba(212, 175, 55, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 28px;
}

.account-hero-main {
  min-width: 0;
}

.account-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.account-avatar {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(241, 199, 120, 0.66);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 58%, rgba(241, 199, 120, 0.42), transparent 28%),
    repeating-radial-gradient(circle, transparent 0 19px, rgba(212, 175, 55, 0.22) 20px, transparent 22px),
    rgba(5, 13, 25, 0.72);
  color: var(--gold-2);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  box-shadow: 0 0 44px rgba(212, 175, 55, 0.16), inset 0 0 28px rgba(212, 175, 55, 0.1);
}

.account-hero h2 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 56px);
}

.account-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.account-card {
  min-height: 420px;
}

.account-action-card {
  display: flex;
  flex-direction: column;
}

.account-action-card .actions {
  margin-top: auto;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.account-edit-form {
  margin-top: 20px;
}

.mini-item,
.account-status-block {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(201, 215, 238, 0.13);
  padding-top: 10px;
}

.mini-item span,
.account-status-block span {
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-item strong {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.signal-chat-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start;
}

.signal-chat-thread {
  display: grid;
  max-height: 420px;
  gap: 12px;
  overflow-y: auto;
  padding-right: 6px;
}

.message-bubble {
  width: min(88%, 560px);
  border: 1px solid rgba(201, 215, 238, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.message-bubble.own {
  justify-self: end;
  border-color: rgba(212, 175, 55, 0.36);
  background: rgba(212, 175, 55, 0.12);
}

.message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--gold-2);
  font-size: 12px;
}

.message-bubble p {
  margin: 0;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.signal-chat-form {
  margin-top: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 22%, rgba(212, 175, 55, 0.18), transparent 28%),
    rgba(3, 8, 16, 0.74);
  padding: 20px;
  backdrop-filter: blur(12px);
  animation: fade-in 0.16s ease;
}

.confirm-modal {
  width: min(460px, 100%);
  border: 1px solid rgba(241, 199, 120, 0.36);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(18, 39, 68, 0.96), rgba(7, 17, 32, 0.98)),
    var(--glass-strong);
  box-shadow: var(--shadow), var(--glow);
  padding: 28px;
  animation: modal-rise 0.18s ease;
}

.confirm-modal h2 {
  margin: 4px 0 10px;
  color: var(--white);
  font-size: clamp(28px, 5vw, 38px);
}

.confirm-actions {
  justify-content: flex-end;
  margin-top: 24px;
}

.btn-danger-solid {
  border-color: rgba(249, 112, 102, 0.55);
  background: linear-gradient(135deg, #f97066, #ffb4ad);
  color: #2b0604;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(249, 112, 102, 0.16);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes modal-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding: 72px 0 56px;
  }

  .hero-grid,
  .two-col,
  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header,
  .footer-inner,
  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .section {
    padding: 50px 0;
  }

  h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .world-orb {
    width: min(320px, 82vw);
  }

  .account-hero {
    grid-template-columns: 1fr;
  }

  .account-hero-actions {
    justify-content: flex-start;
  }

  .account-avatar {
    width: 92px;
    height: 92px;
    font-size: 28px;
  }
}
