/* ============================================================
   axcelerata — single-file stylesheet
   Palette: #00C281 (primary), #00A56C (hover), #0D2F4F (navy),
            #5A6C7E (body), #F5F7FA / #E4E8EE (surfaces / lines)
   ============================================================ */

:root {
  /* brand */
  --green: #00C281;
  --green-hover: #00A56C;
  --green-700: #008E5C;
  --green-50: #E6FAF2;
  --green-100: #CCF5E3;

  /* text & surfaces */
  --navy: #0D2F4F;
  --navy-soft: #14406B;
  --gray: #5A6C7E;
  --gray-400: #8A98A8;
  --line: #E4E8EE;
  --line-strong: #D5DCE5;
  --surface: #F5F7FA;
  --white: #FFFFFF;

  /* feedback */
  --danger: #B0231A;
  --danger-bg: #FDECEC;
  --danger-border: #F6C5C0;

  /* navy-tinted shadows feel airier than black alphas */
  --shadow-sm: 0 1px 2px rgba(13, 47, 79, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(13, 47, 79, 0.14),
               0 2px 6px -2px rgba(13, 47, 79, 0.08);
  --shadow-lg: 0 24px 60px -20px rgba(13, 47, 79, 0.22),
               0 8px 18px -8px rgba(13, 47, 79, 0.12);
  --shadow-float: 0 18px 40px -16px rgba(13, 47, 79, 0.24);

  /* shape */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* layout */
  --max-w: 1180px;
  --header-h: 80px;
  --footer-h: 73px;

  --transition: 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* -------- Reset-ish -------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }

:focus-visible {
  outline: 3px solid rgba(0, 194, 129, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ========================================================
   HEADER
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Wordmark — lowercase 'x' styled (italic + skew + green) sits naturally
   between the surrounding lowercase letters. */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
  line-height: 1;
}
.wordmark:hover { color: var(--navy); }
.wm-part { color: var(--navy); }
.wm-x {
  color: var(--green);
  font-weight: 800;
  font-style: italic;
  display: inline-block;
  transform: skewX(-10deg) scale(1.12);
  padding: 0 0.04em;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 0 rgba(0, 194, 129, 0.12);
}

/* Nav */
.primary-nav { flex: 1; min-width: 0; }
.primary-nav ul {
  display: flex;
  gap: 28px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-link:hover {
  color: var(--green-hover);
  border-bottom-color: var(--green);
}
.caret { font-size: 11px; color: var(--gray-400); margin-left: 2px; position: relative; top: -1px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.login-link {
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.login-link:hover { color: var(--green-hover); }

.greeting { color: var(--navy); font-size: 15px; }
.greeting strong { font-weight: 600; }

.link-muted {
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.link-muted:hover { color: var(--navy); }

.link-green {
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-green:hover { color: var(--green-hover); }

/* ========================================================
   BUTTONS
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition),
              color var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 6px 16px -6px rgba(0, 194, 129, 0.55);
}
.btn-primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(0, 165, 108, 0.65);
}

.btn-ghost {
  background: #fff;
  color: var(--green-hover);
  border-color: var(--green);
}
.btn-ghost:hover {
  background: var(--green-50);
  color: var(--green-700);
  border-color: var(--green-hover);
}

.btn-lg { padding: 15px 28px; font-size: 16px; min-height: 50px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ========================================================
   HERO
   ======================================================== */
.hero {
  padding: 110px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      1200px 500px at 50% -10%,
      rgba(0, 194, 129, 0.10),
      transparent 60%
    ),
    var(--white);
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
}
.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--navy);
  margin: 0 auto 22px;
  max-width: 12ch;
}
.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--gray);
  font-size: 20px;
  line-height: 1.55;
}
.hero-ctas {
  display: inline-flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========================================================
   SHOWCASE
   ======================================================== */
.showcase-band {
  position: relative;
  padding: 70px 24px 140px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(0, 194, 129, 0.06), transparent 70%),
    linear-gradient(180deg, var(--green-50) 0%, #F4FCF8 55%, var(--white) 100%);
  border-top: 1px solid var(--green-100);
}
.showcase-stage {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Central module card */
.module-card {
  position: relative;
  z-index: 2;
  width: min(660px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 28px 24px;
}
.module-head { margin-bottom: 14px; }
.module-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.check-pill {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -3px rgba(0, 194, 129, 0.45);
}
.module-eyebrow {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--gray-400);
}
.module-title {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.module-status {
  display: inline-block;
  font-size: 13px;
  color: var(--gray);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 8px;
}
.module-desc {
  margin: 14px 0 18px;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.55;
}

.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lesson {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: background var(--transition), border-color var(--transition),
              transform var(--transition);
}
.lesson:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: var(--line-strong);
}
.thumb {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.thumb--a { background: linear-gradient(135deg, #00C281, #00A56C); }
.thumb--b { background: linear-gradient(135deg, #2DA4FF, #1A6FE0); }
.thumb--c { background: linear-gradient(135deg, #FFB155, #F08A2A); }
.thumb--d { background: linear-gradient(135deg, #C8D2DD, #8B97A6); }
.lesson-body { flex: 1; min-width: 0; }
.lesson-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.lesson-status {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--gray);
}
.status-ok { color: var(--green-700); }
.status-pending { color: var(--gray-400); }
.lesson--muted .lesson-title { color: var(--gray); }

.lesson-tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}
.lesson-score {
  flex: none;
  font-weight: 700;
  color: var(--green-700);
  font-size: 12px;
  background: var(--green-50);
  padding: 4px 10px;
  border-radius: 999px;
}
.lesson-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* Floating side cards */
.float-card {
  position: absolute;
  z-index: 3;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  padding: 14px 16px;
  min-width: 210px;
  transition: transform var(--transition);
}
.float-label {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--gray-400);
}
.float-card--dates {
  top: 12px;
  left: 2%;
  transform: rotate(-2deg);
}
.float-card--progress {
  bottom: -30px;
  left: 5%;
  transform: rotate(1.5deg);
  min-width: 230px;
}
.float-card:hover { transform: translateY(-2px) rotate(0deg); }

.dates-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dates-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-700);
  line-height: 1.35;
}

.cal-icon {
  flex: none;
  display: inline-flex;
  flex-direction: column;
  width: 36px;
  height: 40px;
  border-radius: 6px;
  background: var(--green-50);
  border: 1px solid rgba(0, 194, 129, 0.35);
  overflow: hidden;
}
.cal-top { height: 9px; background: var(--green); }
.cal-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 4px;
}
.cal-dot {
  background: rgba(0, 194, 129, 0.55);
  border-radius: 1px;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ring {
  --p: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(
    var(--green) calc(var(--p) * 1%),
    var(--green-100) 0
  );
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
}
.ring::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--white);
  border-radius: 50%;
}
.ring-value {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 800;
  color: var(--green-700);
}
.progress-meta { display: flex; flex-direction: column; gap: 2px; }
.progress-pct {
  font-weight: 800;
  color: var(--green-700);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.progress-sub {
  font-size: 12px;
  color: var(--gray);
  font-weight: 500;
}

/* Right-side chat cluster */
.chat-cluster {
  position: absolute;
  z-index: 3;
  top: 60px;
  right: 2%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 280px;
  transform: rotate(1deg);
}
.avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-hover));
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px -6px rgba(0, 165, 108, 0.5);
}
.bubble {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.bubble p {
  margin: 0;
  font-size: 13px;
  color: var(--navy);
  line-height: 1.45;
  font-weight: 500;
}
.bubble-meta {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 28px;
  text-align: center;
}
.footer-inner p {
  margin: 0;
  color: var(--gray-400);
  font-size: 14px;
}

/* ========================================================
   AUTH — full-viewport split: form pane on the left, promo on the right
   ======================================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.auth-body { background: var(--surface); }
.auth-body .site-header,
.auth-body .site-footer { display: none; }

.auth-split {
  display: grid;
  grid-template-columns: minmax(420px, 5fr) 7fr;
  min-height: 100vh;
}
.auth-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}
.auth-pane--form { background: var(--surface); }
.auth-pane--promo { background: var(--white); }

.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 36px 32px;
  box-shadow: var(--shadow-md);
}

.auth-logo {
  display: flex;
  justify-content: center;
  align-items: baseline;
  text-decoration: none;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 36px;
}
.auth-logo:hover { color: var(--navy); }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 6px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.field input {
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input::placeholder { color: var(--gray-400); }
.field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 194, 129, 0.18);
}
.field input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(176, 35, 26, 0.12);
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.show-toggle {
  background: transparent;
  border: 0;
  padding: 4px 2px;
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: color var(--transition);
  font-family: inherit;
}
.show-toggle:hover { color: var(--green-hover); }

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: -4px;
  flex-wrap: wrap;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
  font-weight: 500;
  user-select: none;
}
.checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: var(--white);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: background var(--transition), border-color var(--transition);
  margin: 0;
  flex: none;
}
.checkbox input:hover { border-color: var(--green); }
.checkbox input:checked {
  background: var(--green);
  border-color: var(--green);
}
.checkbox input:checked::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
}
.checkbox input:focus-visible {
  outline: 3px solid rgba(0, 194, 129, 0.4);
  outline-offset: 2px;
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.flash p { margin: 2px 0 0; }
.flash-title { display: block; font-weight: 700; font-size: 13px; }
.flash-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}
.flash--error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}
.flash--error .flash-icon { background: var(--danger); color: #fff; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 18px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-divider span {
  color: var(--gray);
  font-size: 13px;
  font-weight: 500;
}

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  color: var(--navy);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition),
              transform var(--transition);
}
.btn-social:hover {
  border-color: var(--green);
  background: var(--green-50);
}
.btn-social:active { transform: translateY(1px); }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
}

.auth-privacy {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.auth-privacy:hover { color: var(--green-hover); }

/* Promo column */
.promo-inner {
  width: 100%;
  max-width: 540px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.promo-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.promo-text {
  margin: 0;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.7;
}
.promo-text strong { color: var(--navy); font-weight: 700; }
.promo-link {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 15px;
}
.promo-link:hover { color: var(--green-hover); }
.promo-image {
  margin-top: 12px;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
.promo-image svg { width: 100%; height: 100%; display: block; }

/* Toast for "coming soon" social buttons */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 100;
  max-width: 90vw;
}
.toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========================================================
   PUBLIC VALIDATION — form + result page (no site chrome)
   ======================================================== */
.validate-body { background: var(--surface); }
.validate-body .site-header,
.validate-body .site-footer { display: none; }

.validate-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Validate form (enter cert number + surname) */
.validate-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 36px 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.validate-check-icon {
  text-align: center;
  margin-bottom: 20px;
}
.validate-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.validate-no-surname {
  margin-top: -8px;
  font-size: 13px;
}
.required-star {
  color: var(--danger);
  font-weight: 400;
}
.btn-validate {
  background: #6B7C93;
  color: #fff;
  border-color: #6B7C93;
  box-shadow: none;
  margin-top: 4px;
}
.btn-validate:hover {
  background: #5A6A80;
  border-color: #5A6A80;
  color: #fff;
  transform: translateY(-1px);
}
.btn-validate svg {
  flex: none;
}

/* ----- aXcelerate-shaped validation result page ----- */
.validate-wrap--result { display: none; } /* legacy wrapper unused */

.validationPageContainer {
  font-style: normal;
  padding: 40px 24px;
  margin: 0 auto;
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
}
.validationPageContent {
  background-color: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  text-align: center;
}

.column1 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  min-width: 0;
}
.column2 {
  background: transparent;
  padding: 0;
  border-radius: 0;
  min-width: 0;
  border: none;
}

.btnValidate {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e0e3ea;
  border-radius: 4px;
  color: #5e46ef;
  background: #fff;
  padding: 9px 14px 9px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 32px;
  transition: background 160ms ease, border-color 160ms ease;
  text-decoration: none;
}
.btnValidate:hover { background: #f6f5ff; border-color: #d9d4ff; color: #5e46ef; }
.btnValidate .icon-arrow-left { font-weight: 700; font-size: 16px; line-height: 1; }

.messageSuccess {
  background-color: #f1f8e8;
  border: solid 1px #71bd1e;
  border-radius: 8px;
  padding: 9px 16px 9px 38px;
  margin: 4px 0 14px;
  text-align: center;
  background-repeat: no-repeat;
  background-position: 12px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%2371bd1e'/%3E%3Cpath d='M4.6 8.5l2.2 2.2L11.4 6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 16px 16px;
}
.messageSuccess .v-value {
  color: #71bd1e;
  font-weight: 500;
  font-size: 14px;
}
.messageError {
  background-color: #fdecec;
  border: solid 1px #b0231a;
  border-radius: 8px;
  padding: 9px 16px;
  margin: 4px 0 14px;
  text-align: center;
}
.messageError .v-value { color: #b0231a; font-weight: 500; font-size: 14px; }

.v-label {
  font-size: 13px;
  color: #5c6975;
  text-align: left;
  margin: 22px 0 4px;
  font-weight: 400;
  line-height: 1.3;
}
.v-value {
  font-weight: 500;
  font-size: 14px;
  color: #334352;
  text-align: left;
  margin: 0;
  line-height: 1.45;
}

.messageInfo.certificateTr {
  display: none; /* shown on narrow viewports only */
  margin: 18px 0 6px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.cert-frame-stage {
  position: relative;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  min-height: 480px;
}
.column2 .cert-frame-stage { min-height: 650px; }
.cert-frame-stage object,
.cert-frame-stage embed,
.cert-frame-stage iframe,
.cert-frame-stage img {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
}
.cert-frame-stage object,
.cert-frame-stage embed,
.cert-frame-stage iframe { height: 650px; }
.column1 .cert-frame-stage object,
.column1 .cert-frame-stage embed,
.column1 .cert-frame-stage iframe { height: 480px; }
.cert-frame-stage img { height: auto; max-width: 100%; }

.cert-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
}
.watermark-text {
  transform: rotate(-22deg);
  text-align: center;
  font-family: 'Inter', sans-serif;
  line-height: 1.05;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
}
.watermark-brand {
  display: block;
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: rgba(13, 47, 79, 0.14);
}
.watermark-brand .watermark-x {
  color: rgba(0, 194, 129, 0.32);
  font-style: italic;
  display: inline-block;
  transform: skewX(-10deg) scale(1.12);
  padding: 0 0.04em;
}
.watermark-label {
  display: block;
  margin-top: 6px;
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: rgba(13, 47, 79, 0.22);
}
.watermark-small {
  display: block;
  margin-top: 3px;
  font-size: clamp(9px, 1.1vw, 13px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(13, 47, 79, 0.18);
}

.column-single { grid-column: 1 / -1; text-align: left; }
.result-not-found {
  color: #5c6975;
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0 0;
}

@media (max-width: 880px) {
  .validationPageContent {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .column2 { display: none; }
  .messageInfo.certificateTr { display: block; }
}
@media (max-width: 480px) {
  .validationPageContainer { padding: 24px 14px; }
  .validationPageContent { padding: 18px; }
}

/* ========================================================
   DASHBOARD additions — fixed-meta hint, link-actions, copy button
   ======================================================== */
.fixed-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.fixed-meta > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fixed-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--gray);
}
.fixed-value {
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
}

.link-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.copy-btn:hover { color: var(--green-hover); border-color: var(--green); background: var(--green-50); }
.copy-btn.is-copied {
  color: var(--green-700);
  border-color: var(--green);
  background: var(--green-50);
}
.link-muted.small { font-size: 12px; }
.link-danger {
  background: none;
  border: none;
  padding: 0;
  color: var(--danger);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition);
}
.link-danger:hover { color: #8b1a13; text-decoration: underline; }

@media (max-width: 640px) {
  .fixed-meta { grid-template-columns: 1fr; }
  .link-actions { gap: 6px; }
}

/* ========================================================
   DASHBOARD
   ======================================================== */
.dash-body { background: var(--surface); }
.dash-wrap {
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  padding: 48px 24px 100px;
}
.dash-stack {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dash-header { margin: 0 0 4px; padding: 0 4px; }
.dash-title {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.dash-lede {
  margin: 0;
  color: var(--gray);
  font-size: 15px;
  max-width: 620px;
}

/* Generic panel — shared by issue-form, list, and health */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 28px 24px;
}
.panel--compact { padding: 18px 22px; }
.panel-head { margin-bottom: 20px; }
.panel-head--with-badge { display: flex; align-items: baseline; justify-content: space-between; }
.panel-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.panel-sub {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
}

.count-badge {
  display: inline-block;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Flash messages on dashboard (categories: success/error/info) */
.flash-stack { display: flex; flex-direction: column; gap: 10px; }
.flash--success {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
}
.flash--success .flash-icon { background: var(--green); color: #fff; }
.flash--info {
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--line);
}
.flash--info .flash-icon { background: var(--gray-400); color: #fff; }

/* Issue-certificate form */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-opt {
  font-weight: 400;
  color: var(--gray);
  font-size: 12px;
}
.field-hint {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}
.cert-form .field { margin-bottom: 18px; }
.cert-form .field:last-of-type { margin-bottom: 0; }
.cert-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

/* File-drop zone */
.file-drop {
  position: relative;
  border: 2px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  padding: 26px 20px;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}
.file-drop:hover, .file-drop.is-dragging {
  border-color: var(--green);
  background: var(--green-50);
}
.file-drop.has-file {
  border-style: solid;
  border-color: var(--green);
  background: var(--white);
  text-align: left;
  padding: 16px 18px;
  cursor: default;
}
.file-drop input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-drop.has-file input[type=file] { display: none; }

.file-drop-icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green);
  margin: 0 auto 8px;
}
.file-drop-primary {
  margin: 4px 0 6px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
}
.file-drop-browse {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.file-drop-hint {
  margin: 0;
  font-size: 13px;
  color: var(--gray);
}

.file-drop-selected {
  display: flex;
  align-items: center;
  gap: 14px;
}
.file-drop-thumb {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--green-50);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.file-drop-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.file-drop-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  word-break: break-all;
}
.file-drop-size {
  font-size: 12px;
  color: var(--gray);
}
.file-drop-clear {
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--gray);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  position: relative;
  z-index: 2;
  transition: color var(--transition), border-color var(--transition);
}
.file-drop-clear:hover { color: var(--danger); border-color: var(--danger); background: #fff; }

/* Certificates table */
.cert-table-wrap {
  margin: 0 -8px;
  overflow-x: auto;
}
.cert-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cert-table th, .cert-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.cert-table thead th {
  font-weight: 600;
  color: var(--gray);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.cert-table tbody tr:hover { background: var(--surface); }
.cert-table tbody tr:last-child td { border-bottom: 0; }
.cell-action { text-align: right; white-space: nowrap; }

.mono {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--navy);
  font-weight: 700;
  background: var(--green-50);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ext-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 5px;
  color: #fff;
  margin-right: 8px;
  vertical-align: middle;
}
.ext-pill--pdf  { background: #DC2626; }
.ext-pill--jpg, .ext-pill--jpeg, .ext-pill--png { background: #2563EB; }

.size-muted { color: var(--gray); font-size: 13px; }
.muted { color: var(--gray); }

.empty-state {
  text-align: center;
  padding: 36px 16px 28px;
  color: var(--gray);
}
.empty-icon {
  display: inline-block;
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.7;
}
.empty-state p { margin: 0; font-size: 14px; line-height: 1.6; }

.health-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 18px 20px;
}
.health-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.health-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex: 1;
}
.health-state {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.health-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-400);
  box-shadow: 0 0 0 4px rgba(139, 151, 166, 0.18);
  transition: background var(--transition), box-shadow var(--transition);
}
.health-dot.is-ok {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 194, 129, 0.22);
}
.health-dot.is-err {
  background: #E53E3E;
  box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.22);
}
.health-json {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 1024px) {
  .float-card--dates { left: 0; top: 0; }
  .float-card--progress { left: 0; bottom: -10px; }
  .chat-cluster { right: 0; top: 40px; }
}

@media (max-width: 960px) {
  .primary-nav ul { gap: 18px; }
  .nav-link { font-size: 14px; }
}

@media (max-width: 768px) {
  .header-inner {
    height: 68px;
    padding: 0 18px;
    gap: 12px;
  }
  .primary-nav { display: none; }
  .login-link { display: none; }
  /* Keep the greeting visible on mobile so users still know who they are. */
  .greeting { font-size: 14px; }
  .header-actions .btn { padding: 10px 16px; font-size: 14px; }

  .hero { padding: 64px 20px 32px; }
  .hero-title { font-size: clamp(34px, 9vw, 42px); max-width: 18ch; }
  .hero-subtitle { font-size: 17px; }
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 28px;
  }
  .hero-ctas .btn { width: 100%; }

  .showcase-band { padding: 48px 16px 72px; }
  .showcase-stage {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    min-height: 0;
  }
  .module-card,
  .float-card,
  .chat-cluster {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
  }
  .module-card { order: 2; padding: 22px 20px; }
  .float-card--dates { order: 1; }
  .float-card--progress { order: 3; }
  .chat-cluster { order: 4; }

  .auth-card { padding: 28px 22px; }
  .dash-wrap { padding: 28px 14px 64px; }
  .panel { padding: 22px 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .cert-table th, .cert-table td { padding: 10px 8px; font-size: 13px; }
  .cell-action { text-align: left; padding-top: 0 !important; }
}

/* Auth split: stack vertically on tablet/mobile */
@media (max-width: 980px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-pane { padding: 36px 24px; }
  .auth-pane--promo { order: 2; }
  .promo-image { aspect-ratio: 16 / 7; max-height: 220px; }
}
@media (max-width: 540px) {
  .auth-pane--promo { display: none; }
  .auth-card { padding: 28px 22px; }
}

@media (max-width: 420px) {
  .wordmark { font-size: 22px; }
  /* On the smallest phones the greeting + sign-out button can crowd the
     wordmark — drop the greeting text but keep Sign out as the action. */
  .greeting { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .float-card,
  .chat-cluster { transform: none !important; }
}
