/* =========================================================
   WAWAR STYLING — CERAH, SEGAR, BERWIBAWA & ESTETIK TINGGI
   Palet: Fresh Emerald Green (#059669, #10B981), Warm Sun Gold (#D97706),
          Bright Porcelain White (#FFFFFF, #F8FAFC, #F1F5F9), Deep Slate (#0F172A)
   ========================================================= */

:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ECFDF5;
  --primary-border: #A7F3D0;
  
  --accent-gold: #D97706;
  --accent-gold-light: #FFFBEB;
  --accent-gold-border: #FDE68A;

  --accent-blue: #0284C7;
  --accent-blue-light: #F0F9FF;
  --accent-blue-border: #BAE6FD;

  --bg-main: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFCFF;
  
  --border-subtle: #E2E8F0;
  --border-glow: rgba(5, 150, 105, 0.3);
  
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -8px rgba(15, 23, 42, 0.08), 0 10px 15px -3px rgba(15, 23, 42, 0.03);
  --shadow-glow: 0 12px 28px rgba(15, 23, 42, 0.08);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= Reset & Basics ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  background: 
    radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(217, 119, 6, 0.05) 0%, transparent 45%),
    #F8FAFC;
  background-attachment: fixed;
}

/* ================= Typography ================= */
h1, h2, h3, h4, .brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ================= Layout Helpers ================= */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.text-center { text-align: center; }
.hidden { display: none !important; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.max-w-xl { max-width: 680px; margin: 0 auto; }
.mb-4 { margin-bottom: 24px; }
.d-block { display: block; }
.cursor-pointer { cursor: pointer; }

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  transform: translateY(-2px);
}

.btn-outline {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ================= Navbar (Cerah & Bersih) ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.brand-title {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: block;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.highlight {
  color: var(--accent-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-full);
  color: #065F46;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  display: inline-block;
}

/* ================= Views Handler ================= */
.view-section {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.view-section.active {
  display: block;
  opacity: 1;
}

/* ================= Hero Banner (Cerah, Alami & Megah) ================= */
.hero-banner-wrapper {
  padding: 24px 20px 0;
  max-width: 1280px;
  margin: 0 auto;
}

.banner-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-lg);
  background: #FFFFFF;
}

.banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.02) saturate(1.05); /* Cerah alami */
  transition: transform 6s ease;
}

.banner-frame:hover .banner-img {
  transform: scale(1.02);
}

/* Overlay Cerah: Gradasi Putih Transparan agar teks super terbaca */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 255, 255, 0.88) 45%, 
    rgba(255, 255, 255, 0.25) 100%
  );
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 48px 56px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #065F46;
  border: 1px solid #A7F3D0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.hero-title {
  font-size: 2.8rem;
  color: #0F172A;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.hero-desc {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ================= Status Strip ================= */
.status-strip {
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.status-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 22px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  box-shadow: var(--shadow-md);
}

