:root {
  --app-blue: #0f6bff;
  --app-blue-dark: #10147a;
  --app-indigo: #6136f2;
  --app-purple: #7a22d9;
  --app-fuchsia: #e90b7a;
  --app-green: #13a86b;
  --app-amber: #f5aa14;
  --app-rose: #ef3f70;
  --app-pink: #f06292;
  --app-ink: #17213a;
  --app-muted: #66728a;
  --app-line: #dbe5f4;
  --app-soft: #f6f8fc;
  --app-card: #ffffff;
  --app-shadow: 0 18px 42px rgba(23, 33, 58, 0.1);
  --brand-gradient: linear-gradient(100deg, #10147a 0%, #28108f 34%, #7a159b 68%, #e90b7a 100%);
  --hero-gradient: linear-gradient(112deg, #10147a 0%, #22118b 35%, #7d169c 68%, #e90b7a 100%);
  --soft-gradient: linear-gradient(135deg, rgba(15, 107, 255, 0.1), rgba(122, 34, 217, 0.08), rgba(233, 11, 122, 0.08));
}

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

html {
  font-size: 14px;
  min-height: 100%;
  position: relative;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  margin-bottom: 60px;
  overflow-x: hidden;
  color: var(--app-ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(15, 107, 255, 0.08), transparent 28%),
    radial-gradient(circle at 88% 2%, rgba(233, 11, 122, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 248, 252, 0.94) 100%),
    #f7f9fd;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.12rem #fff, 0 0 0 0.28rem rgba(17, 103, 242, 0.25);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.app-navbar {
  min-height: 68px;
  background: var(--brand-gradient);
  box-shadow: 0 12px 30px rgba(22, 12, 116, 0.22);
}

.app-navbar__inner {
  max-width: 1740px;
  padding: 0 28px;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
}

.app-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(6, 46, 125, 0.18);
}

.app-brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-brand__text {
  display: none;
}

.app-nav-links {
  gap: 8px;
  margin-left: 20px;
}

.app-nav-links .nav-link,
.app-user-link {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 700;
  padding: 10px 18px !important;
}

.app-nav-links .nav-link.active,
.app-nav-links .nav-link:hover,
.app-user-link:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(233, 11, 122, 0.42));
  color: #fff !important;
}

.app-user-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.app-user-link__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--app-indigo);
}

.app-shell {
  width: min(100% - 32px, 1740px);
  margin: 0 auto;
  padding: 34px 0 26px;
}

.app-shell--wide {
  width: min(100% - 56px, 1740px);
}

.footer {
  position: relative;
}

/* Home */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 0.8fr);
  gap: 28px;
  min-height: 362px;
  align-items: center;
  overflow: hidden;
  padding: 50px min(10vw, 180px);
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 0 50%, rgba(82, 97, 255, 0.28), transparent 20%),
    radial-gradient(circle at 100% 88%, rgba(255, 255, 255, 0.12), transparent 16%),
    var(--hero-gradient);
  box-shadow: 0 24px 58px rgba(34, 17, 139, 0.22);
}

.home-hero__content {
  position: relative;
  z-index: 2;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.home-hero h1 {
  max-width: 560px;
  margin: 0 0 18px;
  font-size: 4.2rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.home-hero p {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  line-height: 1.65;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.home-hero__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  border-radius: 8px;
  padding: 0 24px;
  font-weight: 800;
}

.home-hero__primary {
  color: var(--app-indigo) !important;
  box-shadow: 0 12px 26px rgba(13, 15, 104, 0.18);
}

.home-hero__secondary {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.55);
}

.home-hero__secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.home-hero__visual {
  position: relative;
  height: 310px;
}

.hero-document {
  position: absolute;
  right: 88px;
  top: 8px;
  width: 245px;
  height: 290px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 44px rgba(29, 35, 93, 0.24);
  transform: rotate(5deg);
}

.hero-document__line {
  height: 12px;
  margin: 32px 34px 0;
  border-radius: 99px;
  background: #dfe5f5;
}

.hero-document__line--short {
  width: 72px;
}

.hero-document__chart {
  position: relative;
  width: 95px;
  height: 95px;
  margin: 28px 0 0 90px;
  border-radius: 50%;
  background: conic-gradient(#ffc43a 0 28%, #6849ef 28% 100%);
  box-shadow: inset 0 0 0 20px rgba(255, 255, 255, 0.92);
}

.hero-document__checks {
  display: grid;
  gap: 12px;
  margin: 26px 34px;
  color: var(--app-green);
  font-size: 1.25rem;
}

.hero-calculator {
  position: absolute;
  left: 40px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, 30px);
  gap: 12px;
  width: 148px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, #7fa6ff 0%, #5265e8 100%);
  box-shadow: 0 24px 38px rgba(26, 43, 132, 0.32);
  transform: rotate(-7deg);
}

.hero-calculator__screen {
  grid-column: 1 / -1;
  height: 44px;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: inset 0 0 0 5px rgba(47, 64, 196, 0.45);
}

.hero-calculator span {
  display: block;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.8);
}

