:root {
  --navy: #1d2d50;
  --header-bg: #f3f3f3;
  --text: #333;
  --muted: #6b6375;
  --footer-text: #9a9aa3;
  --card-border: #e3e3e6;
  --flag-red: #d90012;
  --flag-blue: #0033a0;
  --flag-orange: #f2a900;
  --stage-green: #2eaf5d;
  --stage-yellow: #f5d547;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 18px;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--header-bg);
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 90px;
  height: auto;
  display: block;
}

.flag-stripe {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 70px;
}

.flag-stripe > div {
  width: 7px;
  flex: 1;
}

.flag-stripe .red { background: var(--flag-red); }
.flag-stripe .blue { background: var(--flag-blue); }
.flag-stripe .orange { background: var(--flag-orange); }

.title {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: Arial, sans-serif;
  font-size: 16px;
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  border: 0.8px solid var(--navy);
  transition: opacity 0.15s ease;
}

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

.btn-outline {
  background: #fff;
  color: var(--navy);
}

.btn:disabled {
  background: #c9c9cf;
  border-color: #c9c9cf;
  color: #fff;
  cursor: not-allowed;
}

.btn-outline:disabled {
  background: #e0e0e3;
  color: #8a8a90;
}

.btn:hover:not(:disabled) {
  opacity: 0.92;
}

/* ---------- Main ---------- */
main {
  flex: 1;
  padding: 40px 5%;
}

/* Home view */
.home-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 120px;
  flex-wrap: wrap;
}

.home-btn {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--card-border);
  padding: 18px 30px;
  font-size: 17px;
  border-radius: 6px;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

.home-btn:hover { background: #fafafa; }

/* Back button */
.back-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.back-btn {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
}

.back-btn:hover { background: #f7f7f8; }

/* Card */
.card {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 40px 60px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* Stage carousel view */
.stage-counter {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 12px;
}

.stage-title {
  text-align: center;
  color: var(--navy);
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 24px;
}

.stage-body {
  text-align: center;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto 36px;
}

.carousel-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.carousel-nav .btn-primary:disabled {
  background: #c9c9cf;
  border-color: #c9c9cf;
}

/* Your Application view */
.stage-strip {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.stage-box {
  flex: 1;
  min-width: 130px;
  text-align: center;
  padding: 18px 8px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  background: #fff;
}

.stage-box.completed {
  background: var(--stage-green);
  color: #fff;
  border-color: var(--stage-green);
}

.stage-box.current {
  background: var(--stage-yellow);
  color: #2a2a2a;
  border-color: var(--stage-yellow);
  cursor: pointer;
}

.app-title {
  text-align: center;
  color: var(--navy);
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 30px;
  margin: 8px 0 18px;
}

.app-line {
  text-align: center;
  font-size: 17px;
  color: var(--text);
  margin: 8px 0;
}

.app-line a, .app-line .stage-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid #eee;
  padding: 20px 5%;
  text-align: center;
  color: var(--footer-text);
  font-size: 14px;
  background: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .title { font-size: 18px; }
  .card { padding: 28px 22px; }
  .home-actions { flex-direction: column; gap: 16px; margin-top: 60px; }
  .stage-title { font-size: 22px; }
  .app-title { font-size: 24px; }
}
