:root {
  --sc-primary: #0f2a52;
  --sc-primary-2: #16407e;
  --sc-gold: #c9a227;
  --sc-gold-light: #f0dfa8;
  --sc-bg: #f4f6fb;
  --sc-sidebar-w: 264px;
}

* { -webkit-tap-highlight-color: transparent; }

body {
  background: var(--sc-bg);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: .925rem;
}

/* ===== Sidebar ===== */
.sc-sidebar {
  width: var(--sc-sidebar-w);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sc-primary) 0%, #0a1f3d 100%);
  color: #cdd8ea;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1040;
  overflow-y: auto;
  transition: transform .25s ease;
}
.sc-sidebar .brand {
  display: flex; align-items: center; gap: .65rem;
  padding: 1.1rem 1.25rem;
  color: #fff; text-decoration: none;
}
.sc-sidebar .brand .logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sc-gold) 0%, #e6c65a 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--sc-primary); font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0;
}
.sc-sidebar .brand h1 { font-size: 1rem; font-weight: 700; margin: 0; letter-spacing: .3px; }
.sc-sidebar .brand small { font-size: .68rem; color: #9db1cf; display: block; }
.sc-sidebar .nav-section {
  font-size: .68rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: #7a91b4; padding: 1rem 1.25rem .35rem;
}
.sc-sidebar .nav-link {
  color: #cdd8ea; padding: .55rem 1.25rem; display: flex; align-items: center; gap: .7rem;
  font-size: .875rem; border-left: 3px solid transparent;
}
.sc-sidebar .nav-link i { font-size: 1rem; width: 20px; text-align: center; }
.sc-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.sc-sidebar .nav-link.active {
  color: #fff; background: rgba(201,162,39,.15);
  border-left-color: var(--sc-gold);
}
.sc-sidebar .nav-link.active i { color: var(--sc-gold); }

/* ===== Main ===== */
.sc-main { margin-left: var(--sc-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.sc-topbar {
  background: #fff; border-bottom: 1px solid #e6eaf2;
  padding: .6rem 1.5rem; position: sticky; top: 0; z-index: 1030;
  display: flex; align-items: center; gap: 1rem;
}
.sc-content { padding: 1.5rem; flex: 1; }
.sc-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(10,20,40,.5); z-index: 1035;
}

@media (max-width: 991.98px) {
  .sc-sidebar { transform: translateX(-100%); }
  body.sidebar-open .sc-sidebar { transform: translateX(0); }
  body.sidebar-open .sc-backdrop { display: block; }
  .sc-main { margin-left: 0; }
  .sc-content { padding: 1rem; }
}

/* ===== Cards & KPI ===== */
.card { border: none; border-radius: 14px; box-shadow: 0 1px 3px rgba(15,42,82,.07); }
.card-header { background: transparent; border-bottom: 1px solid #eef1f6; font-weight: 600; padding: .9rem 1.25rem; }
.kpi-card { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem; }
.kpi-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
}
.kpi-value { font-size: 1.3rem; font-weight: 700; color: var(--sc-primary); line-height: 1.15; }
.kpi-label { font-size: .74rem; color: #74809a; text-transform: uppercase; letter-spacing: .4px; }
.bg-soft-primary { background: #e7eefb; color: var(--sc-primary-2); }
.bg-soft-gold { background: #faf3dc; color: #9c7c14; }
.bg-soft-success { background: #e3f5eb; color: #157347; }
.bg-soft-danger { background: #fde8e8; color: #b02a37; }
.bg-soft-info { background: #e2f2f8; color: #087990; }

/* ===== Tables ===== */
.table { font-size: .875rem; }
.table thead th {
  background: #f6f8fc; color: #51607d; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid #e6eaf2;
  white-space: nowrap;
}
.table-hover tbody tr:hover { background: #f8faff; }
div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
  background: var(--sc-primary); border-color: var(--sc-primary); color: #fff !important;
}
div.dt-container select.dt-input, div.dt-container input.dt-input { border-radius: 8px; }

/* ===== Buttons & forms ===== */
.btn-primary { background: var(--sc-primary-2); border-color: var(--sc-primary-2); }
.btn-primary:hover { background: var(--sc-primary); border-color: var(--sc-primary); }
.btn-gold { background: var(--sc-gold); border-color: var(--sc-gold); color: #fff; }
.btn-gold:hover { background: #b08d1e; border-color: #b08d1e; color: #fff; }
.form-control, .form-select { border-radius: 9px; border-color: #dde3ee; }
.form-control:focus, .form-select:focus { border-color: var(--sc-primary-2); box-shadow: 0 0 0 .2rem rgba(22,64,126,.12); }
.form-label { font-weight: 600; color: #3a4763; font-size: .84rem; }
.required::after { content: " *"; color: #dc3545; }

.page-title { font-size: 1.25rem; font-weight: 700; color: var(--sc-primary); margin: 0; }
.breadcrumb { font-size: .8rem; margin: 0; }

.badge { font-weight: 600; letter-spacing: .2px; }

/* ===== Public portal ===== */
.pub-page {
  background: #fff;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

.pub-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sc-gold) 0%, #e6c65a 100%);
  color: var(--sc-primary);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(201, 162, 39, .35);
}

.pub-brand small.pub-brand-sub {
  font-size: .65rem;
  color: #9db1cf;
}

.pub-navbar {
  background: rgba(10, 31, 61, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding-block: .65rem;
  transition: background .25s ease, box-shadow .25s ease;
}

.pub-navbar .nav-link {
  font-weight: 500;
  font-size: .9rem;
  padding: .45rem .75rem;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}

.pub-navbar .nav-link:hover {
  background: rgba(255, 255, 255, .08);
}

/* Hero */
.pub-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 5.5rem 0 6.5rem;
  background: linear-gradient(135deg, #0f2a52 0%, #0a1f3d 55%, #081628 100%);
}

.pub-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(201, 162, 39, .22), transparent 70%),
    radial-gradient(500px 400px at 10% 90%, rgba(22, 64, 126, .35), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}

.pub-hero-content {
  animation: pubFadeUp .7s ease both;
}

.pub-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #f0dfa8;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.pub-hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.pub-hero .lead {
  color: #b8c9e2;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 0;
}

.pub-hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.pub-hero-actions .btn {
  border-radius: 12px;
  font-weight: 600;
  padding: .75rem 1.5rem;
}

.pub-hero-actions .btn-outline-light {
  border-color: rgba(255, 255, 255, .35);
}

.pub-hero-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .5);
}

.pub-hero-trust {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.pub-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  color: #9db1cf;
  font-weight: 500;
}

.pub-hero-trust i {
  color: var(--sc-gold);
}

.pub-hero-panel {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .25);
  animation: pubFadeUp .7s .15s ease both;
}

.pub-hero-panel-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: #c3d1e6;
  margin-bottom: 1.25rem;
  font-size: .9rem;
}

.pub-hero-panel-head i {
  color: var(--sc-gold);
  font-size: 1.1rem;
}

.pub-hero-panel-stat {
  background: rgba(255, 255, 255, .06);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.pub-hero-panel-stat small {
  display: block;
  color: #9db1cf;
  font-size: .78rem;
  margin-bottom: .25rem;
}

.pub-hero-panel-stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.pub-hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.pub-hero-panel-grid > div {
  background: rgba(255, 255, 255, .05);
  border-radius: 12px;
  padding: .85rem .65rem;
  text-align: center;
}

.pub-hero-panel-grid .num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sc-gold-light);
  line-height: 1.2;
}

.pub-hero-panel-grid .lbl {
  display: block;
  font-size: .68rem;
  color: #9db1cf;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-top: .15rem;
}

/* Stats bar */
.pub-stats-wrap {
  margin-top: -3.5rem;
  position: relative;
  z-index: 2;
  padding-bottom: 1rem;
}

.pub-stats-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 42, 82, .12);
  border: 1px solid #eef1f6;
  overflow: hidden;
  animation: pubFadeUp .7s .1s ease both;
}

.pub-stat {
  text-align: center;
  padding: 1.75rem 1rem;
  height: 100%;
  position: relative;
}

.pub-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #eef1f6;
}

.pub-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: .75rem;
}

.pub-stat .value {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 800;
  color: var(--sc-primary);
  line-height: 1.2;
}

.pub-stat .label {
  font-size: .74rem;
  color: #74809a;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 600;
  margin-top: .25rem;
}

/* Sections */
.pub-section {
  padding: 4.5rem 0;
}

.pub-section-alt {
  background: linear-gradient(180deg, #f8fafd 0%, #f4f6fb 100%);
}

.pub-section-header h2,
.pub-section-header h3 {
  color: var(--sc-primary);
  font-weight: 800;
  letter-spacing: -.02em;
}

.pub-section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: .5rem;
}

.pub-section-header h3 {
  font-size: 1.45rem;
  margin-bottom: 0;
}

.pub-section-header p {
  color: #6b7a94;
  max-width: 560px;
  margin: .75rem auto 0;
  line-height: 1.65;
}

.pub-section-header:not(.text-center) p {
  margin-left: 0;
  margin-right: 0;
}

.pub-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--sc-gold);
  margin-bottom: .5rem;
}

