/* ==========================================================================
   SIMULASI CAT CPNS 2027 — LANDING & HOME STYLES
   File: css/landing.css
   ========================================================================== */

/* ==========================================================================
   USER WELCOME BANNER & AUTH SUB-NAV (SSCASN PORTAL LOGGED-IN VIEW)
   ========================================================================== */
.sscasn-subnav-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.sscasn-subnav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.segmented-nav {
  display: flex;
  background: transparent;
  border: none;
  border-bottom: none;
  padding: 0;
  gap: 6px;
  margin: 0;
  overflow-x: auto;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 0;
  padding: 13px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: inherit;
}

.nav-item:hover {
  color: var(--sscasn-blue);
  background: rgba(20, 129, 198, 0.04);
}

.nav-item.active {
  background: transparent;
  color: var(--sscasn-blue);
  border-bottom-color: var(--sscasn-blue);
  font-weight: 700;
}

.user-strip {
  background: linear-gradient(135deg, #e7f3fb 0%, #f0f7fd 100%);
  border: 1px solid #c6e0f5;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
  display: block;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .user-strip {
  background: linear-gradient(135deg, #0f253c 0%, #132c47 100%);
  border-color: #1e4068;
}

.user-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.user-strip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sscasn-blue);
  font-weight: 800;
  margin-bottom: 2px;
}

.user-strip-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.user-strip-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.user-strip-meta strong {
  color: var(--text-primary);
}

.user-strip-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.user-strip-watermark-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(20, 129, 198, 0.12);
  color: var(--sscasn-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   SSCASN PROFILE SAYA VIEW (IN-PAGE)
   ========================================================================== */
.profile-id-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--sscasn-blue);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.profile-id-name {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.profile-id-subrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.profile-email-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--sscasn-sky-soft);
  border: 1px solid var(--sscasn-sky-border);
  color: var(--sscasn-blue);
  font-weight: 700;
  font-size: 0.82rem;
}

.profile-segment-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 16px;
}

.profile-seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.profile-seg-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.profile-card-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.profile-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.profile-biodata-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.profile-portrait-box {
  width: 146px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background: linear-gradient(180deg, #1672ba 0%, #0f5da0 100%);
  border: 2px solid #bfdbfe;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.profile-portrait-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.profile-kv-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-kv-table tr {
  border-bottom: 1px solid var(--border-color);
}

.profile-kv-table tr:nth-child(even) {
  background: var(--bg-subtle);
}

.profile-kv-table th {
  width: 210px;
  padding: 11px 14px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.profile-kv-table td {
  padding: 11px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-kv-table td.is-accent {
  color: var(--sscasn-blue);
}

@media (max-width: 720px) {
  .profile-biodata-layout {
    grid-template-columns: 1fr;
  }

  .profile-portrait-box {
    width: 120px;
    margin: 0 auto;
  }

  .profile-kv-table th {
    width: 130px;
  }
}

/* ==========================================================================
   INFORMATIONAL NOTICE BANNER
   ========================================================================== */
.notice-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--bkn-blue);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.notice-banner strong {
  color: var(--text-primary);
}

/* ==========================================================================
   PACKAGE CARDS & GRID
   ========================================================================== */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.package-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--bkn-navy);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.package-card:hover {
  border-color: var(--border-color);
  border-top-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.package-card.featured {
  border-top-color: var(--bkn-blue);
}

.pkg-badge {
  font-family: var(--font-sans);
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pkg-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.pkg-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
}

.pkg-footer {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.pkg-footer .btn {
  flex: 1;
  font-size: 0.82rem;
  padding: 8px 10px;
}

/* ==========================================================================
   CHEATSHEET & REFERENCE MODULE SECTION
   ========================================================================== */
.cheat-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.88rem;
}

.cheat-table th,
.cheat-table td {
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.cheat-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   SSCASN 2026 FULL-BLEED HERO BANNER, CAROUSEL & PORTRAIT SHOWCASE
   ========================================================================== */
.landing-hero {
  position: relative;
  width: 100%;
  background: linear-gradient(110deg, #0b5a93 0%, #1679b3 48%, #1e7caf 74%, #217db0 100%);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.is-logged-in .landing-hero {
  display: none;
}

.hero-map-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.42) 1.35px, transparent 1.35px);
  background-size: 10px 10px;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 46% 52%, #000 30%, transparent 92%);
  mask-image: radial-gradient(ellipse 85% 80% at 46% 52%, #000 30%, transparent 92%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 24px;
  align-items: end;
}

.hero-left {
  padding-bottom: 36px;
}

.hero-title {
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.16;
  margin-bottom: 14px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin-bottom: 18px;
}

.hero-carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-slide-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background var(--transition-fast);
}

.hero-slide-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-slide-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-slide-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.hero-slide-dot.active {
  width: 24px;
  background: #ffffff;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-hero-white {
  background: #ffffff;
  color: var(--sscasn-blue-deep);
  border: 1px solid #ffffff;
  border-radius: 10px;
  font-weight: 700;
  padding: 10px 18px;
}

.btn-hero-white:hover {
  background: #eaf4fc;
}

.hero-pg-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.hero-pg-strip .pg-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  padding: 10px 10px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.hero-pg-strip .pg-card-subtest {
  font-size: 0.68rem;
  font-weight: 700;
  color: #e0f2fe;
  margin-bottom: 2px;
}

.hero-pg-strip .pg-card-threshold {
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.hero-pg-strip .pg-card-desc {
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.86);
  margin-top: 2px;
}

.hero-right-visual {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 360px;
  position: relative;
}

.hero-candidates-img {
  width: 100%;
  max-width: 610px;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 8%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 8%, #000 100%);
  mask-composite: intersect;
  user-select: none;
  pointer-events: none;
}

/* ==========================================================================
   SSCASN TIMELINE PENGADAAN (SERPENTINE ROADMAP)
   ========================================================================== */
.timeline-section {
  padding: 38px 20px 18px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  order: 2;
}

#homeHeroSection {
  order: 1;
}

