:root {
  --fca-primary: #19315B;
  --fca-primary-dark: #122B55;
  --fca-primary-light: #274F89;
  --fca-section-blue: #2A5796;
  --fca-accent: #F2B233;
  --fca-bg: #F4F5F8;
  --fca-header-bg: #F6F7FB;
  --fca-card-bg: #FFFFFF;
  --fca-text-dark: #1A315B;
  --fca-text-muted: #586C8F;
  --fca-border: #AEB7C7;
}

body {
  background: var(--fca-bg);
  color: var(--fca-text-dark);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fca-topbar {
  background: var(--fca-card-bg);
  border-bottom: 1px solid rgba(174, 183, 199, .55);
  box-shadow: 0 12px 30px rgba(25, 49, 91, .06);
}

.brand-mark {
  align-items: center;
  color: var(--fca-primary);
  display: inline-flex;
  font-weight: 800;
  gap: .65rem;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 44px;
  object-fit: contain;
  width: 44px;
}

.btn-fca {
  background: var(--fca-accent);
  border-color: var(--fca-accent);
  color: var(--fca-primary-dark);
  font-weight: 700;
}

.btn-fca:hover {
  background: #dca026;
  border-color: #dca026;
  color: var(--fca-primary-dark);
}

.btn-navy {
  background: var(--fca-primary);
  border-color: var(--fca-primary);
  color: #fff;
}

.btn-navy:hover {
  background: var(--fca-primary-dark);
  border-color: var(--fca-primary-dark);
  color: #fff;
}

.fca-card {
  background: var(--fca-card-bg);
  border: 1px solid rgba(174, 183, 199, .65);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(25, 49, 91, .08);
}

.stat-card {
  overflow: hidden;
  position: relative;
  min-height: 118px;
}

.stat-card::after {
  background: var(--fca-accent);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.muted {
  color: var(--fca-text-muted);
}

.page-kicker {
  color: var(--fca-section-blue);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-band {
  background: linear-gradient(135deg, var(--fca-primary), var(--fca-section-blue));
  color: #fff;
}

.status-badge {
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem .65rem;
}

.course-lock {
  border-radius: 6px;
  color: var(--fca-primary-dark);
  display: inline-block;
  font-weight: 700;
  padding: .3rem .55rem;
}

.app-page-hero {
  background:
    linear-gradient(135deg, rgba(25, 49, 91, .97), rgba(42, 87, 150, .9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 18px);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(25, 49, 91, .18);
  color: #fff;
  margin-bottom: 1.5rem;
  overflow: hidden;
  padding: 1.65rem;
}

.app-page-hero .page-kicker,
.app-page-hero .muted {
  color: rgba(255, 255, 255, .72);
}

.app-page-hero h1 {
  font-size: clamp(1.85rem, 3vw, 3rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.premium-action {
  color: var(--fca-primary-dark);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.premium-action:hover {
  border-color: rgba(242, 178, 51, .75);
  box-shadow: 0 18px 45px rgba(25, 49, 91, .14);
  color: var(--fca-primary-dark);
  transform: translateY(-2px);
}

.premium-action h2,
.premium-action h3 {
  color: var(--fca-primary-dark);
  font-weight: 800;
}

.premium-table {
  background: #fff;
}

.premium-table thead th {
  background: var(--fca-header-bg);
  border-bottom: 1px solid rgba(174, 183, 199, .65);
  color: var(--fca-primary-dark);
  font-size: .78rem;
  letter-spacing: .06em;
  padding: 1rem;
  text-transform: uppercase;
}

.premium-table tbody td {
  border-color: rgba(174, 183, 199, .35);
  padding: 1rem;
}

.premium-toolbar {
  background: #fff;
  border: 1px solid rgba(174, 183, 199, .55);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(25, 49, 91, .07);
  padding: 1rem;
}

.premium-form-card .form-control,
.premium-form-card .form-select,
.premium-toolbar .form-control,
.premium-toolbar .form-select {
  border-color: rgba(174, 183, 199, .85);
  min-height: 48px;
}

.premium-form-card .form-control:focus,
.premium-form-card .form-select:focus,
.premium-toolbar .form-control:focus,
.premium-toolbar .form-select:focus {
  border-color: var(--fca-primary-light);
  box-shadow: 0 0 0 .2rem rgba(39, 79, 137, .14);
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.course-card p {
  flex: 1;
}

.lesson-row,
.detail-row {
  border-top: 1px solid rgba(174, 183, 199, .42);
  padding: 1rem 0;
}

.lesson-row:first-of-type,
.detail-row:first-of-type {
  border-top: 0;
}

.detail-list dt {
  color: var(--fca-text-muted);
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.detail-list dd {
  color: var(--fca-primary-dark);
  font-weight: 700;
  margin-bottom: 1.15rem;
}

.premium-empty {
  background: var(--fca-header-bg);
  border: 1px dashed rgba(174, 183, 199, .9);
  border-radius: 8px;
  color: var(--fca-text-muted);
  padding: 2rem;
  text-align: center;
}

.alert {
  border-radius: 8px;
}

.premium-hero {
  background:
    linear-gradient(120deg, rgba(18, 43, 85, .96), rgba(42, 87, 150, .9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 18px);
  color: #fff;
  padding: 92px 0 72px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  font-weight: 850;
  line-height: .98;
  margin-bottom: 1.25rem;
  max-width: 820px;
}

.hero-copy {
  color: rgba(255, 255, 255, .82);
  font-size: 1.18rem;
  line-height: 1.75;
  max-width: 690px;
}

.hero-metrics {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  overflow: hidden;
}

.hero-metrics div {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 1rem;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--fca-accent);
  font-size: 1.25rem;
}

.hero-metrics span {
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
}

.hero-panel {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  color: var(--fca-text-dark);
  padding: 1.25rem;
}

.panel-top {
  align-items: center;
  background: var(--fca-header-bg);
  border: 1px solid rgba(174, 183, 199, .55);
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.panel-top img {
  height: 64px;
  object-fit: contain;
  width: 64px;
}

.panel-top span,
.panel-top strong {
  display: block;
}

.panel-top span {
  color: var(--fca-text-muted);
  font-size: .9rem;
}

.panel-top strong {
  color: var(--fca-primary-dark);
  font-size: 1.05rem;
}

.access-list {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.access-list div {
  align-items: center;
  border: 1px solid rgba(174, 183, 199, .5);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: .95rem 1rem;
}

.access-list span {
  color: var(--fca-text-muted);
}

.access-list strong {
  color: var(--fca-primary);
}

.home-section {
  padding: 72px 0;
}

.home-section-soft {
  background: #fff;
  border-top: 1px solid rgba(174, 183, 199, .35);
}

.feature-tile,
.premium-card {
  background: #fff;
  border: 1px solid rgba(174, 183, 199, .5);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(25, 49, 91, .08);
  height: 100%;
  padding: 1.5rem;
}

.feature-tile span {
  color: var(--fca-accent);
  display: block;
  font-size: .9rem;
  font-weight: 850;
  margin-bottom: 1.25rem;
}

.feature-tile h2,
.section-title {
  color: var(--fca-primary-dark);
}

.feature-tile h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.feature-tile p,
.section-copy,
.premium-card span,
.footer-copy {
  color: var(--fca-text-muted);
  line-height: 1.7;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 850;
  line-height: 1.05;
  margin: .75rem 0 1rem;
}

.premium-card strong,
.premium-card span {
  display: block;
}

.premium-card strong {
  color: var(--fca-primary-dark);
  font-size: 1.05rem;
  margin-bottom: .45rem;
}

.site-footer {
  background: var(--fca-primary-dark);
  color: rgba(255, 255, 255, .78);
}

.site-footer a,
.site-footer span {
  color: rgba(255, 255, 255, .72);
  display: block;
  margin-bottom: .45rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fca-accent);
}

.footer-brand {
  color: #fff;
}

.footer-title {
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
}

.auth-shell {
  padding: 2rem 0 3.5rem;
}

.auth-card {
  background: #fff;
  border: 1px solid rgba(174, 183, 199, .55);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(25, 49, 91, .13);
  margin: 0 auto;
  max-width: 1040px;
  overflow: hidden;
}

.auth-card-wide {
  max-width: 1180px;
}

.auth-story {
  background:
    linear-gradient(145deg, rgba(18, 43, 85, .97), rgba(39, 79, 137, .92)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 16px);
  color: #fff;
  min-height: 560px;
  padding: 2rem;
}

.auth-logo {
  height: 76px;
  margin-bottom: 2.25rem;
  object-fit: contain;
  width: 76px;
}

.auth-story h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 850;
  line-height: 1.02;
  margin: .85rem 0 1rem;
}

.auth-story p {
  color: rgba(255, 255, 255, .78);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.auth-points {
  display: grid;
  gap: .75rem;
}

.auth-points span {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  color: rgba(255, 255, 255, .88);
  padding: .8rem .95rem;
}

.auth-form-panel {
  align-items: center;
  display: flex;
  padding: 2rem;
}

.auth-form-inner {
  margin: 0 auto;
  max-width: 460px;
  width: 100%;
}

.auth-form-inner-wide {
  max-width: 760px;
}

.auth-form-inner h2 {
  color: var(--fca-primary-dark);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 850;
  margin: .5rem 0 .5rem;
}

.auth-form-inner .form-control {
  border-color: rgba(174, 183, 199, .9);
  min-height: 52px;
}

.auth-form-inner .form-control:focus {
  border-color: var(--fca-primary-light);
  box-shadow: 0 0 0 .2rem rgba(39, 79, 137, .14);
}

.auth-form-inner .invalid-feedback {
  font-weight: 650;
}

@media (max-width: 767.98px) {
  .premium-hero {
    padding: 56px 0 48px;
  }

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

  .brand-mark span {
    font-size: .95rem;
  }

  .auth-shell {
    padding-top: 1rem;
  }

  .auth-story,
  .auth-form-panel {
    min-height: auto;
    padding: 1.5rem;
  }
}
