:root {
  --navy: #050d18;
  --ink: #122033;
  --muted: #5b6b80;
  --paper: #f4f7fb;
  --white: #ffffff;
  --blue: #1a6ef5;
  --blue-deep: #0d47c4;
  --orange: #ff7a18;
  --line: rgba(255, 255, 255, 0.12);
  --header: 84px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Figtree", sans-serif;
  --shadow: 0 22px 50px rgba(5, 13, 24, 0.12);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { color: var(--blue); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 12px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-display);
  border: 0;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid rgba(26, 110, 245, 0.35);
}
.btn-danger {
  background: transparent;
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, 0.35);
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 13, 24, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand img { width: 52px; height: 52px; object-fit: contain; background: #000; border-radius: 12px; }
.brand strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.brand small { color: #9ab0c9; font-size: 0.75rem; }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  color: #d5e2f0;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.site-nav a:hover,
.site-nav a.active { color: var(--white); background: rgba(26, 110, 245, 0.18); }
.nav-cta { background: var(--blue) !important; color: var(--white) !important; padding-inline: 14px !important; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  padding: 10px 8px;
  background: transparent !important;
  cursor: pointer;
  color: #ffffff !important;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 60;
  forced-color-adjust: none;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  margin: 5px 0;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-radius: 2px;
}

.account-shell {
  min-height: calc(100vh - var(--header));
  display: grid;
  place-items: center;
  padding: 48px 0;
}
.account-card {
  width: min(520px, calc(100% - 40px));
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
}
.account-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 10px;
}
.account-card .lead {
  color: var(--muted);
  margin-bottom: 24px;
}
.account-form { display: grid; gap: 14px; }
.account-form label { display: grid; gap: 8px; font-weight: 700; }
.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.password-field input {
  width: 100%;
  border: 1px solid #d5deea;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: var(--white);
}
.password-toggle {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #d5deea;
  background: #eef3f9;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
}
.password-toggle:hover { background: #e2ebf6; }
.account-form input,
.account-form select,
.account-form textarea {
  width: 100%;
  border: 1px solid #d5deea;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: var(--white);
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
}
.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}
.form-error { color: #b42318; font-weight: 700; }
.form-success {
  color: #0a7a3e;
  font-weight: 700;
  line-height: 1.5;
  padding: 12px 14px;
  background: rgba(10, 122, 62, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(10, 122, 62, 0.2);
}
.account-links {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}
.account-links a { color: var(--blue); font-weight: 700; }
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.profile-shell {
  min-height: calc(100vh - var(--header));
  padding: 40px 0 64px;
  background:
    radial-gradient(circle at top right, rgba(26, 110, 245, 0.12), transparent 40%),
    linear-gradient(180deg, #eaf1f9 0%, var(--paper) 45%, #eef3f8 100%);
}
.profile-layout {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
.profile-sidebar,
.profile-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}
.profile-sidebar h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 8px;
}
.profile-sidebar .lead {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.profile-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}
.profile-nav-btn {
  text-align: left;
  border: 1px solid #d5deea;
  background: #f7fafc;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.profile-nav-btn:hover { border-color: rgba(26, 110, 245, 0.45); }
.profile-nav-btn.active {
  background: rgba(26, 110, 245, 0.1);
  border-color: rgba(26, 110, 245, 0.45);
  color: var(--blue-deep);
}
.profile-panels { min-width: 0; }
.profile-panel { display: none; }
.profile-panel.active { display: block; }
.profile-panel h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 8px;
}
.panel-lead {
  color: var(--muted);
  margin-bottom: 20px;
}
.status-box,
.warn-box {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-weight: 600;
  line-height: 1.5;
}
.status-box {
  background: #f0f5fb;
  color: var(--ink);
  border: 1px solid #d5deea;
}
.warn-box {
  background: rgba(255, 122, 24, 0.1);
  color: #9a4a00;
  border: 1px solid rgba(255, 122, 24, 0.35);
}
.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.88rem;
}
.field-label {
  display: block;
  margin-bottom: 10px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.experience-list { display: grid; gap: 12px; }
.experience-card {
  border: 1px solid #d5deea;
  border-radius: 16px;
  padding: 14px;
  background: #f8fbff;
  display: grid;
  gap: 10px;
}
.experience-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.btn-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.88rem;
}
.applications-list {
  display: grid;
  gap: 14px;
}
.application-card {
  border: 1px solid #d5deea;
  border-radius: 16px;
  padding: 18px;
  background: #f8fbff;
}
.application-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.application-card h3 { font-size: 1.15rem; }
.application-card .meta {
  color: var(--muted);
  margin-bottom: 4px;
}
.application-card .meta.accent { color: var(--blue); font-weight: 700; }
.app-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(26, 110, 245, 0.12);
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.site-footer { background: var(--navy); color: #c9d8ea; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-grid p { margin-top: 14px; }
.footer-grid h4 { color: var(--white); margin-bottom: 12px; }
.footer-grid a { display: block; margin-bottom: 8px; }
.footer-tag { margin-top: 18px; color: #8cb6ff; font-weight: 700; }
.footer-base { border-top: 1px solid var(--line); padding: 18px 0; text-align: center; }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 20px 24px;
  }
  .site-nav.open { display: flex; }
  .account-card { padding: 28px 22px; }
}