/* Program cards */
.pub-program-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  padding: 1.35rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.pub-program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(15, 42, 82, .12);
  border-color: #d5deed;
}

.pub-program-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .85rem;
}

.pub-field-tag {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 999px;
  line-height: 1.35;
  background: #eef3fb;
  color: var(--sc-primary-2);
}

.pub-priority-tag {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 999px;
  line-height: 1.35;
  white-space: nowrap;
}

.pub-priority-tag.priority-urgent { background: #fde8e8; color: #b02a37; }
.pub-priority-tag.priority-high { background: #fff3cd; color: #997404; }
.pub-priority-tag.priority-medium { background: #e2f2f8; color: #087990; }
.pub-priority-tag.priority-low { background: #eef1f6; color: #51607d; }

/* Samakan ukuran label status dengan tag bidang/prioritas */
.pub-program-card-top .badge,
.pub-detail-hero .badge {
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 999px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.pub-detail-hero .pub-hero-badge {
  font-size: .72rem;
  padding: .3rem .65rem;
  margin-bottom: 0;
  line-height: 1.35;
}

.pub-detail-hero .pub-priority-tag {
  font-size: .72rem;
  padding: .3rem .65rem;
}

.pub-program-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sc-primary);
  line-height: 1.4;
  margin-bottom: .65rem;
}

.pub-program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .82rem;
  color: #74809a;
  margin-bottom: 1rem;
}

.pub-program-meta span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.pub-program-funding {
  background: #f8fafd;
  border-radius: 12px;
  padding: .85rem;
  margin-bottom: 1rem;
}

.pub-progress {
  height: 8px;
  border-radius: 999px;
  background: #e3e8f2;
  overflow: hidden;
}

.pub-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #157347, #20c997);
  transition: width .6s ease;
}

.pub-program-card .btn {
  border-radius: 10px;
  font-weight: 600;
}

/* Features */
.pub-features {
  padding: 0 0 4.5rem;
}

.pub-feature-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  padding: 1.75rem;
  height: 100%;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.pub-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 42, 82, .08);
}

