:root {
  --bg: #07111f;
  --panel: #0d1827;
  --raised: #121f30;
  --line: #26374b;
  --line-strong: #3a4d64;
  --text: #f4f7fb;
  --muted: #a9b7c7;
  --gold: #ffcf4a;
  --green: #d6a900;
  --danger: #ff9a93;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}
[hidden] {
  display: none !important;
}
body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 50% 0, rgba(31, 63, 93, 0.38), transparent 44rem);
  background-size:
    48px 48px,
    48px 48px,
    100% 100%;
  font-family: "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  padding: 0.9rem max(1rem, calc((100vw - 1180px) / 2));
  background: rgba(7, 17, 31, 0.92);
  backdrop-filter: blur(14px);
}
.brand {
  gap: 0.9rem;
}
.brand img {
  display: block;
  width: 72px;
  height: auto;
  flex: 0 0 auto;
}
.brand-label {
  display: flex;
  min-height: 30px;
  align-items: center;
  padding-left: 0.9rem;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}
.lock {
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}
button {
  border-radius: 0.5rem;
  transition:
    background-color 0.16s,
    border-color 0.16s,
    color 0.16s,
    transform 0.16s;
}
button:active {
  transform: translateY(1px);
}
.primary-action {
  width: 100%;
  border: 1px solid #e6b900;
  background: #d6a900;
  color: #171000;
}
.primary-action:hover {
  border-color: #f0c431;
  background: #f0c431;
}
#theme,
.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}
#theme:hover,
.secondary:hover {
  border-color: var(--line-strong);
  background: var(--raised);
}
#theme {
  display: grid;
  width: 44px;
  padding: 0;
  place-items: center;
}
#theme svg {
  width: 20px;
  height: 20px;
}
main {
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(2rem, 5vw, 4.5rem) auto 5rem;
}
.auth-shell {
  width: min(520px, 100%);
  margin: 0 auto;
}
.auth-panel {
  padding: clamp(1.5rem, 4vw, 2.4rem);
  overflow: hidden;
}
.auth-intro {
  margin-top: -0.7rem;
  color: var(--muted);
}
.auth-switch {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}
.auth-switch a {
  color: var(--gold);
  font-weight: 800;
}
.data-grid {
  gap: 1.35rem;
  align-items: start;
}
.panel {
  border-color: var(--line);
  border-radius: 0.8rem;
  background: linear-gradient(145deg, var(--panel), #101d2c);
  box-shadow: var(--shadow);
}
h1,
h2 {
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}
.eyebrow {
  letter-spacing: 0.12em;
}
input,
select {
  min-height: 48px;
  border-color: var(--line);
  border-radius: 0.48rem;
  background: #091422;
}
input:hover,
select:hover {
  border-color: var(--line-strong);
}
input:focus,
select:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(255, 207, 74, 0.24);
}
small {
  color: var(--muted);
  font-weight: 500;
}
.check {
  gap: 0.65rem;
}
.check input {
  accent-color: #d6a900;
}
.message {
  font-weight: 650;
}
.message.ok {
  color: #72d9ad;
}
.opportunity-panel{margin-top:1.35rem}.opportunity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem;margin-top:1.2rem}.opportunity-grid>div{padding:1rem;border:1px solid var(--line);border-radius:.6rem;background:var(--raised)}.opportunity-grid span{display:block;color:var(--muted);font-size:.72rem}.opportunity-grid strong{display:block;margin-top:.4rem;font-size:.86rem}.payment-heading{margin-top:1.5rem}.provider-list{display:grid;gap:.5rem}.provider-list>div{display:flex;justify-content:space-between;gap:1rem;padding:.7rem;border-top:1px solid var(--line)}.provider-list span{color:var(--muted);font-size:.76rem;text-align:right}@media(max-width:760px){.opportunity-grid{grid-template-columns:1fr 1fr}}@media(max-width:480px){.opportunity-grid{grid-template-columns:1fr}.provider-list>div{display:block}.provider-list span{display:block;margin-top:.25rem;text-align:left}}
.position-tools{display:flex;align-items:center;gap:.65rem}.position-close{padding:.35rem .55rem;border:1px solid var(--line);background:transparent;color:var(--text);font-size:.72rem}.position-close:disabled{cursor:not-allowed;color:var(--muted);opacity:.75}
.dob-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.dob-fieldset legend {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.dob-selects {
  display: grid;
  grid-template-columns: 0.8fr 1.35fr 1fr;
  gap: 0.65rem;
}
.dob-selects label {
  gap: 0.3rem;
}
.dob-selects label span {
  font-size: 0.72rem;
}
.dob-fieldset > small {
  display: block;
  margin-top: 0.45rem;
}
.account-loading {
  display: flex;
  max-width: 720px;
  align-items: center;
  gap: 1.25rem;
  margin: 10vh auto;
  padding: 2rem;
}
.account-loading h1 {
  margin: 0.15rem 0 0.4rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}
.account-loading p:last-child {
  margin: 0;
  color: var(--muted);
}
.loading-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: account-spin 0.8s linear infinite;
}
@keyframes account-spin {
  to {
    transform: rotate(360deg);
  }
}
.login-message {
  min-height: 1.3rem;
  margin: 0.15rem 0 0;
}
.login-message:empty {
  display: none;
}
.account-help {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 0.25rem;
}
.account-help .text-action {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--text);
  font-size: 0.78rem;
  text-align: center;
}
.account-help .text-action:hover {
  border-color: var(--gold);
  background: #17273a;
  color: var(--gold);
}
.support-form {
  margin-top: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.button-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.72rem 1rem;
  border-radius: 0.5rem;
  background: #d6a900;
  color: #171000;
  font-weight: 800;
  text-decoration: none;
}
.button-link:hover {
  background: #f0c431;
}
#dashboard {
  max-width: 1180px;
}
.dashboard-head {
  margin-bottom: 1.25rem;
}
.dashboard-head h1 {
  margin-bottom: 0.55rem;
}
#account-state {
  margin: 0;
  color: var(--muted);
}
.account-nav {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  margin-bottom: 1.35rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--panel);
}
.account-nav-item {
  min-height: 42px;
  padding: 0.62rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}
