/* Legacy page-specific styles collected from inline blocks. */

.setup-hero {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 20px;
  overflow: hidden;
}

.setup-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(220, 52, 59, 0.1);
  color: var(--uh-color-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.setup-page .section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.setup-page .section-title h2 {
  margin-bottom: 0;
}

.choice-card {
  border: 1px solid var(--uh-color-border);
  border-radius: 16px;
  padding: 16px;
  height: 100%;
  transition: all 0.2s ease;
  cursor: pointer;
  background: #fff;
}

.choice-card:hover,
.choice-card.active {
  border-color: rgba(220, 52, 59, 0.35);
  box-shadow: 0 8px 20px rgba(220, 52, 59, 0.08);
}

.choice-card-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.choice-card-desc {
  color: #6c757d;
  font-size: 0.94rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.sticky-summary {
  position: sticky;
  top: 96px;
}

.summary-mini {
  font-size: 0.9rem;
  color: #6c757d;
}

.summary-rate {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #e9ecef;
}

.summary-rate:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cta-bar {
  border-top: 1px solid var(--uh-color-border);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.field-hint {
  font-size: 0.86rem;
  color: #6c757d;
  margin-top: 6px;
}

.wizard-hidden {
  display: none;
}

.trust-note {
  border-radius: 14px;
  background: #fff;
  border: 1px solid #f1e5b8;
}

.pill-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(220, 52, 59, 0.08);
  color: var(--uh-color-primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.summary-shell {
  background:
    radial-gradient(circle at top left, rgba(220, 52, 59, 0.07), transparent 28%),
    radial-gradient(circle at top right, rgba(13, 110, 253, 0.05), transparent 24%),
    #f7f8fa;
}

.premium-hero {
  position: relative;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.18);
}

.premium-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.12), transparent 20%),
    radial-gradient(circle at 15% 85%, rgba(220, 52, 59, 0.14), transparent 25%);
  pointer-events: none;
}