.pub-feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #e7eefb, #f0f4fc);
  color: var(--sc-primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.pub-feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin-bottom: .5rem;
}

.pub-feature-card p {
  font-size: .88rem;
  color: #6b7a94;
  margin: 0;
  line-height: 1.65;
}

/* Field breakdown */
.pub-field-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pub-field-item {
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  border: 1px solid #e8ecf4;
}

.pub-field-bar {
  height: 6px;
  border-radius: 999px;
  background: #edf0f7;
  overflow: hidden;
}

.pub-field-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sc-primary-2), var(--sc-primary));
  transition: width .6s ease;
}

/* Partners */
.pub-partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .85rem;
}

/* Mitra section (home) */
.pub-partners-section {
  background: linear-gradient(180deg, #fff 0%, #f8fafd 100%);
}

.pub-partners-count-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 999px;
  padding: .5rem 1.15rem;
  box-shadow: 0 4px 16px rgba(15, 42, 82, .06);
}

.pub-partners-count-badge i {
  color: var(--sc-gold);
  font-size: 1.1rem;
}

.pub-partners-count-badge strong {
  font-size: 1.15rem;
  color: var(--sc-primary);
}

.pub-partners-count-badge span {
  font-size: .78rem;
  color: #74809a;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.pub-field-list-wide {
  max-width: 720px;
  margin: 0 auto;
}

.pub-mitra-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pub-mitra-card-link {
  display: block;
  height: 100%;
  color: inherit;
}

.pub-mitra-card-link:hover .pub-mitra-card {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 42, 82, .1);
  border-color: #d5deed;
}

.pub-mitra-card-link:hover .pub-mitra-detail-link {
  color: var(--sc-primary);
}

.pub-mitra-card-head {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: .85rem;
}

.pub-mitra-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #faf3dc, #fff8e6);
  color: #9c7c14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pub-mitra-title h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--sc-primary);
  line-height: 1.35;
  margin: 0 0 .2rem;
}

.pub-mitra-type {
  font-size: .72rem;
  color: #74809a;
  font-weight: 600;
}

.pub-mitra-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex: 1;
}

.pub-mitra-meta li {
  font-size: .82rem;
  color: #6b7a94;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem 0;
}

.pub-mitra-meta i {
  color: var(--sc-primary-2);
  width: 16px;
}

.pub-mitra-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding-top: .85rem;
  border-top: 1px solid #eef1f6;
}

.pub-mitra-stat {
  font-size: .75rem;
  font-weight: 600;
  color: #51607d;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.pub-mitra-amount {
  margin-left: auto;
  font-size: .78rem;
  font-weight: 700;
  color: #157347;
}

.pub-mitra-detail-link {
  width: 100%;
  margin-top: .35rem;
  font-size: .75rem;
  font-weight: 600;
  color: #74809a;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: color .2s ease;
}

.pub-partners-cta h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.pub-partner-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  padding: .9rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--sc-primary);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.pub-partner-card:hover {
  border-color: #d5deed;
  box-shadow: 0 6px 20px rgba(15, 42, 82, .06);
}

.pub-partner-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #faf3dc;
  color: #9c7c14;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* CTA banner */
.pub-cta {
  padding: 0 0 4.5rem;
}

.pub-cta-inner {
  background: linear-gradient(135deg, var(--sc-primary) 0%, #0a1f3d 100%);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pub-cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(201, 162, 39, .2), transparent);
  pointer-events: none;
}

.pub-cta-inner h3 {
  font-weight: 800;
  font-size: 1.45rem;
  margin-bottom: .5rem;
  position: relative;
}

.pub-cta-inner p {
  color: #b8c9e2;
  position: relative;
}

.pub-cta-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  position: relative;
}

