:root {
  color-scheme: light;
  --ink: #15213d;
  --muted: #5f6b85;
  --line: #dbe1ee;
  --panel: #ffffff;
  --page: #f4f7fb;
  --accent: #1f3168;
  --accent-strong: #121e42;
  --gold: #d4a33f;
  font-family: "Be Vietnam Pro", "Plus Jakarta Sans", "Segoe UI", "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(31, 49, 104, 0.1), transparent 36%),
    linear-gradient(315deg, rgba(212, 163, 63, 0.12), transparent 32%),
    var(--page);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

body.dashboard-active .app-shell {
  place-items: start center;
  align-content: start;
}

.admin-shell {
  place-items: start center;
  align-content: start;
}

.panel {
  width: min(720px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(21, 33, 61, 0.12);
  padding: 34px;
}

.dashboard-panel,
.auth-panel {
  width: min(1040px, 100%);
}

[hidden] {
  display: none !important;
}

.brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-logo {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(21, 33, 61, 0.12);
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

.status-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(15, 118, 110, 0.26);
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.08);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.welcome-pill {
  max-width: 260px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

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

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

.auth-choice-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 24px;
  color: var(--ink);
  text-align: left;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf9 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.auth-choice-card:hover {
  color: var(--ink);
  background: linear-gradient(135deg, #effaf7 0%, #fffaf0 100%);
  border-color: rgba(15, 118, 110, 0.36);
  transform: translateY(-1px);
}

.auth-choice-card span {
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 800;
}

.auth-choice-card small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.auth-form-panel {
  width: min(620px, 100%);
  margin: 0 auto;
}

.auth-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-form-head h2 {
  margin: 0;
}

.card-form,
.generator-form {
  display: grid;
  gap: 18px;
}

.card-form {
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfc;
}

.card-form h2 {
  margin: 0;
  font-size: 20px;
}

.auth-form-note {
  min-height: 20px;
  margin: -4px 0 2px;
}

.card-form label,
.generator-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.card-form label > span,
.generator-form label > span {
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 14px;
  color: var(--ink);
  background: #fbfdfc;
  font-size: 17px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder,
input.date-placeholder {
  color: #8a9aa5;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  font-size: 17px;
  line-height: 1;
}

.password-toggle:hover {
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.08);
}

button {
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 14px 18px;
  color: #ffffff;
  background: var(--accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 118, 110, 0.26);
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.08);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.admin-key-form,
.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.admin-toolbar {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.05), transparent 38%),
    #fbfdfc;
  box-shadow: 0 12px 28px rgba(22, 32, 38, 0.05);
  margin-bottom: 26px;
}

.filter-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
}

.filter-heading p {
  margin: 0;
  color: var(--accent-strong);
  font-size: 16px;
  font-weight: 800;
}

.filter-heading span {
  color: var(--muted);
  font-size: 13px;
}

.filter-status {
  grid-column: 1 / span 4;
  grid-row: 2;
  min-width: 0;
  overflow: visible;
}

.filter-user-name {
  grid-column: 5 / span 4;
  grid-row: 2;
  min-width: 0;
}

.filter-user-email {
  grid-column: 9 / span 4;
  grid-row: 2;
  min-width: 0;
}

.filter-transfer-content {
  grid-column: 1 / span 4;
  grid-row: 3;
}

.filter-created-date {
  grid-column: 5 / span 3;
  grid-row: 3;
}

.filter-refresh {
  grid-column: 8 / span 2;
  grid-row: 3;
}

#clear-order-filters {
  grid-column: 10 / span 3;
  grid-row: 3;
}

