/* SmartGov Digital Suite - Core Enterprise GovTech Stylesheet */
:root {
  --primary: #0f2b48;
  --primary-dark: #091a2d;
  --primary-light: #1e3a8a;
  --secondary: #0284c7;
  --accent: #059669;
  --accent-light: #d1fae5;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --border-focus: #94a3b8;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 4px 0 rgba(15, 23, 42, 0.06), 0 1px 2px 0 rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background-color: #f1f5f9;
  color: var(--text-main);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* Header & Navigation Bar - Clean Modern GovTech Blend */
.gov-topbar {
  background: #ffffff;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px 0 rgba(15, 23, 42, 0.04);
}

.topbar-utility {
  background: #0f2b48;
  color: #94a3b8;
  font-size: 12px;
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-utility .gov-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fde047;
  font-weight: 700;
}

.topbar-utility .utility-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.gov-navbar {
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  background: #ffffff;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #0f2b48;
}

.brand-logo-box {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #0f2b48 0%, #0284c7 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1.5px solid #f59e0b;
  box-shadow: 0 2px 6px rgba(15, 43, 72, 0.15);
}

.brand-info h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f2b48;
  margin: 0;
  line-height: 1.2;
}

.brand-info p {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-item {
  color: #334155;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-item:hover {
  background: #f1f5f9;
  color: #0f2b48;
}

.nav-item.active {
  background: #0284c7;
  color: #ffffff;
}

.demo-suite-tag {
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(2, 132, 199, 0.4);
  color: #7dd3fc;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Sovereign Micro Accent Strip (Malaysia GovTech Identity) */
.gov-sovereign-strip {
  height: 3px;
  background: linear-gradient(90deg, #dc2626 0%, #dc2626 25%, #ffffff 25%, #ffffff 50%, #0284c7 50%, #0284c7 75%, #f59e0b 75%, #f59e0b 100%);
  width: 100%;
}

/* GovTech Official Light Hero Banner (MAMPU / JDN / PBT Style) */
.gov-hero-banner {
  background-color: #ffffff;
  background-image: 
    radial-gradient(#e2e8f0 1.2px, transparent 1.2px),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  background-size: 24px 24px, 100% 100%;
  color: #0f172a;
  padding: 46px 24px 42px 24px;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.gov-hero-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.gov-hero-main {
  max-width: 780px;
  flex: 1 1 500px;
}

.gov-official-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  color: #0369a1;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gov-hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
  color: #0f2b48;
}

.gov-hero-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 740px;
}

/* 4 Sector Pillar Chips */
.gov-pillar-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.gov-pillar-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.gov-pillar-chip:hover {
  background: #ffffff;
  border-color: #0284c7;
  color: #0f2b48;
}

/* GovTech Official Gateway Box */
.gov-gateway-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 4px solid #0f2b48;
  border-radius: 12px;
  padding: 22px;
  min-width: 320px;
  max-width: 420px;
  flex: 1 1 340px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

.gov-gateway-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.gov-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
}

.gov-status-dot {
  width: 6px;
  height: 6px;
  background: #059669;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: flowPulse 2s infinite;
}

.gov-gateway-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gov-gateway-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.gov-gateway-item:hover {
  background: #ffffff;
  border-color: #0284c7;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.gov-gateway-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gov-gateway-text {
  flex: 1;
  min-width: 0;
}

.gov-gateway-label {
  font-size: 13px;
  font-weight: 700;
  color: #0f2b48;
  line-height: 1.3;
}

.gov-gateway-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gov-gateway-arrow {
  color: #94a3b8;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.gov-gateway-item:hover .gov-gateway-arrow {
  color: #0284c7;
  transform: translateX(2px);
}

.gov-gateway-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.gov-security-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

/* Back Link for Subsystems */
.subsystem-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
}

.subsystem-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-to-suite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border);
}

.back-to-suite:hover {
  background: #f1f5f9;
  border-color: var(--border-focus);
}

/* Layout Container */
.gov-container {
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 24px;
}

/* Page Header */
.page-header {
  margin-bottom: 24px;
}