.pub-cta-actions .btn {
  border-radius: 12px;
  font-weight: 600;
}

/* Footer */
.pub-footer {
  background: #0a1f3d;
  color: #9db1cf;
  padding: 2.75rem 0;
  font-size: .85rem;
}

/* Legacy aliases */
.program-card { transition: transform .15s ease, box-shadow .15s ease; height: 100%; }
.program-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,42,82,.12); }
.progress { border-radius: 20px; background: #edf0f7; }

@keyframes pubFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
  .pub-hero { padding: 4rem 0 5rem; }
  .pub-stat:not(:last-child)::after { display: none; }
  .pub-stat { border-bottom: 1px solid #eef1f6; }
  .pub-stats-wrap .row > .col-6:nth-child(odd) .pub-stat::after { display: none; }
  .auth-shell,
  .auth-shell-wide { grid-template-columns: 1fr; }
  .auth-brand-panel { padding: 2rem 1.5rem; }
  .auth-brand-panel h2 { font-size: 1.4rem; }
  .auth-feature-list,
  .auth-steps,
  .auth-note { display: none; }
  .pub-detail-sidebar { position: static; }
}

@media (max-width: 575.98px) {
  .pub-hero-actions .btn-lg,
  .pub-cta-actions .btn-lg {
    width: 100%;
  }
  .pub-cta-inner { text-align: center; justify-content: center; }
  .pub-cta-actions { width: 100%; justify-content: center; }
}


/* ===== Page header (katalog, detail) ===== */
.pub-page-header {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 3.5rem 0 4rem;
  background: linear-gradient(135deg, #0f2a52 0%, #0a1f3d 55%, #081628 100%);
}

.pub-page-header-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(500px 250px at 90% 0%, rgba(201, 162, 39, .2), transparent),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.pub-page-header h1 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}

.pub-page-header .lead {
  color: #b8c9e2;
  max-width: 620px;
}

.pub-breadcrumb .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, .4);
  margin-bottom: 1rem;
}

.pub-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
}

.pub-breadcrumb .breadcrumb-item a:hover {
  color: #fff;
}

.pub-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, .9);
}

.pub-header-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: .85rem 1.15rem;
}

.pub-header-stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.pub-header-stat span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #9db1cf;
}

.pub-section-compact {
  padding-top: 2.5rem;
}

.pub-filter-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(15, 42, 82, .06);
}

.pub-filter-card .form-label {
  font-size: .82rem;
  font-weight: 600;
  color: #51607d;
}

.pub-filter-btn {
  border-radius: 10px;
  font-weight: 600;
  padding: .6rem 1rem;
}

.pub-program-desc {
  font-size: .86rem;
  color: #6b7a94;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.pub-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: #f8fafd;
  border: 1px dashed #d5deed;
  border-radius: 18px;
}

.pub-empty-state i {
  font-size: 2.5rem;
  color: #b0bdd4;
  margin-bottom: 1rem;
}

.pub-empty-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sc-primary);
}

.pub-cta-compact {
  padding-top: 0;
}

.pub-detail-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  overflow: hidden;
}

.pub-detail-card .card-body {
  padding: 1.5rem;
}

.pub-detail-sidebar {
  position: sticky;
  top: 5.5rem;
}

.pub-funding-box {
  background: linear-gradient(180deg, #f8fafd 0%, #fff 100%);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1rem;
}

.pub-meta-table th {
  width: 42%;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #74809a;
  background: #f8fafd;
  border-bottom: 1px solid #eef1f6;
  padding: .75rem 1rem;
}

.pub-meta-table td {
  font-size: .88rem;
  font-weight: 600;
  color: var(--sc-primary);
  border-bottom: 1px solid #eef1f6;
  padding: .75rem 1rem;
}

/* Program detail page */
.pub-detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 2.5rem 0 3.5rem;
  background: linear-gradient(135deg, #0f2a52 0%, #0a1f3d 55%, #081628 100%);
}

.pub-detail-hero h1 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.pub-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: #b8c9e2;
  font-size: .9rem;
}

.pub-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.pub-detail-meta i {
  color: var(--sc-gold);
}

.pub-detail-hero-stat {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.pub-detail-hero-stat small {
  display: block;
  color: #9db1cf;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .25rem;
}

.pub-detail-hero-stat strong {
  font-size: 1.45rem;
  font-weight: 800;
}

.pub-detail-hero-pct {
  display: block;
  margin-top: .5rem;
  font-size: .82rem;
  color: #9db1cf;
}

.pub-detail-section {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.pub-detail-section-head {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}

.pub-detail-section-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e7eefb, #f0f4fc);
  color: var(--sc-primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.pub-detail-section-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin: 0;
}

.pub-detail-section-body p {
  color: #51607d;
  line-height: 1.75;
  margin: 0;
}

.pub-detail-mini-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  padding: 1.25rem;
}

.pub-detail-mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: .85rem;
}