.admin-account-meta {
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-list-note {
  width: fit-content;
  min-height: 0;
  margin: 0 0 22px;
  padding: 9px 13px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  color: var(--accent-strong);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(255, 255, 255, 0.85));
  box-shadow: 0 8px 20px rgba(22, 32, 38, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.admin-list-note::before {
  content: "✓";
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  font-size: 11px;
}

.admin-list-note:empty {
  display: none;
}

.admin-key-form label,
.admin-toolbar label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.admin-toolbar label > span:first-child {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.admin-toolbar label .select-field,
.multi-select {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.admin-toolbar label .select-field::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

.multi-select-toggle {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 46px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 36px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(22, 32, 38, 0.02), 0 4px 12px rgba(22, 32, 38, 0.03);
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.multi-select-toggle:not([aria-expanded="true"]) .status-chip-list {
  overflow-x: hidden;
}

.multi-select-toggle[aria-expanded="true"] .status-chip-list {
  overflow-x: auto;
}

.multi-select-toggle:hover,
.multi-select-toggle:focus {
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.multi-select-toggle[aria-expanded="true"] {
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(15, 118, 110, 0.62);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1), 0 10px 24px rgba(22, 32, 38, 0.08);
}

.multi-select-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
}

.multi-select-toggle[aria-expanded="true"]::after {
  transform: translateY(-35%) rotate(225deg);
}

.multi-select-toggle span {
  color: inherit;
  font-size: inherit;
}

.status-chip-list {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 1px 2px 1px 0;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable both-edges;
  line-height: 1;
}

.status-chip-list::-webkit-scrollbar {
  height: 6px;
}

.status-chip-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(138, 154, 165, 0.35);
}

.filter-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: none;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 6px 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.1);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
}

.filter-status-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-status-chip.submitted {
  color: #1d4ed8;
  background: #dbeafe;
}

.filter-status-chip.pending {
  color: #92400e;
  background: #fef3c7;
}

.filter-status-chip.paid {
  color: #047857;
  background: #d1fae5;
}

.filter-status-chip.cancelled {
  color: #9f1239;
  background: #ffe4e6;
}

.filter-status-chip.all {
  color: var(--muted);
  background: #eef3f4;
}

.filter-status-chip button,
.filter-status-chip-remove {
  appearance: none;
  position: relative;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  align-self: center;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px !important;
  color: currentColor;
  background: rgba(255, 255, 255, 0.92);
  line-height: 0;
  box-shadow: none;
  font-size: 0;
  overflow: hidden;
}

.filter-status-chip button::before,
.filter-status-chip button::after,
.filter-status-chip-remove::before,
.filter-status-chip-remove::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.filter-status-chip button::before,
.filter-status-chip-remove::before {
  transform: rotate(45deg);
}

.filter-status-chip button::after,
.filter-status-chip-remove::after {
  transform: rotate(-45deg);
}

.filter-status-chip button:hover,
.filter-status-chip-remove:hover {
  color: #ffffff;
  background: rgba(22, 32, 38, 0.72);
}

.multi-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10;
  display: grid;
  min-width: 100%;
  width: max-content;
  max-width: min(360px, calc(100vw - 48px));
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(22, 32, 38, 0.16);
}

.multi-select-menu[hidden] {
  display: none;
}

.multi-select-menu label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.multi-select-menu label:hover {
  border-color: rgba(15, 118, 110, 0.12);
  background: rgba(15, 118, 110, 0.08);
}

.multi-select-menu input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.admin-toolbar input,
.admin-toolbar select {
  height: 46px;
  min-height: 46px;
  border-radius: 10px;
  background: #ffffff;
  font-weight: 400;
  box-shadow: inset 0 1px 0 rgba(22, 32, 38, 0.02);
}

.admin-toolbar input[list]::-webkit-calendar-picker-indicator {
  display: none !important;
}

.admin-toolbar input[list] {
  padding-right: 14px;
}

.admin-toolbar button {
  min-height: 46px;
  align-self: end;
  border-radius: 10px;
}

.admin-toolbar .filter-status-chip button,
.admin-toolbar .filter-status-chip-remove {
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  padding: 0;
  align-self: center;
  border-radius: 50% !important;
}

.admin-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 20px;
}

.admin-results-bar .admin-list-note {
  margin: 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 0;
}

.pagination-bottom {
  justify-content: center;
  margin-top: 22px;
}

.pagination:empty {
  display: none;
}