.status-info .label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.status-info strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.badge-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-tag.green {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.badge-tag.amber {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.badge-tag.blue {
  background: #F0F9FF;
  color: #0284C7;
  border: 1px solid #BAE6FD;
}

/* ================= Section Header ================= */
.section-header {
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 2.3rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ================= Trio Grid (Cerah & Berwarna) ================= */
.trio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.channel-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.channel-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.wa-icon { background: #ECFDF5; color: #059669; }
.tg-icon { background: #F0F9FF; color: #0284C7; }
.mail-icon { background: #FFFBEB; color: #D97706; }

.channel-card h3 {
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.channel-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-body);
}

.card-footer-badge {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.card-footer-badge.green { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.card-footer-badge.blue { background: #F0F9FF; color: #0284C7; border: 1px solid #BAE6FD; }
.card-footer-badge.amber { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }

/* ================= RAYI Showcase (Ramah & Hangat) ================= */
.rayi-showcase-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 50%, #FEFCE8 100%);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.rayi-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.rayi-content h2 {
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 16px;
}

.highlight-text {
  color: var(--primary);
  font-weight: 700;
}

.rayi-meaning {
  font-size: 1.05rem;
  color: #1E293B;
  margin-bottom: 16px;
  font-style: italic;
  border-left: 3px solid var(--accent-gold);
  padding-left: 14px;
}

.rayi-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 28px;
}

.rayi-traits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trait-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trait-icon {
  font-size: 1.3rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-sm);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trait-item strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-main);
}

.trait-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Chat Mockup (Cerah Bersih) */
.rayi-chat-mockup {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mockup-header {
  background: #005C4B; /* Hijau WhatsApp Resmi */
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #005C4B;
  font-size: 1.1rem;
}

.header-details strong {
  display: block;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.header-details span {
  font-size: 0.75rem;
  color: #D1FAE5;
}

.mockup-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #EFEAE2; /* Warna Background Chat WhatsApp Asli */
  min-height: 320px;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  position: relative;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chat-bubble.incoming {
  background: #FFFFFF;
  color: #1E293B;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.outgoing {
  background: #D9FDD3; /* Hijau Bubble WhatsApp */
  color: #1E293B;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble.document {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
}

.doc-icon {
  font-size: 1.6rem;
}

.doc-info strong {
  display: block;
  font-size: 0.88rem;
  color: #065F46;
}

.doc-info span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.chat-time {
  display: block;
  font-size: 0.68rem;
  color: #94A3B8;
  text-align: right;
  margin-top: 4px;
}

/* ================= Architecture Diagram ================= */
.arch-diagram-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.diagram-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.flow-col {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.col-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
}

.client-node {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.client-node.active-node {
  border-color: var(--primary);
  background: #ECFDF5;
}

.client-node strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
}

.client-node small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  gap: 4px;
}

.hub-box {
  background: #F0FDF4;
  border: 1px solid #A7F3D0;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.hub-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.hub-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.hub-components {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #065F46;
}

.channel-pill {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
}

.channel-pill.green { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.channel-pill.blue { background: #F0F9FF; color: #0284C7; border: 1px solid #BAE6FD; }
.channel-pill.amber { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }

/* ================= Code Preview Box ================= */
.code-preview-box {
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.code-tabs {
  background: #1E293B;
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #334155;
}

.code-tab {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.code-tab.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.code-content {
  padding: 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #6EE7B7;
  overflow-x: auto;
  line-height: 1.6;
}

/* ================= Auth Modal ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open,
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-box.max-w-xl {
  max-width: 580px;
}

.modal-overlay.open .modal-box,
.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.auth-header h3 {
  font-size: 1.45rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.auth-tabs {
  display: flex;
  background: #F1F5F9;
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-group input, .form-group textarea, .form-select {
  width: 100%;
  padding: 11px 14px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.input-readonly {
  background: #F1F5F9 !important;
  color: #64748B !important;
  cursor: not-allowed;
}

.input-inline {
  display: flex;
  gap: 8px;
}

.otp-input {
  letter-spacing: 0.4em;
  font-size: 1.5rem !important;
  font-weight: 800;
}

.hint-text {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ================= Dashboard Console (Cerah, Rapi & Elegan) ================= */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: #F8FAFC;
}

.dash-sidebar {
  width: 260px;
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.dash-brand {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
}

.dash-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.dash-brand strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-main);
}

.dash-brand small {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.dash-nav {
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.dash-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748B;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}

.dash-link i,
.dash-link svg,
.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 1.85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
}

.lucide-xs {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.lucide-sm {
  width: 15px;
  height: 15px;
  stroke-width: 1.85;
}

.lucide-md {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.lucide-lg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}

.btn .lucide,
.btn svg.lucide {
  width: 15px;
  height: 15px;
  stroke-width: 1.85;
}

.dash-link:hover {
  background: #F1F5F9;
  color: var(--text-main);
}

.dash-link.active {
  background: #ECFDF5;
  color: var(--primary);
  font-weight: 700;
  border-left: 3px solid var(--primary);
}

.dash-sidebar-footer {
  padding: 16px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.active-instance-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.dot-green {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  display: inline-block;
}

.active-instance-pill small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.active-instance-pill strong {
  font-size: 0.85rem;
  color: var(--text-main);
}

.dash-content {
  flex: 1;
  padding: 28px 36px;
  overflow-y: auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.dash-header h2 {
  font-size: 1.85rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.dash-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.dash-tab {
  display: none;
}

.dash-tab.active {
  display: block;
}

/* Metrics Grid (Cerah & Kontras Tinggi) */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.metric-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.metric-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.metric-card h3 {
  font-size: 1.65rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.metric-foot {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-status.open, .badge-status.green {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

/* Panel Card */
.panel-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.panel-header h3 {
  font-size: 1.2rem;
  color: var(--text-main);
}

.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Table */
.table-responsive {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.dash-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.dash-table td {
  padding: 14px;
  border-bottom: 1px solid #F1F5F9;
  color: var(--text-body);
}

.dash-table tr:hover td {
  background: #FAFCFF;
}

.badge-ch.wa {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Instance Box */
.instance-details-box {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #F1F5F9;
}

.avatar-large img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #E2E8F0;
}

.details-content h4 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.phone-number {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 6px;
}

.tech-specs {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.instance-action-bar {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

/* Dropzone (Cerah Bersih) */
.dropzone-content {
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 36px 20px;
  background: #F8FAFC;
  transition: var(--transition);
  cursor: pointer;
}

.dropzone-content:hover, #excelDropZone.drag-over .dropzone-content {
  border-color: var(--primary);
  background: #ECFDF5;
}

.dropzone-icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

.dropzone-content h4 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.schedule-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.schedule-filters .btn.active {
  background: #ECFDF5;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

/* OTP Result Box */
.otp-result-box {
  margin-top: 20px;
  background: #FFFBEB;
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.otp-display {
  display: block;
  font-size: 2.3rem;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  font-weight: 800;
  margin: 6px 0;
}

.expiry-timer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 992px) {
  .rayi-showcase-box {
    grid-template-columns: 1fr;
    padding: 36px;
  }
  .card-grid-2 {
    grid-template-columns: 1fr;
  }
  .dashboard-layout {
    flex-direction: column;
  }
  .dash-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .banner-content { padding: 28px; }
  .nav-menu { display: none; }
  .calendar-month-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* ================= VISUAL CONTENT & CAMPAIGN CALENDAR (BRIGHT DAYLIGHT) ================= */

.campaign-selector-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  background: #FFFFFF;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.campaign-selector-bar .label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.campaign-pill-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.campaign-chip {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: #F8FAFC;
  color: var(--text-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.campaign-chip:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.campaign-chip.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.campaign-chip.amber.active {
  background: #FEF3C7;
  color: #92400E;
  border-color: #F59E0B;
}

.campaign-chip.green.active {
  background: #D1FAE5;
  color: #065F46;
  border-color: #10B981;
}

.campaign-chip.blue.active {
  background: #DBEAFE;
  color: #1E40AF;
  border-color: #3B82F6;
}

/* Calendar Card Container */
.calendar-wrapper-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}

.calendar-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.calendar-nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calendar-nav-controls h3 {
  font-size: 1.4rem;
  color: var(--text-main);
  font-weight: 800;
  margin: 0;
  min-width: 180px;
  text-align: center;
}

.cal-nav-btn {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.cal-nav-btn:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.calendar-legend {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot-amber { width: 10px; height: 10px; border-radius: 50%; background: #F59E0B; display: inline-block; }
.dot-green { width: 10px; height: 10px; border-radius: 50%; background: #10B981; display: inline-block; }
.dot-blue { width: 10px; height: 10px; border-radius: 50%; background: #3B82F6; display: inline-block; }

/* Grid Header (Days of week) */
.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 12px;
  border-bottom: 2px solid #F1F5F9;
  margin-bottom: 12px;
  width: 100%;
}

/* 35-Day Month Grid */
.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.calendar-day-cell {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  min-height: 110px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.calendar-day-cell:hover:not(.other-month) {
  background: #FFFFFF;
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

/* Penegasan Visual Hari Luar Bulan (Bulan Lalu & Bulan Depan) */
.calendar-day-cell.other-month {
  background-color: #F1F5F9;
  border: 1px dashed #CBD5E1;
  cursor: default;
  opacity: 0.85;
  box-shadow: none;
}

.calendar-day-cell.other-month:hover {
  background-color: #E2E8F0;
  border-color: #94A3B8;
  box-shadow: none;
  transform: none;
}

.calendar-day-cell.other-month .cal-day-number {
  color: #94A3B8;
  font-weight: 600;
}

.cal-other-month-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 4px;
  background: #E2E8F0;
  color: #64748B;
  border: 1px solid #CBD5E1;
}

.other-month-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  min-height: 48px;
}

.other-month-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(203, 213, 225, 0.7);
}

.calendar-day-cell.is-today {
  border: 2px solid #059669;
  background: #F0FDF4;
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cal-day-number {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.calendar-day-cell.is-today .cal-day-number {
  color: #D97706;
  background: #FEF3C7;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.day-add-btn {
  opacity: 0;
  font-size: 0.8rem;
  color: var(--primary);
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: opacity 0.2s;
}

.calendar-day-cell:hover .day-add-btn {
  opacity: 1;
}

.day-campaign-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* Campaign Entry Pill inside a day cell */
.day-campaign-pill {
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: transform 0.15s ease;
  border-left: 3px solid transparent;
}

.day-campaign-pill:hover {
  transform: scale(1.02);
}

.day-campaign-pill.amber {
  background: #FEF3C7;
  color: #92400E;
  border-left-color: #F59E0B;
  border: 1px solid #FDE68A;
  border-left-width: 3px;
}

.day-campaign-pill.green {
  background: #D1FAE5;
  color: #065F46;
  border-left-color: #10B981;
  border: 1px solid #A7F3D0;
  border-left-width: 3px;
}

.day-campaign-pill.blue {
  background: #DBEAFE;
  color: #1E40AF;
  border-left-color: #3B82F6;
  border: 1px solid #BFDBFE;
  border-left-width: 3px;
}

.pill-time-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.pill-snippet {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
  opacity: 0.85;
  font-weight: 500;
}

/* ================= KNOWLEDGE BASE MANAGER & ADD-ON HUB ================= */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kb-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
}

.kb-card:hover {
  border-color: #059669;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.12);
  transform: translateY(-2px);
}

.kb-card.active-kb {
  border: 2px solid #059669;
  background: #F0FDF4;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.16);
}

.kb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 8px;
}

.kb-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}

.kb-expiry-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.expiry-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.expiry-badge.active {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.expiry-badge.upcoming {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.expiry-badge.expired {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #CBD5E1;
}

.kb-files-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.kb-file-tag {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kb-file-tag.doc { border-color: #BFDBFE; background: #F0F9FF; color: #1E40AF; }
.kb-file-tag.sheet { border-color: #A7F3D0; background: #ECFDF5; color: #065F46; }
.kb-file-tag.pdf { border-color: #FECACA; background: #FEF2F2; color: #991B1B; }

.kb-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  border-top: 1px dashed #E2E8F0;
  padding-top: 12px;
}

/* ================= FILE DROPZONE & INGESTION ================= */
.kb-file-dropzone {
  border: 2px dashed #CBD5E1;
  background: #F8FAFC;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.kb-file-dropzone:hover, .kb-file-dropzone.dragover {
  border-color: #059669;
  background: #F0FDF4;
}

.dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
  display: block;
}

.dropzone-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.dropzone-text small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.file-pill-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.file-pill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
}

.file-pill-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-remove-btn {
  background: none;
  border: none;
  color: #EF4444;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

.file-remove-btn:hover {
  background: #FEE2E2;
}

.modal-box.max-w-2xl {
  max-width: 760px;
}

/* ================= CAMPAIGN HUB (DEDICATED SEPARATE TAB) ================= */
.campaign-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.campaign-hub-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.campaign-hub-card:hover {
  border-color: #059669;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.12);
  transform: translateY(-2px);
}

.camp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 10px;
}

.camp-card-icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.camp-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.camp-card-icon.amber { background: #FEF3C7; border-color: #FDE68A; }
.camp-card-icon.blue { background: #DBEAFE; border-color: #BFDBFE; }
.camp-card-icon.green { background: #D1FAE5; border-color: #A7F3D0; }

.camp-card-title-text h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.camp-card-title-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.camp-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  background: #F8FAFC;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #E2E8F0;
  font-size: 0.82rem;
}

.camp-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-body);
}

.camp-meta-item .meta-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.78rem;
}

.camp-meta-item strong {
  color: var(--text-main);
  font-weight: 700;
}

.camp-preview-snippet {
  background: #FFFDF7;
  border-left: 3px solid #F59E0B;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #475569;
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.4;
}

.camp-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #F1F5F9;
  padding-top: 14px;
  gap: 8px;
  flex-wrap: wrap;
}

/* Template Picker in Wizard ("Anak SD pun Bisa") */
.template-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.template-card-choice {
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.template-card-choice:hover {
  border-color: #059669;
  background: #F0FDF4;
}

.template-card-choice.active {
  border-color: #059669;
  background: #ECFDF5;
  box-shadow: 0 0 0 2px #059669;
  transform: translateY(-2px);
}

.template-card-choice .tmpl-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.template-card-choice:hover .tmpl-icon {
  transform: scale(1.15) rotate(4deg);
}

.template-card-choice h4 {
  font-size: 0.96rem;
  font-weight: 800;
  margin: 0 0 3px 0;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.template-card-choice p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
}

/* ================= DELIGHTFUL CAMPAIGN HUB ENHANCEMENTS ================= */

.campaign-hub-card.amber-glow:hover {
  border-color: #F59E0B;
  box-shadow: var(--shadow-md);
}

.campaign-hub-card.blue-glow:hover {
  border-color: #2563EB;
  box-shadow: var(--shadow-md);
}

.campaign-hub-card.green-glow:hover {
  border-color: #059669;
  box-shadow: var(--shadow-md);
}

.camp-duration-strip {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 10px 0 14px 0;
}

.camp-progress-track {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.camp-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.camp-progress-fill.amber { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.camp-progress-fill.blue { background: linear-gradient(90deg, #2563EB, #60A5FA); }
.camp-progress-fill.green { background: linear-gradient(90deg, #059669, #34D399); }

/* Realistic WhatsApp Chat Bubble Mockup */
.wa-chat-preview-wrap {
  background: #EFEAE2 url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
  background-size: 240px;
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #CBD5E1;
  position: relative;
}

.wa-chat-preview-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.wa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  display: inline-block;
}

.wa-bubble-mockup {
  background: #E1FFC7;
  border-radius: 8px 8px 2px 8px;
  padding: 9px 12px 6px 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.14);
  max-width: 96%;
  margin-left: auto;
  position: relative;
  border: 1px solid #C7EEAF;
}

.wa-bubble-text {
  font-size: 0.82rem;
  color: #111827;
  line-height: 1.45;
  margin: 0 0 4px 0;
  word-break: break-word;
  white-space: pre-line;
}

.wa-bubble-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 500;
}

.wa-checks {
  color: #38BDF8;
  font-weight: 800;
  letter-spacing: -1px;
}

/* Big Friendly Add Card */
.campaign-hub-card.create-new-dashed {
  border: 2px dashed #94A3B8;
  background: #F8FAFC;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 380px;
  transition: all 0.25s ease;
}

.campaign-hub-card.create-new-dashed:hover {
  border-color: #059669;
  background: #F0FDF4;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.14);
  transform: translateY(-3px);
}

.create-new-content {
  padding: 24px;
}

.create-new-icon {
  font-size: 3.2rem;
  margin-bottom: 12px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.campaign-hub-card.create-new-dashed:hover .create-new-icon {
  transform: scale(1.2) rotate(8deg);
}

.create-new-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.create-new-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

/* Card Actions */
.camp-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px dashed #E2E8F0;
  padding-top: 14px;
  margin-top: auto;
}

.camp-card-actions .btn {
  flex: 1;
  justify-content: center;
  font-size: 0.82rem;
}

/* ================= WIZARD & TIME PRESET PILLS ================= */

.wizard-steps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F1F5F9;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  margin-bottom: 18px;
}

.wizard-step-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748B;
}

.wizard-step-pill.active {
  color: #059669;
}

.time-preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.time-pill {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.time-pill:hover {
  background: #ECFDF5;
  border-color: #059669;
  color: #059669;
}

.time-pill.active {
  background: #059669;
  border-color: #059669;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

/* Live WhatsApp Phone Modal Preview */
.live-phone-preview {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 10px;
}

.phone-top-bar {
  background: #075E54;
  color: #FFFFFF;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #128C7E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.phone-user-info strong {
  display: block;
  font-size: 0.85rem;
  line-height: 1.2;
}

.phone-user-info small {
  font-size: 0.7rem;
  opacity: 0.85;
}

/* ================= 5 CAMPAIGN TYPES SELECTOR (LANGKAH 1) ================= */

.campaign-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.campaign-type-card {
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  position: relative;
}

.campaign-type-card:hover {
  border-color: #059669;
  background: #F0FDF4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.12);
}

.campaign-type-card.active {
  border-color: #059669;
  background: #ECFDF5;
  box-shadow: 0 0 0 2px #059669;
  transform: translateY(-2px);
}

.campaign-type-card .type-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.campaign-type-card:hover .type-icon {
  transform: scale(1.15) rotate(4deg);
}

.campaign-type-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.campaign-type-card p {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
}

.type-check-indicator {
  display: none;
  font-size: 0.8rem;
  color: #059669;
  font-weight: 800;
}

.campaign-type-card.active .type-check-indicator {
  display: inline-block;
}

/* User Templates Drawer / Dropdown */
.user-templates-drawer {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  transition: all 0.25s ease;
}

.templates-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.template-item-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.template-item-card:hover {
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.template-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.template-item-header h5 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.template-item-body {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-template-state {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
}

.empty-template-state span {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 6px;
}

.empty-template-state h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.empty-template-state p {
  font-size: 0.78rem;
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.4;
}

/* ================= DYNAMIC SCHEDULE PANELS (LANGKAH 2) ================= */

.schedule-panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.schedule-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #E2E8F0;
}

.time-zone-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.auto-computed-badge {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #1E40AF;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

/* Offset Pills for Event Reminder */
.offset-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.offset-pill-label {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.offset-pill-label:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

.offset-pill-label input[type="checkbox"]:checked + span {
  color: #059669;
}

/* Day selector for weekly recurring */
.weekly-days-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.day-pill-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 8px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
}

.day-pill-label:hover {
  background: #ECFDF5;
  border-color: #059669;
}

.day-pill-label input:checked + span {
  color: #059669;
  font-weight: 800;
}

/* Non-truncating Form Selects */
.form-select.wrap-text {
  white-space: normal;
  height: auto;
  min-height: 40px;
  line-height: 1.4;
  padding: 8px 12px;
}

.date-validation-hint {
  font-size: 0.75rem;
  margin-top: 4px;
  display: block;
}

.date-validation-hint.error {
  color: #DC2626;
  font-weight: 700;
}

.date-validation-hint.valid {
  color: #059669;
  font-weight: 600;
}

/* ================= 3 PILAR KUSTOMISASI PROGRAM (NOMOR, ADD-ON, KE SIAPA) ================= */

.custom-config-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.custom-config-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.custom-config-card:hover {
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.08);
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pillar-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #059669;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #A7F3D0;
  flex-shrink: 0;
}

.pillar-header strong {
  font-size: 0.88rem;
  color: #0F172A;
  display: block;
}

.pillar-header small {
  font-size: 0.72rem;
  color: #64748B;
  display: block;
}

.pillar-hint {
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 6px;
  line-height: 1.3;
}

/* ================= LIVE PIPELINE ROUTING BOX (SUPER CLEAR) ================= */

.routing-pipeline-box {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.routing-pipeline-box.card-variant {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin: 10px 0;
  font-size: 0.75rem;
}

.routing-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.routing-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #64748B;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.routing-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.routing-pipeline-box.card-variant .routing-value {
  font-size: 0.76rem;
}

.routing-arrow {
  color: #059669;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0 4px;
  flex-shrink: 0;
}

/* ================= TANDANG-STYLE CALENDAR LAYOUT & POPUP ================= */

/* Top Agenda Horizontal Cards Grid */
.cal-agenda-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 10px;
}

.cal-agenda-strip-header h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.cal-agenda-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.cal-agenda-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.cal-agenda-card:hover {
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(5,150,105,0.08);
  transform: translateY(-2px);
}

.cal-agenda-card.active-subuh { border-left: 4px solid #F59E0B; }
.cal-agenda-card.active-dinas { border-left: 4px solid #10B981; }
.cal-agenda-card.active-event { border-left: 4px solid #3B82F6; }

.cal-agenda-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cal-agenda-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 6px;
  line-height: 1.3;
}

.cal-agenda-card-meta {
  font-size: 0.74rem;
  color: #64748B;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.cal-agenda-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cal-agenda-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #E2E8F0;
  padding-top: 6px;
  margin-top: 4px;
}

.cal-agenda-card-link {
  font-size: 0.76rem;
  font-weight: 700;
  color: #059669;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cal-agenda-card-link:hover {
  text-decoration: underline;
}

/* 2-Column Calendar Layout (Sidebar + Main Grid) */
.cal-two-column-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: 100%;
}

.cal-two-column-layout > * {
  min-width: 0;
}

@media (max-width: 1024px) {
  .cal-two-column-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Kalender (Mini Cal + Filters + Agenda Hari Ini) */
.cal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mini-cal-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.mini-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mini-cal-header strong {
  font-size: 0.84rem;
  color: #1E293B;
}

.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.mini-cal-day-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94A3B8;
  padding: 2px 0;
}

.mini-cal-day-cell {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 2px;
  border-radius: 4px;
  cursor: pointer;
  color: #334155;
  transition: all 0.15s;
}

.mini-cal-day-cell:hover {
  background: #E2E8F0;
}

.mini-cal-day-cell.other {
  color: #94A3B8;
  background: #F8FAFC;
  cursor: default;
  opacity: 0.6;
}

.mini-cal-day-cell.today {
  background: #0F172A;
  color: #FFFFFF;
  font-weight: 800;
}

.mini-cal-day-cell.selected {
  background: #059669;
  color: #FFFFFF;
  font-weight: 800;
}

.mini-cal-day-cell.has-event {
  position: relative;
}

.mini-cal-day-cell.has-event::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #059669;
}

.cal-sidebar-filter {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.cal-sidebar-filter-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.cal-sidebar-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-sidebar-checkbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #334155;
  cursor: pointer;
}

.cal-day-agenda-box {
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 12px;
}

.cal-day-agenda-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cal-day-agenda-header strong {
  font-size: 0.78rem;
  color: #1E293B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cal-day-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.cal-day-agenda-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.15s;
}

.cal-day-agenda-item:hover {
  border-color: #059669;
  background: #F0FDF4;
}

/* Kalender Header Days & Badges */
.cal-header-sat {
  color: #E11D48 !important;
}

.cal-header-sun {
  color: #E11D48 !important;
}

.badge-hari-ini {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.pill-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.pill-status-dot.green { background: #10B981; }
.pill-status-dot.amber { background: #F59E0B; }
.pill-status-dot.blue { background: #3B82F6; }

/* ================= MULTI-APLIKASI KLIEN GATEWAY & PROGRAM PROGRESS ================= */

.multi-app-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.client-app-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  position: relative;
}

.client-app-card:hover {
  border-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5,150,105,0.08);
}

.client-app-card.selected {
  border-color: #059669;
  background: #F0FDF4;
  box-shadow: 0 0 0 2px #10B981;
}

.client-app-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.client-app-card-icon {
  font-size: 1.6rem;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.client-app-card.selected .client-app-card-icon {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.client-app-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 3px;
}

.client-app-card-desc {
  font-size: 0.75rem;
  color: #64748B;
  margin-bottom: 10px;
  line-height: 1.35;
}

.client-app-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #E2E8F0;
  padding-top: 8px;
  font-size: 0.72rem;
}

/* Banner Program yang Sedang Berjalan */
.active-program-banner {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 18px;
  position: relative;
}

.active-program-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.active-program-banner h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px;
}

.program-progress-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 10px;
}

.progress-bar-track {
  width: 100%;
  height: 9px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress-bar-fill.green { background: #10B981; }
.progress-bar-fill.blue { background: #3B82F6; }
.progress-bar-fill.amber { background: #F59E0B; }
.progress-bar-fill.purple { background: #8B5CF6; }

.active-bot-breakdown-card {
  margin-top: 12px;
}

/* ================= HERO BANNER PROGRAM CAMPAIGN SEDANG BERJALAN ================= */
.active-running-campaign-hub-banner {
  background: #FFFFFF;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

.active-running-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #DCFCE7;
  padding-bottom: 12px;
}

.active-running-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.active-running-timing-box {
  background: #FFFFFF;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.timing-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: #059669;
}

/* Hero Progress Section */
.hero-progress-section {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.hero-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-track {
  height: 12px;
  background: #E2E8F0;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.hero-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: #10B981;
}

.hero-progress-ticks {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 600;
  margin-top: 8px;
}

.tick-today {
  color: #059669;
  background: #DCFCE7;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid #86EFAC;
}

/* Bot Pipeline in Hero Banner */
.hero-bot-status-card {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  padding: 14px 16px;
}

.hero-bot-status-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.hero-bot-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.bot-pip-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 12px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.bot-pip-step:hover {
  border-color: #3B82F6;
  transform: translateY(-1px);
}

.pip-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.pip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.pip-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pip-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Overview Pill Widget */
.active-prog-overview-pill {
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  transition: all 0.2s ease;
}

.active-prog-overview-pill:hover {
  background: #DCFCE7;
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

/* Modular Pipeline on Campaign Cards */
.camp-card-modular-pipeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0;
}

.pip-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  gap: 8px;
}

.pip-card-row .lbl {
  color: #64748B;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pip-card-row .val {
  font-weight: 700;
  color: #1E293B;
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ================= LAPORAN & RIWAYAT KINERJA 2-ARAH (REPORTS) ================= */
.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.report-kpi-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.report-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.report-kpi-card.green { border-left: 5px solid #10B981; }
.report-kpi-card.blue { border-left: 5px solid #3B82F6; }
.report-kpi-card.amber { border-left: 5px solid #F59E0B; }
.report-kpi-card.purple { border-left: 5px solid #8B5CF6; }

.report-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.report-kpi-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.report-kpi-number {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.report-kpi-percent {
  font-size: 0.85rem;
  font-weight: 700;
}

.report-kpi-foot {
  font-size: 0.72rem;
  color: #64748B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  border-top: 1px dashed #F1F5F9;
  padding-top: 6px;
}

/* Report Sub-filter Bar */
.report-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.report-pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.report-filter-pill {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.report-filter-pill:hover {
  border-color: #3B82F6;
  color: #2563EB;
  background: #EFF6FF;
}

.report-filter-pill.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.report-filter-pill.active.pill-delivered {
  background: #059669;
  border-color: #059669;
}

.report-filter-pill.active.pill-pending {
  background: #D97706;
  border-color: #D97706;
}

.report-filter-pill.active.pill-replied {
  background: #2563EB;
  border-color: #2563EB;
}

.pill-count {
  background: rgba(0,0,0,0.08);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.7rem;
}

.report-filter-pill.active .pill-count {
  background: rgba(255,255,255,0.25);
}

.report-search-wrap {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 4px 10px;
  width: 260px;
}

.report-search-wrap input {
  border: none;
  outline: none;
  font-size: 0.78rem;
  width: 100%;
  background: transparent;
}

/* Status Badges for Delivery Report */
.badge-del-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-del-status.read {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.badge-del-status.delivered {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.badge-del-status.pending {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.badge-del-status.failed {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

/* Inbound Reply Snippet in Table */
.reply-bubble-preview {
  background: #F1F5F9;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 0.75rem;
  color: #1E293B;
  border: 1px solid #E2E8F0;
  max-width: 280px;
  line-height: 1.35;
}

.reply-meta {
  font-size: 0.68rem;
  color: #64748B;
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
}

.bot-handled-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 4px;
}

/* Conversation Thread Modal (WhatsApp Style) */
.modal-chat-thread-box {
  background: #EFEAE2;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 580px;
  max-width: 620px;
  width: 95%;
  margin: 0 auto;
  box-shadow: 0 12px 36px rgba(0,0,0,0.2);
}

.chat-thread-header {
  background: #075E54;
  color: #FFFFFF;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-thread-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-thread-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #128C7E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.chat-thread-meta h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
  color: #FFFFFF;
}

.chat-thread-meta small {
  font-size: 0.72rem;
  color: #A7F3D0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-thread-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-image: radial-gradient(#CBD5E1 0.75px, transparent 0.75px);
  background-size: 12px 12px;
}

.chat-msg {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.45;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.chat-msg.outbound {
  background: #E1FFC7;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  border: 1px solid #C7EEAF;
}

.chat-msg.inbound {
  background: #FFFFFF;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  border: 1px solid #E2E8F0;
}

.chat-msg-sender {
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.chat-msg.outbound .chat-msg-sender { color: #065F46; }
.chat-msg.inbound .chat-msg-sender { color: #1E40AF; }

.chat-msg-time {
  font-size: 0.66rem;
  color: #64748B;
  text-align: right;
  margin-top: 3px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.chat-thread-footer {
  background: #F0F2F5;
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #E2E8F0;
}

.chat-thread-input {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.8rem;
  outline: none;
}

.chat-thread-input:focus {
  border-color: #075E54;
}

