/* Aurex Capital — dashboard skin layered on Bootstrap 5 */

:root {
  --ax-bg: #f3efe6;
  --ax-surface: #ffffff;
  --ax-ink: #102033;
  --ax-muted: #5c6b7c;
  --ax-faint: #8a97a6;
  --ax-line: #e3e8ef;
  --ax-line-strong: #d3dbe6;
  --ax-navy: #000f24;
  --ax-navy-deep: #000f24;
  --ax-gold: #d4a24a;
  --ax-gold-deep: #a87420;
  --ax-gold-ink: #1a1408;
  --ax-sidebar: #000f24;
  --ax-green: #0f7a43;
  --ax-green-bg: #e7f6ee;
  --ax-red: #c5162c;
  --ax-red-bg: #fdecee;
  --ax-amber: #8a4b08;
  --ax-amber-bg: #fff4df;
  --ax-shadow: 0 10px 28px rgba(0, 15, 36, 0.06);
  --ax-shadow-lg: 0 18px 44px rgba(0, 15, 36, 0.12);
  --ax-radius: 22px;
  --sidebar-w: 252px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ax-ink);
  --bs-body-bg: var(--ax-bg);
  --bs-body-line-height: 1.5;
  --bs-primary: #000f24;
  --bs-border-color: var(--ax-line);
  --bs-border-radius: 14px;
  --bs-border-radius-lg: 22px;
  --bs-offcanvas-width: 280px;
  --bs-offcanvas-bg: #000f24;
  --bs-focus-ring-color: rgba(0, 15, 36, 0.35);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ax-ink);
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(0, 15, 36, 0.08), transparent 55%),
    var(--ax-bg);
  font-variant-numeric: tabular-nums;
}

::selection { background: #d9e4f2; }

:focus-visible {
  outline: 2px solid #000f24;
  outline-offset: 2px;
}

button,
.btn { cursor: pointer; }

img { max-width: 100%; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 0;
  z-index: 2000;
  transform: translateY(-120%);
  background: #fff;
  color: var(--ax-ink);
  padding: 10px 14px;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
}

.skip-link:focus { transform: none; }

h1, h2, h3 { letter-spacing: -0.03em; }

.nums { font-variant-numeric: tabular-nums; }

/* Shell -------------------------------------------------------------- */

.app-shell { min-height: 100vh; }

.app-main {
  min-width: 0;
  flex: 1 1 auto;
}

.shell {
  width: 100%;
}

.dash {
  padding: 6px 22px 40px;
}

section[id],
article[id] { scroll-margin-top: 92px; }

/* Sidebar ------------------------------------------------------------- */

.sidebar {
  --bs-offcanvas-width: 280px;
  --bs-offcanvas-bg: var(--ax-sidebar);
  background-color: var(--ax-sidebar);
  color: #fff;
  border: 0;
}

.sidebar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 12px 0 8px;
}

.sidebar__glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sidebar__glow span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 106, 0.22);
}

.sidebar__glow span:nth-child(1) {
  width: 360px;
  height: 360px;
  right: -170px;
  top: 28px;
}

.sidebar__glow span:nth-child(2) {
  width: 500px;
  height: 500px;
  right: -230px;
  top: 90px;
  border-color: rgba(212, 175, 106, 0.12);
}

.sidebar__glow span:nth-child(3) {
  width: 280px;
  height: 280px;
  left: -160px;
  bottom: 80px;
  border-color: rgba(212, 175, 106, 0.16);
}

.brand-row {
  display: flex;
  align-items: flex-start;
  padding: 0 14px 4px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-height: 36px;
}

.brand img,
.platinum__brand img {
  display: block;
  height: auto;
  max-width: none;
}

.brand img { width: 156px; }

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 4px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 16px);
  margin: 0 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  text-align: left;
  text-decoration: none;
}

.side-link i { font-size: 0.92rem; width: 1.05rem; text-align: center; }