.hero-calculator .hero-calculator__accent {
  height: 68px;
  grid-row: span 2;
  background: #ff5b8e;
}

.hero-shield {
  position: absolute;
  right: 38px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 138px;
  border-radius: 28px 28px 46px 46px;
  background: linear-gradient(160deg, #35d293 0%, #07985c 100%);
  color: #fff;
  font-size: 4.2rem;
  box-shadow: 0 20px 38px rgba(3, 105, 71, 0.28);
}

.hero-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 26px rgba(32, 41, 113, 0.18);
}

.hero-badge--people {
  top: 64px;
  left: 12px;
  color: var(--app-indigo);
}

.hero-badge--heart {
  top: 78px;
  right: 0;
  color: var(--app-rose);
}

.hero-badge--law {
  right: 74px;
  bottom: 0;
  color: var(--app-amber);
}

.home-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100% - 180px, 1320px);
  margin: 34px auto 44px;
  padding: 24px 28px;
  border: 1px solid rgba(219, 229, 244, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(23, 33, 58, 0.11);
}

.home-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 78px;
}

.home-stat + .home-stat {
  border-left: 1px solid var(--app-line);
}

.home-stat__icon,
.home-info-card__icon,
.home-feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
}

.home-stat__icon {
  width: 66px;
  height: 66px;
  font-size: 1.9rem;
}

.home-stat strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
  color: var(--app-indigo);
}

.home-stat small {
  display: block;
  margin-top: 7px;
  color: var(--app-muted);
  font-weight: 600;
}

.home-stat__icon--blue,
.home-info-card__icon--blue,
.home-feature-card__icon--blue {
  background: #eaf1ff;
  color: var(--app-blue);
}

.home-stat__icon--green,
.home-info-card__icon--green,
.home-feature-card__icon--green {
  background: #eafaf2;
  color: var(--app-green);
}

.home-stat__icon--amber,
.home-feature-card__icon--amber {
  background: #fff5dc;
  color: var(--app-amber);
}

.home-info-card__icon--rose {
  background: #fff0f4;
  color: var(--app-rose);
}

.home-section {
  width: min(100% - 260px, 1320px);
  margin: 56px auto 0;
}

.home-section__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  text-align: center;
}

.home-section__title h2 {
  margin: 0;
  color: var(--app-ink);
  font-size: 1.65rem;
  font-weight: 800;
}

.home-section__title span {
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 107, 255, 0.05), rgba(15, 107, 255, 0.72));
}

.home-section__title span:last-child {
  background: linear-gradient(90deg, rgba(122, 34, 217, 0.72), rgba(122, 34, 217, 0.05));
}

.home-card-grid {
  display: grid;
  gap: 30px;
}

.home-card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-info-card,
.home-feature-card,
.home-news-card,
.home-step-grid article {
  border: 1px solid rgba(219, 229, 244, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.9)),
    #fff;
  box-shadow: 0 12px 28px rgba(23, 33, 58, 0.07);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.25s ease;
}

.home-info-card.is-visible,
.home-feature-card.is-visible,
.home-news-card.is-visible,
.home-step-grid article.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-info-card:hover,
.home-feature-card:hover,
.home-news-card:hover,
.home-step-grid article:hover {
  box-shadow: 0 18px 36px rgba(23, 33, 58, 0.12);
}