.premium-hero .hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hero-title {
  font-size: clamp(1.95rem, 2.7vw, 2.8rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 12px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 760px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.filter-pill,
.period-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #e7e9ee;
  background: #fff;
  color: #495057;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.filter-pill:hover,
.period-nav-btn:hover {
  border-color: rgba(220, 52, 59, 0.24);
  color: var(--uh-color-primary);
}

.filter-pill.active {
  border-color: rgba(220, 52, 59, 0.3);
  background: linear-gradient(180deg, #fff4f5 0%, #fff1f2 100%);
  color: var(--uh-color-primary);
  box-shadow: 0 8px 22px rgba(220, 52, 59, 0.1);
}

.period-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.period-strip {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.period-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
}

.period-strip-left {
  min-width: 0;
  flex: 1 1 auto;
}

.period-strip-label {
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.period-strip-value {
  color: #111827;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.period-strip-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.period-helper {
  color: #6b7280;
  font-size: 0.9rem;
}

.kpi-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  border: 1px solid #edf0f3;
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
  height: 100%;
  overflow: hidden;
  position: relative;
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--uh-color-primary) 0%, #ff7a7f 100%);
}

.kpi-label {
  color: #6b7280;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.kpi-value {
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  line-height: 1;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
}

.kpi-note {
  color: #6b7280;
  font-size: 0.88rem;
}

.summary-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.summary-insight-card {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.summary-insight-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(220, 52, 59, 0.08);
  color: var(--uh-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.summary-insight-label {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 700;
}

.summary-insight-value {
  color: #111827;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.summary-insight-note {
  color: #6b7280;
  font-size: 0.86rem;
  margin-top: 0.15rem;
}

.summary-split-bar {
  display: flex;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f4;
  margin-top: 0.65rem;
}

.summary-split-bar span:first-child {
  background: var(--uh-color-primary);
}

.summary-split-bar span:last-child {
  background: #111827;
}

.premium-card {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 24px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.05);
  height: 100%;
}

.premium-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.premium-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #111827;
}

.premium-card-subtitle {
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff4f5;
  color: var(--uh-color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.chart-shell {
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
  border: 1px solid #eef1f4;
  border-radius: 20px;
  padding: 16px;
}

.chart-wrap {
  position: relative;
  height: 360px;
}

.loading-box {
  padding: 34px 20px;
  text-align: center;
  color: #6b7280;
  border: 1px dashed #e2e8f0;
  border-radius: 18px;
  background: #fafbfc;
  font-weight: 500;
}

.summary-table {
  width: 100%;
  margin-bottom: 0;
}

.summary-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #6b7280;
  border-bottom-color: #edf0f3;
  white-space: nowrap;
}

.summary-table tbody td {
  vertical-align: middle;
  white-space: nowrap;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-soft-danger { background: #fdeaea; color: #b42318; }
.badge-soft-warning { background: #fff3cd; color: #856404; }
.badge-soft-success { background: #d1e7dd; color: #0f5132; }
.badge-soft-info { background: #e7f1ff; color: #0d6efd; }

.recent-shifts-box {
  min-height: 240px;
}

.thankyou-wrapper {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyou-card {
  max-width: 760px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #eceff3;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.thankyou-top {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  padding: 2.2rem;
  text-align: center;
}

.thankyou-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.thankyou-body {
  padding: 2rem;
}

.thankyou-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.thankyou-text {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.thankyou-info {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 1rem 1.2rem;
  color: #374151;
  font-size: 0.95rem;
}

.logout-warning {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  border-radius: 18px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.thankyou-actions .btn {
  min-width: 220px;
}

.vip-hero-card {
  background: linear-gradient(135deg, var(--uh-color-primary), #c72f36);
  color: #fff;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.vip-title {
  font-weight: 800;
  line-height: 1.1;
}

.vip-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.simple-card {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  height: 100%;
}

.plan-card.featured {
  border: 2px solid var(--uh-color-primary);
  box-shadow: 0 16px 34px rgba(220, 52, 59, 0.12);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 52, 59, 0.1);
  color: var(--uh-color-primary);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.plan-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
}

.plan-price {
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1;
  color: #111827;
}

.plan-price small {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
}

.plan-note {
  color: #6b7280;
  font-size: 0.93rem;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #374151;
}

.plan-list li i {
  color: #16a34a;
  margin-top: 4px;
}

.section-subtitle {
  color: #6b7280;
  line-height: 1.7;
}

.vip-page .section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #111827;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(220, 52, 59, 0.1);
  color: var(--uh-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.feature-desc {
  color: #6b7280;
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.current-plan-card {
  border-radius: 24px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  background: linear-gradient(135deg, rgba(22, 163, 74, 1), rgba(22, 180, 90, 1));
  color: white;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.faq-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.faq-desc {
  color: #6b7280;
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.plan-old-price {
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 700;
  font-size: 1rem;
}

.plan-saving {
  color: #16a34a;
  font-weight: 700;
  font-size: 0.95rem;
  margin-left: 8px;
}

.app-container-narrow {
  max-width: 900px;
}

.u-hidden {
  display: none !important;
}

@media (max-width: 991.98px) {
  .sticky-summary {
    position: static;
    top: auto;
  }
}

@media (max-width: 767.98px) {
  .period-strip-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  .period-strip-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .period-strip-value {
    font-size: 1.18rem;
  }

  .summary-insight-grid {
    grid-template-columns: 1fr;
  }

  .thankyou-top,
  .thankyou-body {
    padding: 1.4rem;
  }

  .thankyou-card,
  .vip-hero-card,
  .simple-card,
  .current-plan-card {
    border-radius: 20px;
  }

  .thankyou-actions .btn,
  .simple-card .btn {
    width: 100%;
  }

  .vip-title {
    font-size: 1.8rem;
  }

  .vip-subtitle {
    font-size: 0.95rem;
  }

  .plan-price {
    font-size: 2.2rem;
  }

}