.side-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.side-link.is-active {
  background: linear-gradient(100deg, #f6e2b0 0%, #e2bc62 42%, #d4a24a 100%);
  color: var(--ax-gold-ink);
  box-shadow: 0 8px 18px rgba(198, 161, 90, 0.22);
}

.side-link .count {
  margin-left: auto;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0ddb0, #d4a24a);
  color: var(--ax-gold-ink);
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.side-link .chev {
  margin-left: auto;
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.side-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.subnav { padding: 0 10px 4px 40px; }

.subnav a {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
}

.subnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }

.sidebar :focus-visible { outline-color: #f0d48a; }

.side-foot {
  position: relative;
  margin: 10px 10px 6px;
  border-radius: 18px;
  overflow: hidden;
  background: #14110e;
  line-height: 0;
}

.side-foot img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(198, 161, 90, 0.4) transparent;
}

/* Top bar ------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px 10px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: transparent;
  box-shadow: none;
}

.topbar.is-stuck {
  background: rgba(243, 238, 230, 0.96);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(80, 56, 24, 0.06);
}

.menu-btn,
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--ax-line);
  background: #fff;
  color: var(--ax-ink);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(72, 48, 16, 0.04);
}

.icon-btn--ghost {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ax-muted);
}

.icon-btn { position: relative; }

.ping {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e11d2e;
  box-shadow: 0 0 0 2px #fff;
}

.search {
  position: relative;
  flex: 0 1 440px;
  min-width: 0;
  max-width: 460px;
}

.search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #f3ecdf;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(72, 48, 16, 0.04);
}

.search__field i { color: var(--ax-faint); }

.search__field input {
  flex: 1;
  border: 0;
  background: transparent;
  min-width: 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ax-ink);
}

.search__field input::placeholder { color: #9a9188; }
.search__field input:focus { outline: none; }

.search:focus-within .search__field {
  border-color: #b7c6da;
  box-shadow: 0 0 0 4px rgba(0, 15, 36, 0.12);
}

.search-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--ax-line);
  border-radius: 16px;
  box-shadow: var(--ax-shadow-lg);
  padding: 8px;
}

.search-pop__label {
  margin: 4px 8px 6px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ax-faint);
  font-weight: 800;
}

.search-hit {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  font-weight: 600;
  color: var(--ax-ink);
}

.search-hit:hover,
.search-hit.is-active { background: #eef3f8; }

.topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 4px 10px 4px 4px;
  border: 0;
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(48, 32, 10, 0.08);
  text-align: left;
  color: inherit;
}

.user-pill img,
.avatar img {
  width: 40px;
  height: 40px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 40px;
}

.user-pill strong,
.user-pill small { display: block; line-height: 1.15; }
.user-pill strong { font-size: 0.86rem; }
.user-pill small { color: var(--ax-muted); font-size: 0.72rem; font-weight: 600; }
.user-pill .bi-chevron-down { color: var(--ax-faint); font-size: 0.72rem; }

.dropdown-menu.ax-menu {
  border: 1px solid var(--ax-line);
  border-radius: 14px;
  box-shadow: var(--ax-shadow-lg);
  padding: 6px;
  min-width: 210px;
}

.dropdown-menu.ax-menu .dropdown-item {
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 650;
  font-weight: 600;
  padding: 8px 12px;
}

.dropdown-menu.ax-menu .dropdown-item.active,
.dropdown-menu.ax-menu .dropdown-item:active,
.dropdown-menu.ax-menu .dropdown-item:hover {
  background: #f6efdf;
  color: var(--ax-ink);
}

.notif-menu { width: min(320px, 80vw); padding: 8px; }
.notif-menu .dropdown-header {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ax-faint);
}
.notif-menu p { margin: 0; font-size: 0.8rem; font-weight: 600; line-height: 1.35; }
.notif-menu time { display: block; margin-top: 3px; color: var(--ax-muted); font-size: 0.7rem; font-weight: 600; }

/* Greeting, KPI, platinum -------------------------------------------- */

.greeting { margin: 4px 4px 20px; position: relative; z-index: 1; }

.greeting h1 {
  margin: 0 0 4px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 800;
}

.greeting p { margin: 0; color: var(--ax-ink-soft, #3f3a34); color: #3c372f; font-size: 0.94rem; font-weight: 600; }

.greeting--action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: end;
}

.greeting--action h1,
.greeting--action p { grid-column: 1; }

.greeting--action .btn-gold {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}

.hero {
  position: relative;
  margin-bottom: 8px;
}

.hero > :not(.hero__sky) {
  position: relative;
  z-index: 1;
}

.hero__sky {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: -80px;
  height: calc(248px + 80px);
  border-radius: 22px;
  background: url("../images/skyline.jpg") center top / 50% no-repeat;
  pointer-events: none;
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  grid-template-areas:
    "greet card"
    "kpis card";
  column-gap: 16px;
  row-gap: 0;
  align-items: stretch;
}

.greeting { grid-area: greet; }
.kpi-row { grid-area: kpis; margin-top: -8px; }
.hero .platinum { grid-area: card; align-self: stretch; min-height: 100%; }

.surface {
  background: var(--ax-surface);
  border: 1px solid #f4eee4;
  border-radius: var(--ax-radius);
  box-shadow: var(--ax-shadow);
  padding: 16px 16px 14px;
  height: 100%;
}

.kpi { display: flex; flex-direction: column; min-height: 148px; }

.kpi__top,
.panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kpi__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e8eef6;
  color: var(--ax-navy);
  flex: 0 0 auto;
}

.kpi__label {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.kpi__top .dropdown { margin-left: auto; }

.kpi__value {
  margin: 14px 0 8px;
  font-size: clamp(1.35rem, 1.7vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.kpi__foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.trend {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 800;
}

.trend span { color: var(--ax-muted); font-weight: 600; }
.trend--up { color: var(--ax-green); }
.trend--down { color: var(--ax-red); }
.trend i { font-size: 1rem; line-height: 1; }

.spark { width: 76px; height: 30px; flex: 0 0 auto; }

.platinum {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 20px 18px 16px;
  color: #fff;
  min-height: 220px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(224, 190, 110, 0.22), transparent 42%),
    #000f24;
  border: 1px solid rgba(224, 190, 110, 0.38);
  box-shadow: 0 18px 40px rgba(20, 14, 8, 0.28);
}

.platinum__globe {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: min(62%, 210px);
  height: auto;
  max-width: none;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 28%),
    linear-gradient(#000 58%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 28%),
    linear-gradient(#000 58%, transparent 100%);
  mask-composite: intersect;
}

.platinum__brand,
.platinum__body,
.platinum__foot { position: relative; z-index: 1; }

.platinum__brand img { width: 92px; }

.platinum__tier {
  margin: 0 0 6px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

.platinum__balance {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.platinum__hint {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
}

.platinum__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.platinum__visa {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 1.25rem;
}

.platinum__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mix-card {
  color: #fff;
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(224, 190, 110, 0.22), transparent 42%),
    #000f24;
  border: 1px solid rgba(224, 190, 110, 0.38);
  box-shadow: 0 18px 40px rgba(20, 14, 8, 0.28);
}

.mix-card .donut-center span {
  color: rgba(255, 255, 255, 0.66);
}

.mix-card .legend__btn:hover,
.mix-card .legend__btn.is-on {
  background: rgba(224, 190, 110, 0.16);
}

.status--bad { background: var(--ax-red-bg); color: var(--ax-red); }

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

.fact {
  background: #f7f4ee;
  border-radius: 14px;
  padding: 12px 14px;
}

.fact span {
  display: block;
  color: var(--ax-muted);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.fact strong { font-size: 0.98rem; }

.code-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.code-row .form-control { flex: 1 1 auto; }

.code-row .btn-gold[data-otp-send] {
  flex: 0 0 auto;
  width: 46px;
  min-width: 46px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.code-row .btn-gold[data-otp-send]:disabled {
  opacity: 0.65;
  cursor: wait;
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: #efe8dc;
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #d4a24a;
}

.meter > span.is-full { background: #000f24; }

.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.rank-card h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.rank-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  color: var(--ax-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.rank-meta strong { color: var(--ax-ink); }

.seg--wrap { flex-wrap: wrap; }

/* Inner pages — strip, share bar, list. Index keeps its own cards. */

.dash > :not(.hero) { position: relative; z-index: 1; }

.band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: #000f24;
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(224, 190, 110, 0.38);
}

.band--stack { grid-template-columns: 1fr; }

.band__item {
  padding: 16px 18px;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
}

.band--stack .band__item { border-inline-end: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.band--stack .band__item:first-child { border-top: 0; }

.band__item span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.band__item strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.band__item small { color: #f6e7c1; font-weight: 700; font-size: 0.78rem; }

.split { margin-top: 16px; }

.split__bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #efe8dc;
}

.split__bar i { display: block; height: 100%; }

.split__keys {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.split__keys li { display: inline-flex; align-items: center; gap: 6px; }

.sheet,
.ladder,
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sheet > li,
.ladder > li {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(120px, 0.8fr) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #f0e7d8;
}

.sheet > li:first-child,
.ladder > li:first-child { border-top: 0; padding-top: 0; }

.sheet__title { margin: 0; font-weight: 800; }
.sheet__meta { margin: 2px 0 0; color: var(--ax-muted); font-size: 0.8rem; font-weight: 600; }
.sheet__amt { font-weight: 800; text-align: end; white-space: nowrap; }
.sheet > li.sheet__empty {
  display: block;
  text-align: center;
  color: var(--ax-muted);
  font-weight: 600;
  padding: 28px 12px;
}

.sheet > li.person {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.person__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #000f24;
  color: #f6e7c1;
  font-size: 0.75rem;
  font-weight: 800;
}

.person__end { display: grid; justify-items: end; gap: 4px; }

.ladder > li { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; }
.ladder__rank { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; margin: 0; }

.timeline { margin-left: 8px; border-left: 2px solid #efe8dc; }
.timeline > li { position: relative; padding: 0 0 16px 16px; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4a24a;
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 16px;
  align-items: start;
}

.defs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 8px 0 0;
}

.defs > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid #f0e7d8;
}

.defs dt { margin: 0; color: var(--ax-muted); font-size: 0.78rem; font-weight: 700; }
.defs dd { margin: 0; font-weight: 800; }

/* Panels -------------------------------------------------------------- */

.panel__head { justify-content: space-between; margin-bottom: 12px; }

.panel__head h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
}

.panel__link,
.pill-btn {
  border: 0;
  background: #eef3f8;
  color: var(--ax-ink-soft, #3f3a34);
  color: var(--ax-ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
}

.panel__link {
  background: transparent;
  color: var(--ax-muted);
  padding-inline: 6px;
}

.panel__link:hover { color: var(--ax-ink); }

.pill-btn--dark {
  background: #000f24;
  color: #f4f7fb;
}

.pill-btn--dark:hover,
.pill-btn--dark:focus { color: #fff; }

.expense-layout {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 8px 16px;
  align-items: center;
}

.donut-wrap {
  position: relative;
  width: 176px;
  height: 176px;
  margin-inline: auto;
}

.donut { width: 100%; height: 100%; display: block; }
.donut circle { cursor: pointer; }

.donut.is-dim circle { opacity: 0.28; }
.donut.is-dim circle.is-on { opacity: 1; }

.donut-center {
  position: absolute;
  inset: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.donut-center strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.donut-center span {
  color: var(--ax-muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.legend__btn {
  width: 100%;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 5px 6px;
  text-align: left;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
}

.legend__btn:hover,
.legend__btn.is-on { background: #eef3f8; }

.swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sw);
}

.legend__name { font-weight: 600; }
.legend__amt { font-weight: 800; font-size: 0.78rem; }
.legend__pct { color: var(--ax-muted); width: 34px; text-align: right; font-weight: 700; font-size: 0.75rem; }

.goal-layout { display: flex; flex-direction: column; align-items: center; }

.gauge {
  position: relative;
  width: min(240px, 100%);
  margin: 0 auto 4px;
}

.gauge svg { display: block; width: 100%; height: auto; }

.gauge__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  text-align: center;
}

.gauge__label strong {
  display: block;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.gauge__label span { color: var(--ax-muted); font-size: 0.75rem; font-weight: 600; }

.goal-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 8px 0 12px;
}

.goal-meta p { margin: 0; text-align: center; font-size: 0.75rem; color: var(--ax-muted); font-weight: 600; }
.goal-meta strong { display: block; color: var(--ax-ink); font-size: 0.95rem; }

.goal-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.goal-dot--gold { background: #d4a24a; }
.goal-dot--pale { background: #e7d7b4; }

.goal-quote {
  width: 100%;
  margin: 0;
  background: #fbf8f3;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ax-muted);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.45;
}

.goal-quote span {
  font-family: var(--serif);
  font-style: normal;
  font-size: 1.4rem;
  color: var(--ax-gold);
  line-height: 0;
  margin-right: 4px;
}

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

.balance-figure strong {
  display: block;
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  letter-spacing: -0.04em;
}

.delta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ax-green-bg);
  color: var(--ax-green);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.delta-pill span { color: var(--ax-muted); font-weight: 600; }

.meter {
  height: 8px;
  border-radius: 999px;
  background: #f3eadc;
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  width: 72%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e7d3a0, #d4a24a);
}

.meter-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--ax-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.people-search {
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid var(--ax-line-strong);
  border-radius: 12px;
  min-height: 40px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.86rem;
}

.people {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.person {
  flex: 0 0 auto;
  width: 64px;
  border: 0;
  background: transparent;
  padding: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ax-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
}

.person img,
.avatar--initial {
  width: 46px;
  height: 46px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #f0e4cc;
}

.avatar--initial {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f0ddb0, #d4a24a);
  color: var(--ax-gold-ink);
  font-weight: 800;
}

.person.is-hidden { display: none; }

.btn-gold {
  background: linear-gradient(180deg, #f6e2b0 0%, #e0bc68 48%, #c4923a 100%);
  color: var(--ax-gold-ink);
  border: 0;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  min-height: 46px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 16px rgba(0, 15, 36, 0.16);
}

.btn-gold:hover,
.btn-gold:focus { color: var(--ax-gold-ink); filter: brightness(1.04); }

/* Cashflow ------------------------------------------------------------ */

.seg {
  display: inline-flex;
  padding: 3px;
  background: #eef3f8;
  border-radius: 999px;
}

.seg button {
  border: 0;
  background: transparent;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ax-muted);
}

.seg button[aria-pressed="true"] {
  background: #000f24;
  color: #f4f7fb;
}

.chart-wrap { position: relative; }

.chart-wrap svg { display: block; width: 100%; height: auto; }

.chart-wrap .hit { cursor: pointer; }

.chart-tip {
  position: absolute;
  top: 6px;
  left: 55%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #f0e7d8;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(40, 28, 8, 0.12);
  padding: 10px 12px;
  min-width: 168px;
  pointer-events: none;
  z-index: 2;
}

.chart-tip p { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--ax-muted); font-weight: 600; }
.chart-tip p:first-child { color: var(--ax-ink); font-weight: 800; font-size: 0.82rem; margin-bottom: 4px; }
.chart-tip b { margin-left: auto; color: var(--ax-ink); font-weight: 800; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dot--gold { background: #d4a24a; }
.dot--gray { background: #c5bfb6; }

/* Two-column board --------------------------------------------------- */

.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.board__main,
.board__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.board__pair {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

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

.board__side .people {
  justify-content: space-between;
}

.board__side .person {
  width: 48px;
}

/* Payments, table, activity ------------------------------------------ */

.pay-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pay-card {
  border: 1px solid var(--ax-line);
  border-radius: 16px;
  padding: 12px 10px;
  background: #fff;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pay-card strong { font-size: 0.92rem; letter-spacing: -0.02em; }
.pay-card .sub { color: var(--ax-muted); font-size: 0.72rem; line-height: 1.3; }
.pay-card time { margin-top: auto; color: var(--ax-faint); font-size: 0.68rem; font-weight: 700; }

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  color: #fff;
  font-size: 1.05rem;
}

.brand-logo svg { width: 20px; height: 20px; display: block; }
.brand-logo--netflix { background: #e50914; }
.brand-logo--icloud { background: #0a84ff; }
.brand-logo--spotify { background: #1db954; padding: 0; }
.brand-logo--spotify svg { width: 36px; height: 36px; }
.brand-logo--adobe { background: #ff0000; }
.brand-logo--yt { background: #ff0033; }
.brand-logo--gym { background: #241c10; color: #f0d9a4; }

.table-wrap { overflow-x: auto; }

.tx-table { width: 100%; border-collapse: collapse; min-width: 640px; }

.tx-table thead th {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ax-faint);
  font-weight: 800;
  padding: 0 8px 10px;
  white-space: nowrap;
  text-align: left;
}

.tx-table td,
.tx-table th[scope="row"] {
  padding: 12px 8px;
  vertical-align: middle;
  text-align: left;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.92rem;
  color: var(--ax-ink);
}

.tx-table tbody tr { border-top: 1px solid #f4eee6; }

.sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  font-weight: inherit;
}

.tx-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.tx-badge--shop { background: #e8eef6; color: var(--ax-navy); }
.tx-badge--food { background: #fdeee6; color: #c45b32; }
.tx-badge--in { background: var(--ax-green-bg); color: var(--ax-green); }
.tx-badge--sub { background: var(--ax-red-bg); color: var(--ax-red); }
.tx-badge--move { background: #eef1f8; color: #3c4f9a; }

.tx-title { display: block; font-weight: 800; }
.tx-cat,
.tx-date small { display: block; color: var(--ax-muted); font-size: 0.75rem; font-weight: 600; }
.tx-account { color: var(--ax-ink-soft, #3c372f); color: #3c372f; font-size: 0.86rem; }
.tx-amount { font-weight: 800; white-space: nowrap; }
.num--neg { color: var(--ax-red); }
.num--pos { color: var(--ax-green); }

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.status--ok { background: var(--ax-green-bg); color: var(--ax-green); }
.status--in { background: #e8f8ef; color: #0d8a4c; }
.status--wait { background: var(--ax-amber-bg); color: var(--ax-amber); }

.tx-empty td {
  text-align: center;
  color: var(--ax-muted);
  padding: 28px 8px;
  font-weight: 600;
}

.activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.activity li { display: flex; gap: 12px; align-items: flex-start; }

.activity__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.activity__icon--ok { background: var(--ax-green-bg); color: var(--ax-green); }
.activity__icon--card { background: #eef0ff; color: #3d4db7; }
.activity__icon--doc { background: var(--ax-red-bg); color: var(--ax-red); }
.activity__icon--bell { background: var(--ax-amber-bg); color: var(--ax-amber); }

.activity p { margin: 0; font-size: 0.84rem; font-weight: 600; line-height: 1.4; }
.activity time { display: block; margin-top: 4px; color: var(--ax-muted); font-size: 0.72rem; font-weight: 600; }

.flash { animation: rowflash 1.2s ease; }

/* Modals & toasts ----------------------------------------------------- */

.modal-content {
  border: 0;
  border-radius: 24px;
  box-shadow: var(--ax-shadow-lg);
}

.modal-header { border-bottom-color: var(--ax-line); }
.modal-footer { border-top: 0; padding-top: 0; }
.modal-body { padding-top: 18px; }

.modal .form-label {
  margin-bottom: 6px;
  color: var(--ax-ink);
}

.modal .mb-3:last-child { margin-bottom: 0; }

.modal .form-control,
.modal .form-select {
  background: #f6f4ef;
  border: 1px solid #e6dfd2;
  border-radius: 10px;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--ax-ink);
}

.modal .form-control::placeholder { color: #8d8578; font-weight: 600; }

.modal .form-control:focus,
.modal .form-select:focus {
  background: #fff;
  border-color: #d4a24a;
  box-shadow: 0 0 0 3px rgba(212, 162, 74, 0.22);
}

.modal .form-control[readonly] {
  background: #efeae2;
  color: #5c564c;
}

.modal-choices {
  border: 0;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.modal-choices .form-label { margin-bottom: 0; }

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e6dfd2;
  background: #f6f4ef;
  cursor: pointer;
}

.choice:has(input:checked) {
  background: #fff8ec;
  border-color: #d4a24a;
  box-shadow: 0 0 0 3px rgba(212, 162, 74, 0.16);
}

.choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #000f24;
  flex: 0 0 auto;
}

.choice span { display: grid; gap: 2px; }
.choice strong { font-size: 0.95rem; }
.choice small { color: var(--ax-muted); font-weight: 600; }

.form-label { font-size: 0.82rem; font-weight: 700; }

.form-control,
.form-select {
  border-radius: 12px;
  border-color: var(--ax-line-strong);
  min-height: 46px;
  font-size: 0.92rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #d4a24a;
  box-shadow: 0 0 0 0.2rem rgba(198, 161, 90, 0.2);
}

.form-note { margin: 0; color: var(--ax-muted); font-size: 0.8rem; }
.form-error { color: var(--ax-red); font-size: 0.82rem; font-weight: 700; margin: 0; }

.promo-modal .modal-content {
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(224, 190, 110, 0.4), transparent 50%),
    #14110e;
  color: #fff;
}

.promo-modal .eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e0c27a;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.promo-modal h2 { font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.promo-modal p { color: rgba(255, 255, 255, 0.78); }
.promo-modal .btn-close { filter: invert(1); }

.toast {
  border-radius: 14px;
  border: 1px solid var(--ax-line) !important;
  box-shadow: var(--ax-shadow-lg);
  background: #fff;
}

.toast-body { font-weight: 700; font-size: 0.86rem; }

/* Motion & responsive ------------------------------------------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes sheen {
  to { transform: translateX(120%); }
}

@keyframes rowflash {
  from { background: #fbf3e2; }
  to { background: transparent; }
}

/* Auth pages ---------------------------------------------------------- */

body.auth-page {
  min-height: 100vh;
  background: #fff;
}

.auth-shell { min-height: 100vh; }

.auth-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  min-height: 100vh;
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 48px 22px;
  background: #fff;
}

.auth-brand {
  display: inline-flex;
  align-self: flex-start;
  line-height: 0;
}

.auth-brand img {
  width: 112px;
  height: auto;
}

.auth-form-wrap {
  width: min(440px, 100%);
  margin: auto;
  padding: 28px 0 36px;
}

.auth-heading h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ax-navy);
}

.auth-heading p {
  margin: 0 0 22px;
  color: var(--ax-muted);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

body.auth-page--center {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background:
    radial-gradient(680px 280px at 50% 0%, rgba(212, 162, 74, 0.22), transparent 58%),
    #000f24;
}

body.auth-page--center .auth-shell {
  width: min(460px, 100%);
  min-height: 0;
  margin: auto;
}

body.auth-page--center .auth-shell.is-wide {
  width: min(640px, 100%);
}

body.auth-page--center .auth-card {
  display: block;
  min-height: 0;
  padding: 32px 28px 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--ax-shadow-lg);
}

body.auth-page--center .auth-form-panel {
  padding: 0;
  background: transparent;
}

body.auth-page--center .auth-brand {
  align-self: center;
}

body.auth-page--center .auth-form-wrap {
  width: 100%;
  margin: 0;
  padding: 18px 0 8px;
}

body.auth-page--center .auth-heading { text-align: center; }

body.auth-page--center .auth-heading h1 {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

body.auth-page--center .auth-heading p {
  font-size: 0.9rem;
  font-weight: 500;
}

body.auth-page--center .auth-footer { margin-top: 10px; }

body.auth-page--center .auth-brand img { width: 112px; }

body.auth-page--center .auth-heading h1 { font-size: 1.15rem; }

body.auth-page--center .auth-heading p {
  margin-bottom: 10px;
  font-size: 0.75rem;
}

body.auth-page--center .auth-form-wrap { padding: 8px 0 0; }

body.auth-page--center .auth-card { padding: 16px 18px 12px; }

body.auth-page--center .auth-switch {
  margin-bottom: 10px;
  min-height: 0;
}

body.auth-page--center .auth-switch-btn {
  min-height: 32px;
  font-size: 0.75rem;
}

body.auth-page--center .auth-grid { gap: 8px 12px; }

body.auth-page--center .auth-field { margin-bottom: 8px; }

body.auth-page--center .auth-field label,
body.auth-page--center .auth-strength-label {
  margin-bottom: 4px;
  font-size: 0.78rem;
}

body.auth-page--center .auth-input-row {
  min-height: 46px;
  gap: 10px;
  padding: 0 14px;
  border-radius: 12px;
}

body.auth-page--center .auth-input-row > i { font-size: 1rem; }

body.auth-page--center .auth-input-row input { font-size: 0.9rem; }

body.auth-page--center .auth-hint,
body.auth-page--center .auth-strength-note {
  margin-top: 3px;
  font-size: 0.66rem;
  line-height: 1.3;
}

body.auth-page--center .auth-rules {
  gap: 2px 12px;
  margin-top: 6px;
}

body.auth-page--center .auth-rules li { font-size: 0.68rem; }

body.auth-page--center .auth-place span {
  min-height: 30px;
  font-size: 0.74rem;
}

body.auth-page--center .auth-otp-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

body.auth-page--center .auth-check {
  margin: 8px 0 8px;
  font-size: 0.72rem;
}

body.auth-page--center .auth-check input {
  width: 14px;
  height: 14px;
}

body.auth-page--center .auth-submit {
  min-height: 46px;
  font-size: 14px;
}

body.auth-page--center .form-note,
body.auth-page--center .auth-form-meta {
  margin-top: 6px;
  font-size: 0.7rem;
}

body.auth-page--center .auth-footer { font-size: 0.66rem; }

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 999px;
  background: #f6f1e6;
}

.auth-switch-btn {
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  background: transparent;
  color: var(--ax-muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-switch-btn.active {
  background: var(--ax-navy);
  color: #fff;
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.auth-grid .auth-field { margin-bottom: 0; }
.auth-span { grid-column: 1 / -1; }

.auth-hint,
.auth-strength-note {
  margin: 6px 0 0;
  color: var(--ax-muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.auth-strength-label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-strength-label span { color: var(--ax-gold-deep); }

.auth-strength {
  height: 6px;
  border-radius: 999px;
  background: #ece8e1;
  overflow: hidden;
}

.auth-strength span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ax-gold);
}

.auth-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.auth-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ax-ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.auth-rules li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ax-red);
}

.auth-rules li.is-met { color: var(--ax-green); }
.auth-rules li.is-met::before { background: var(--ax-green); }

.auth-place {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid #e4e7ee;
  border-radius: 14px;
  background: #fff;
}

.auth-place label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.auth-place input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.auth-place span {
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: 10px;
  color: var(--ax-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-place input:checked + span {
  background: #f3f1ec;
  color: var(--ax-ink);
}

.auth-place input:focus-visible + span {
  outline: 2px solid var(--ax-navy);
  outline-offset: 2px;
}

.auth-otp {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-otp .auth-input-row { flex: 1 1 auto; }

.auth-eye,
.auth-otp-btn {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #8b95a5;
}

.auth-eye {
  width: 32px;
  height: 32px;
  padding: 0;
}

.auth-otp-btn {
  width: 48px;
  height: 48px;
  border: 1px solid #e4e7ee;
  border-radius: 12px;
  background: #fff;
}

.auth-otp-btn:hover,
.auth-eye:hover { color: var(--ax-navy); }

.auth-otp-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-otp-btn .spinner-border {
  width: 1.05rem;
  height: 1.05rem;
  border-width: 0.15em;
  color: var(--ax-navy);
}

.auth-form-meta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-field { margin-bottom: 14px; }

.auth-field label,
.auth-page .form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ax-ink);
}

.auth-field label span { color: var(--ax-gold-deep); }

.auth-optional {
  color: var(--ax-muted);
  font-weight: 600;
}

.auth-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #e4e7ee;
  border-radius: 14px;
  background: #f6f7fb;
}

.auth-input-row:focus-within {
  border-color: var(--ax-gold);
  box-shadow: 0 0 0 4px rgba(212, 162, 74, 0.16);
}

.auth-input-row > i {
  color: #8b95a5;
  font-size: 1rem;
}

.auth-input-row input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ax-ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
}

.auth-input-row input::placeholder { color: var(--ax-faint); font-weight: 600; }

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
  color: var(--ax-muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.auth-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--ax-navy);
}

.auth-check a,
.auth-form-meta a,
.auth-return a,
.auth-footer a {
  color: var(--ax-navy);
  font-weight: 800;
  text-decoration: none;
}

.auth-check a:hover,
.auth-form-meta a:hover,
.auth-return a:hover,
.auth-footer a:hover { color: var(--ax-gold-deep); }

.auth-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-form-meta,
.auth-return {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-return a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-status {
  margin: 12px 0 0;
  color: var(--ax-green);
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-status[hidden] { display: none; }
.auth-status.is-error { color: var(--ax-red); }

.auth-page .form-note { margin-top: 12px; text-align: center; }

.auth-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: auto;
  color: var(--ax-faint);
  font-size: 0.75rem;
  font-weight: 700;
}

.auth-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 48px 40px 64px;
  color: #fff;
  background:
    radial-gradient(480px 360px at 78% 8%, rgba(212, 162, 74, 0.32), transparent 58%),
    linear-gradient(180deg, rgba(0, 15, 36, 0.28) 0%, rgba(0, 15, 36, 0.88) 72%),
    url("../images/skyline.jpg") center 42% / cover no-repeat,
    var(--ax-navy);
}

.auth-preview {
  position: absolute;
  width: min(230px, 46%);
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ax-ink);
  box-shadow: 0 18px 40px rgba(0, 15, 36, 0.22);
}

.auth-preview--main { top: 56px; left: 8%; }
.auth-preview--side { top: 168px; right: 7%; }
.auth-preview--list { top: 268px; left: 16%; }

.auth-preview__label {
  display: block;
  margin-bottom: 4px;
  color: var(--ax-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-preview__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.auth-preview strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--ax-green-bg);
  color: var(--ax-green);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.auth-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 7px;
  height: 58px;
  margin-top: 12px;
}

.auth-bars span {
  display: block;
  border-radius: 6px 6px 2px 2px;
  background: var(--ax-navy);
}

.auth-bars span:nth-child(1) { height: 42%; }
.auth-bars span:nth-child(2) { height: 72%; background: var(--ax-gold); }
.auth-bars span:nth-child(3) { height: 54%; }
.auth-bars span:nth-child(4) { height: 88%; background: var(--ax-gold); }
.auth-bars span:nth-child(5) { height: 62%; }

.auth-donut {
  width: 58px;
  height: 58px;
  margin: 8px 0 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 46%, transparent 47%),
    conic-gradient(var(--ax-gold) 0 54%, var(--ax-navy) 54% 82%, #efe6d4 82% 100%);
}

.auth-preview__row,
.auth-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--ax-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.auth-preview__row strong {
  font-size: 0.78rem;
  color: var(--ax-ink);
}

.auth-line { justify-content: flex-start; }

.auth-line i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f6f1e6;
  color: var(--ax-gold-deep);
  font-size: 0.72rem;
}

.auth-line span {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #efe6d4;
}

.auth-visual__copy {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  margin-bottom: 12px;
  text-align: center;
}

.auth-visual__mark {
  display: block;
  width: 72px;
  height: auto;
  margin: 0 auto 16px;
}

.auth-visual__copy h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}

.auth-visual__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
}