.account-nav-item:hover,
.account-nav-item.active {
  background: var(--raised);
  color: var(--text);
}
.account-nav-item.active {
  box-shadow: inset 0 -2px var(--gold);
}
.logout-item {
  margin-left: auto;
  color: var(--danger);
}
.account-view {
  animation: view-in 0.18s ease;
}
.narrow-panel {
  max-width: 700px;
}
@keyframes view-in {
  from {
    opacity: 0.45;
    transform: translateY(4px);
  }
}
.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  align-items: center;
  margin: 0 0 1.25rem;
  border-radius: 0.62rem;
}
.notice strong {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.35rem;
}
.metric {
  min-height: 122px;
  padding: 1.1rem;
  border-color: var(--line);
  border-radius: 0.65rem;
  background: var(--raised);
}
.metric span {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.metric strong {
  margin-top: 0.72rem;
  font-size: 1.04rem;
  line-height: 1.3;
}
.data-grid .panel {
  min-height: 260px;
  box-shadow: none;
}
.data-grid h2 {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.18rem;
  letter-spacing: 0;
}
.empty {
  padding: 2.8rem 1rem;
  text-align: center;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 1.35rem;
}
.account-grid > .panel {
  box-shadow: none;
}
.account-grid h2 {
  margin-bottom: 1.3rem;
  font-size: 1.4rem;
}
.section-kicker {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-note {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.section-explainer {
  margin: -0.45rem 0 1.25rem;
  color: var(--muted);
  line-height: 1.65;
}
.inline-security-action {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.detail-list {
  margin: 0;
}
.detail-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) 1.3fr;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
}
.detail-list dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
  text-align: right;
}
.locked-service,
.status-block {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--raised);
}
.locked-service strong {
  color: var(--gold);
}
.locked-service p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}
.status-block {
  color: var(--muted);
}
.status-block:empty {
  display: none;
}
.responsible-panel {
  border-top: 3px solid var(--gold);
}
.responsible-panel form {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.danger-action {
  width: 100%;
  border: 1px solid #a94449;
  background: #8e3035;
  color: #fff;
}
.danger-action:hover {
  border-color: #c25359;
  background: #a83b41;
}
.service-list {
  display: grid;
  gap: 0.9rem;
}
.service-list > div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.service-list span {
  color: var(--muted);
  font-size: 0.85rem;
}
.support-address {
  margin: 1.2rem 0 0;
  color: var(--muted);
}
.support-address a {
  color: var(--gold);
  font-weight: 800;
}
.secondary-link {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}
.secondary-link:hover {
  border-color: var(--line-strong);
  background: var(--raised);
}
html[data-theme="light"] {
  --bg: #f4f7fb;
  --panel: #fff;
  --raised: #edf2f7;
  --line: #d5dee8;
  --line-strong: #aebdcd;
  --text: #142033;
  --muted: #405269;
  --gold: #604300;
  --green: #7a5500;
  --danger: #a82833;
  --shadow: 0 18px 48px rgba(35, 54, 77, 0.09);
}
html[data-theme="light"] body {
  background-image:
    linear-gradient(rgba(24, 45, 66, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 45, 66, 0.025) 1px, transparent 1px),
    radial-gradient(
      circle at 50% 0,
      rgba(217, 230, 242, 0.65),
      transparent 44rem
    );
}
html[data-theme="light"] header {
  background: rgba(248, 251, 254, 0.94);
}
html[data-theme="light"] .panel {
  background: #fff;
}
html[data-theme="light"] .primary-action {
  border-color: #7a5500;
  background: #7a5500;
  color: #fff;
}
html[data-theme="light"] .primary-action:hover {
  border-color: #604300;
  background: #604300;
}
html[data-theme="light"] .account-help .text-action {
  border-color: var(--line);
  background: var(--raised);
  color: var(--text);
}
html[data-theme="light"] .account-help .text-action:hover {
  border-color: #7a5500;
  background: #fff;
  color: #604300;
}
html[data-theme="light"] .danger-action {
  background: #8b2831;
  color: #fff;
}
html[data-theme="light"] .danger-action:hover {
  background: #701d25;
}
html[data-theme="light"] .notice {
  border-color: #8a6100;
  background: #fff4c7;
  color: #4f3700;
}
html[data-theme="light"] .button-link {
  background: #7a5500;
  color: #fff;
}
html[data-theme="light"] .button-link:hover {
  background: #604300;
}
html[data-theme="light"] .secondary-link {
  background: transparent;
  color: var(--text);
}
html[data-theme="light"] .secondary-link:hover {
  background: var(--raised);
}
html[data-theme="light"] .message.ok {
  color: #087653;
}
@media (max-width: 1040px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 800px) {
  .cards,
  .account-grid {
    grid-template-columns: 1fr 1fr;
  }
  main {
    margin-top: 2rem;
  }
}
@media (max-width: 520px) {
  header {
    min-height: 68px;
  }
  .brand img {
    width: 62px;
  }
  .brand-label {
    padding-left: 0.7rem;
    font-size: 0.64rem;
  }
  .cards,
  .account-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-head {
    align-items: stretch;
    flex-direction: column;
  }
  .dashboard-head .secondary {
    width: 100%;
  }
  .notice {
    grid-template-columns: 1fr;
  }
  .account-help {
    grid-template-columns: 1fr;
  }
  .dob-selects {
    grid-template-columns: 1fr 1.35fr 1fr;
    gap: 0.4rem;
  }
  .account-loading {
    align-items: flex-start;
  }
  .panel {
    padding: 1.25rem;
  }
  .detail-list > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .detail-list dd {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-mark {
    animation: none;
  }
}