#homeSubNavStrip {
  order: 1;
  border-top: none;
}

#homeContentWrap {
  order: 2;
}

body:not(.is-logged-in) #homeSubNavStrip,
body:not(.is-logged-in) #homeContentWrap {
  display: none;
}

body.is-logged-in .timeline-section,
body.is-logged-in .faq-section {
  display: none;
}

.section-heading-center {
  text-align: center;
  margin-bottom: 20px;
}

.section-heading-center h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.section-heading-bar {
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: var(--sscasn-blue);
  margin: 10px auto 0;
}

.timeline-track-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 820px;
  margin: 0 auto 20px;
  padding: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.timeline-pill-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.timeline-pill-btn:hover {
  color: var(--sscasn-blue);
}

.timeline-pill-btn.active {
  background: var(--sscasn-blue);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(20, 129, 198, 0.28);
}

.timeline-board-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
}

.timeline-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}

.timeline-row.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-row.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-step-card.is-package::after {
  display: none;
}

.timeline-serpentine-turn {
  height: 28px;
  margin: 8px 9% 8px 9%;
  border-right: 1.5px solid #cbd5e1;
  border-bottom: 1.5px solid #cbd5e1;
  border-left: 1.5px solid #cbd5e1;
  border-radius: 0 0 18px 18px;
  position: relative;
}

[data-theme="dark"] .timeline-serpentine-turn {
  border-color: #334155;
}

.timeline-step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 8px;
}

.timeline-step-card:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -12px;
  top: 22px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1;
}

.timeline-icon-box {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--sscasn-sky-soft);
  border: 1.5px solid var(--sscasn-sky-border);
  color: var(--sscasn-blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

[data-theme="dark"] .timeline-icon-box {
  color: #7dd3fc;
}

.timeline-status-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #ffffff;
  border: 2px solid var(--bg-surface);
  font-size: 0.64rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.timeline-status-dot.done {
  background: #22c55e;
}

.timeline-status-dot.next {
  background: #64748b;
}

.timeline-step-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
}

