/* ==========================================================================
   DESIGN SYSTEM & CSS STYLESHEET
   Sistem Logbook Aktivitas Penelitian Lapangan Mahasiswa
   Mobile-First, Modern, Touch-Friendly & Rich Aesthetics
   ========================================================================== */

:root {
  /* Curated Palette: Agro-Emerald Academic Elegance */
  --color-primary: #059669;        /* Emerald Green */
  --color-primary-dark: #064e3b;   /* Forest Green Solid */
  --color-primary-light: #10b981;  /* Fresh Mint */
  --color-primary-soft: #ecfdf5;   /* Light Green tint */
  
  --color-wajo: #d97706;          /* Amber Gold (Sutra / Wajo) */
  --color-wajo-soft: #fef3c7;
  
  --color-luwu: #0284c7;          /* Sky Deep Blue (Luwu) */
  --color-luwu-soft: #e0f2fe;

  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  
  --color-danger: #ef4444;
  --color-danger-soft: #fee2e2;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Grounded Enterprise Shadows & Clear Contrast (Anti-Slop R-12) */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 2px 4px -1px rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 4px 8px -2px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 8px 16px -4px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);

  /* Intentional Radius Tokens - No Overly Bubbly / Pill Shapes (Anti-Slop R-11) */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: #f4f6f8;
  color: var(--color-slate-900);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* APP HEADER */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .brand-logo-img {
    height: 36px;
    max-width: 200px;
  }
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--color-slate-500);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-google-header {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: white;
  color: var(--color-slate-800);
  border: 1px solid var(--color-slate-300);
  padding: 7px 13px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-google-header:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1.5px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline-primary:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* DEMO NOTICE BAR */
.demo-notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #92400e;
  font-size: 0.82rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.demo-notice-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 260px;
}

.demo-badge {
  background: #d97706;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.demo-notice-text {
  line-height: 1.4;
  font-weight: 500;
  color: #78350f;
}

.demo-notice-actions {
  flex-shrink: 0;
}

/* GUEST HERO BANNER (LANDING PREVIEW) */
.guest-hero-banner {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  color: white;
  box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.3), 0 8px 10px -6px rgba(6, 78, 59, 0.2);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.guest-hero-banner::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.guest-hero-banner::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #a7f3d0;
}

.hero-tag-pulse {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.4);
}

.hero-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #d1fae5;
  max-width: 720px;
}

.hero-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hero-feature-item {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #064e3b;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
}

.btn-hero-primary:hover {
  background: #ecfdf5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* QUOTA TRACKER */
.quota-progress-container {
  background: white;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quota-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 6px;
}

.quota-title {
  color: var(--color-slate-700);
}

.btn-link-upgrade {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
}

.btn-link-upgrade:hover {
  color: var(--color-primary-dark);
}

.quota-track {
  width: 100%;
  height: 8px;
  background: var(--color-slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quota-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #10b981);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.quota-fill.warning {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.quota-fill.danger {
  background: linear-gradient(90deg, #dc2626, #ef4444);
}

.sync-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--color-slate-100);
  color: var(--color-slate-600);
  border: 1px solid var(--color-slate-200);
}

.sync-badge.synced {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  border-color: #a7f3d0;
}

.sync-badge.synced .sync-dot {
  background-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.sync-badge.local .sync-dot {
  background-color: var(--color-wajo);
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-slate-400);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-slate-200);
  background: white;
  color: var(--color-slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--color-slate-50);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* MAIN CONTAINER */
.app-container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: white;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-slate-200);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-slate-50);
}

.stat-card.total .stat-icon { background: var(--color-primary-soft); }
.stat-card.wajo .stat-icon { background: var(--color-wajo-soft); }
.stat-card.luwu .stat-icon { background: var(--color-luwu-soft); }
.stat-card.interview .stat-icon { background: #ede9fe; }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--color-slate-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-slate-900);
}

/* ACTION BUTTONS */
.action-bar {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: white;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: white;
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

.btn-light {
  background: white;
  color: var(--color-slate-700);
  border: 1px solid var(--color-slate-200);
  padding: 10px 14px;
}

.btn-light:hover {
  background: var(--color-slate-50);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 20px;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

.btn-outline-primary {
  background: white;
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-primary);
}

.btn-outline-primary:hover {
  background: var(--color-primary-soft);
}

.btn-add {
  flex: 1.3;
}

.btn-export {
  flex: 1;
}

/* FILTER & SEARCH */
.filter-section {
  background: white;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--color-slate-400);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 10px 36px 10px 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-slate-200);
  font-family: var(--font-main);
  font-size: 0.88rem;
  background: var(--color-slate-50);
  transition: all var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  background: white;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.btn-clear-search {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--color-slate-400);
  cursor: pointer;
  padding: 4px;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.filter-pills {
  display: flex;
  background: var(--color-slate-100);
  padding: 3px;
  border-radius: var(--radius-md);
  gap: 2px;
}

.pill-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--color-slate-600);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-btn.active {
  background: white;
  color: var(--color-primary-dark);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.filter-select-wrapper {
  flex: 1;
  min-width: 180px;
}

.filter-select {
  width: 100%;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-slate-200);
  background: white;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-slate-700);
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* FEED SECTION */
.logbook-feed-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.feed-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-slate-800);
}

.feed-badge {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-slate-500);
  background: var(--color-slate-200);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   LOGBOOK ACTIVITY CARD (ELEVATED MODERN FEED CARDS)
   ========================================================================== */
.logbook-card, .log-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-slate-200);
  padding: 18px 20px;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.logbook-card:hover, .log-card:hover {
  box-shadow: 0 10px 22px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* Card Top Bar (Badges & Actions) */
.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--color-slate-200);
}

.card-top-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Card Respondent & Session Title Row */
.card-respondent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-respondent-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--color-slate-900);
  line-height: 1.35;
}

.card-datetime-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  padding: 3px 8px;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.78rem;
}

.meta-time-dot {
  color: var(--color-slate-400);
}

/* Card Location Row with SVG Pin */
.card-location-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-slate-600);
  line-height: 1.4;
}

.card-location-row .location-icon {
  flex-shrink: 0;
  color: var(--color-primary, #064e3b);
}

.card-location-text {
  word-break: break-word;
}

.location-kab-text {
  color: var(--color-slate-900);
  font-weight: 700;
}

.location-kab-text.wajo {
  color: #92400e;
}

.location-kab-text.luwu {
  color: #0369a1;
}

/* Legacy Card Header & Meta (Backward Compatibility) */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--color-slate-200);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-slate-100);
  color: var(--color-slate-800);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--color-slate-200);
}

.meta-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #a7f3d0;
}

.meta-duration {
  font-size: 0.76rem;
  color: var(--color-slate-500);
  font-weight: 500;
}

/* Card Actions Menu (Edit & Delete Buttons) */
.card-actions-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid var(--color-slate-200);
  background: #ffffff;
  color: var(--color-slate-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-card-action.btn-edit-entry {
  color: #0369a1;
  border-color: #bae6fd;
  background: #f0f9ff;
}

.btn-card-action.btn-edit-entry:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #075985;
}

.btn-card-action.btn-delete-entry {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.btn-card-action.btn-delete-entry:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

/* Location Row */
.card-location {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 750;
  border: 1px solid #a7f3d0;
  letter-spacing: 0.2px;
}

.location-badge.wajo {
  background: var(--color-wajo-soft);
  color: #92400e;
  border-color: #fde68a;
}

.location-badge.luwu {
  background: var(--color-luwu-soft);
  color: #0369a1;
  border-color: #bae6fd;
}

.badge-dummy-data {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.location-detail {
  font-size: 0.82rem;
  color: var(--color-slate-600);
  font-weight: 600;
}

/* Activity Type & Respondent Row */
.card-activity-type {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 700;
}

.activity-badge.badge-interview {
  background: var(--color-wajo-soft);
  color: #92400e;
  border: 1px solid #fde68a;
}

.activity-badge.badge-other {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.respondent-info {
  font-size: 0.84rem;
  color: var(--color-slate-800);
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

/* Card Main Layout: Two Columns (Text Left, Photo Right) */
.card-main-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.card-text-col {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-photo-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Content Body & Output */
.card-body-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--color-slate-700);
  line-height: 1.55;
  word-break: break-word;
}

.card-output {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: #f0fdf4;
  border-left: 3px solid #10b981;
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.82rem;
  color: #064e3b;
  line-height: 1.45;
  word-break: break-word;
}

.card-output strong {
  color: #065f46;
  flex-shrink: 0;
}

/* Photo Thumbnail & GPS Cam Badge (Right Side Preview) */
.card-thumb {
  position: relative;
  width: 200px;
  height: 145px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-slate-200);
  background: var(--color-slate-100);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-fast);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.card-thumb:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.card-thumb:hover img {
  transform: scale(1.05);
}

.thumb-gps-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.2px;
}

@media (max-width: 640px) {
  /* BARIS AKSI MOBILE (2 TOMBOL SEIMBANG 50/50 DENGAN TOUCH TARGET 44PX) */
  .action-bar {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .action-bar .btn {
    flex: 1 1 0%;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: var(--radius-sm, 6px);
    justify-content: center;
    text-align: center;
  }

  .action-bar .btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .action-bar .btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* TAB NAVIGASI RUANG KERJA MOBILE (ANTI-MELIPAT 3 BARIS) */
  .app-workspace-nav {
    display: flex;
    gap: 6px;
    width: 100%;
    margin-bottom: 16px;
  }

  .workspace-nav-tab {
    flex: 1 1 0%;
    justify-content: center;
    padding: 10px 6px;
    font-size: 0.82rem;
    text-align: center;
    border-radius: var(--radius-sm, 6px) var(--radius-sm, 6px) 0 0;
  }

  .nav-tab-label-full {
    display: none !important;
  }

  .nav-tab-label-short {
    display: inline !important;
  }

  .nav-count-badge {
    padding: 2px 6px;
    font-size: 0.7rem;
  }

  /* FILTER & SEARCH MOBILE (STANDAR 16PX CEGAH AUTO-ZOOM IOS SAFARI) */
  .search-box input {
    font-size: 16px !important;
    min-height: 44px;
    padding: 10px 36px 10px 38px;
  }

  .filter-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .filter-pills {
    display: flex;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 3px;
    gap: 4px;
  }

  .filter-pills::-webkit-scrollbar {
    display: none;
  }

  .pill-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 0.8rem;
    min-height: 36px;
  }

  .filter-select-wrapper {
    width: 100%;
    min-width: 0;
  }

  .filter-select {
    width: 100%;
    font-size: 16px !important;
    min-height: 44px;
    padding: 8px 12px;
  }

  /* KARTU LOGBOOK CATATAN LAPANGAN MOBILE */
  .logbook-card {
    padding: 14px 14px;
    gap: 10px;
    border-radius: var(--radius-md, 8px);
  }

  .card-top-bar {
    padding-bottom: 8px;
  }

  .card-top-badges {
    gap: 4px;
  }

  .btn-card-action {
    padding: 6px 12px;
    min-height: 32px;
    font-size: 0.78rem;
  }

  .card-respondent-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .card-respondent-title {
    font-size: 0.94rem;
  }

  .card-datetime-badge {
    font-size: 0.74rem;
    padding: 3px 7px;
  }

  .card-location-row {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .card-main-layout {
    flex-direction: column;
    gap: 12px;
  }

  .card-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .card-output {
    font-size: 0.78rem;
    padding: 7px 10px;
  }

  .card-photo-col {
    width: 100%;
    align-items: flex-start;
  }

  .card-photo-col .card-thumb {
    width: 100%;
    max-width: 100%;
    height: 160px;
  }

  /* ==========================================================================
     HALAMAN MEDIA WAWANCARA MOBILE (HEMAT RUANG VERTIKAL & KONTEN LANGSUNG TERLIHAT)
     ========================================================================== */
  .media-page-header {
    margin-bottom: 12px;
    gap: 10px;
  }

  .media-page-title {
    font-size: 1.18rem;
    margin-bottom: 2px;
  }

  .media-page-subtitle {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--color-slate-500, #64748b);
  }

  .media-header-actions {
    width: 100%;
  }

  .media-header-actions #btnMediaOpenAddLogbook {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    font-size: 0.86rem;
  }

  /* RINGKASAN STATISTIK MEDIA: GRID 2x2 MIKRO HEMAT TEMPAT (TIDAK LAGI 1 KOLOM TUMPUK 4) */
  .media-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }

  .media-stat-card {
    padding: 8px 12px;
    gap: 2px;
    border-radius: var(--radius-sm, 6px);
  }

  .stat-count-num {
    font-size: 1.25rem;
    line-height: 1;
  }

  .stat-count-label {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  /* BAR FILTER & PENCARIAN MEDIA MOBILE */
  .media-filter-bar {
    gap: 8px;
    margin-bottom: 10px;
  }

  .media-search-box {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 auto !important;
  }

  .media-search-box input {
    font-size: 16px !important;
    min-height: 42px;
  }

  .media-filter-select-wrapper,
  .media-dropdown-container {
    width: 100%;
    flex: 0 0 auto !important;
    min-width: 0;
  }

  .custom-dropdown-trigger {
    width: 100%;
    font-size: 15px;
    min-height: 44px;
    padding: 8px 12px;
  }

  .media-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .media-card {
    padding: 12px 10px;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }
}


/* EMPTY STATE */
.empty-state {
  background: white;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-slate-300);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 4px;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-slate-800);
}