.pub-detail-mini-card h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin-bottom: .5rem;
}

.pub-detail-mini-card p {
  font-size: .86rem;
  color: #6b7a94;
  line-height: 1.65;
  margin: 0;
}

.pub-detail-funding-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 12px 32px rgba(15, 42, 82, .08);
}

.pub-detail-funding-card > h2 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #74809a;
  text-align: center;
  margin-bottom: 1.25rem;
}

.pub-funding-ring-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pub-funding-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#157347 calc(var(--pct) * 1%), #e3e8f2 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pub-funding-ring-inner {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px #eef1f6;
}

.pub-funding-ring-inner strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sc-primary);
  line-height: 1;
}

.pub-funding-ring-inner small {
  font-size: .62rem;
  color: #74809a;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-top: .15rem;
}

.pub-funding-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem;
}

.pub-funding-stat {
  background: #f8fafd;
  border-radius: 12px;
  padding: .75rem .85rem;
}

.pub-funding-stat span {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #74809a;
  margin-bottom: .15rem;
}

.pub-funding-stat strong {
  font-size: .88rem;
  word-break: break-word;
}

.pub-progress-lg {
  height: 10px;
}

.pub-progress-realized {
  height: 6px;
  background: #e8ecf4;
}

.pub-progress-realized .pub-progress-bar {
  background: linear-gradient(90deg, var(--sc-primary-2), var(--sc-primary));
}

.pub-detail-info-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  padding: 1.25rem;
}

.pub-detail-info-card h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin-bottom: 1rem;
}

.pub-detail-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pub-detail-info-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid #eef1f6;
}

.pub-detail-info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pub-detail-info-list i {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #f4f6fb;
  color: var(--sc-primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .95rem;
}

.pub-detail-info-list small {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #74809a;
  margin-bottom: .1rem;
}

.pub-detail-info-list strong {
  font-size: .88rem;
  color: var(--sc-primary);
  font-weight: 600;
}

.pub-related-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e8ecf4;
}

/* Detail v2 enhancements */
.pub-detail-hero-v2 {
  padding-bottom: 2.5rem;
}

.pub-detail-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

.pub-detail-kpi {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: .85rem 1rem;
}

.pub-detail-kpi span {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .45px;
  color: #9db1cf;
  margin-bottom: .15rem;
}

.pub-detail-kpi strong {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.pub-detail-tabs {
  background: #f4f6fb;
  border-radius: 14px;
  padding: .35rem;
  gap: .35rem;
}

.pub-detail-tabs .nav-link {
  border-radius: 10px;
  font-weight: 600;
  font-size: .88rem;
  color: #51607d;
  padding: .55rem 1rem;
  display: inline-flex;
  align-items: center;
}

.pub-detail-tabs .nav-link.active {
  background: #fff;
  color: var(--sc-primary);
  box-shadow: 0 2px 8px rgba(15, 42, 82, .08);
}

.pub-tab-badge {
  background: var(--sc-gold);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .1rem .45rem;
  margin-left: .35rem;
}

.pub-detail-section-sub {
  font-size: .82rem;
  color: #74809a;
  margin: 0;
}

.pub-doc-intro {
  background: linear-gradient(135deg, #f8fafd 0%, #fff 100%);
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
}

.pub-doc-intro h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sc-primary);
  margin-bottom: .35rem;
}

.pub-doc-intro p {
  color: #74809a;
  font-size: .88rem;
  margin-bottom: 1rem;
}

.pub-doc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
}

.pub-doc-stats span {
  font-size: .82rem;
  color: #51607d;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.pub-doc-stats i {
  color: var(--sc-primary-2);
}

.pub-doc-block {
  margin-bottom: 1.75rem;
}

.pub-doc-block > h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.pub-commit-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.pub-commit-item {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  padding: 1rem 1.15rem;
}

.pub-commit-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .5rem;
}

.pub-commit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.pub-timeline {
  position: relative;
  padding-left: 1.25rem;
}

.pub-timeline::before {
  content: "";
  position: absolute;
  left: .35rem;
  top: .5rem;
  bottom: .5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--sc-primary-2), #e3e8f2);
  border-radius: 2px;
}

.pub-timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}

.pub-timeline-item:last-child {
  padding-bottom: 0;
}

.pub-timeline-dot {
  position: absolute;
  left: -1.05rem;
  top: .85rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sc-primary-2);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(22, 64, 126, .15);
}

.pub-timeline-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-left: .5rem;
}

.pub-timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .65rem;
}

.pub-timeline-amount {
  font-weight: 800;
  color: #157347;
  white-space: nowrap;
}

.pub-timeline-card p {
  font-size: .88rem;
  color: #51607d;
  line-height: 1.6;
}

.pub-activity-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  height: 100%;
}

.pub-activity-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .85rem;
}