.timeline-step-date {
  font-size: 0.74rem;
  font-weight: 600;
  color: #dc2626;
  margin-bottom: 4px;
}

.timeline-step-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
  min-height: 30px;
}

[data-theme="dark"] .timeline-step-date {
  color: #fca5a5;
}

.timeline-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  border: none;
  background: var(--sscasn-blue);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.71rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.timeline-step-btn:hover {
  background: var(--sscasn-blue-deep);
}

/* ==========================================================================
   FAQ & PANDUAN RINGKAS SECTION
   ========================================================================== */
.faq-section {
  order: 5;
  max-width: 1320px;
  width: 100%;
  margin: 34px auto 0;
  padding: 0 20px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.faq-a {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Responsive adjustments for Landing & Timeline */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .hero-left {
    padding-bottom: 12px;
  }

  .hero-right-visual {
    min-height: 220px;
    justify-content: center;
  }

  .hero-candidates-img {
    width: 100%;
    max-width: 480px;
  }

  .hero-pg-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-row,
  .timeline-row.cols-4,
  .timeline-row.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-serpentine-turn,
  .timeline-step-card::after {
    display: none;
  }
}

@media (max-width: 640px) {

  .timeline-row,
  .timeline-row.cols-4,
  .timeline-row.cols-3 {
    grid-template-columns: 1fr;
  }

  .package-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CRASH RECOVERY BANNER, PERSONAL SUMMARY, FILTER PILLS & SEARCH (M3)
   ========================================================================== */
.recovery-banner {
  margin-bottom: 18px;
}

.recovery-banner-inner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
  border-left: 5px solid #d97706;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.recovery-banner-inner.is-expired {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #ef4444;
  border-left-color: #dc2626;
}

[data-theme="dark"] .recovery-banner-inner {
  background: rgba(217, 119, 6, 0.16);
  border-color: #f59e0b;
}

[data-theme="dark"] .recovery-banner-inner.is-expired {
  background: rgba(220, 38, 38, 0.16);
  border-color: #ef4444;
}

.recovery-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: #d97706;
  color: #ffffff;
  margin-bottom: 6px;
}

.recovery-banner-inner.is-expired .recovery-pill {
  background: #dc2626;
}

.recovery-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.recovery-meta {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
}

.recovery-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.summary-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.summary-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.summary-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.summary-stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.summary-stat-denom {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.summary-stat-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.pg-status-pass {
  color: var(--color-answered);
}

.pg-status-fail {
  color: var(--color-empty);
}

.pg-status-neutral {
  color: var(--text-muted);
}

.mini-progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-subtle);
  overflow: hidden;
  margin: 2px 0;
}

.mini-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--bkn-blue), var(--color-answered));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.pkg-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.filter-pill:hover {
  border-color: var(--bkn-blue);
  color: var(--bkn-blue);
}

.filter-pill.active {
  background: var(--bkn-navy);
  border-color: var(--bkn-navy);
  color: #ffffff;
}

[data-theme="dark"] .filter-pill.active {
  background: var(--bkn-blue);
  border-color: var(--bkn-blue);
}

.pkg-search-wrap {
  position: relative;
  min-width: 240px;
  flex: 1;
  max-width: 340px;
}

.pkg-search-input {
  width: 100%;
  padding: 8px 34px 8px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
}

.pkg-search-input:focus {
  outline: none;
  border-color: var(--bkn-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.btn-clear-search {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
}

.pkg-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pkg-meta-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.pkg-meta-chip.sub {
  color: var(--text-secondary);
  font-weight: 600;
}

.pkg-meta-chip.pg {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

.pkg-best-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-answered-light);
  color: var(--color-answered);
  border: 1px solid rgba(22, 163, 74, 0.35);
}

.empty-state-box {
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  color: var(--text-secondary);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--sscasn-sky-soft);
  color: var(--sscasn-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.empty-state-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-state-box p {
  max-width: 440px;
  margin: 0 auto 18px;
  font-size: 0.88rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .pkg-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .pkg-search-wrap {
    max-width: none;
  }
}