.empty-state p {
  font-size: 0.85rem;
  color: var(--color-slate-500);
  max-width: 320px;
}

/* MODAL OVERLAY & BOTTOM SHEET */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

.modal-sheet {
  background: white;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .modal-sheet {
    border-radius: var(--radius-xl);
    max-height: 85vh;
  }

  .modal-sheet.modal-sheet-large {
    max-width: 720px;
    max-height: 88vh;
  }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-slate-900);
}

.modal-subtitle {
  font-size: 0.78rem;
  color: var(--color-slate-500);
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-slate-100);
  color: var(--color-slate-500);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-slate-300) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--color-slate-300);
  border-radius: var(--radius-full);
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--color-slate-400);
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--color-slate-200);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--color-slate-50);
}

/* FORM ELEMENTS */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row > * {
  min-width: 0;
}

.flex-1 {
  flex: 1;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-slate-700);
}

.form-label.required::after {
  content: " *";
  color: var(--color-danger);
}

.badge-optional {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-slate-500);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-slate-300);
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: var(--color-slate-900);
  background: white;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 70px;
}

.form-hint {
  font-size: 0.72rem;
  color: var(--color-slate-500);
}

/* TOGGLE GROUP FOR KABUPATEN */
.toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toggle-option {
  position: relative;
  cursor: pointer;
}

.toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-slate-200);
  background: white;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-slate-600);
  transition: all var(--transition-fast);
}

.toggle-option input:checked + .toggle-button {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

/* DYNAMIC BOXES */
.dynamic-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  padding: 12px;
  border-radius: var(--radius-md);
  animation: fadeIn 0.2s ease;
}

.icon-label {
  margin-right: 4px;
}

/* PHOTO UPLOAD ZONE & PREVIEW (PRESISI & ANTI-OVERFLOW) */
.photo-upload-zone {
  border: 1.5px dashed var(--color-slate-300);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  background: var(--color-slate-50);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  overflow: hidden;
}

.photo-upload-zone:hover {
  border-color: var(--color-slate-400);
  background: var(--color-slate-100);
}

.photo-upload-zone.has-photo {
  padding: 0;
  border: 1px solid var(--color-slate-300);
  background: #0f172a;
  cursor: default;
}

.file-input-hidden,
.media-file-input-hidden {
  display: none !important;
  position: absolute;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.photo-upload-zone.has-photo .file-input-hidden {
  display: none !important;
}

.upload-prompt,
.upload-content-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.upload-content-prompt p {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate-800);
}

.upload-content-prompt small {
  font-size: 0.74rem;
  color: var(--color-slate-500);
  max-width: 320px;
}

.upload-icon {
  font-size: 2rem;
}

.upload-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate-800);
}

.upload-subtext {
  font-size: 0.74rem;
  color: var(--color-slate-500);
  max-width: 320px;
}

.photo-preview-wrapper,
.photo-preview-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  max-height: 260px;
  box-shadow: var(--shadow-sm);
}

.photo-preview-wrapper img,
.photo-preview-container img,
#photoPreviewImg {
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.photo-preview-badge,
.photo-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  letter-spacing: 0.3px;
  z-index: 4;
}

.btn-remove-photo {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(239, 68, 68, 0.92);
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.btn-remove-photo:hover {
  background: var(--color-danger);
  transform: scale(1.08);
}

/* EXPORT MODAL CARDS */
.export-guide {
  font-size: 0.85rem;
  color: var(--color-slate-600);
  margin-bottom: 6px;
}

.export-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 480px) {
  .export-options-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.export-opt-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  background: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.export-opt-card:hover {
  background: var(--color-slate-50);
  border-color: var(--color-slate-300);
}

.export-opt-card input[type="radio"] {
  accent-color: var(--color-primary);
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.export-opt-card span {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-slate-700);
}

.export-opt-card:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.export-opt-card:has(input:checked) span {
  color: var(--color-primary-dark);
  font-weight: 750;
}

.export-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.export-option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.export-option-card:hover {
  background: var(--color-slate-50);
}

.export-option-card input {
  margin-top: 3px;
  accent-color: var(--color-primary);
}

.export-option-card:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.option-title {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--color-slate-900);
}

.option-desc {
  font-size: 0.73rem;
  color: var(--color-slate-500);
}

.export-date-filter {
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-slate-200);
}

.export-summary-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 10px 14px;
  border-radius: var(--radius-md);
}

.summary-icon {
  font-size: 1.6rem;
}

.summary-title {
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--color-primary-dark);
}

.summary-desc {
  font-size: 0.72rem;
  color: var(--color-slate-600);
}

/* SETTINGS MODAL */
.settings-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-slate-900);
}

.settings-desc {
  font-size: 0.8rem;
  color: var(--color-slate-600);
  line-height: 1.4;
}

.settings-actions {
  display: flex;
  gap: 8px;
}

.test-result-box {
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
}

.test-result-box.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.test-result-box.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.guide-box {
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  color: var(--color-slate-700);
}

.guide-box h4 {
  font-weight: 750;
  margin-bottom: 6px;
  color: var(--color-slate-900);
}

.guide-box ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* LIGHTBOX OVERLAY */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: white;
  color: black;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox-caption {
  color: white;
  font-size: 0.85rem;
  margin-top: 8px;
  text-align: center;
}

/* TOAST NOTIFIKASI */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-slate-900);
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.success {
  background: #064e3b;
  border: 1px solid #059669;
}

.toast.error {
  background: #7f1d1d;
  border: 1px solid #dc2626;
}

/* SPINNER */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

/* UTILITIES & ANIMATIONS */
.hidden {
  display: none !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes slideToast {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ==========================================================================
   KOMPONEN SAAS: MULTI-USER, PRO PLAN, PAYMENT GATEWAY & WILAYAH
   ========================================================================== */

/* User & Plan Badges in Header (Industry Standard Anti-Slop) */
.user-meta-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-md);
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.2;
}

.badge-plan-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.badge-plan.pro {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
  box-shadow: var(--shadow-sm);
}

.badge-plan.pro .badge-plan-dot {
  background: #d97706;
}

.badge-plan.pro:hover {
  background: #fde68a;
  border-color: #f59e0b;
  transform: translateY(-1px);
}

.badge-plan.free {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.badge-plan.free .badge-plan-dot {
  background: #94a3b8;
}

.badge-plan.free:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Tombol Profil Pengguna di Header (User Chip Trigger) */
.header-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  color: var(--color-slate-800);
  text-decoration: none;
}

.header-user-btn:hover {
  background: #f8fafc;
  border-color: var(--color-slate-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.header-user-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.header-avatar-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--color-slate-100);
  border: 1.5px solid var(--color-slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  user-select: none;
}

.header-user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.header-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-slate-900);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-role {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-slate-500);
}

.header-user-chevron {
  color: var(--color-slate-400);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  margin-left: 2px;
}

.header-user-btn:hover .header-user-chevron {
  color: var(--color-slate-600);
  transform: translateY(1px);
}

/* Tombol Logout di Header */
.header-logout-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  color: var(--color-slate-500);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-logout-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: var(--color-danger);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Mobile Responsive Optimization untuk Header */
@media (max-width: 640px) {
  .header-container {
    padding: 8px 12px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-user-info {
    display: none;
  }

  .header-user-chevron {
    display: none;
  }

  .header-user-btn {
    padding: 2px;
    border-radius: 50%;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .header-user-btn:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .header-avatar-wrapper {
    width: 34px;
    height: 34px;
    border-color: var(--color-slate-300);
  }

  .badge-plan {
    padding: 4px 7px;
    font-size: 0.68rem;
  }

  .header-logout-btn {
    width: 32px;
    height: 32px;
  }
}

/* Quick Regency Chips */
.quick-chips-wrapper {
  margin-top: 8px;
}

.quick-chips-label {
  font-size: 0.75rem;
  color: var(--color-slate-500);
  margin-bottom: 4px;
}

.quick-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-slate-100);
  color: var(--color-slate-700);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: var(--color-primary-light);
}

.chip-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary-dark);
}