.pub-activity-head h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin: 0 0 .2rem;
}

.pub-activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
  margin-bottom: .85rem;
}

.pub-activity-grid > div {
  background: #f8fafd;
  border-radius: 10px;
  padding: .65rem .75rem;
}

.pub-activity-grid small {
  display: block;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .35px;
  color: #74809a;
  margin-bottom: .1rem;
}

.pub-activity-grid strong {
  font-size: .84rem;
  color: var(--sc-primary);
}

.pub-activity-benefit {
  font-size: .86rem;
  color: #51607d;
  line-height: 1.6;
}

.pub-file-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.pub-file-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.pub-file-item:hover {
  border-color: #c5d0e3;
  box-shadow: 0 4px 16px rgba(15, 42, 82, .06);
}

.pub-file-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef3fb;
  color: var(--sc-primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pub-file-info {
  flex: 1;
  min-width: 0;
}

.pub-file-info strong {
  display: block;
  font-size: .88rem;
  color: var(--sc-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pub-file-info span {
  font-size: .75rem;
  color: #74809a;
}

.pub-file-dl {
  color: var(--sc-primary-2);
  font-size: 1.1rem;
}

.pub-funding-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem;
}

.pub-funding-ring-realized {
  background: conic-gradient(var(--sc-primary-2) calc(var(--pct) * 1%), #e3e8f2 0) !important;
}

.pub-detail-doc-summary .pub-doc-summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.pub-doc-summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px solid #eef1f6;
  font-size: .84rem;
}

.pub-doc-summary-list li:last-child {
  border-bottom: none;
}

.pub-doc-summary-list span {
  color: #74809a;
}

.pub-doc-summary-list strong {
  color: var(--sc-primary);
}

@media (max-width: 767.98px) {
  .pub-activity-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-detail-kpi-row { grid-template-columns: 1fr 1fr; }
  .pub-funding-dual { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .pub-detail-tabs .nav-link { font-size: .78rem; padding: .5rem .65rem; }
  .pub-detail-tabs .nav-link i { display: none; }
}

/* ===== Auth pages (login, daftar) ===== */
.auth-page {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  background: #f4f6fb;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-shell-wide {
  grid-template-columns: minmax(280px, 380px) 1fr;
}

.auth-brand-panel {
  background:
    radial-gradient(600px 400px at 20% 0%, rgba(201, 162, 39, .18), transparent),
    linear-gradient(180deg, var(--sc-primary) 0%, #081628 100%);
  color: #fff;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.auth-brand-content {
  position: relative;
  max-width: 420px;
}

.auth-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 2.5rem;
}

.auth-brand-link strong {
  display: block;
  font-size: 1.05rem;
}

.auth-brand-link small {
  display: block;
  font-size: .68rem;
  color: #9db1cf;
}

.auth-brand-panel h2 {
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.25;
  margin-bottom: .85rem;
}

.auth-brand-panel > .auth-brand-content > p {
  color: #b8c9e2;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.auth-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.auth-feature-list li {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .45rem 0;
  color: #c3d1e6;
  font-size: .92rem;
}

.auth-feature-list i {
  color: var(--sc-gold);
}

.auth-steps {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.auth-step {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: #c3d1e6;
}

.auth-step span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(201, 162, 39, .2);
  color: var(--sc-gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .82rem;
  flex-shrink: 0;
}

.auth-note {
  font-size: .85rem;
  color: #9db1cf;
  background: rgba(255, 255, 255, .06);
  border-radius: 10px;
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
}

.auth-back-link {
  color: #c3d1e6;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
}

.auth-back-link:hover {
  color: #fff;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-form-panel-scroll {
  align-items: flex-start;
  padding: 2rem 2.5rem;
}

.auth-form-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e8ecf4;
  box-shadow: 0 16px 40px rgba(15, 42, 82, .08);
  padding: 2rem;
}

.auth-form-card-wide {
  max-width: 720px;
}

.auth-form-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-form-logo {
  width: 52px;
  height: 52px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.auth-form-header h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--sc-primary);
  margin-bottom: .35rem;
}

.auth-form-header p {
  color: #74809a;
  font-size: .9rem;
  margin: 0;
}

.auth-form-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eef1f6;
}

.auth-form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.auth-form-section h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin-bottom: 1rem;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap i {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa8be;
  pointer-events: none;
}

.auth-input-wrap .form-control {
  padding-left: 2.35rem;
}

.auth-login-demo-trigger {
  text-align: center;
  margin: 1.25rem 0 0;
}

.auth-login-demo-trigger a {
  color: var(--sc-primary-2);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-login-demo-trigger a:hover {
  color: var(--sc-primary);
  text-decoration: underline;
}

.auth-demo-modal .modal-header {
  border-bottom: 1px solid #eef1f6;
}

.auth-demo-modal .modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sc-primary);
}

.auth-demo-modal-password {
  color: #55627a;
  font-size: .85rem;
  margin-bottom: .85rem;
}