.home-info-card {
  display: flex;
  gap: 20px;
  padding: 26px;
}

.home-info-card__icon {
  width: 72px;
  height: 72px;
  font-size: 2rem;
}

.home-info-card h3,
.home-feature-card h3,
.home-news-card h3,
.home-step-grid h3 {
  margin: 0 0 9px;
  color: var(--app-ink);
  font-size: 1rem;
  font-weight: 800;
}

.home-info-card p,
.home-feature-card p,
.home-news-card p,
.home-step-grid p {
  margin: 0;
  color: var(--app-muted);
  line-height: 1.65;
}

.home-feature-card {
  padding: 28px;
}

.home-feature-card__icon {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  font-size: 1.75rem;
}

.home-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.home-step-grid article {
  padding: 24px;
}

.home-step-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--app-blue), var(--app-indigo));
  color: #fff;
  font-weight: 800;
}

.home-news {
  position: relative;
  width: min(100% - 140px, 1480px);
  margin-top: 72px;
  padding: 42px 56px 58px;
  border: 1px solid rgba(219, 229, 244, 0.86);
  border-radius: 12px;
  background:
    radial-gradient(circle at 10% 18%, rgba(15, 107, 255, 0.12), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(122, 34, 217, 0.1), transparent 30%),
    linear-gradient(180deg, #eef5ff 0%, rgba(255, 255, 255, 0.95) 42%, #f8fbff 100%);
  box-shadow: 0 24px 58px rgba(23, 33, 58, 0.08);
}

.home-news::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(15, 107, 255, 0.12), transparent 36%, rgba(233, 11, 122, 0.1));
  content: "";
  opacity: 0.55;
}

.home-news > * {
  position: relative;
  z-index: 1;
}

.home-news .home-section__title {
  margin-bottom: 34px;
}

.home-news .home-section__title h2 {
  font-size: 2rem;
}

.home-news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
}

.home-news-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--app-blue), var(--app-indigo), var(--app-fuchsia));
  content: "";
  opacity: 0;
  transition: opacity 0.25s ease;
}

.home-news-card:hover::before {
  opacity: 1;
}

.home-news-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  color: #53617c;
  font-size: 1.05rem;
}

.home-news-card__meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eaf1ff, #f3ecff);
  color: var(--app-blue);
  box-shadow: inset 0 0 0 1px rgba(15, 107, 255, 0.12);
}

.home-news-card h3 {
  margin-bottom: 16px;
  color: #071534;
  font-size: 1.18rem;
  line-height: 1.28;
}

.home-news-card p {
  color: #5f6f90;
  font-size: 1.05rem;
  line-height: 1.72;
}

.home-news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--app-blue);
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
}

.home-news-card__link:hover {
  color: var(--app-fuchsia);
  text-decoration: none;
}

.home-cta {
  width: min(100% - 260px, 1320px);
  margin: 64px auto 0;
  padding: 50px 28px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  background: linear-gradient(104deg, var(--app-blue) 0%, var(--app-indigo) 56%, #5f35ff 100%);
  box-shadow: 0 22px 46px rgba(40, 16, 143, 0.2);
}

.home-cta h2 {
  margin: 0 0 10px;
  font-weight: 800;
}

.home-cta p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
}

.home-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  border-radius: 8px;
  padding: 0 26px;
  color: var(--app-blue);
  font-weight: 800;
}

/* Wizard */
.wizard-layout {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr) minmax(290px, 360px);
  gap: 24px;
  align-items: start;
}

.wizard-main {
  min-width: 0;
}

.wizard-card {
  max-width: none;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  border: 1px solid rgba(219, 229, 244, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(23, 33, 58, 0.1);
}

.wizard-card > h4 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px !important;
  color: var(--app-ink);
  font-size: 1.55rem;
  font-weight: 800;
}

.wizard-card > h4::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef2ff, #f3e8ff);
  color: var(--app-indigo);
  font-family: "bootstrap-icons";
  content: "\F340";
  font-size: 1.35rem;
  flex: 0 0 auto;
}

.wizard-progress {
  height: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 999px;
  background: #e9edf5;
}