/* Auth Modal Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-slate-200);
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  color: var(--color-slate-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.btn-google-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  color: var(--color-slate-800);
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.btn-google-login:hover {
  background: #f8fafc;
  box-shadow: var(--shadow-md);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--color-slate-400);
  font-size: 0.78rem;
  margin: 16px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--color-slate-200);
}

.auth-divider span {
  padding: 0 10px;
}

/* ==========================================================================
   1. DEDICATED LOGIN SCREEN (GUEST VIEW)
   ========================================================================== */
.login-view-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: #f8fafc;
  min-height: calc(100vh - 70px);
}

.login-card-container {
  max-width: 960px;
  width: 100%;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--color-slate-200);
}

@media (min-width: 820px) {
  .login-card-container {
    grid-template-columns: 1.15fr 1fr;
  }
}

/* Brand & Hero Panel (Left) - Grounded Solid Forest Green */
.login-brand-panel {
  background: var(--color-primary-dark);
  color: white;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.login-badge-pill {
  display: inline-block;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #a7f3d0;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.login-hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.login-hero-desc {
  font-size: 0.88rem;
  color: #d1fae5;
  line-height: 1.6;
  margin-bottom: 28px;
}

.login-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: #ecfdf5;
  line-height: 1.45;
}

.feat-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: #a7f3d0;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Form Panel (Right) */
.login-form-panel {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.auth-box-header {
  margin-bottom: 24px;
}

.auth-box-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 4px;
}

.auth-box-subtitle {
  font-size: 0.84rem;
  color: var(--color-slate-500);
}

.btn-google-auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  background: white;
  color: var(--color-slate-800);
  border: 1.5px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
}

.btn-google-auth:hover {
  background: #f8fafc;
  border-color: var(--color-slate-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.auth-tab-switch {
  display: flex;
  background: var(--color-slate-100);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 18px;
}

.tab-auth-btn {
  flex: 1;
  padding: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--color-slate-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-auth-btn.active {
  background: white;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}

.auth-aux-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
  margin-bottom: 8px;
}

.btn-link-aux {
  background: none;
  border: none;
  color: var(--color-slate-500);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
}

.btn-link-aux:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.auth-notice-box {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--color-slate-700);
  line-height: 1.45;
}

.auth-notice-box.success {
  background: var(--color-primary-soft);
  border-color: #a7f3d0;
  color: var(--color-primary-dark);
}

.auth-notice-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

/* EMAIL VERIFICATION DASHBOARD BANNER */
.email-verification-banner {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.email-verification-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 260px;
}

.verification-badge {
  background: #ca8a04;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.verification-text {
  font-size: 0.82rem;
  color: #854d0e;
  line-height: 1.4;
}

.email-verification-actions {
  display: flex;
  gap: 8px;
}

.btn-outline-neutral {
  background: white;
  color: var(--color-slate-700);
  border: 1px solid var(--color-slate-300);
}

.btn-outline-neutral:hover {
  background: var(--color-slate-50);
}

.btn-ghost {
  background: transparent;
  color: var(--color-slate-600);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--color-slate-100);
  color: var(--color-slate-900);
}

/* Gerbang Verifikasi Email Dedikasi */
.verify-card-container {
  max-width: 520px;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
}

.verify-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.verify-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  border: 1px solid #a7f3d0;
}

.verify-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-slate-900);
  letter-spacing: -0.3px;
  margin: 0;
}

.verify-subtitle {
  font-size: 0.85rem;
  color: var(--color-slate-600);
  line-height: 1.5;
  margin: 0;
}

.verify-email-display-box {
  background: #f8fafc;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.verify-email-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.verify-email-value {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--color-primary-dark);
  word-break: break-all;
}

.verify-instruction-box {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verify-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--color-slate-700);
  line-height: 1.45;
}

.verify-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--color-slate-100);
  border: 1px solid var(--color-slate-300);
  color: var(--color-slate-700);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.verify-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.verify-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.verify-secondary-actions .btn {
  flex: 1;
  font-size: 0.8rem;
  padding: 8px 12px;
  text-align: center;
  justify-content: center;
}

.verify-footer-note {
  font-size: 0.74rem;
  color: var(--color-slate-400);
  text-align: center;
  line-height: 1.4;
  margin: 0;
}

/* 2. Banner Sampel Data */
.dummy-notice-bar {
  background: linear-gradient(90deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dummy-notice-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 260px;
}

.dummy-badge {
  background: #3b82f6;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.dummy-notice-text {
  font-size: 0.83rem;
  color: var(--color-slate-700);
  line-height: 1.45;
}

.dummy-notice-actions {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   3. PAYWALL POP-UP (PAKASIR QRIS RP 50.000 / 3 BULAN)
   ========================================================================== */
.paywall-badge-top {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.paywall-price-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.paywall-price-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: var(--color-primary-dark);
}

.paywall-price-tag .currency {
  font-size: 1.15rem;
  font-weight: 800;
}

.paywall-price-tag .amount {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.paywall-price-tag .period {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-slate-600);
  margin-left: 4px;
}

.paywall-price-desc {
  font-size: 0.8rem;
  color: var(--color-slate-600);
  margin-top: 6px;
}

.paywall-benefits-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

@media (min-width: 580px) {
  .paywall-benefits-list {
    grid-template-columns: 1fr 1fr;
  }
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  background: var(--color-slate-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-slate-200);
}

.benefit-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--color-slate-900);
}

.benefit-item p {
  font-size: 0.74rem;
  color: var(--color-slate-500);
  margin-top: 2px;
  line-height: 1.35;
}

.paywall-payment-box {
  background: white;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.paywall-hint {
  font-size: 0.72rem;
  color: var(--color-slate-500);
  text-align: center;
  margin-top: 10px;
}

/* QRIS Card Component (Crisp Solid Border - Anti-Slop R-11 / R-12) */
.qris-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.qris-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-slate-100);
  padding-bottom: 8px;
}

.qris-logo-text {
  font-size: 0.85rem;
  font-weight: 900;
  color: #dc2626;
  letter-spacing: 1px;
}

.qris-order-tag {
  font-size: 0.74rem;
  color: var(--color-slate-500);
  font-family: monospace;
}

.qris-image-container {
  width: 200px;
  height: 200px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-slate-200);
  overflow: hidden;
}

.qris-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Sandbox Notice Box */
.sandbox-notice-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  text-align: left;
}

.sandbox-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.badge-sandbox-tag {
  background: #d97706;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sandbox-text {
  font-size: 0.74rem;
  color: #92400e;
  line-height: 1.45;
  margin: 0;
}

.sandbox-text a {
  color: #78350f;
  font-weight: 700;
  text-decoration: underline;
}

/* Rincian Nominal Pembayaran QRIS */
.qris-amount-summary {
  background: #f8fafc;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 14px;
  text-align: left;
}

.amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--color-slate-600);
  margin-bottom: 5px;
}

.amount-row:last-child {
  margin-bottom: 0;
}

.amount-divider {
  height: 1px;
  background: var(--color-slate-200);
  margin: 8px 0;
}

.amount-row.total-row {
  font-size: 0.88rem;
  color: var(--color-slate-900);
  font-weight: 800;
}

.amount-total {
  color: var(--color-primary-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.qris-instructions {
  font-size: 0.75rem;
  color: var(--color-slate-500);
  margin-top: 10px;
  line-height: 1.4;
}

.qris-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--color-slate-300);
  color: var(--color-slate-700);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  font-size: 0.85rem;
}

.btn-secondary:hover {
  background: var(--color-slate-50);
  border-color: var(--color-slate-400);
  color: var(--color-slate-900);
}

.qris-simulate-container {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-slate-200);
  text-align: center;
}

.btn-simulation-link {
  background: none;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

.btn-simulation-link:hover {
  color: var(--color-primary-dark);
}

.simulate-hint {
  font-size: 0.68rem;
  color: var(--color-slate-400);
  margin-top: 4px;
  line-height: 1.35;
}

/* ==========================================================================
   PORTAL PEMBAYARAN MULTI-CHANNEL PAKASIR API V2
   ========================================================================== */
.channel-section-header {
  margin-bottom: 14px;
  text-align: left;
}

.channel-section-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 2px;
}

.channel-section-desc {
  font-size: 0.76rem;
  color: var(--color-slate-500);
  margin: 0;
}

.channel-group-heading {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-align: left;
}

.payment-channels-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  min-height: 60px;
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: left;
}

.payment-channel-card:hover {
  border-color: var(--color-primary);
  background: #f8fafc;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* Logo Bank & Saluran Pembayaran (Vektor SVG Resmi) */
.channel-logo-wrapper {
  width: 66px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 4px 6px;
  box-sizing: border-box;
  overflow: hidden;
}

.channel-logo-wrapper svg {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: auto;
}

@media (max-width: 480px) {
  .channel-logo-wrapper {
    width: 56px;
    height: 34px;
    padding: 3px 4px;
  }
}

.payment-channel-card.channel-card-featured {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.payment-channel-card.channel-card-featured:hover {
  border-color: var(--color-primary);
  background: #ecfdf5;
}

.channel-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  flex: 1;
  padding-right: 12px;
}

.channel-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.channel-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-slate-900);
}

.channel-badge-pill {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--color-primary);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.channel-desc {
  font-size: 0.72rem;
  color: var(--color-slate-500);
  margin: 0;
  line-height: 1.35;
}

.channel-fee-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-slate-600);
}

.btn-select-channel {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Navigasi Ganti Metode */
.active-payment-nav {
  margin-bottom: 12px;
  text-align: left;
}

.btn-back-channel {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-back-channel:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Virtual Account Card */
.va-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.va-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-slate-100);
  padding-bottom: 8px;
}

.va-bank-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-slate-900);
}

.va-number-container {
  background: #f8fafc;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.va-number-label {
  font-size: 0.72rem;
  color: var(--color-slate-500);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: block;
}

.va-number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  gap: 8px;
}

.va-number-val {
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-slate-900);
  letter-spacing: 1px;
}

.btn-copy {
  background: #ffffff;
  border: 1px solid var(--color-slate-300);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-slate-700);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--color-slate-100);
  border-color: var(--color-slate-400);
}

.btn-copy-sm {
  background: #ffffff;
  border: 1px solid var(--color-slate-300);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-slate-700);
  cursor: pointer;
  white-space: nowrap;
}

.btn-copy-sm:hover {
  background: var(--color-slate-100);
}

.va-expiry-hint {
  font-size: 0.68rem;
  color: var(--color-slate-400);
  margin-top: 4px;
  margin-bottom: 0;
}

.va-amount-container {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.va-instructions-box {
  background: #f8fafc;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.va-instructions-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-slate-800);
  margin-bottom: 6px;
}

.va-instructions-list {
  font-size: 0.72rem;
  color: var(--color-slate-600);
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
}

/* ==========================================================================
   4. RESEARCH PROFILE & HIERARCHICAL LOCATION TREE WIZARD
   ========================================================================== */
.profile-section-card {
  background: white;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.profile-section-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--color-slate-800);
  margin-bottom: 6px;
}