.pagination button,
.pagination span {
  min-width: 32px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pagination button {
  color: var(--accent-strong);
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.22);
  box-shadow: 0 2px 8px rgba(22, 32, 38, 0.03);
}

.pagination button:hover,
.pagination button:focus-visible {
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.34);
}

.pagination button.active {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.pagination button:disabled {
  color: #94a3b8;
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: none;
  cursor: not-allowed;
}

.pagination span {
  color: var(--muted);
  min-width: 20px;
}

#order-status {
  appearance: none;
  padding-right: 42px;
  font-weight: 400;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  color: var(--ink);
  background: #fbfdfc;
  font-size: 17px;
  outline: none;
}

input[type="date"] {
  min-height: 54px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.72;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.admin-orders {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 200px;
}

.order-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfc;
}

.order-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.order-card h2 {
  margin: 0;
  font-size: 20px;
}

.order-status {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-status.pending {
  color: #92400e;
  background: #fef3c7;
}

.order-status.submitted {
  color: #1d4ed8;
  background: #dbeafe;
}

.order-status.paid {
  color: #065f46;
  background: #d1fae5;
}

.order-status.cancelled {
  color: #991b1b;
  background: #fee2e2;
}

.order-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.order-details div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.order-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.order-details dd {
  margin: 0;
  word-break: break-word;
}

.approve-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.compact-button {
  padding: 9px 12px;
  font-size: 14px;
}

.tab-nav {
  display: flex;
  gap: 10px;
  padding: 6px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfdfc;
}

.tab-button {
  flex: 1 1 0;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
}

.tab-button:hover,
.tab-button.active {
  color: #ffffff;
  background: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  gap: 18px;
}

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

.plan-card {
  display: grid;
  gap: 10px;
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfc;
}

.featured-plan {
  border-color: rgba(183, 121, 31, 0.45);
  box-shadow: 0 12px 30px rgba(183, 121, 31, 0.12);
}

.plan-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.plan-card h2,
.payment-box h2 {
  margin: 0;
  font-size: 21px;
}

.plan-badge {
  flex: 0 0 auto;
  color: #ffffff;
  background: linear-gradient(135deg, #b7791f, #d97706);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 8px 18px rgba(183, 121, 31, 0.24);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-card p {
  margin: 0;
  color: var(--muted);
}

.plan-price {
  display: grid;
  gap: 4px;
  align-items: start;
}

.plan-price-main {
  color: var(--accent-strong) !important;
  font-size: 24px;
  font-weight: 800;
}

.plan-price-note {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
}

.plan-credit-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.payment-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfc;
}

.payment-box img {
  width: 220px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.payment-side {
  position: relative;
  display: grid;
  gap: 12px;
  align-self: center;
  justify-items: stretch;
  margin-top: 20px;
}

.qr-refresh-button {
  position: absolute;
  top: 110px;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 50%;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(22, 32, 38, 0.22);
  font-size: 30px;
  line-height: 1;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(6px);
}

.qr-refresh-button:hover {
  color: #ffffff;
  background: var(--accent);
}

.qr-refresh-button:disabled {
  opacity: 0.72;
}

.payment-countdown {
  margin: -4px 0 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}

.payment-confirm-button {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.payment-confirm-button:disabled {
  cursor: default;
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.12);
}

.payment-confirm-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(22, 32, 38, 0.46);
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-dialog {
  width: min(460px, 100%);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(22, 32, 38, 0.24);
  padding: 24px;
}

.confirm-dialog h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.confirm-help {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.confirm-summary {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.confirm-summary div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.confirm-summary dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.confirm-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 400;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-actions button {
  width: auto;
}

.secondary-button {
  color: var(--accent-strong);
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.28);
}

.secondary-button:hover {
  color: #ffffff;
  background: var(--accent-strong);
}

.link-button {
  width: fit-content;
  justify-self: start;
  padding: 0;
  color: var(--accent-strong);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.link-button:hover {
  color: var(--gold);
  background: transparent;
}

.auth-form-head .auth-back-button {
  justify-self: end;
  padding: 8px 12px;
  color: var(--accent-strong);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: #ffffff;
}

.auth-form-head .auth-back-button:hover {
  color: #ffffff;
  background: var(--accent-strong);
}

.idle-action {
  color: #64748b;
  background: #e2e8f0;
}

.idle-action:hover {
  color: #ffffff;
  background: var(--accent);
}

.ready-action {
  color: #ffffff;
  background: var(--accent);
}

.ready-action:hover {
  background: var(--accent-strong);
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-note.error {
  color: #b42318;
}

.form-note.success {
  color: var(--accent-strong);
}

body.public-home {
  background:
    radial-gradient(circle at 12% 8%, rgba(212, 163, 63, 0.18), transparent 20%),
    radial-gradient(circle at 88% 10%, rgba(70, 103, 202, 0.16), transparent 18%),
    linear-gradient(180deg, #07111f 0, #0a1428 1240px, #f5f7fc 1240px, #f5f7fc 100%);
}

body.public-home .app-shell {
  min-height: 0;
  display: block;
  padding: 0 18px 56px;
}

body.public-home.dashboard-active .app-shell {
  align-content: normal;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  width: min(1120px, calc(100% - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(6, 14, 30, 0.7);
  box-shadow: 0 16px 36px rgba(3, 8, 21, 0.28);
  backdrop-filter: blur(16px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #ffffff;
  text-decoration: none;
}

.site-brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(3, 8, 21, 0.26);
}

.site-brand-copy {
  display: grid;
  gap: 2px;
}

.site-brand-copy strong {
  font-size: 18px;
  line-height: 1.1;
}

.site-brand-copy small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a,
.site-header-cta,
.hero-primary-link,
.hero-secondary-link,
.site-footer-links a {
  text-decoration: none;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.site-header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--accent-strong);
  background: linear-gradient(135deg, #f4d38a, #f8edd0);
  box-shadow: 0 12px 28px rgba(212, 163, 63, 0.28);
  font-weight: 800;
}

.site-header-cta:hover {
  color: var(--accent-strong);
  background: linear-gradient(135deg, #f0c567, #f7e7bd);
}

.landing-shell,
.workspace-section,
.site-footer {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.landing-shell {
  padding-top: 28px;
}

.hero-panel,
.content-section,
.workspace-section {
  scroll-margin-top: 110px;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 28px;
  overflow: hidden;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(212, 163, 63, 0.22), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(112, 145, 255, 0.16), transparent 24%),
    linear-gradient(145deg, rgba(10, 18, 37, 0.96), rgba(8, 14, 28, 0.98));
  box-shadow: 0 30px 80px rgba(3, 8, 21, 0.34);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 163, 63, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 20px;
}

.hero-kicker {
  width: fit-content;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #f6d58e;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 10ch;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
}

.hero-description {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-primary-link,
.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
}

.hero-primary-link {
  color: var(--accent-strong);
  background: linear-gradient(135deg, #f4d38a, #f8edd0);
  box-shadow: 0 14px 28px rgba(212, 163, 63, 0.26);
}

.hero-primary-link:hover {
  color: var(--accent-strong);
  background: linear-gradient(135deg, #f0c567, #f7e7bd);
}

.hero-secondary-link {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.hero-secondary-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 600;
}

.hero-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  align-content: start;
  align-self: center;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 255, 0.92));
  box-shadow: 0 24px 48px rgba(3, 8, 21, 0.18);
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-card-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  padding: 6px;
  border-radius: 18px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(21, 33, 61, 0.12);
}

.hero-card-top h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.hero-lookup-form {
  display: grid;
  gap: 16px;
}

.hero-lookup-form label {
  display: grid;
  gap: 8px;
}

.hero-lookup-form label > span {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}

.hero-name-field input {
  background: #ffffff;
  font-size: 17px;
  font-weight: 600;
}

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

.hero-birth-grid label {
  display: grid;
  gap: 8px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}

.hero-birth-grid input {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: #ffffff;
}

.hero-submit-button {
  min-height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 30px rgba(21, 33, 61, 0.18);
}

.hero-submit-button:hover {
  background: linear-gradient(135deg, #283d81, #121e42);
}

.hero-note {
  min-height: 0;
  padding: 14px 16px;
  border: 1px solid rgba(21, 33, 61, 0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(244, 246, 252, 0.92), rgba(255, 249, 235, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.hero-note.error {
  border-color: rgba(180, 35, 24, 0.18);
  background: linear-gradient(135deg, rgba(255, 246, 245, 0.96), rgba(255, 239, 236, 0.98));
}

.hero-preview-badge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(21, 33, 61, 0.08);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(242, 245, 252, 0.92), rgba(255, 248, 232, 0.95));
}

.hero-preview-copy {
  display: grid;
  gap: 6px;
}

.hero-preview-label {
  color: var(--accent-strong);
  font-size: 16px;
  font-weight: 800;
}

.hero-preview-caption {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hero-preview-values {
  display: grid;
  gap: 10px;
}

.hero-preview-row {
  display: grid;
  grid-template-columns: minmax(62px, 72px) auto minmax(62px, 72px);
  gap: 10px;
  align-items: center;
}

.hero-preview-slot {
  display: inline-grid;
  place-items: center;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(21, 33, 61, 0.1);
  border-radius: 18px;
  color: rgba(21, 33, 61, 0.42);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  transform-origin: center;
  backface-visibility: hidden;
}

.hero-preview-slot.is-filled {
  color: var(--accent-strong);
  border-color: rgba(212, 163, 63, 0.32);
  box-shadow:
    0 12px 24px rgba(21, 33, 61, 0.08),
    0 0 0 4px rgba(244, 211, 138, 0.12);
}

.hero-preview-slot.is-flipping {
  animation: hero-energy-flip 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-preview-separator {
  display: inline-grid;
  place-items: center;
  color: var(--accent-strong);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

@keyframes hero-energy-flip {
  0% {
    transform: perspective(420px) rotateX(0deg) scale(1);
  }
  45% {
    transform: perspective(420px) rotateX(90deg) scale(0.94);
  }
  100% {
    transform: perspective(420px) rotateX(0deg) scale(1);
  }
}

.content-section {
  margin-top: 26px;
  padding: 32px;
  border: 1px solid rgba(17, 30, 66, 0.07);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 48px rgba(21, 33, 61, 0.08);
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin-bottom: 24px;
}

.numbers-section .section-heading {
  max-width: 920px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.number-focus-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(31, 49, 104, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(212, 163, 63, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(13, 24, 48, 0.98), rgba(19, 34, 71, 0.94));
  box-shadow: 0 18px 36px rgba(21, 33, 61, 0.12);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.number-focus-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.number-focus-copy {
  display: grid;
  gap: 6px;
}

.number-focus-kicker {
  color: #f6d58e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.number-focus-value {
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
}

.number-focus-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  max-width: 42ch;
  font-size: 16px;
  line-height: 1.65;
}

.number-focus-action {
  min-width: 220px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4d38a, #f8edd0);
  box-shadow: 0 14px 28px rgba(212, 163, 63, 0.24);
  color: var(--accent-strong);
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.number-focus-action.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.number-focus-action.is-dismissing {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}

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

.number-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
  padding-right: 104px;
  border: 1px solid rgba(31, 49, 104, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(212, 163, 63, 0.12), transparent 36%),
    linear-gradient(180deg, #ffffff, #f8faff);
  box-shadow: 0 16px 28px rgba(21, 33, 61, 0.06);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.number-card-icon {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(212, 163, 63, 0.22);
  border-radius: 20px;
  color: var(--gold);
  background:
    radial-gradient(circle at 30% 30%, rgba(244, 211, 138, 0.22), transparent 52%),
    rgba(21, 33, 61, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 14px 24px rgba(21, 33, 61, 0.08);
  font-size: 25px;
  line-height: 1;
}

.number-card strong {
  color: var(--accent-strong);
  font-size: 44px;
  line-height: 1;
}

.number-card.is-active {
  border-color: rgba(212, 163, 63, 0.55);
  box-shadow:
    0 20px 38px rgba(21, 33, 61, 0.12),
    0 0 0 5px rgba(244, 211, 138, 0.18);
  cursor: pointer;
}

.number-card.is-active .number-card-icon {
  border-color: rgba(212, 163, 63, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 16px 28px rgba(212, 163, 63, 0.18);
}

.number-card.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(244, 211, 138, 0.46);
  pointer-events: none;
}

.number-card.is-bouncing {
  animation: life-path-bounce 0.9s ease;
}

.number-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@keyframes life-path-bounce {
  0% {
    transform: translateY(0) scale(1);
  }
  24% {
    transform: translateY(-10px) scale(1.04);
  }
  52% {
    transform: translateY(3px) scale(0.995);
  }
  74% {
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.insight-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(212, 163, 63, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(249, 250, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.insight-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.insight-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.insight-copy-card {
  padding: 22px;
  border: 1px solid rgba(31, 49, 104, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.insight-copy-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.insight-copy-card p,
.insight-item p,
.workspace-intro,
.site-footer-brand p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.insight-accordion {
  display: grid;
  gap: 12px;
}

.insight-item {
  overflow: hidden;
  border: 1px solid rgba(31, 49, 104, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(21, 33, 61, 0.04);
}

.insight-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 800;
  list-style: none;
}

.insight-item summary::-webkit-details-marker {
  display: none;
}

.insight-symbol {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(31, 49, 104, 0.1);
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #314b97);
  box-shadow: 0 10px 20px rgba(21, 33, 61, 0.14);
  font-size: 18px;
  line-height: 1;
}

.insight-item p {
  padding: 0 22px 20px;
}

.workspace-section {
  padding-top: 32px;
}

body.public-home .auth-panel,
body.public-home .dashboard-panel {
  width: min(1120px, 100%);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 60px rgba(21, 33, 61, 0.12);
  backdrop-filter: blur(18px);
}

.workspace-intro {
  margin-top: 10px;
  max-width: 640px;
}

.auth-note-banner {
  min-height: 0;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 49, 104, 0.08);
  border-radius: 18px;
  color: var(--accent-strong);
  background: linear-gradient(135deg, rgba(247, 249, 255, 0.94), rgba(255, 249, 235, 0.96));
  box-shadow: 0 12px 24px rgba(21, 33, 61, 0.06);
}

.auth-note-banner:empty {
  display: none;
}

.auth-note-banner.success {
  border-color: rgba(31, 49, 104, 0.12);
  color: var(--accent-strong);
}

.auth-note-banner.error {
  border-color: rgba(180, 35, 24, 0.16);
  color: #b42318;
  background: linear-gradient(135deg, rgba(255, 247, 246, 0.96), rgba(255, 241, 238, 0.96));
}

.site-footer {
  padding: 26px 0 12px;
}

.site-footer-card {
  overflow: hidden;
  padding: 24px 26px;
  border: 1px solid rgba(21, 33, 61, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(212, 163, 63, 0.16), transparent 22%),
    linear-gradient(135deg, #0d1830, #101b34 54%, #132247);
  box-shadow: 0 24px 48px rgba(21, 33, 61, 0.16);
}

.site-footer-top,
.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer-top {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer-bottom {
  padding-top: 18px;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 760px;
}

.site-footer-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(3, 8, 21, 0.22);
}

.site-footer-brand .eyebrow {
  color: #f6d58e;
}

.site-footer-brand strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.2;
}

.site-footer-brand p {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: linear-gradient(135deg, #f4d38a, #f8edd0);
  box-shadow: 0 14px 28px rgba(212, 163, 63, 0.24);
  font-weight: 800;
  text-decoration: none;
}

.site-footer-cta:hover {
  color: var(--accent-strong);
  background: linear-gradient(135deg, #f0c567, #f7e7bd);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer-links a {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

.site-footer-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.site-footer-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .site-header,
  .site-footer {
    width: min(1120px, calc(100% - 36px));
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .hero-panel,
  .insight-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
    justify-content: stretch;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-top: 4px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav,
  .site-footer-links {
    justify-content: flex-start;
  }

  .site-footer-top,
  .site-footer-bottom {
    display: grid;
    justify-content: stretch;
  }

  .number-focus-banner {
    grid-template-columns: 1fr;
  }

  .hero-preview-badge {
    grid-template-columns: 1fr;
  }

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

  .hero-copy h1 {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  body.public-home {
    background:
      radial-gradient(circle at 12% 8%, rgba(212, 163, 63, 0.16), transparent 22%),
      radial-gradient(circle at 88% 10%, rgba(70, 103, 202, 0.14), transparent 20%),
      linear-gradient(180deg, #07111f 0, #0a1428 1360px, #f5f7fc 1360px, #f5f7fc 100%);
  }

  .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
    gap: 12px;
    padding: 12px;
    border-radius: 24px;
  }

  .site-brand-logo {
    width: 42px;
    height: 42px;
  }

  .site-brand {
    gap: 10px;
  }

  .site-brand-copy {
    min-width: 0;
  }

  .site-brand-copy strong {
    font-size: 16px;
  }

  .site-brand-copy small {
    font-size: 12px;
    line-height: 1.35;
  }

  .site-header-cta {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

  .site-nav {
    gap: 8px;
    margin: 2px -2px 0;
    padding: 2px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 13px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  body.public-home .app-shell {
    padding: 0 12px 40px;
  }

  .landing-shell {
    padding-top: 18px;
  }

  .hero-panel,
  .content-section,
  body.public-home .auth-panel,
  body.public-home .dashboard-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-copy {
    align-content: start;
    gap: 18px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(38px, 10vw, 46px);
    line-height: 1.06;
  }

  .hero-description {
    font-size: 17px;
    line-height: 1.62;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero-primary-link,
  .hero-secondary-link {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    text-align: center;
    white-space: normal;
  }

  .hero-highlights {
    display: grid;
  }

  .hero-highlights li {
    border-radius: 18px;
    line-height: 1.45;
  }

  .hero-card {
    width: 100%;
    min-width: 0;
    padding: 20px;
    border-radius: 24px;
  }

  .hero-card-top {
    align-items: flex-start;
  }

  .hero-card-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .hero-card-top h2 {
    font-size: 28px;
    line-height: 1.12;
  }

  .hero-birth-grid,
  .numbers-grid {
    grid-template-columns: 1fr;
  }

  .hero-preview-row {
    grid-template-columns: minmax(56px, 1fr) auto minmax(56px, 1fr);
  }

  .hero-preview-slot {
    min-height: 50px;
    font-size: 24px;
  }

  .number-card {
    padding-right: 92px;
  }

  .number-card-icon {
    top: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    font-size: 22px;
  }

  .site-footer {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .site-footer-card {
    padding: 20px;
    border-radius: 24px;
  }

  .site-footer-brand {
    align-items: flex-start;
  }

  .site-footer-brand strong {
    font-size: 22px;
  }

  .site-footer-meta {
    text-align: left;
    white-space: normal;
  }

  .panel {
    padding: 24px;
  }

  .brand-row {
    display: grid;
  }

  .auth-grid,
  .auth-choice,
  .plans-grid,
  .payment-box,
  .admin-key-form,
  .admin-toolbar,
  .order-details,
  .approve-form {
    grid-template-columns: 1fr;
  }

  .filter-status,
  .filter-user-name,
  .filter-user-email,
  .filter-transfer-content,
  .filter-created-date,
  .filter-refresh,
  #clear-order-filters {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .filter-heading {
    display: grid;
  }

  .tab-nav {
    border-radius: 16px;
    display: grid;
  }

  h1 {
    font-size: 28px;
  }

  .status-pill {
    width: fit-content;
  }

  .account-meta {
    justify-content: flex-start;
  }

  .confirm-actions {
    display: grid;
  }
}
