:root {
  --abs-purple: #6f63d9;
  --abs-purple-dark: #5f54c7;
  --abs-purple-soft: #e8e4ff;
  --abs-yellow: #f0cc63;
  --abs-bg: #eef5f4;
  --abs-text: #5e5b7a;
  --abs-muted: #8a88a6;
  --abs-border: #d9d7ef;
  --abs-white: #ffffff;
  --abs-shadow: 0 12px 35px rgba(90, 86, 140, 0.08);
  --abs-radius: 18px;
}

html, body {
  height: 100%;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background-color: var(--abs-bg);
  color: var(--abs-text);
  margin: 0;
  overflow-x: hidden;
}

.app-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.topbar {
  background: var(--abs-purple);
  color: #fff;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: relative;
  z-index: 2;
}

.topbar-title {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.topbar .close-center-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  transition: 0.2s ease;
}

.topbar .close-center-link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.decor-ring {
  position: absolute;
  border-radius: 50%;
  border: 26px solid;
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}

.ring-yellow-top {
  width: 420px;
  height: 420px;
  border-color: var(--abs-yellow);
  top: -150px;
  right: 80px;
}

.ring-purple-right {
  width: 280px;
  height: 280px;
  border-color: #8c80e8;
  right: -120px;
  top: 42%;
}

.ring-yellow-bottom-left {
  width: 190px;
  height: 190px;
  border-color: var(--abs-yellow);
  left: -80px;
  bottom: -70px;
}

.ring-gray-left {
  width: 180px;
  height: 180px;
  border-color: #dfe8e6;
  left: -75px;
  top: -20px;
}

.dot-purple {
  width: 56px;
  height: 56px;
  background: #8c80e8;
  border-radius: 50%;
  position: absolute;
  top: 64px;
  left: 29%;
  z-index: 0;
  opacity: 0.95;
}

.main-stage {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 4rem;
}

.portal-card {
  width: 100%;
  max-width: 760px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 28px;
  box-shadow: var(--abs-shadow);
  padding: 2.25rem;
}

.portal-card.narrow {
  max-width: 700px;
}

.section-kicker {
  color: var(--abs-purple);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #4f4c72;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--abs-muted);
  margin-bottom: 1.5rem;
}

.action-grid,
.role-grid {
  display: grid;
  gap: 1rem;
}

.action-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.role-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.action-card,
.role-card {
  border: 1px solid var(--abs-border);
  background: #fff;
  border-radius: 18px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  height: 100%;
}

.action-card:hover,
.role-card:hover,
.action-card.active,
.role-card.active {
  border-color: var(--abs-purple);
  box-shadow: 0 10px 22px rgba(111, 99, 217, 0.12);
  transform: translateY(-2px);
}

.action-icon,
.role-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--abs-purple-soft);
  color: var(--abs-purple);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.option-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #4f4c72;
  margin-bottom: 0.35rem;
}

.option-text {
  color: var(--abs-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.form-label {
  color: var(--abs-purple);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  min-height: 52px;
  border-radius: 14px;
  border-color: var(--abs-border);
  color: var(--abs-text);
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--abs-purple);
}

.input-note {
  color: var(--abs-muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.breadcrumb-wrap {
  background: #fff;
  border: 1px solid var(--abs-border);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}

.breadcrumb {
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: var(--abs-purple);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-item.active {
  color: var(--abs-muted);
  font-weight: 600;
}

.btn-abs-primary {
  background: var(--abs-purple);
  border-color: var(--abs-purple);
  color: #fff;
  border-radius: 14px;
  min-height: 52px;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
}

.btn-abs-primary:hover {
  background: var(--abs-purple-dark);
  border-color: var(--abs-purple-dark);
  color: #fff;
}

.btn-abs-light {
  background: #fff;
  border: 1px solid var(--abs-border);
  color: var(--abs-purple);
  border-radius: 14px;
  min-height: 52px;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
}

.btn-abs-light:hover {
  background: #f8f7ff;
  color: var(--abs-purple);
}

.footer-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.checklist-card {
  background: #fff;
  border: 1px solid var(--abs-border);
  border-radius: 18px;
  padding: 1.4rem;
}

.checklist-group-title {
  color: var(--abs-purple);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.form-check {
  padding: 0.85rem 1rem 0.85rem 2.3rem;
  background: #fff;
  border: 1px solid #eceaf7;
  border-radius: 14px;
  margin-bottom: 0.75rem;
}

.form-check-input {
  margin-top: 0.22rem;
}

.form-check-input:checked {
  background-color: var(--abs-purple);
  border-color: var(--abs-purple);
}

.signature-box {
  height: 180px;
  border: 2px dashed #cfcbe9;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--abs-muted);
  text-align: center;
  padding: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #fff8df;
  color: #9a7b11;
  font-weight: 700;
  font-size: 0.9rem;
}

.hidden-panel {
  display: none;
}

@media (max-width: 767.98px) {
  .portal-card {
    padding: 1.35rem;
    border-radius: 22px;
  }

  .topbar-title {
    font-size: 1.15rem;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .ring-yellow-top {
    width: 260px;
    height: 260px;
    right: 20px;
    top: -90px;
  }

  .ring-purple-right {
    width: 180px;
    height: 180px;
    right: -90px;
  }
}