.profile-section-desc {
  font-size: 0.76rem;
  color: var(--color-slate-500);
  margin-bottom: 14px;
}

.section-title-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* Timezone Radio Group */
.timezone-radio-group {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.timezone-radio-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--color-slate-50);
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.timezone-radio-label input[type="radio"] {
  accent-color: var(--color-primary);
  margin: 0;
  cursor: pointer;
}

.timezone-radio-label:hover {
  border-color: var(--color-primary);
  background: white;
}

.timezone-radio-label input[type="radio"]:checked + span {
  color: var(--color-primary-dark);
}

.timezone-radio-label:has(input[type="radio"]:checked) {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

@media (max-width: 480px) {
  .timezone-radio-group {
    flex-direction: column;
  }
}

/* Tree Locations Container */
.locations-tree-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tree-kab-card {
  background: #f8fafc;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 14px;
}

.tree-kab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tree-kab-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-slate-800);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tree-kec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--color-slate-200);
  margin-top: 8px;
}

.tree-kec-card {
  background: white;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.tree-kec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.tree-kec-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-slate-700);
}

.desa-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.desa-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-slate-100);
  border: 1px solid var(--color-slate-200);
  color: var(--color-slate-700);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
}

.desa-chip .chip-remove {
  cursor: pointer;
  color: var(--color-slate-400);
  font-size: 0.85rem;
  font-weight: 800;
}

.desa-chip .chip-remove:hover {
  color: var(--color-danger);
}

.btn-add-chip {
  background: none;
  border: 1px solid var(--color-slate-300);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
}

.btn-add-chip:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
}

/* ==========================================================================
   5. CATEGORY PRESETS & SMART LOGBOOK FORM HELPERS
   ========================================================================== */
.location-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.custom-location-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-slate-600);
  cursor: pointer;
}

.custom-location-toggle input[type="checkbox"] {
  accent-color: var(--color-primary);
  cursor: pointer;
}

.btn-link-action {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0;
}

.btn-link-action:hover {
  text-decoration: underline;
}

.quick-new-category-box {
  background: var(--color-primary-soft);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-top: 8px;
}

.category-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.category-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.category-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-slate-800);
}

.category-item-actions {
  display: flex;
  gap: 6px;
}

.badge-timezone-text {
  font-weight: 700;
  color: var(--color-primary);
}

/* ==========================================================================
   5B. RESPONSIVE MOBILE-FRIENDLY LOGBOOK FORM (TAHAP 41)
   ========================================================================== */
.form-row-locations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

.form-row-datetime {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  align-items: start;
  width: 100%;
}

.datetime-subrow {
  display: contents;
}

.datetime-col-date,
.datetime-col-time {
  min-width: 0;
}

.category-select-wrapper {
  display: flex;
  gap: 8px;
  width: 100%;
  align-items: stretch;
}

.btn-new-category-toggle {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 14px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quick-cat-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.logbook-modal-footer {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
}

/* MOBILE VIEWPORT (<= 640px) */
@media (max-width: 640px) {
  #modalForm .modal-sheet {
    max-height: 92vh;
    max-height: 92dvh;
    width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin: 0;
  }

  #modalForm .modal-header {
    padding: 14px 16px;
  }

  #modalForm .modal-body {
    padding: 16px;
    gap: 14px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* Wilayah: Grid adaptif 2x2 agar dropdown lega & teks tidak terpotong */
  .form-row-locations {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Tanggal & Waktu: Tanggal full-width di atas, Waktu Mulai & Selesai 50%/50% berdampingan */
  .form-row-datetime {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .datetime-col-date {
    width: 100%;
  }

  .datetime-subrow {
    display: flex;
    gap: 10px;
    width: 100%;
  }

  .datetime-col-time {
    flex: 1;
    min-width: 0;
  }

  /* Standar industri font-size 16px agar browser mobile (iOS Safari) tidak auto-zoom */
  #modalForm .form-control {
    font-size: 16px;
    min-height: 44px;
  }

  #modalForm textarea.form-control {
    min-height: 80px;
  }

  #modalForm .btn-close-modal {
    width: 36px;
    height: 36px;
  }

  #modalForm .photo-upload-zone {
    padding: 14px 10px;
  }

  /* Footer tombol aksi di mobile */
  .logbook-modal-footer {
    padding: 12px 16px;
  }

  .logbook-modal-footer #btnCancelAdd {
    flex: 1;
    min-height: 44px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .logbook-modal-footer #btnSubmitLogbook {
    flex: 2;
    min-height: 44px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* PROFIL PENELITIAN & WILAYAH RISET MOBILE-FRIENDLY (TAHAP 44)               */
  #modalProfile .modal-sheet {
    max-height: 92vh;
    max-height: 92dvh;
    width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin: 0;
  }

  #modalProfile .modal-header {
    padding: 14px 16px;
  }

  #modalProfile .modal-title {
    font-size: 1.05rem;
  }

  #modalProfile .modal-subtitle {
    font-size: 0.74rem;
    line-height: 1.4;
  }

  #modalProfile .modal-body {
    padding: 14px 12px;
    gap: 12px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #modalProfile .profile-section-card {
    padding: 14px 12px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
  }

  #modalProfile .profile-section-title {
    font-size: 0.92rem;
  }

  #modalProfile .profile-section-desc {
    font-size: 0.74rem;
    margin-bottom: 12px;
    line-height: 1.45;
  }

  /* Form row di modal profil: 1 kolom penuh vertikal agar field lapang di smartphone */
  #modalProfile .form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  #modalProfile .form-group {
    width: 100%;
    flex: none;
  }

  /* Standar font-size 16px & touch-target minimal 44px */
  #modalProfile .form-control {
    font-size: 16px;
    min-height: 44px;
    padding: 10px 12px;
  }

  #modalProfile textarea.form-control {
    min-height: 80px;
  }

  #modalProfile .form-hint {
    font-size: 0.72rem;
    line-height: 1.4;
    margin-top: 4px;
  }

  /* Zona waktu radio buttons pada mobile */
  #modalProfile .timezone-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  #modalProfile .timezone-radio-label {
    padding: 10px 12px;
    min-height: 44px;
    font-size: 0.82rem;
    justify-content: flex-start;
  }

  /* Header Daftar Wilayah Terdaftar: tombol full width di mobile */
  #modalProfile .section-title-between {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #modalProfile #btnAddKabupatenBtn {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
  }

  /* Tree Builder Wilayah: Hilangkan nested padding berlebih & cegah clipping horizontal */
  #modalProfile .locations-tree-container {
    gap: 10px;
    width: 100%;
    overflow-x: hidden;
  }

  #modalProfile .tree-kab-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 4px;
    border: 1px solid var(--color-slate-200);
  }

  #modalProfile .tree-kab-header {
    padding: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    background: #f8fafc;
  }

  #modalProfile .tree-kab-name {
    flex: 1 1 auto;
    min-width: 120px;
  }

  #modalProfile .tree-header-actions,
  #modalProfile .tree-kab-header > div:last-child {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  #modalProfile .tree-kec-list {
    padding: 8px 6px;
    gap: 8px;
    border-left: none;
    margin-top: 0;
  }

  #modalProfile .tree-kec-card {
    padding: 8px;
    border-radius: var(--radius-sm);
  }

  #modalProfile .tree-kec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
    padding-bottom: 6px;
  }

  #modalProfile .tree-kec-info,
  #modalProfile .tree-kec-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 110px;
  }

  #modalProfile .tree-desa-wrapper {
    gap: 6px;
  }

  #modalProfile .tree-desa-row {
    padding: 6px 8px;
    border-radius: var(--radius-sm);
  }

  #modalProfile .tree-desa-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
  }

  #modalProfile .tree-desa-label .desa-name-text {
    flex: 1 1 auto;
    min-width: 90px;
    font-size: 0.78rem;
  }

  #modalProfile .tree-desa-actions,
  #modalProfile .tree-desa-label > div:last-child {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }

  #modalProfile .btn-add-kec-action,
  #modalProfile .btn-add-desa-action {
    font-size: 0.72rem;
    padding: 4px 8px;
    min-height: 32px;
    white-space: nowrap;
  }

  #modalProfile .btn-remove-kab-action,
  #modalProfile .btn-remove-kec-action,
  #modalProfile .btn-remove-desa-action {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
  }

  #modalProfile .modal-footer {
    padding: 12px 14px;
    display: flex;
    gap: 10px;
  }

  #modalProfile .modal-footer .btn {
    flex: 1;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
  }

  /* Modal Tambah Wilayah Mobile */
  #modalAddLocation .modal-sheet {
    max-height: 92vh;
    max-height: 92dvh;
    width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin: 0;
  }

  #modalAddLocation .modal-header {
    padding: 14px 16px;
  }

  #modalAddLocation .modal-body {
    padding: 14px 16px;
    gap: 12px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #modalAddLocation .form-control {
    font-size: 16px;
    min-height: 44px;
  }

  #modalAddLocation .modal-footer {
    padding: 12px 0 0;
    display: flex;
    gap: 10px;
  }

  #modalAddLocation .modal-footer .btn {
    flex: 1;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* EXTRA SMALL MOBILE (<= 400px) */
@media (max-width: 400px) {
  .category-select-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .btn-new-category-toggle {
    width: 100%;
    padding: 9px 12px;
  }

  .form-row-locations {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ==========================================================================
   6. HALAMAN PENAWARAN (/pricing) & PORTAL CHECKOUT (/checkout)
   STANDAR INDUSTRI (STRIPE / MIDTRANS SEPARATION & ANTI-SLOP)
   ========================================================================== */
.app-route-view {
  width: 100%;
  min-height: calc(100vh - 70px);
  background: var(--color-bg);
}

.route-nav-bar {
  margin-bottom: 16px;
}

.btn-route-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-slate-600);
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.btn-route-back:hover {
  color: var(--color-primary);
}

/* 6A. Tampilan Halaman Penawaran (/pricing) */
.pricing-view-wrapper {
  padding-bottom: 60px;
}

.pricing-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 28px;
}

.pricing-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.pricing-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.pricing-subtitle {
  font-size: 0.9rem;
  color: var(--color-slate-600);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

.pricing-tiers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0 32px;
  align-items: stretch;
}

.pricing-tier-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.pricing-tier-card.pro {
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12);
  background: #fafdfb;
}

.pricing-tier-card .plan-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-tier-card.trial .plan-tag {
  background: #f1f5f9;
  color: #475569;
}