.wizard-progress .bar {
  width: var(--progress, 0%);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--app-blue) 0%, var(--app-indigo) 54%, var(--app-fuchsia) 100%);
  transition: width 0.3s ease;
}

.wizard-card form {
  margin-top: 22px;
}

.wizard-card .form-label {
  color: var(--app-ink);
  font-weight: 700;
}

.wizard-card .form-control,
.wizard-card .form-select,
.wizard-card .input-group-text {
  min-height: 48px;
  border-color: #d9e1fb;
  border-radius: 8px;
}

.wizard-card .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.wizard-card .input-group .input-group-text {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: #f2f6fc;
  color: var(--app-ink);
  font-weight: 800;
}

.wizard-card .form-text,
.wizard-card small {
  line-height: 1.55;
}

.wizard-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.wizard-card .btn-success {
  border-color: var(--app-indigo);
  background: linear-gradient(90deg, var(--app-blue), var(--app-indigo));
}

.wizard-card .btn-secondary {
  border-color: #d7dfec;
  background: #edf2f8;
  color: var(--app-ink);
}

.wizard-card .alert {
  border-radius: 8px;
}

.wizard-card .card {
  border-radius: 8px;
  box-shadow: none !important;
}

.wizard-card .card-header {
  min-height: 52px;
  border-radius: 8px 8px 0 0 !important;
}

.start-info-callout {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #d8dcff;
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff, #fbf1ff);
}

.start-info-callout h5 {
  margin: 0;
  color: var(--app-indigo);
  font-size: 1rem;
  font-weight: 800;
}

.start-info-callout p {
  margin: 0;
  color: var(--app-muted);
  line-height: 1.6;
}

.wizard-step-sidebar,
.info-panel,
.wizard-tip-card {
  border: 1px solid rgba(219, 229, 244, 0.94);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(23, 33, 58, 0.09);
}

.wizard-step-sidebar,
.wizard-aside {
  position: sticky;
  top: 92px;
}

.wizard-aside {
  display: grid;
  gap: 24px;
}

.wizard-step-sidebar {
  padding: 22px;
}

.wizard-step-sidebar__header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.wizard-step-sidebar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--app-blue), var(--app-indigo), var(--app-fuchsia));
  box-shadow: 0 12px 22px rgba(122, 34, 217, 0.18);
}

.wizard-step-sidebar h2 {
  margin: 0;
  color: var(--app-ink);
  font-size: 1rem;
  font-weight: 800;
}

.wizard-step-sidebar p {
  margin: 4px 0 0;
  color: var(--app-muted);
  line-height: 1.5;
}

.wizard-step-list {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wizard-step-list::before {
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 25px;
  width: 2px;
  background: #e7edf7;
  content: "";
}

.wizard-step-list__item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 10px;
  border-radius: 8px;
}

.wizard-step-list__item.is-active {
  background: #f0f5ff;
  box-shadow: inset 0 0 0 1px #d8e5ff;
}

.wizard-step-list__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #edf2f8;
  color: var(--app-ink);
  font-weight: 800;
}

.wizard-step-list__item.is-active .wizard-step-list__number,
.wizard-step-list__item.is-completed .wizard-step-list__number {
  color: #fff;
}

.wizard-step-list__item.tone-blue.is-active .wizard-step-list__number,
.wizard-step-list__item.tone-blue.is-completed .wizard-step-list__number { background: var(--app-blue); }
.wizard-step-list__item.tone-green.is-active .wizard-step-list__number,
.wizard-step-list__item.tone-green.is-completed .wizard-step-list__number { background: var(--app-green); }
.wizard-step-list__item.tone-amber.is-active .wizard-step-list__number,
.wizard-step-list__item.tone-amber.is-completed .wizard-step-list__number { background: var(--app-amber); }
.wizard-step-list__item.tone-rose.is-active .wizard-step-list__number,
.wizard-step-list__item.tone-rose.is-completed .wizard-step-list__number { background: var(--app-rose); }
.wizard-step-list__item.tone-purple.is-active .wizard-step-list__number,
.wizard-step-list__item.tone-purple.is-completed .wizard-step-list__number { background: var(--app-indigo); }
.wizard-step-list__item.tone-pink.is-active .wizard-step-list__number,
.wizard-step-list__item.tone-pink.is-completed .wizard-step-list__number { background: var(--app-pink); }