.auth-demo-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-demo-modal-list li + li {
  margin-top: .4rem;
}

.auth-demo-modal-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  border: 1px solid #e4eaf3;
  border-radius: 10px;
  background: #f8fafc;
  padding: .55rem .75rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.auth-demo-modal-item:hover,
.auth-demo-modal-item:focus-visible {
  border-color: #c5d3ea;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(15, 42, 82, .06);
  outline: none;
}

.auth-demo-modal-role {
  font-weight: 600;
  color: var(--sc-primary);
  font-size: .82rem;
}

.auth-demo-modal-email {
  color: #667085;
  font-size: .78rem;
  word-break: break-all;
}

.auth-demo-modal-note {
  color: #8a94a8;
  font-size: .78rem;
  margin: .85rem 0 0;
}

.auth-submit-btn {
  border-radius: 12px;
  font-weight: 600;
  padding: .75rem 1rem;
  margin-top: .5rem;
}

.auth-form-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef1f6;
  font-size: .9rem;
}

.auth-form-footer a {
  color: var(--sc-primary-2);
  font-weight: 600;
  text-decoration: none;
}

.auth-form-footer a:hover {
  color: var(--sc-primary);
}

/* ===== Register wizard ===== */
.auth-wizard-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(700px 350px at 50% 0%, rgba(201, 162, 39, .12), transparent),
    linear-gradient(180deg, #eef2f8 0%, #f4f6fb 100%);
}

.auth-wizard-container {
  width: 100%;
  max-width: 640px;
}

.auth-wizard-container-sm {
  max-width: 480px;
}

.auth-wizard-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(15, 42, 82, .1);
  overflow: hidden;
}

.auth-wizard-top {
  text-align: center;
  padding: 2rem 2rem 1.25rem;
}

.auth-wizard-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--sc-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 1.25rem;
}

.auth-wizard-top h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--sc-primary);
  margin-bottom: .35rem;
}

.auth-wizard-top p {
  color: #74809a;
  font-size: .9rem;
  margin: 0;
}

.auth-wizard-progress {
  height: 4px;
  background: #eef1f6;
  margin: 0 2rem;
  border-radius: 999px;
  overflow: hidden;
}

.auth-wizard-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--sc-gold), #e6c65a);
  border-radius: 999px;
  transition: width .35s ease;
}

.auth-wizard-steps {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: 1.25rem 2rem 0;
}

.auth-wizard-step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
  opacity: .45;
  transition: opacity .25s ease;
}

.auth-wizard-step-item.active,
.auth-wizard-step-item.done {
  opacity: 1;
}

.auth-wizard-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef1f6;
  color: #74809a;
  font-size: .82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, color .25s ease;
}

.auth-wizard-step-item.active .auth-wizard-step-num {
  background: var(--sc-primary-2);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 64, 126, .25);
}

.auth-wizard-step-item.done .auth-wizard-step-num {
  background: #e3f5eb;
  color: #157347;
}

.auth-wizard-step-label {
  font-size: .68rem;
  font-weight: 600;
  color: #74809a;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.2;
}

.auth-wizard-step-item.active .auth-wizard-step-label {
  color: var(--sc-primary);
}

.auth-wizard-form {
  padding: 1.5rem 2rem 2rem;
}

.auth-wizard-pane {
  display: none;
  animation: wizardFadeIn .3s ease;
}

.auth-wizard-pane.active,
.auth-wizard-pane:not([hidden]) {
  display: block;
}

.auth-wizard-pane[hidden] {
  display: none !important;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.auth-wizard-pane-head {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef1f6;
}

.auth-wizard-pane-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e7eefb, #f0f4fc);
  color: var(--sc-primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.auth-wizard-pane-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin: 0 0 .2rem;
}

.auth-wizard-pane-head p {
  font-size: .84rem;
  color: #74809a;
  margin: 0;
  line-height: 1.5;
}

.auth-wizard-note {
  font-size: .82rem;
  color: #74809a;
  background: #f8fafd;
  border-radius: 10px;
  padding: .75rem 1rem;
}

.auth-wizard-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef1f6;
}

.auth-wizard-prev {
  border-radius: 10px;
  font-weight: 600;
}

.auth-wizard-step-text {
  flex: 1;
  text-align: center;
  font-size: .78rem;
  color: #74809a;
  font-weight: 500;
}

.auth-wizard-next,
.auth-wizard-submit {
  border-radius: 10px;
  font-weight: 600;
  margin-left: auto;
  min-width: 120px;
}

.auth-wizard-footer {
  text-align: center;
  padding: 1rem 2rem 1.75rem;
  border-top: 1px solid #eef1f6;
  background: #fafbfd;
}

.auth-wizard-footer p {
  font-size: .88rem;
  margin-bottom: .5rem;
  color: #51607d;
}

