:root {
  color-scheme: dark;
  --bg: #030303;
  --bg-soft: #090907;
  --panel: #11100b;
  --panel-2: #18150b;
  --tile: #1f1b0f;
  --line: #5b4a12;
  --line-soft: #2e260c;
  --text: #fffaf0;
  --muted: #d1c8b2;
  --dim: #958a70;
  --blue: #b6c8dc;
  --gold: #ffd400;
  --green: #b5e66a;
  --red: #ff6f55;
  --cyan: #dce5ec;
  --shadow: 0 28px 90px rgba(0, 0, 0, .62);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 0%, rgba(255, 212, 0, .12), transparent 30%),
    linear-gradient(180deg, #000 0%, var(--bg) 44%, #090805 100%);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}
body.en .es,
body:not(.en) .en { display: none !important; }

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 212, 0, .28);
  background: rgba(3, 3, 3, .92);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
}

.topbar-inner,
.account-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}

.brand img { width: 40px; height: 40px; object-fit: contain; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 7px 10px;
}

.nav a:hover,
.nav a.active {
  border-color: rgba(255, 212, 0, .46);
  background: rgba(255, 212, 0, .1);
  color: var(--text);
  box-shadow: 0 0 18px rgba(255, 212, 0, .08);
}

.lang { display: flex; gap: 5px; }
.lang button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 7px 10px;
}
.lang button:hover,
.lang button.active {
  border-color: rgba(255, 212, 0, .46);
  background: rgba(255, 212, 0, .1);
  color: var(--text);
}

.account-shell { padding: 34px 0 58px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: stretch;
}

.hero-copy {
  min-height: 410px;
  display: grid;
  align-content: end;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(3, 3, 3, .94) 0%, rgba(3, 3, 3, .68) 58%, rgba(3, 3, 3, .32) 100%),
    url("/images/fscompany-intro-hero.jpg") center / cover no-repeat;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--shadow);
}

.profile-card,
.module-card,
.panel,
.login-card {
  border: 1px solid rgba(255, 212, 0, .3);
  background:
    linear-gradient(180deg, rgba(255, 212, 0, .04), transparent 90px),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 24px 76px rgba(0, 0, 0, .44), inset 0 1px 0 rgba(255, 255, 255, .045);
}

.profile-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font: 800 12px "JetBrains Mono", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
}
h3 { margin-bottom: 8px; font-size: 20px; letter-spacing: 0; }

.lead,
.subtitle,
.muted { color: var(--muted); }
.lead { max-width: 720px; font-size: 18px; }

.avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: radial-gradient(circle at 34% 18%, rgba(255, 212, 0, .42), rgba(91, 74, 18, .82) 45%, rgba(9, 8, 5, .96));
  color: var(--gold);
  font-weight: 900;
  font-size: 24px;
}

.chip-row,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tile);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  text-transform: uppercase;
}
.chip.good { color: var(--green); border-color: rgba(181, 230, 106, .45); }
.chip.gold { color: var(--gold); border-color: rgba(255, 212, 0, .45); }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.module-card {
  min-height: 210px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}

a.module-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  border-color: rgba(255, 212, 0, .62);
}

.module-card.disabled { opacity: .72; }

.module-card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--tile);
  color: var(--gold);
  font-weight: 900;
}

.module-card .action {
  color: var(--gold);
  font-weight: 850;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.panel { padding: 22px; }
.metric-list { display: grid; gap: 10px; margin-top: 18px; }
.metric {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line-soft);
  padding: 13px 0;
}
.metric span { color: var(--muted); }
.metric strong { text-align: right; }

.login-shell {
  min-height: calc(100vh - 66px);
  display: grid;
  place-items: center;
  padding: 34px 24px 58px;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, .98) 0%, rgba(3, 3, 3, .78) 42%, rgba(3, 3, 3, .48) 100%),
    url("/images/fscompany-intro-hero.jpg") center / cover no-repeat;
}

.login-card {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  background: rgba(17, 16, 11, .94);
}

.login-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.login-copy,
.login-form { padding: clamp(24px, 4vw, 46px); }

.login-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form {
  border-left: 1px solid var(--line-soft);
  background: rgba(9, 9, 7, .82);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
  padding: 0 13px;
}
input:focus,
select:focus {
  outline: 2px solid rgba(255, 212, 0, .24);
  border-color: rgba(255, 212, 0, .72);
}

.primary-action,
.secondary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 212, 0, .85);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe14b, #d39f00);
  color: #090704;
  cursor: pointer;
  font-weight: 850;
  padding: 0 16px;
}
.secondary-action {
  border-color: var(--line);
  background: var(--panel-2);
  color: var(--text);
}
.primary-action:hover,
.secondary-action:hover { filter: brightness(1.13); }

.notice {
  margin-bottom: 16px;
  border: 1px solid rgba(255, 132, 116, .38);
  border-radius: 8px;
  background: rgba(255, 132, 116, .1);
  color: #ffc9c1;
  padding: 12px 14px;
}
.notice.good {
  border-color: rgba(112, 217, 157, .45);
  background: rgba(112, 217, 157, .1);
  color: #c7f3d9;
}

@media (max-width: 900px) {
  .topbar-inner,
  .hero,
  .login-card,
  .details-grid { grid-template-columns: 1fr; }
  .topbar-inner { padding: 12px 0; }
  .nav { margin-left: 0; width: 100%; }
  .hero-copy { min-height: 360px; }
  .login-form { border-left: 0; border-top: 1px solid var(--line-soft); }
  .quick-grid { grid-template-columns: 1fr; }
}