.pricing-tier-card.pro .plan-tag {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.pricing-tier-card .pricing-amount-row {
  justify-content: flex-start;
  margin-bottom: 8px;
}

.pricing-tier-card .pricing-summary-text {
  text-align: left;
  margin: 0 0 16px 0;
  font-size: 0.82rem;
  color: var(--color-slate-600);
  line-height: 1.45;
}

.pricing-tier-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pricing-tier-checklist li {
  font-size: 0.82rem;
  color: var(--color-slate-700);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.pricing-tier-checklist li::before {
  content: "•";
  color: var(--color-primary);
  font-weight: bold;
}

.pricing-tier-action {
  margin-top: auto;
}

.pricing-tier-action .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 840px) {
  .pricing-tiers-grid {
    grid-template-columns: 1fr;
  }
}

/* PLAN & QUOTA STATUS BANNER */
.plan-quota-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 14px;
}

.quota-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  flex-wrap: wrap;
}

.quota-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-plan-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-plan-status.trial {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.badge-plan-status.pro {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-plan-status.exhausted {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.quota-summary-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-slate-700);
}

.quota-progress-track {
  width: 140px;
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.quota-progress-fill {
  height: 100%;
  background: #059669;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.quota-progress-fill.warning {
  background: #d97706;
}

.quota-progress-fill.danger {
  background: #dc2626;
}

.btn-upgrade-pro-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-upgrade-pro-link:hover {
  background: var(--color-primary-dark);
}

@media (max-width: 768px) {
  .plan-quota-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .quota-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .quota-progress-track {
    width: 100%;
  }
  .btn-upgrade-pro-link {
    justify-content: center;
    width: 100%;
  }
}

.pricing-card-highlight {
  background: #ffffff;
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.pricing-card-header .plan-tag {
  display: inline-block;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.pricing-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-amount-row .currency {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-slate-700);
}

.pricing-amount-row .amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.pricing-amount-row .period {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-slate-500);
  margin-left: 4px;
}

.pricing-summary-text {
  font-size: 0.85rem;
  color: var(--color-slate-600);
  margin: 12px auto 20px;
  max-width: 500px;
  line-height: 1.45;
}

.btn-pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  min-width: 260px;
}

.pricing-guarantee-note {
  display: block;
  font-size: 0.74rem;
  color: var(--color-slate-500);
  margin-top: 10px;
}

.pricing-features-section {
  margin-bottom: 32px;
}

.features-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-slate-900);
  text-align: center;
  margin-bottom: 18px;
}

.pricing-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

@media (min-width: 768px) {
  .pricing-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.benefit-card:hover {
  border-color: var(--color-slate-300);
}

.benefit-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 6px;
}

.benefit-desc {
  font-size: 0.78rem;
  color: var(--color-slate-600);
  line-height: 1.45;
  margin: 0;
}

.pricing-trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 4px;
}

.trust-item span {
  font-size: 0.74rem;
  color: var(--color-slate-500);
  line-height: 1.35;
}

/* 6B. Tampilan Portal Checkout (/checkout) */
.checkout-view-wrapper {
  padding-bottom: 60px;
}

.checkout-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.checkout-header {
  margin-bottom: 22px;
}

.checkout-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.checkout-subtitle {
  font-size: 0.85rem;
  color: var(--color-slate-600);
  margin: 0;
}

.checkout-layout-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 820px) {
  .checkout-layout-grid {
    grid-template-columns: 1fr;
  }
}

.order-summary-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
}

.summary-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-slate-100);
}

.summary-item-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.summary-item-meta .item-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-slate-900);
}

.summary-item-meta .item-duration {
  display: block;
  font-size: 0.72rem;
  color: var(--color-slate-500);
  margin-top: 2px;
}

.summary-item-card .item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate-900);
}

.summary-cost-breakdown {
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--color-slate-600);
  margin-bottom: 6px;
}

.cost-row:last-child {
  margin-bottom: 0;
}

.cost-divider {
  height: 1px;
  background: var(--color-slate-200);
  margin: 8px 0;
}

.grand-total-row {
  font-size: 0.88rem;
  color: var(--color-slate-900);
  font-weight: 700;
  padding-top: 2px;
}

.grand-total-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
}

.summary-security-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.security-note-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--color-slate-500);
  line-height: 1.35;
}

.security-note-row svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.checkout-gateway-column {
  background: #ffffff;
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   7. HALAMAN SUKSES PEMBAYARAN (/payment-success) & TANDA TERIMA DIGITAL
   ========================================================================== */
.success-view-wrapper {
  padding-bottom: 60px;
  background: var(--color-bg);
}

.success-container {
  max-width: 660px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.success-receipt-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

@media (max-width: 580px) {
  .success-receipt-card {
    padding: 24px 18px;
  }
}

.success-header-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.success-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #a7f3d0;
}

.receipt-status-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
}

.success-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.success-subtitle {
  font-size: 0.88rem;
  color: var(--color-slate-600);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

/* Kotak Struk Digital Resmi */
.receipt-details-box {
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
}

.receipt-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.receipt-box-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.receipt-service-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate-800);
  margin-top: 2px;
}

.receipt-order-code {
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-slate-600);
  background: #ffffff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-slate-200);
}

.receipt-divider {
  height: 1px;
  background: var(--color-slate-200);
  margin: 14px 0;
}

.receipt-rows-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  gap: 12px;
}

.receipt-label {
  color: var(--color-slate-500);
  font-weight: 500;
}

.receipt-val {
  color: var(--color-slate-900);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.receipt-status-verified {
  color: #059669;
  font-weight: 700;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2px;
}

.receipt-total-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate-900);
}

.receipt-total-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* Kartu Hak Akses Aktif */
.activated-features-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 24px;
}

.activated-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-slate-800);
  margin-bottom: 10px;
}

.activated-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 540px) {
  .activated-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.activated-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--color-slate-600);
  line-height: 1.4;
}

.activated-dot {
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1;
}

/* Tombol Aksi */
.success-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.success-actions-stack .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Mode Cetak Tanda Terima */
@media print {
  body * {
    visibility: hidden;
  }
  #printableReceiptArea, #printableReceiptArea * {
    visibility: visible;
  }
  #printableReceiptArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .no-print {
    display: none !important;
  }
}