.page-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.page-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* Grid & Cards */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-2x2 {
    grid-template-columns: 1fr;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 20px;
  flex: 1;
}

.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* System Card in Launcher */
.system-card {
  border-top: 4px solid var(--primary-light);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.system-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.1);
  border-top-color: var(--secondary);
}

.system-card.featured {
  border-top: 4px solid var(--accent);
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 40px);
}

.system-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}

.system-meta-row:last-child {
  border-bottom: none;
}

.system-meta-row span:first-child {
  color: var(--text-muted);
}

.system-meta-row span:last-child {
  font-weight: 600;
  color: var(--text-main);
}

/* Stat Widgets */
.stat-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-primary { background: #e0f2fe; color: #0369a1; }
.stat-icon-success { background: #d1fae5; color: #047857; }
.stat-icon-warning { background: #fef3c7; color: #b45309; }
.stat-icon-danger  { background: #fee2e2; color: #b91c1c; }

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin: 4px 0 2px 0;
}

.stat-subtext {
  font-size: 11px;
  color: var(--text-muted);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  width: 100%;
}

.gov-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.gov-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.gov-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.gov-table tbody tr:hover {
  background: #f8fafc;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.badge-success { background: var(--accent-light); color: var(--accent); border: 1px solid #a7f3d0; }
.badge-warning { background: var(--warning-light); color: var(--warning); border: 1px solid #fde68a; }
.badge-danger  { background: var(--danger-light); color: var(--danger); border: 1px solid #fecaca; }
.badge-info    { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.badge-neutral { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: #047857;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

/* Responsive Tables */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
}

/* Modal Popup (for print/view & consultation) */
.modal, .gov-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow-y: auto;
}

.modal.active, .gov-modal.active {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: auto;
  box-sizing: border-box;
}

.modal-header {
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

/* Official Receipt Template */
.receipt-sheet {
  border: 1px solid #cbd5e1;
  padding: 24px;
  background: #ffffff;
  font-size: 13px;
}

.receipt-header {
  text-align: center;
  border-bottom: 2px solid #0f2b48;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.receipt-header h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0f2b48;
}

.receipt-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
}

/* Footer */
.gov-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 24px;
  margin-top: 48px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* =======================================================
   DIGITAL TRANSFORMATION ECOSYSTEM SHOWCASE EXTENSIONS
   ======================================================= */

/* Role Switcher */
.role-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  flex-wrap: wrap;
}

.role-pill {
  padding: 4px 12px;
  border-radius: 14px;
  background: transparent;
  color: #94a3b8;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.role-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.role-pill.active {
  background: var(--secondary);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.4);
}

/* Value Presentation Cards (Problem -> Solution -> Impact) */
.value-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.value-col {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid #f1f5f9;
}

.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.pill-problem {
  background: #fee2e2;
  color: #991b1b;
}

.pill-solution {
  background: #e0f2fe;
  color: #0369a1;
}

.pill-impact {
  background: #dcfce7;
  color: #15803d;
}

.value-col p {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.45;
  margin: 0;
}

/* Modern Enterprise GovTech Process Flow & Stepper Architecture */
.gov-flow-card,
.journey-container {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}

.gov-flow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7 0%, #059669 100%);
}

.gov-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 14px;
}

.gov-flow-header-left {
  flex: 1;
  min-width: 280px;
}

.gov-flow-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.gov-flow-pulse {
  width: 7px;
  height: 7px;
  background: #0284c7;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7);
  animation: flowPulse 2s infinite;
}

@keyframes flowPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(2, 132, 199, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.gov-flow-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

.gov-flow-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  max-width: 780px;
}

.gov-flow-header-right {
  display: flex;
  align-items: center;
}

.gov-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
}

/* 5-Step Process Track (Desktop) */
.gov-flow-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
  margin-top: 8px;
}

.gov-step-card,
.journey-step {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 210px;
  text-align: left;
}

.gov-step-card:hover,
.journey-step:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: var(--secondary);
  box-shadow: 0 8px 18px -4px rgba(2, 132, 199, 0.12);
}