.auth-wizard-footer a {
  color: var(--sc-primary-2);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .auth-wizard-top,
  .auth-wizard-form,
  .auth-wizard-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .auth-wizard-progress { margin: 0 1.25rem; }
  .auth-wizard-steps { padding: 1rem 1.25rem 0; }
  .auth-wizard-step-label { font-size: .62rem; }
  .auth-wizard-actions { flex-wrap: wrap; }
  .auth-wizard-next,
  .auth-wizard-submit { width: 100%; margin-left: 0; order: 3; }
  .auth-wizard-prev { order: 2; flex: 1; }
  .auth-wizard-step-text { order: 1; width: 100%; margin-bottom: .25rem; }
}

/* Flowcart / How It Works page */
.pub-flow-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: .35rem .15rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(15, 42, 82, .05);
}

.pub-flow-pipeline-item {
  display: flex;
  align-items: center;
  gap: .15rem;
}

.pub-flow-pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 96px;
  padding: .85rem .5rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafd 0%, #fff 100%);
  border: 1px solid #e8ecf4;
  transition: transform .2s ease, box-shadow .2s ease;
}

.pub-flow-pipeline-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 42, 82, .08);
}

.pub-flow-pipeline-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--sc-primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .45rem;
}

.pub-flow-pipeline-icon {
  font-size: 1.25rem;
  color: var(--sc-gold);
  margin-bottom: .35rem;
}

.pub-flow-pipeline-label {
  font-size: .68rem;
  font-weight: 600;
  color: var(--sc-primary);
  line-height: 1.35;
}

.pub-flow-pipeline-arrow {
  color: #b8c5d9;
  font-size: .85rem;
  padding: 0 .1rem;
}

.pub-flow-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 6px 24px rgba(15, 42, 82, .04);
}

.pub-flow-card-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid #eef1f6;
}

.pub-flow-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pub-flow-card-primary .pub-flow-card-icon {
  background: linear-gradient(135deg, #e7eefb, #d4e2f8);
  color: var(--sc-primary);
}

.pub-flow-card-info .pub-flow-card-icon {
  background: linear-gradient(135deg, #e7f3ff, #d4ebff);
  color: #0d6efd;
}

.pub-flow-card-gold .pub-flow-card-icon {
  background: linear-gradient(135deg, #fdf6e3, #f5e6b8);
  color: #9a7b0a;
}

.pub-flow-card-success .pub-flow-card-icon {
  background: linear-gradient(135deg, #e8f7ef, #ccebd9);
  color: #157347;
}

.pub-flow-card-head h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin-bottom: .25rem;
}

.pub-flow-card-head p {
  font-size: .84rem;
  color: #6b7a94;
  margin: 0;
  line-height: 1.55;
}

.pub-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-flow-step {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 0;
  position: relative;
}

.pub-flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px;
  top: calc(100% - 2px);
  width: 2px;
  height: calc(.65rem + 2px);
  background: #e2e8f2;
}

.pub-flow-step-marker {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--sc-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.pub-flow-card-info .pub-flow-step-marker { background: #0d6efd; }
.pub-flow-card-gold .pub-flow-step-marker { background: var(--sc-gold); color: #1a1a1a; }
.pub-flow-card-success .pub-flow-step-marker { background: #157347; }

.pub-flow-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f4f7fb;
  color: var(--sc-primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .95rem;
}

.pub-flow-step-text {
  font-size: .88rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.45;
}

.pub-flow-legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  text-align: center;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  padding: 1.15rem 1rem;
  height: 100%;
}

.pub-flow-legend-item span:last-child {
  font-size: .82rem;
  color: #6b7a94;
  line-height: 1.5;
}

.pub-flow-faq .accordion-item {
  border: 1px solid #e8ecf4;
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: .65rem;
  background: #fff;
}

.pub-flow-faq .accordion-button {
  font-weight: 600;
  font-size: .92rem;
  color: var(--sc-primary);
  background: #fff;
  box-shadow: none;
  padding: 1rem 1.15rem;
}

.pub-flow-faq .accordion-button:not(.collapsed) {
  background: #f8fafd;
  color: var(--sc-primary);
}

.pub-flow-faq .accordion-body {
  font-size: .88rem;
  color: #5a677d;
  line-height: 1.65;
  padding: 0 1.15rem 1.15rem;
}

@media (max-width: 991.98px) {
  .pub-flow-pipeline {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .pub-flow-pipeline-item {
    flex-direction: column;
    align-items: stretch;
  }

  .pub-flow-pipeline-step {
    width: 100%;
    flex-direction: row;
    text-align: left;
    gap: .85rem;
    padding: .85rem 1rem;
  }

  .pub-flow-pipeline-num { margin-bottom: 0; }
  .pub-flow-pipeline-icon { margin-bottom: 0; }
  .pub-flow-pipeline-label { flex: 1; font-size: .82rem; }

  .pub-flow-pipeline-arrow {
    display: flex;
    justify-content: center;
    padding: .15rem 0;
    transform: rotate(90deg);
  }
}

/* ===== Print ===== */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