.wizard-step-list__content strong {
  display: block;
  color: var(--app-ink);
  font-size: 0.92rem;
  line-height: 1.35;
}

.wizard-step-list__content small {
  display: block;
  margin-top: 4px;
  color: var(--app-muted);
  font-weight: 600;
}

.wizard-sidebar-tip {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #e5ddff;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5f9ff, #fff2f9);
}

.wizard-sidebar-tip__label {
  display: block;
  margin-bottom: 8px;
  color: var(--app-indigo);
  font-weight: 800;
}

.wizard-sidebar-tip p {
  max-width: 210px;
  margin: 0;
  color: var(--app-muted);
}

.wizard-sidebar-tip > i {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: rgba(122, 34, 217, 0.22);
  font-size: 3rem;
}

.info-panel {
  padding: 22px 24px;
}

.info-panel__visual {
  position: relative;
  height: 120px;
  margin-bottom: 20px;
}

.info-panel__shield {
  position: absolute;
  left: 50%;
  top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, var(--app-blue) 0%, var(--app-indigo) 58%, var(--app-fuchsia) 100%);
  box-shadow: 0 18px 32px rgba(122, 34, 217, 0.24);
  transform: translateX(-50%);
  font-size: 2.8rem;
}

.info-panel__spark {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
}

.info-panel__spark--one {
  top: 28px;
  left: 28px;
  color: #56b6ff;
}

.info-panel__spark--two {
  right: 34px;
  top: 22px;
  color: #fb7aa1;
}

.info-panel__spark--three {
  right: 72px;
  bottom: 8px;
  color: #f5aa14;
}

.info-panel__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.info-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #c6d3ff;
  border-radius: 50%;
  color: var(--app-indigo);
  background: #f8f5ff;
  flex: 0 0 auto;
}

.info-panel__title {
  margin: 0;
  color: var(--app-ink);
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 800;
}

.info-panel__summary {
  margin-bottom: 16px;
  color: var(--app-muted);
  line-height: 1.65;
}

.info-panel__list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.info-panel__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  color: var(--app-muted);
  line-height: 1.5;
}

.info-panel__list i {
  margin-top: 2px;
  color: var(--app-green);
}

.info-panel__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #d9e1fb;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7fbff, #fff4fa);
  color: var(--app-indigo);
  font-weight: 800;
}

.info-panel__link:hover,
.info-panel__link:focus {
  background: #f3f0ff;
  color: var(--app-fuchsia);
}

.wizard-tip-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  overflow: hidden;
  padding: 24px;
  background: linear-gradient(135deg, #fbf7ff, #fff6fb);
}

.wizard-tip-card h2 {
  margin: 0 0 14px;
  color: #6133d4;
  font-size: 1.08rem;
  font-weight: 800;
}

.wizard-tip-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--app-muted);
  line-height: 1.55;
}

.wizard-tip-card p {
  margin: 14px 0 0;
  color: var(--app-muted);
  line-height: 1.55;
}

.wizard-tip-card__icon {
  align-self: end;
  color: rgba(245, 170, 20, 0.34);
  font-size: 4.2rem;
}

.info-modal__section + .info-modal__section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #edf2f7;
}

.info-modal__section h6 {
  margin-bottom: 8px;
  color: var(--app-ink);
  font-size: 1rem;
  font-weight: 800;
}

.info-modal__section p {
  margin-bottom: 10px;
  color: #4b5563;
  line-height: 1.7;
}

.modal-backdrop {
  z-index: 2050;
}

.modal.info-modal {
  z-index: 2060;
}

.modal.info-modal .modal-dialog {
  pointer-events: auto;
}

.modal.info-modal .modal-content {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 26px 70px rgba(7, 21, 52, 0.28);
}

.modal.info-modal .modal-footer .btn {
  border-color: var(--app-indigo);
  background: linear-gradient(90deg, var(--app-blue), var(--app-indigo));
  font-weight: 800;
}

.app-footer {
  border-color: rgba(219, 229, 244, 0.88) !important;
}