.gov-step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.gov-step-badge,
.step-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f2b48;
  background: #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gov-step-icon {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gov-step-content {
  flex: 1;
  margin-bottom: 14px;
}

.gov-step-name,
.step-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.gov-step-info,
.step-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.gov-step-footer {
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  margin-top: auto;
}

.gov-step-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
  background: #edf2f7;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Connecting Arrow Indicator (Desktop) */
.gov-step-arrow,
.journey-arrow {
  position: absolute;
  right: -13px;
  top: 24px;
  z-index: 5;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 11px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* Final Step Milestone Styling (Step 5) */
.gov-step-card.is-final {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border-color: #86efac;
  border-width: 1.5px;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.08);
}

.gov-step-card.is-final:hover {
  border-color: #10b981;
  box-shadow: 0 10px 24px -4px rgba(16, 185, 129, 0.2);
}

.gov-step-badge.badge-final {
  background: #dcfce7;
  color: #15803d;
}

.gov-step-icon.icon-final {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

.gov-step-name.title-final {
  color: #166534;
}

.gov-step-tag.tag-final {
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
}

/* Legacy .journey-steps support */
.journey-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
  margin-top: 16px;
}

/* Roadmap Timeline */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.roadmap-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  border-top: 4px solid var(--secondary);
  position: relative;
}

.roadmap-card.active {
  border-top-color: var(--accent);
  background: #f0fdf4;
}

.roadmap-phase {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 6px;
}

.roadmap-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

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

.roadmap-list li {
  font-size: 12px;
  color: #475569;
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* Quick Presentation Guide Drawer / Modal */
.guide-box {
  background: linear-gradient(135deg, #091a2d 0%, #0f2b48 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-left: 4px solid #38bdf8;
}

/* Mobile Responsive Showcase Badges */
.device-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

@media (max-width: 900px) {
  .value-card-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}

/* =======================================================
   RESPONSIVE OPTIMIZATION (MOBILE & TABLET EXCELLENCE)
   ======================================================= */

.operation-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.wa-phone {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 1100px) {
  .chart-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1024px) {
  .gov-flow-track {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }
  .gov-step-arrow {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .operation-overview-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
}

@media (max-width: 860px) {
  .gov-navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .topbar-utility {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 16px;
  }
  .topbar-utility .gov-badge {
    word-break: break-word;
    font-size: 11px;
  }
  .topbar-utility .utility-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  .gov-container {
    padding: 0 16px;
    margin: 16px auto;
  }
  .subsystem-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .before-after-grid {
    grid-template-columns: 1fr !important;
  }
  .before-after-grid > div:first-child {
    border-right: none !important;
    border-bottom: 1px solid #fed7d7 !important;
  }
  .journey-steps {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .journey-arrow {
    display: none !important;
  }
  .journey-step {
    min-width: 100% !important;
    min-height: auto !important;
  }
}

@media (max-width: 720px) {
  .gov-flow-track {
    grid-template-columns: 1fr !important;
    position: relative;
    padding-left: 28px;
    gap: 14px !important;
  }
  .gov-flow-track::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    width: 2px;
    background: linear-gradient(180deg, #0284c7 0%, #10b981 100%);
    opacity: 0.6;
    border-radius: 2px;
  }
  .gov-step-card {
    min-height: auto !important;
    padding: 14px 16px !important;
  }
  .gov-step-card::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0284c7;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #0284c7;
  }
  .gov-step-card.is-final::before {
    background: #059669;
    box-shadow: 0 0 0 2px #059669;
  }
  .operation-overview-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .receipt-meta {
    grid-template-columns: 1fr;
  }
  .gov-hero-banner {
    padding: 28px 16px !important;
  }
  .gov-hero-banner h2 {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
  .brand-info h1 {
    font-size: 16px;
  }
  .card-header, .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .operation-overview-grid {
    grid-template-columns: 1fr !important;
  }
  .wa-phone {
    width: 100% !important;
    height: 580px !important;
    border-radius: 20px !important;
    padding: 6px !important;
    border-width: 2px !important;
  }
  .wa-screen {
    border-radius: 14px !important;
  }
}