/* Gerbang Pemuatan Awal Sistem (Anti Auth-Flash & Anti-Glitch Rute) */
.app-initial-splash {
  position: fixed;
  inset: 0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 99999;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.app-initial-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--color-primary, #064e3b);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.splash-text {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   HIRARKI WILAYAH PENELITIAN 5 TINGKAT (PROVINSI -> KAB -> KEC -> DESA -> DUSUN)
   ========================================================================== */

.locations-tree-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.tree-kab-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.tree-kab-card:hover {
  border-color: var(--color-slate-300, #cbd5e1);
}

.tree-kab-header {
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--color-slate-200, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tree-kab-name {
  display: flex;
  flex-direction: column;
}

.tree-kec-list {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tree-kec-card {
  background: #f8fafc;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  padding: 10px 12px;
}

.tree-kec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-slate-200, #e2e8f0);
}

.tree-kec-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
}

.tree-desa-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tree-desa-row {
  background: #ffffff;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  padding: 8px 10px;
}

.tree-desa-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tree-desa-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desa-name-text {
  font-size: 0.82rem;
  color: var(--color-slate-800, #1e293b);
}

.tree-dusun-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--color-slate-200, #e2e8f0);
}

.dusun-indicator-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-slate-500, #64748b);
  margin-right: 2px;
}

.dusun-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid var(--color-slate-300, #cbd5e1);
  color: var(--color-slate-700, #334155);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.74rem;
  font-weight: 500;
}

.btn-remove-dusun-action {
  background: transparent;
  border: none;
  color: var(--color-slate-400, #94a3b8);
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.1s ease;
}

.btn-remove-dusun-action:hover {
  color: var(--color-danger, #ef4444);
}

/* ==========================================================================
   KOMPONEN TAB NAVIGASI RUANG KERJA (DASHBOARD & MEDIA)
   ========================================================================== */
.app-workspace-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-slate-200, #e2e8f0);
  padding-bottom: 2px;
}

.workspace-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-slate-600, #475569);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: var(--radius-sm, 6px) var(--radius-sm, 6px) 0 0;
}

.workspace-nav-tab:hover {
  color: var(--color-primary, #064e3b);
  background: var(--color-slate-50, #f8fafc);
}

.workspace-nav-tab.active {
  color: var(--color-primary, #064e3b);
  border-bottom-color: var(--color-primary, #064e3b);
  background: #ffffff;
}

.nav-count-badge {
  background: var(--color-slate-200, #e2e8f0);
  color: var(--color-slate-700, #334155);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  line-height: 1;
}

.workspace-nav-tab.active .nav-count-badge {
  background: var(--color-primary-soft, #ecfdf5);
  color: var(--color-primary, #064e3b);
}

.nav-tab-label-full {
  display: inline;
}

.nav-tab-label-short {
  display: none;
}

/* ==========================================================================
   KOMPONEN FORM INPUT MEDIA WAWANCARA PADA MODAL LOGBOOK
   ========================================================================== */
.form-section-media-box {
  background: #f8fafc;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  padding: 16px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.media-box-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.media-box-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate-900, #0f172a);
}

.media-box-desc {
  font-size: 0.78rem;
  color: var(--color-slate-500, #64748b);
  margin-top: 2px;
  line-height: 1.4;
}

.media-box-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: #0284c7;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.media-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.media-input-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.media-input-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-slate-800, #1e293b);
}

.media-input-formats {
  font-size: 0.7rem;
  color: var(--color-slate-400, #94a3b8);
}

.media-file-picker {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-pick-media {
  width: 100%;
  font-size: 0.8rem;
  padding: 8px 12px;
  text-align: center;
  justify-content: center;
}

.media-selected-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.media-meta-inline {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 85%;
}

.media-file-name {
  font-weight: 600;
  color: var(--color-slate-800, #1e293b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-file-size {
  font-size: 0.7rem;
  color: var(--color-slate-500, #64748b);
}

.btn-clear-media {
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--color-slate-400, #94a3b8);
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}

.btn-clear-media:hover {
  color: var(--color-danger, #ef4444);
}

/* Media yang sudah tersimpan sebelumnya */
.existing-media-container {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-slate-200, #e2e8f0);
}

.existing-media-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-slate-600, #475569);
  display: block;
  margin-bottom: 6px;
}

.existing-media-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.existing-media-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.existing-media-type-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 6px;
}

.existing-media-type-badge.audio {
  background: #e0f2fe;
  color: #0369a1;
}

.existing-media-type-badge.video {
  background: #fef3c7;
  color: #92400e;
}

/* Status Indikator Unggah Media */
.media-upload-progress-box {
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  padding: 10px 12px;
}

.upload-progress-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1d4ed8;
  display: block;
  margin-bottom: 6px;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 3px;
  animation: pulse-progress 1.5s infinite linear;
}

@keyframes pulse-progress {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* ==========================================================================
   HALAMAN KHUSUS GALERI MEDIA RISET (ROUTE: /media)
   ========================================================================== */
.media-view-wrapper {
  padding: 24px 16px 60px;
}

.media-gallery-container {
  max-width: 1200px;
  margin: 0 auto;
}

.media-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.media-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-slate-900, #0f172a);
  margin-bottom: 4px;
}

.media-page-subtitle {
  font-size: 0.88rem;
  color: var(--color-slate-600, #475569);
  max-width: 720px;
  line-height: 1.45;
}

.media-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Kartu Statistik Media */
.media-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .media-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.media-stat-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.stat-count-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary, #064e3b);
  line-height: 1.1;
}

.stat-count-label {
  font-size: 0.78rem;
  color: var(--color-slate-500, #64748b);
  font-weight: 500;
}

/* Filter & Pencarian Media */
.media-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.media-search-box {
  flex: 1;
  min-width: 260px;
  max-width: 460px;
}

/* ==========================================================================
   KOMPONEN CUSTOM INDUSTRIAL DROPDOWN POPOVER (ANTI-SLOP & AKSESIBEL)
   ========================================================================== */
.custom-dropdown-container {
  position: relative;
  display: inline-block;
}

.media-filter-select-wrapper,
.media-dropdown-container {
  flex: 0 0 220px;
  min-width: 190px;
}

.custom-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  min-height: 40px;
  background: #ffffff;
  border: 1px solid var(--color-slate-200, #cbd5e1);
  border-radius: var(--radius-md, 8px);
  color: var(--color-slate-800, #1e293b);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.custom-dropdown-trigger:hover {
  border-color: var(--color-slate-400, #94a3b8);
  background: #f8fafc;
}

.custom-dropdown-trigger:focus,
.custom-dropdown-trigger.open {
  outline: none;
  border-color: var(--color-primary, #064e3b);
  box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.12);
}

.dropdown-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary, #064e3b);
  flex-shrink: 0;
}

.dropdown-trigger-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-trigger-chevron {
  color: var(--color-slate-400, #94a3b8);
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-dropdown-trigger.open .dropdown-trigger-chevron {
  transform: rotate(180deg);
  color: var(--color-primary, #064e3b);
}

/* Floating Popover Menu */
.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 100%;
  width: max-content;
  max-width: 320px;
  z-index: 1050;
  background: #ffffff;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.custom-dropdown-menu.hidden {
  display: none !important;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-slate-700, #334155);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu-item:hover {
  background: var(--color-slate-100, #f1f5f9);
  color: var(--color-slate-900, #0f172a);
}

.dropdown-menu-item.active {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 600;
}

.dropdown-menu-item .item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-500, #64748b);
  flex-shrink: 0;
}

.dropdown-menu-item.active .item-icon {
  color: #065f46;
}

.dropdown-menu-item .item-text {
  flex: 1;
  min-width: 0;
}

.dropdown-menu-item .item-check {
  color: #065f46;
  flex-shrink: 0;
  margin-left: 8px;
}

.dropdown-menu-item .item-check.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Grid Kartu Media Berbasis Sesi Logbook */
.media-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.media-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.media-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.media-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-slate-100, #f1f5f9);
}

.media-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.media-card-cat-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.media-card-photo-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 6px;
  border-radius: 4px;
}

.media-card-datetime {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-slate-600, #475569);
}

/* Subjek & Wilayah Administratif */
.media-card-respondent-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.media-card-respondent-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.media-card-respondent-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-slate-900, #0f172a);
  letter-spacing: -0.01em;
}

.media-card-respondent-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-slate-500, #64748b);
  background: var(--color-slate-100, #f1f5f9);
  border: 1px solid var(--color-slate-200, #e2e8f0);
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.media-card-location-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-slate-600, #475569);
  flex-wrap: wrap;
}

.media-card-location-row svg {
  flex-shrink: 0;
  color: var(--color-slate-400, #94a3b8);
}

/* Substansi Akademis: Uraian & Output Capaian */
.media-card-substance-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.media-card-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--color-slate-700, #334155);
  margin: 0;
}

.media-card-output-box {
  background: #f8fafc;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.media-card-output-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-slate-500, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.media-card-output-val {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-slate-800, #1e293b);
  line-height: 1.45;
}

/* Bagian Media Wawancara Terpadu */
.media-card-media-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--color-slate-100, #f1f5f9);
}

.media-card-media-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.media-card-media-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-slate-600, #475569);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.media-card-media-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-slate-500, #64748b);
}

.media-players-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.media-player-item-block {
  background: #f8fafc;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.media-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.media-card-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 4px;
}

.media-card-type-tag.audio {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.media-card-type-tag.video {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.btn-download-media-link,
.btn-open-drive-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  padding: 2px 7px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-download-media-link:hover,
.btn-open-drive-link:hover {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #7dd3fc;
  text-decoration: none;
}

.media-player-wrapper,
.media-card-player-box {
  border-radius: 6px;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.media-player-wrapper audio,
.media-card-player-box audio {
  width: 100%;
  max-width: 100%;
  height: 44px;
  outline: none;
  box-sizing: border-box;
}

.media-player-wrapper video,
.media-card-player-box video {
  width: 100%;
  max-width: 100%;
  max-height: 280px;
  background: #000000;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  box-sizing: border-box;
  display: block;
}

.media-file-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--color-slate-500, #64748b);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #ffffff;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.media-file-info-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-file-info-size {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--color-slate-600, #475569);
  white-space: nowrap;
}

/* Footer Kartu Media */
.media-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-slate-100, #f1f5f9);
  flex-wrap: wrap;
}

.btn-track-logbook {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--color-slate-300, #cbd5e1);
  color: var(--color-slate-700, #334155);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-track-logbook:hover {
  background: var(--color-slate-50, #f8fafc);
  color: var(--color-primary, #064e3b);
  border-color: var(--color-primary, #064e3b);
}

.media-cloud-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-slate-500, #64748b);
}

.cloud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

/* Empty State Card */
.media-empty-card {
  text-align: center;
  padding: 48px 24px;
  background: #ffffff;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  max-width: 540px;
  margin: 40px auto;
}

.empty-state-icon {
  margin-bottom: 12px;
  color: var(--color-slate-400, #94a3b8);
}

.empty-state-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-slate-800, #1e293b);
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 0.84rem;
  color: var(--color-slate-600, #475569);
  line-height: 1.5;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .media-view-wrapper {
    padding: 8px 0 28px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .media-gallery-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 4px;
  }

  .media-page-header {
    margin-bottom: 8px;
    gap: 6px;
  }

  .media-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
  }

  .media-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 10px;
  }

  .media-search-box {
    max-width: 100% !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  .media-filter-select-wrapper,
  .media-dropdown-container {
    width: 100% !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  .custom-dropdown-trigger {
    min-height: 44px;
    font-size: 15px;
  }

  .custom-dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
  }

  .dropdown-menu-item {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .media-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .media-card {
    padding: 14px 12px;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 8px;
  }

  .media-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 10px;
  }

  .media-card-badges {
    width: 100%;
    gap: 6px;
  }

  .media-card-datetime {
    font-size: 0.74rem;
    color: var(--color-slate-500, #64748b);
  }

  .media-card-respondent-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .media-card-respondent-name {
    font-size: 1.05rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .media-card-media-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .media-item-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  .media-player-item-block {
    padding: 8px;
    gap: 6px;
  }

  .media-player-wrapper video,
  .media-card-player-box video {
    max-height: 220px;
  }

  .media-file-info-row {
    padding: 4px 6px;
    gap: 6px;
  }

  .media-card-footer {
    width: 100%;
  }

  .btn-track-logbook {
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .media-gallery-container {
    padding: 0;
  }

  .media-card {
    padding: 12px 10px;
    gap: 10px;
    border-radius: 6px;
  }

  .media-card-cat-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
  }

  .media-card-photo-badge {
    font-size: 0.66rem;
    padding: 2px 5px;
  }

  .media-card-desc {
    font-size: 0.82rem;
  }

  .media-card-output-box {
    padding: 8px 10px;
  }

  .media-card-output-val {
    font-size: 0.78rem;
  }

  .media-player-wrapper video,
  .media-card-player-box video {
    max-height: 190px;
  }

  .btn-download-media-link {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
}

/* Sorotan Pelacakan Kartu Logbook (Track Back Highlight) */
.logbook-card.highlight-pulse {
  border-color: var(--color-primary, #064e3b) !important;
  box-shadow: 0 0 0 2px rgba(6, 78, 59, 0.2), 0 4px 6px -1px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease;
}

/* Badge Indikator Media pada Kartu Logbook */
.badge-media-attached {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
}

/* ==========================================================================
   FLOATING BACKGROUND UPLOAD MANAGER WIDGET (NON-BLOCKING MULTIMEDIA)
   ========================================================================== */
.bg-upload-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1060;
  width: 350px;
  max-width: calc(100vw - 32px);
  pointer-events: auto;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.bg-upload-widget.hidden {
  display: none !important;
}

.bg-upload-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.14), 0 4px 8px -2px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.bg-upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--color-slate-200, #e2e8f0);
}

.bg-upload-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.bg-upload-cloud-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  flex-shrink: 0;
}

.bg-upload-titles {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bg-upload-main-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-slate-800, #1e293b);
  line-height: 1.2;
}

.bg-upload-sub-title {
  font-size: 0.7rem;
  color: var(--color-slate-500, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.bg-upload-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-widget-icon {
  background: transparent;
  border: none;
  color: var(--color-slate-400, #94a3b8);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background-color 0.15s;
}

.btn-widget-icon:hover {
  color: var(--color-slate-700, #334155);
  background: var(--color-slate-200, #e2e8f0);
}

.btn-widget-close {
  font-size: 16px;
  line-height: 1;
}

.bg-upload-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bg-upload-file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bg-upload-filename {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-slate-800, #1e293b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.bg-upload-status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
  white-space: nowrap;
}

.bg-upload-status-badge.syncing {
  background: #fef3c7;
  color: #92400e;
}

.bg-upload-status-badge.db-sync {
  background: #ede9fe;
  color: #5b21b6;
}

.bg-upload-status-badge.completed {
  background: #ecfdf5;
  color: #059669;
}

.bg-upload-status-badge.failed {
  background: #fef2f2;
  color: #dc2626;
}

.bg-upload-progress-track {
  width: 100%;
  height: 6px;
  background: var(--color-slate-100, #f1f5f9);
  border-radius: 3px;
  overflow: hidden;
}

.bg-upload-progress-fill {
  height: 100%;
  background: #0284c7;
  border-radius: 3px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-upload-progress-fill.syncing {
  background: linear-gradient(90deg, #0284c7 0%, #f59e0b 50%, #0284c7 100%);
  background-size: 200% 100%;
  animation: progressShimmer 2s infinite linear;
}

.bg-upload-progress-fill.db-sync {
  background: #7c3aed;
}

.bg-upload-progress-fill.completed {
  background: #059669;
}

.bg-upload-progress-fill.failed {
  background: #dc2626;
}

@keyframes progressShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.bg-upload-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--color-slate-500, #64748b);
  font-weight: 500;
}

.bg-upload-percent {
  font-weight: 700;
  color: var(--color-slate-800, #1e293b);
}

.bg-upload-error-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 6px 10px;
  margin-top: 4px;
}

.bg-upload-error-msg {
  font-size: 0.72rem;
  color: #b91c1c;
  line-height: 1.3;
}

/* Mode Minimized */
.bg-upload-card.minimized .bg-upload-body {
  display: none;
}

.bg-upload-card.minimized #btnToggleMinimizeUploadWidget svg {
  transform: rotate(180deg);
}

@media (max-width: 640px) {
  .bg-upload-widget {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}



/* ==========================================================================
   LANDING PAGE RESMI (DOMAIN UTAMA: logbookriset.web.id) - STANDAR ANTI-SLOP
   ========================================================================== */

/* Brand Logo di Header Navbar */
.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .brand-logo-img {
    height: 36px;
    max-width: 200px;
  }
}

/* ========================================================================== */
/* LANDING PAGE V2: DINAMIS, VISUAL-FIRST, GRADASI HIJAU SEGAR (ANTI-SLOP)   */
/* ========================================================================== */

/* ========================================================================== */
/* LANDING PAGE V3: LANDSCAPE WORD, MOCKUP HP 3-KARTU, 5 FITUR, CLEAN FOOTER  */
/* ========================================================================== */

.landing-v3-wrapper {
  background-color: #ffffff;
  color: #1e293b;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.v3-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 1. HERO SECTION: KAYA GRADASI HIJAU SEGAR */
.v3-hero-section {
  position: relative;
  z-index: 1;
  background: radial-gradient(1100px circle at 85% 15%, rgba(16, 185, 129, 0.16) 0%, transparent 55%),
              radial-gradient(850px circle at 10% 80%, rgba(5, 150, 105, 0.10) 0%, transparent 45%),
              linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 50%, #ffffff 100%);
  padding: 64px 0 92px;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

.v3-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
  transform-origin: center top;
  will-change: transform, opacity;
}

.v3-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.80rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.v3-pulse-dot {
  width: 8px;
  height: 8px;
  background: #059669;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.v3-hero-title {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.v3-title-accent {
  background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.v3-hero-desc {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 580px;
}

.v3-hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 580px;
  margin-bottom: 34px;
}

.v3-hero-cta-row .btn {
  opacity: 1 !important;
  visibility: visible !important;
}

.v3-btn-cta-primary {
  background: #059669;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 36px;
  min-width: 260px;
  border-radius: 6px;
  border: 1px solid #047857;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.v3-btn-cta-primary:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 22px rgba(5, 150, 105, 0.45);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.v3-btn-cta-secondary {
  background: #ffffff;
  color: #064e3b;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.v3-btn-cta-secondary:hover {
  background: #f8fafc;
  border-color: #059669;
  color: #059669;
}

.v3-hero-badges-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(203, 213, 225, 0.6);
}

.v3-mini-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.45;
}

.v3-mini-badge svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* 2. SMARTPHONE MOCKUP FISIK (3 KARTU LOGBOOK RIIL) */
.v3-hero-phone-col {
  display: flex;
  justify-content: center;
  position: relative;
  perspective: 1200px;
}

.v3-phone-wrapper {
  position: relative;
  width: 100%;
  max-width: 370px;
  transform-style: preserve-3d;
}

.v3-phone-chassis {
  background: #0f172a;
  border: 10px solid #1e293b;
  border-radius: 42px;
  box-shadow: 0 25px 65px -12px rgba(6, 78, 59, 0.32),
              0 12px 30px -6px rgba(0, 0, 0, 0.2),
              0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  overflow: hidden;
  position: relative;
  height: 680px;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
}

.v3-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 20px;
  background: #0f172a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.v3-phone-cam {
  width: 7px;
  height: 7px;
  background: #1e293b;
  border: 1.5px solid #475569;
  border-radius: 50%;
}

.v3-phone-viewport {
  background: #f8fafc;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.v3-phone-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 6px;
  background: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  z-index: 20;
}

.v3-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #475569;
}

.v3-status-bat {
  display: inline-block;
  width: 16px;
  height: 9px;
  border: 1.5px solid #0f172a;
  border-radius: 2px;
  position: relative;
  background: #059669;
}

.v3-status-bat::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 2px;
  width: 1.5px;
  height: 3px;
  background: #0f172a;
  border-radius: 0 1px 1px 0;
}

.v3-phone-app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.v3-mini-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #064e3b;
}

.v3-logo-sq {
  width: 10px;
  height: 10px;
  background: #059669;
  border-radius: 2px;
}

.v3-user-pill {
  font-size: 0.68rem;
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #a7f3d0;
}

.v3-phone-tab-bar {
  display: flex;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 8px;
}

.v3-ptab {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  border-bottom: 2px solid transparent;
}

.v3-ptab.active {
  color: #064e3b;
  border-bottom-color: #059669;
}

.v3-phone-scroll-area {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 8px 10px 0 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 14px, black calc(100% - 36px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 14px, black calc(100% - 36px), transparent 100%);
}

.v3-phone-scroll-area::-webkit-scrollbar {
  display: none;
}

.v3-phone-feed-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.v3-feed-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
}


/* Feed Kartu Logbook di Ponsel */
.v3-feed-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 11px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.v3-fcard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.v3-cat-badge {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.v3-cat-badge.wawancara { background: #d1fae5; color: #065f46; }
.v3-cat-badge.observasi { background: #e0f2fe; color: #0369a1; }
.v3-cat-badge.fgd { background: #fef3c7; color: #92400e; }

.v3-sync-indicator {
  font-size: 0.60rem;
  color: #047857;
  font-weight: 700;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 1px 5px;
  border-radius: 3px;
}

.v3-fcard-time {
  font-size: 0.66rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 3px;
}

.v3-fcard-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: #334155;
  font-weight: 600;
  margin-bottom: 4px;
}

.v3-fcard-target {
  font-size: 0.70rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.v3-fcard-desc {
  font-size: 0.68rem;
  color: #475569;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.v3-fcard-media-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.v3-mini-photo-thumb {
  height: 52px;
  width: 100px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  padding: 3px;
  border: 1px solid #cbd5e1;
}

.v3-mini-photo-thumb.alt {
  height: 60px;
  width: 100%;
  background: linear-gradient(135deg, #064e3b 0%, #1e293b 100%);
}

.v3-gps-overlay-micro {
  background: rgba(0, 0, 0, 0.8);
  color: #34d399;
  font-family: monospace;
  font-size: 0.55rem;
  padding: 1px 4px;
  border-radius: 2px;
}

.v3-mini-audio-pill,
.v3-mini-video-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
}

.v3-mini-audio-pill {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.v3-mini-video-pill {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.v3-phone-fab-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: #064e3b;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.4);
  z-index: 25;
}

.v3-float-status-card {
  position: absolute;
  bottom: -16px;
  left: -20px;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  z-index: 40;
}

.v3-float-status-card strong {
  display: block;
  font-size: 0.82rem;
  color: #064e3b;
}

.v3-float-status-card span {
  display: block;
  font-size: 0.70rem;
  color: #64748b;
}

/* 3. COMMON SECTIONS */
.v3-section {
  padding: 88px 0;
  border-bottom: 1px solid #e2e8f0;
}

.v3-sec-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 52px;
}

.v3-sec-tag {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.v3-sec-tag.alt {
  background: rgba(5, 150, 105, 0.2);
  color: #6ee7b7;
  border-color: rgba(5, 150, 105, 0.4);
}

.v3-sec-title {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.v3-sec-title.light {
  color: #ffffff;
}

.v3-sec-desc {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.6;
}

/* 4. SHOWCASE DOKUMEN WORD (.DOCX) - FORMAT LANDSCAPE */
.v3-word-section {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #064e3b 0%, #043a2c 100%);
  color: #ffffff;
  perspective: 1200px;
  border-top: 1px solid #059669;
  border-bottom: 1px solid #047857;
  box-shadow: 0 -18px 48px rgba(6, 78, 59, 0.35);
}

#preview-word .v3-sec-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}

#preview-word .v3-sec-title {
  color: #ffffff;
}

#preview-word .v3-container {
  transform-origin: center top;
  will-change: transform, opacity;
}

.v3-desktop-frame {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 25px 60px -10px rgba(2, 44, 34, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.v3-dtop-titlebar {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v3-dtop-dots {
  display: flex;
  gap: 6px;
}

.v3-dtop-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.v3-dtop-dot.red { background: #ef4444; }
.v3-dtop-dot.yellow { background: #f59e0b; }
.v3-dtop-dot.green { background: #10b981; }

.v3-dtop-docname {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.v3-dtop-badge {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.v3-dtop-ribbon {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
}

.v3-ribbon-item {
  color: #475569;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 6px;
}

.v3-ribbon-item.active {
  color: #064e3b;
  border-bottom: 2px solid #059669;
  font-weight: 700;
}

.v3-ribbon-meta {
  margin-left: auto;
  color: #64748b;
  font-size: 0.72rem;
  font-style: italic;
}

.v3-dtop-canvas-area {
  background: #cbd5e1;
  padding: 36px 20px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

/* Lembar Kertas Landscape A4 */
.v3-docx-landscape-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 1100px;
  min-width: 920px;
  padding: 36px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid #94a3b8;
  font-family: 'Times New Roman', Times, serif;
  color: #000000;
  will-change: transform;
}

.v3-sheet-kop {
  text-align: center;
  margin-bottom: 14px;
}

.v3-kop-content h3 {
  font-size: 1rem;
  margin: 0 0 2px 0;
  font-weight: bold;
}

.v3-kop-content h4 {
  font-size: 0.90rem;
  margin: 0 0 2px 0;
  font-weight: bold;
}

.v3-kop-content p {
  font-size: 0.82rem;
  margin: 0 0 2px 0;
}

.v3-kop-content small {
  font-size: 0.75rem;
  font-style: italic;
}

.v3-kop-border-double {
  border-top: 2px solid #000;
  border-bottom: 0.5px solid #000;
  height: 3px;
  margin-top: 6px;
}

.v3-sheet-title-box {
  text-align: center;
  margin: 14px 0;
}

.v3-sheet-title-box h2 {
  font-size: 1.10rem;
  font-weight: bold;
  text-decoration: underline;
  margin: 0 0 4px 0;
}

.v3-sheet-title-box p {
  font-size: 0.82rem;
  margin: 0;
}

.v3-sheet-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 16px;
  font-size: 0.82rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #cbd5e1;
}

.v3-meta-span-2 {
  grid-column: span 2;
  margin-top: 2px;
}

.v3-sheet-table-overflow {
  margin-bottom: 20px;
}

/* TABEL LANDSCAPE ASLI SESUAI docxExport.js */
.v3-docx-official-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-family: Arial, Helvetica, sans-serif;
}

.v3-docx-official-table th,
.v3-docx-official-table td {
  border: 1px solid #000;
  padding: 6px 7px;
  vertical-align: top;
}

.v3-docx-official-table th {
  background: #064E3B; /* Forest Green Solid Sesuai docxExport.js */
  color: #FFFFFF;
  font-weight: bold;
  text-align: center;
  font-size: 0.75rem;
}

.v3-table-photo-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.v3-photo-box-thumb {
  height: 52px;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  border: 1px solid #000;
  display: flex;
  align-items: flex-end;
  padding: 2px;
}

.v3-photo-box-thumb.alt {
  background: linear-gradient(135deg, #064e3b 0%, #1e293b 100%);
}

.v3-gps-tag-micro {
  background: rgba(0, 0, 0, 0.85);
  color: #34d399;
  font-family: monospace;
  font-size: 0.55rem;
  padding: 1px 3px;
}

.v3-photo-label-micro {
  font-size: 0.64rem;
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
}

.v3-sheet-validation-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  font-size: 0.82rem;
  text-align: center;
}

.v3-sign-placeholder-line {
  height: 48px;
}

/* 5. BRANKAS MEDIA WAWANCARA (5TB CLOUD & ANTI-TERTUKAR) */
.v3-media-section {
  position: relative;
  z-index: 3;
  background: #022c22;
  color: #ffffff;
  border-top: 1px solid #064e3b;
  border-bottom: 1px solid #064e3b;
  box-shadow: 0 -18px 48px rgba(2, 44, 34, 0.35);
}

.v3-media-section .v3-container {
  transform-origin: center top;
  will-change: transform, opacity;
}

.v3-media-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.v3-media-lead {
  font-size: 1.02rem;
  color: #a7f3d0;
  margin-bottom: 12px;
  line-height: 1.6;
}

.v3-media-sub {
  font-size: 0.94rem;
  color: #d1fae5;
  line-height: 1.6;
  margin-bottom: 28px;
}

.v3-storage-box {
  background: rgba(6, 78, 59, 0.45);
  border: 1px solid #059669;
  border-radius: 8px;
  padding: 16px 20px;
}

.v3-storage-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.v3-storage-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.v3-storage-badge {
  background: #059669;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.v3-storage-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.v3-storage-bar-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  border-radius: 4px;
}

.v3-storage-bottom-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #a7f3d0;
}

.v3-media-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.v3-media-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(5, 150, 105, 0.35);
  border-radius: 10px;
  padding: 16px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

.v3-media-card:hover {
  transform: translateY(-2px);
  border-color: #10b981;
}

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

.v3-pill-type {
  font-size: 0.70rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.v3-pill-type.video { background: #dc2626; color: #ffffff; }
.v3-pill-type.audio { background: #2563eb; color: #ffffff; }

.v3-pill-linked {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.v3-video-preview {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 6px;
  height: 110px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 12px;
}

.v3-vplay-btn {
  width: 36px;
  height: 36px;
  background: rgba(5, 150, 105, 0.9);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.v3-vduration {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.70rem;
  padding: 2px 6px;
  border-radius: 3px;
}

.v3-vfilename {
  font-size: 0.72rem;
  color: #cbd5e1;
  font-family: monospace;
}

.v3-audio-preview {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.v3-aplay-btn {
  width: 32px;
  height: 32px;
  background: #059669;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v3-waveform-visual {
  flex: 1;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.v3-waveform-visual span {
  flex: 1;
  background: #34d399;
  border-radius: 1px;
  transform-origin: bottom center;
  will-change: transform;
}

.v3-atime {
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: monospace;
}

.v3-mcard-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.v3-mfile-size {
  font-size: 0.70rem;
  color: #94a3b8;
  margin-top: 2px;
}

.v3-btn-track {
  background: rgba(255, 255, 255, 0.1);
  color: #a7f3d0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.v3-btn-track:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

/* 6. 5 FITUR UTAMA DALAM GRID MODERN */
.v3-features-section {
  position: relative;
  z-index: 4;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -14px 38px rgba(15, 23, 42, 0.06);
}

.v3-features-section .v3-container {
  transform-origin: center top;
  will-change: transform, opacity;
}

.v3-five-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1060px;
  margin: 0 auto;
  perspective: 1200px;
}

.v3-fitem-card {
  background: linear-gradient(145deg, #064e3b 0%, #043a2c 100%);
  border: 1px solid #059669;
  border-radius: 10px;
  padding: 28px;
  position: relative;
  box-shadow: 0 4px 12px rgba(2, 44, 34, 0.15);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  color: #ffffff;
}

.v3-fitem-card:hover {
  transform: translateY(-4px);
  border-color: #34d399;
  box-shadow: 0 14px 30px -4px rgba(2, 44, 34, 0.35);
}

.v3-fitem-span {
  grid-column: span 2;
  background: linear-gradient(145deg, #065f46 0%, #033427 100%);
  border-color: #10b981;
}

.v3-fnum-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #6ee7b7;
  opacity: 0.75;
  will-change: transform, opacity;
}

.v3-ficon-box {
  width: 44px;
  height: 44px;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.v3-fitem-title {
  font-size: 1.10rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.v3-fitem-desc {
  font-size: 0.90rem;
  color: #f1f5f9;
  line-height: 1.6;
  margin: 0;
}

/* 7. FAQ ACCORDION */
.v3-faq-section {
  position: relative;
  z-index: 5;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -12px 34px rgba(15, 23, 42, 0.04);
}

.v3-faq-section .v3-container {
  transform-origin: center top;
  will-change: transform, opacity;
}

.v3-faq-accordion-box {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v3-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.v3-faq-item[open] {
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(6, 78, 59, 0.05);
}

.v3-faq-q {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

.v3-faq-q::-webkit-details-marker {
  display: none;
}

.v3-faq-chevron {
  color: #059669;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.v3-faq-item[open] .v3-faq-chevron {
  transform: rotate(180deg);
}

.v3-faq-a {
  padding: 0 20px 18px;
  font-size: 0.90rem;
  color: #334155;
  line-height: 1.6;
}

.v3-faq-a p {
  margin: 0;
}

/* 8. FOOTER MINIMALIS & BERSIH */
.v3-clean-footer {
  position: relative;
  z-index: 6;
  background: #0f172a;
  color: #94a3b8;
  padding: 32px 0;
  border-top: 1px solid #1e293b;
  box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.20);
}

.v3-footer-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}

.v3-footer-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.v3-footer-logo {
  height: 28px;
  width: auto;
  display: block;
}

.v3-footer-copy {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
}

.v3-footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.v3-fnav-link {
  color: #94a3b8;
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.v3-fnav-link:hover {
  color: #34d399;
}

.text-emerald {
  color: #10b981 !important;
}

.v3-word-mobile-scroll-badge {
  display: none;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 980px) {
  .v3-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .v3-hero-text {
    text-align: center;
  }
  .v3-hero-desc {
    margin: 0 auto 32px;
  }
  .v3-hero-cta-row {
    justify-content: center;
  }

  /* Kasus 1: Hero Checklist Mobile Rapi, Simetris di Tengah tapi Teks & Centang Rata Kiri Rapat */
  .v3-hero-badges-row {
    align-items: flex-start;
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
    width: 100%;
  }
  .v3-mini-badge {
    text-align: left;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
  }
  .v3-mini-badge span {
    text-align: left;
    flex: 1;
    line-height: 1.45;
  }
  .v3-mini-badge svg {
    flex-shrink: 0;
    margin-top: 3px;
  }

  /* Kasus 2: Preview Dokumen Word Landscape Responsif Mobile */
  .v3-desktop-frame {
    border-radius: 8px;
    margin: 0 auto;
  }
  .v3-dtop-titlebar {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .v3-dtop-docname {
    font-size: 0.76rem;
    white-space: normal;
    word-break: break-word;
  }
  .v3-dtop-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
  .v3-dtop-ribbon {
    padding: 6px 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .v3-dtop-ribbon::-webkit-scrollbar {
    display: none;
  }
  .v3-ribbon-meta {
    display: none;
  }
  .v3-dtop-canvas-area {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 10px;
  }
  .v3-word-mobile-scroll-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(6, 78, 59, 0.95);
    color: #a7f3d0;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #059669;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  /* Kasus 3: Brankas Media Vault Simetris di Tengah Layar Mobile */
  .v3-media-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .v3-storage-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }
  .v3-media-right {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .v3-media-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .v3-five-grid {
    grid-template-columns: 1fr;
  }
  .v3-fitem-span {
    grid-column: span 1;
  }
  .v3-footer-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .v3-footer-left {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .v3-hero-section {
    padding: 36px 0 52px;
  }
  .v3-phone-wrapper {
    max-width: 320px;
  }
  .v3-phone-chassis {
    height: 580px;
  }
  .v3-float-status-card {
    display: none;
  }

  /* Lembar Word Landscape A4 di Mobile Kecil */
  .v3-docx-landscape-sheet {
    min-width: 740px;
    padding: 16px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .v3-sheet-kop {
    margin-bottom: 8px;
  }
  .v3-kop-content h3 { font-size: 0.88rem; }
  .v3-kop-content h4 { font-size: 0.78rem; }
  .v3-kop-content p { font-size: 0.72rem; }
  .v3-kop-content small { font-size: 0.66rem; }
  .v3-sheet-title-box h2 { font-size: 0.86rem; }
  .v3-sheet-title-box p { font-size: 0.70rem; }
  .v3-sheet-meta-grid {
    grid-template-columns: 1fr 1fr;
    font-size: 0.68rem;
    gap: 4px 8px;
    padding: 8px;
    margin-bottom: 8px;
  }
  .v3-docx-official-table th {
    padding: 5px 4px;
    font-size: 0.68rem;
    line-height: 1.25;
  }
  .v3-docx-official-table td {
    padding: 5px 4px;
    font-size: 0.68rem;
    line-height: 1.3;
  }

  /* Brankas Media Card Footer Responsive di Layar Kecil */
  .v3-storage-top {
    flex-wrap: wrap;
    gap: 6px;
  }
  .v3-storage-bottom-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .v3-mcard-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .v3-mcard-bottom > div {
    width: 100%;
  }
  .v3-btn-track {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 7px 12px;
  }
  .v3-vfilename {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
}