.app-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.app-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.app-footer__links a {
  color: var(--app-muted);
  font-weight: 700;
  text-decoration: none;
}

.app-footer__links a:hover,
.app-footer__links a:focus {
  color: var(--app-indigo);
  text-decoration: underline;
}

.privacy-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 26px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(23, 33, 58, 0.07);
}

.privacy-page h1 {
  margin: 0 0 16px;
  color: var(--app-ink);
  font-size: 2rem;
  font-weight: 900;
}

.privacy-page p {
  color: var(--app-muted);
  line-height: 1.75;
}

.seo-page {
  display: grid;
  gap: 28px;
}

.seo-page__hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px);
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.22), transparent 20%),
    radial-gradient(circle at 8% 80%, rgba(15, 107, 255, 0.28), transparent 24%),
    var(--hero-gradient);
  box-shadow: 0 24px 58px rgba(34, 17, 139, 0.22);
}

.seo-page__hero::after {
  content: "";
  position: absolute;
  right: -78px;
  bottom: -98px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.seo-page__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.seo-page__hero h1 {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 0 16px;
  font-size: 3.35rem;
  line-height: 1.12;
  font-weight: 900;
}

.seo-page__hero p:not(.seo-page__eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.75;
}

.seo-page__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.seo-page__actions .btn,
.seo-page__aside-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
}

.seo-page__actions .btn-primary {
  border: 0;
  background: #fff;
  color: var(--app-indigo);
  box-shadow: 0 12px 26px rgba(13, 15, 104, 0.18);
}

.seo-page__actions .btn-outline-primary {
  border-color: rgba(255, 255, 255, 0.46);
  color: #fff;
}

.seo-page__actions .btn-outline-primary:hover,
.seo-page__actions .btn-outline-primary:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.seo-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  gap: 24px;
  align-items: start;
}

.seo-page__content {
  display: grid;
  gap: 18px;
}

.seo-page__section {
  padding: 26px;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(23, 33, 58, 0.07);
}

.seo-page__section h2 {
  margin: 0 0 12px;
  color: var(--app-ink);
  font-size: 1.32rem;
  font-weight: 900;
}

.seo-page__section p {
  margin: 0;
  color: var(--app-muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

.seo-page__faq {
  display: grid;
  gap: 12px;
}

.seo-page__faq h2 {
  margin-bottom: 4px;
}

.seo-page__faq details {
  border: 1px solid #e2e9f6;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8fbff, #fff8fc);
}

.seo-page__faq summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--app-ink);
  font-weight: 850;
}

.seo-page__faq details[open] summary {
  color: var(--app-indigo);
}

.seo-page__faq details p {
  padding: 0 18px 16px;
}

.seo-page__aside {
  position: sticky;
  top: 96px;
}

.seo-page__aside-card {
  overflow: hidden;
  padding: 26px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--app-blue), var(--app-indigo) 55%, var(--app-fuchsia));
  box-shadow: 0 22px 48px rgba(97, 54, 242, 0.2);
}

.seo-page__aside-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.9rem;
}

.seo-page__aside-card h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  font-weight: 900;
}

.seo-page__aside-card p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
}

.seo-page__aside-card .btn {
  color: var(--app-indigo);
}

.seo-page__notice {
  padding: 18px 20px;
  border: 1px solid #dce6f7;
  border-left: 5px solid var(--app-indigo);
  border-radius: 10px;
  background: linear-gradient(135deg, #f7fbff, #fff8fc);
  color: #536078;
  line-height: 1.65;
}

.seo-page__notice strong {
  color: var(--app-ink);
}

@media (max-width: 1399.98px) {
  .home-section,
  .home-cta,
  .home-stat-strip,
  .home-news {
    width: min(100%, 1320px);
  }

  .home-hero {
    padding: 44px 72px;
  }

  .wizard-layout {
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  }

  .wizard-aside {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .app-shell--wide,
  .app-shell {
    width: min(100% - 28px, 960px);
    padding-top: 22px;
  }

  .app-brand__text {
    display: inline;
  }

  .home-hero {
    grid-template-columns: 1fr;
    padding: 34px 26px;
  }

  .home-news {
    padding: 34px 28px 42px;
  }

  .home-hero__visual {
    height: 270px;
  }

  .home-stat-strip,
  .home-card-grid--three,
  .home-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-stat + .home-stat {
    border-left: 0;
  }

  .wizard-layout {
    grid-template-columns: 1fr;
  }

  .wizard-step-sidebar,
  .wizard-aside {
    position: static;
  }

  .wizard-aside {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .seo-page__layout {
    grid-template-columns: 1fr;
  }

  .seo-page__aside {
    position: static;
  }

  .seo-page__hero h1 {
    font-size: 2.55rem;
  }
}

@media (max-width: 767.98px) {
  .app-navbar__inner {
    padding: 0 14px;
  }

  .app-nav-links {
    gap: 4px;
    margin: 12px 0 0;
  }

  .app-navbar .navbar-collapse {
    padding: 10px 0 14px;
  }

  .app-nav-links .nav-link,
  .app-user-link {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px !important;
  }

  .home-hero h1 {
    font-size: 2.15rem;
  }

  .home-hero p,
  .seo-page__hero p:not(.seo-page__eyebrow) {
    font-size: 1rem;
    line-height: 1.58;
  }

  .home-hero__actions .btn,
  .seo-page__actions .btn,
  .home-cta .btn {
    width: 100%;
  }

  .home-stat-strip {
    padding: 18px;
  }

  .home-stat__icon {
    width: 54px;
    height: 54px;
    font-size: 1.45rem;
  }

  .home-stat strong {
    font-size: 1.35rem;
  }

  .home-section,
  .home-cta {
    width: 100%;
  }

  .home-section__title {
    gap: 10px;
  }

  .home-section__title span {
    width: 38px;
  }

  .home-info-card,
  .home-feature-card,
  .home-step-grid article,
  .home-news-card {
    padding: 20px;
  }

  .home-hero__visual {
    display: none;
  }

  .home-news {
    width: 100%;
    padding: 28px 18px 34px;
  }

  .home-news .home-section__title h2 {
    font-size: 1.55rem;
  }

  .home-stat-strip,
  .home-card-grid--three,
  .home-step-grid {
    grid-template-columns: 1fr;
  }

  .home-stat {
    justify-content: flex-start;
  }

  .home-info-card {
    flex-direction: column;
  }

  .wizard-card {
    padding: 1.25rem !important;
  }

  #resultCard > .d-flex:first-child {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 12px;
  }

  #resultCard > .d-flex:first-child > .d-flex {
    width: 100%;
    flex-wrap: wrap;
  }

  #resultCard > .d-flex:first-child .btn {
    flex: 1 1 150px;
  }

  .wizard-card > h4 {
    align-items: flex-start;
    font-size: 1.25rem;
  }

  .wizard-step-list__item {
    grid-template-columns: 46px 1fr;
  }

  .app-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-footer__links {
    justify-content: flex-start;
  }

  .seo-page__hero {
    padding: 30px 22px;
    border-radius: 14px;
  }

  .seo-page__hero h1 {
    font-size: 2.15rem;
  }

  .seo-page__section,
  .seo-page__aside-card {
    padding: 22px;
  }

  .vasiyet-tooltip {
    left: auto !important;
    right: 0 !important;
    width: min(340px, calc(100vw - 48px)) !important;
  }
}

@media (max-width: 575.98px) {
  .app-shell,
  .app-shell--wide,
  .container.my-4 {
    width: min(100% - 16px, 540px);
    padding-top: 16px;
  }

  .home-hero {
    padding: 28px 18px;
    border-radius: 12px;
  }

  .home-hero h1,
  .seo-page__hero h1 {
    font-size: 1.9rem;
  }

  .home-hero__eyebrow,
  .seo-page__eyebrow {
    align-items: flex-start;
    white-space: normal;
  }

  .home-news {
    padding: 24px 14px 30px;
  }

  .home-cta {
    padding: 34px 18px;
  }

  .wizard-card > h4::before {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .wizard-step-sidebar,
  .info-panel,
  .wizard-tip-card,
  .privacy-page {
    padding: 18px;
  }

  .table {
    min-width: 560px;
  }
}
