/* ==========================================================
   SYMOTAX - MODERN GLASSMORPHYSISM MOBILE STYLESHEET
   Elegan, Bersih, Translucent Frosted Glass & Ramah Pengguna
   ========================================================== */

:root {
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg-page: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.75);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 30px 0 rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --glass-blur: blur(14px);
  --border: #e2e8f0;
  --green: #15803d;
  --green-bg: #ecfdf5;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --font-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-base);
  background-color: #f1f5f9;
  background-image: 
    radial-gradient(circle at 10% 12%, rgba(219, 234, 254, 0.75) 0%, transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(209, 250, 229, 0.6) 0%, transparent 40%),
    radial-gradient(circle at 95% 65%, rgba(224, 231, 255, 0.7) 0%, transparent 45%),
    radial-gradient(circle at 5% 85%, rgba(204, 251, 241, 0.65) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(241, 245, 249, 0.6) 0%, transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* Container Utama: Khusus Mobile (Translucent Glass Shell) */
.mobile-app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: rgba(248, 250, 252, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background-image: 
    radial-gradient(circle at 5% 15%, rgba(239, 246, 255, 0.85) 0%, transparent 35%),
    radial-gradient(circle at 95% 35%, rgba(236, 253, 245, 0.7) 0%, transparent 35%),
    radial-gradient(circle at 10% 75%, rgba(241, 245, 249, 0.8) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(238, 242, 255, 0.75) 0%, transparent 40%);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 50px rgba(15, 23, 42, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.65);
  border-right: 1px solid rgba(255, 255, 255, 0.65);
}

/* Viewport Konten */
.mobile-main {
  flex: 1;
  padding-bottom: 96px;
}

/* Layar / Screens */
.app-screen {
  display: none;
  padding: 16px;
}

.app-screen.active-screen {
  display: block;
}

/* ==========================================================
   SCREEN 1: BERANDA DENGAN DASHBOARD HERO BERGAMBAR
   ========================================================== */
.dashboard-hero {
  position: relative;
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.78) 0%, rgba(15, 23, 42, 0.88) 100%), 
              url('../images/tax-hero-bg.jpg') center 25% / cover no-repeat;
  color: #ffffff;
  padding: 48px 20px 36px 20px;
  margin: -16px -16px 24px -16px;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-heading {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* 3 Tombol Menu Utama (Besar, Mudah Dipencet Orang Tua) */
.home-menu-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu-btn {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 30px 0 rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              background-color 0.2s ease;
  width: 100%;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px 0 rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.menu-btn:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 16px 0 rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.menu-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease;
}

.menu-btn:hover .menu-icon {
  transform: scale(1.06);
}

.menu-icon svg {
  width: 26px;
  height: 26px;
}

/* Cari Aturan Pajak: Gradien Biru dengan Border */
.icon-blue,
.icon-pajak {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Konsultan Pajak: Gradien Hijau dengan Border */
.icon-green,
.icon-konsultan {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #15803d;
  border: 1px solid #a7f3d0;
}

/* WhatsApp: Gradien Hijau Terang dengan Border */
.icon-wa {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #15803d;
  border: 1px solid #86efac;
}

/* Auditor KAP: Biru Samudera Kemenkeu */
.icon-indigo,
.icon-auditor {
  background: linear-gradient(135deg, #e0f2fe 0%, #eff6ff 100%);
  color: #0284c7;
  border: 1px solid #bae6fd;
}

/* Konsultan Finance & Acc: Hijau Toska / Emerald Finansial */
.icon-amber,
.icon-finance {
  background: linear-gradient(135deg, #ccfbf1 0%, #ecfdf5 100%);
  color: #0d9488;
  border: 1px solid #99f6e4;
}

.menu-info {
  flex: 1;
}

.menu-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.menu-sub {
  font-size: 14px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.menu-arrow svg {
  width: 22px;
  height: 22px;
  color: #9ca3af;
}

/* ==========================================================
   SCREEN 2 & 3: TOP BAR, PENCARIAN & FILTER
   ========================================================== */
.screen-top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-back,
.btn-header-back {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  height: 40px;
  width: 40px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-back:hover,
.btn-header-back:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn-back:active,
.btn-header-back:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.7);
}

.btn-back svg,
.btn-header-back svg {
  width: 20px;
  height: 20px;
}

.screen-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

/* Kotak Pencarian Besar & Nyaman */
.search-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.search-bar-row .search-box-wrap {
  flex: 1;
  margin-bottom: 0;
}

.btn-search-action {
  height: 52px;
  padding: 0 18px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
  transition: background-color 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease;
}

.btn-search-action:hover {
  background-color: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35);
}

.btn-search-action:active {
  background-color: #1e40af;
  transform: scale(0.98);
}

.search-box-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.large-input {
  width: 100%;
  height: 52px;
  padding: 12px 42px 12px 16px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03), inset 0 1px 2px rgba(0, 0, 0, 0.02);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.large-input:focus {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-clear {
  position: absolute;
  right: 12px;
  width: 28px;
  height: 28px;
  background-color: #e2e8f0;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Filter Tombol Segmented (Rapi, Bersih, Tanpa Kotak Kasar) */
.simple-tabs {
  display: flex;
  background: rgba(241, 245, 249, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  gap: 4px;
  margin-bottom: 16px;
}

.status-btn {
  flex: 1;
  height: 38px;
  border: none;
  background-color: transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-btn.active {
  background-color: #ffffff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* State Panduan & Kosong Pencarian Aturan Pajak */
.empty-search-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 44px 20px;
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1.5px dashed rgba(203, 213, 225, 0.8);
  border-radius: 20px;
  box-shadow: 0 8px 30px 0 rgba(15, 23, 42, 0.03);
  margin-top: 8px;
}

.empty-search-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.empty-search-prompt {
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 6px 0;
}

.empty-search-sub {
  font-size: 13px;
  color: #64748b;
  max-width: 280px;
  line-height: 1.45;
}

/* ==========================================================
   KARTU HASIL (PASAL & KONSULTAN)
   ========================================================== */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Kartu Pasal - Frosted Glass Modern & Elegan */
.pajak-card,
.law-card {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 30px 0 rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease;
}

.pajak-card:hover,
.law-card:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px 0 rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.pajak-card:active,
.law-card:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 16px 0 rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.pasal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.pasal-title-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.pasal-main-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.pasal-ayat-sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  background-color: #eff6ff;
  padding: 2px 8px;
  border-radius: 6px;
}

.pasal-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
}

.pasal-status-tag .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-berlaku {
  color: #15803d;
  background-color: #ecfdf5;
}

.status-berlaku .status-dot {
  background-color: #16a34a;
}

.status-diganti {
  color: #b45309;
  background-color: #fffbeb;
}

.status-diganti .status-dot {
  background-color: #f59e0b;
}

.status-dihapus {
  color: #64748b;
  background-color: #f1f5f9;
}

.status-dihapus .status-dot {
  background-color: #94a3b8;
}

.pasal-uu-meta {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 14px;
  line-height: 1.4;
}

.pasal-body-text {
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
  white-space: pre-line;
}

.highlight {
  background-color: #fef08a;
  color: #713f12;
  padding: 1px 3px;
  font-weight: 700;
  border-radius: 2px;
}

.pasal-pengganti {
  margin-top: 14px;
  padding: 10px 14px;
  background-color: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #92400e;
}

.pengganti-label {
  font-weight: 700;
}

.pasal-card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-detail-hint {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-detail-hint svg {
  transition: transform 0.15s ease;
}

.pajak-card:active .card-detail-hint svg {
  transform: translateX(3px);
}

.btn-salin-minimal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: rgba(248, 250, 252, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-salin-minimal:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-salin-minimal:active {
  background-color: #e2e8f0;
  color: #0f172a;
  transform: scale(0.95);
}

/* Kartu Konsultan, Auditor & Finance - Frosted Glass Modern & Elegan */
.konsultan-card,
.consultant-card,
.auditor-card,
.finance-card {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 30px 0 rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease;
}

.konsultan-card:hover,
.consultant-card:hover,
.auditor-card:hover,
.finance-card:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px 0 rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.konsultan-card:active,
.consultant-card:active,
.auditor-card:active,
.finance-card:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 16px 0 rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.konsultan-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.konsultan-name {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.konsultan-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
  background-color: #ecfdf5;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.auditor-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #4338ca;
  background-color: #e0e7ff;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.finance-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  background-color: #fef3c7;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.results-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 6px;
  padding: 0 4px;
}

.konsultan-ijin {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 6px;
}

.konsultan-loc {
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.konsultan-address {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.55;
}

.konsultan-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Dua Tombol Aksi Utama Konsultan di Modal Pop-up Bawah */
.modal-footer-actions {
  display: flex;
  gap: 12px;
  padding: 14px 20px 22px 20px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.btn-action-big {
  flex: 1;
  min-width: 0;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-action-big:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-action-big:active {
  transform: scale(0.98);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-action-big svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
  transition: transform 0.15s ease;
}

.btn-action-big:hover svg {
  transform: scale(1.08);
}

.btn-action-wa {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-action-wa:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
}

.btn-action-telp {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.btn-action-telp:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #ffffff;
}

/* Filter Dropdown Wilayah */
.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.large-select {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.large-select:focus {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ==========================================================
   SCREEN 4: TAMBAH DATA (FORM SIMPEL)
   ========================================================== */
.form-tab-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  height: 44px;
  border: 1.5px solid var(--border);
  background-color: #ffffff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

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

.simple-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.field-input, .field-textarea, .field-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-main);
  outline: none;
}

.field-input:focus, .field-textarea:focus, .field-select:focus {
  border-color: var(--primary);
}

.field-textarea {
  min-height: 100px;
  resize: vertical;
}

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

.btn-submit-big {
  height: 52px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
}

.btn-submit-big:active {
  background-color: var(--primary-hover);
}

/* Import Massal Box */
.import-box {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  background-color: #f8fafc;
  cursor: pointer;
}

.btn-download-template {
  display: inline-block;
  padding: 10px 16px;
  background-color: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
}

/* ==========================================================
   NAVIGASI BAWAH (FLOATING GLASS BOTTOM NAVIGATION DOCK)
   ========================================================== */
.simple-bottom-nav,
.mobile-bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 456px;
  height: 64px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding: 0 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  padding: 4px 1px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

.nav-item:hover {
  color: var(--primary);
}

.nav-item:active {
  transform: scale(0.92);
}

.nav-item.active {
  color: var(--primary);
  font-weight: 800;
}

.nav-item.active svg {
  transform: scale(1.12);
  filter: drop-shadow(0 2px 6px rgba(29, 78, 216, 0.35));
}

/* Toast Sederhana Modern Frosted Dark Glass */
.simple-toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  white-space: nowrap;
}

.simple-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* State Kosong */
.empty-box {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ==========================================================
   MODAL POP-UP DETAIL PASAL (BOTTOM SHEET FROSTED GLASS)
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content,
.detail-modal-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content,
.modal-overlay.active .detail-modal-card {
  transform: translateY(0);
}

.modal-drag-handle {
  width: 36px;
  height: 4px;
  background-color: #cbd5e1;
  border-radius: 999px;
  margin: 10px auto 4px auto;
  flex-shrink: 0;
}

.modal-header {
  padding: 14px 20px 14px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  flex-shrink: 0;
}

.modal-header-text {
  flex: 1;
}

.modal-uu-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  background-color: rgba(30, 41, 59, 0.06);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(241, 245, 249, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
}

.btn-close-modal:active {
  background-color: #e2e8f0;
  color: #0f172a;
  transform: scale(0.92);
}

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(248, 250, 252, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#modal-konsultan-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#modal-wrap-verified {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

#modal-wrap-verified .meta-verified-row {
  display: flex;
  align-items: center;
}

#modal-wrap-verified .konsultan-verified-tag,
#modal-wrap-verified .auditor-verified-tag {
  align-self: flex-start;
}

#modal-wrap-wilayah {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-loc-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.meta-loc-icon {
  width: 15px;
  height: 15px;
  color: #64748b;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-meta-item {
  min-width: 0;
}

.meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  margin-bottom: 4px;
  display: block;
}

.meta-value {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-text-content {
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
  white-space: pre-line;
  background: rgba(248, 250, 252, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.modal-pengganti-box {
  background: rgba(254, 243, 199, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-left: 4px solid #f59e0b;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding: 12px 14px;
  border-radius: 0 12px 12px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #92400e;
}

.modal-pengganti-box strong {
  display: block;
  margin-bottom: 4px;
  color: #78350f;
}

.modal-footer {
  padding: 14px 20px 24px 20px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  flex-shrink: 0;
}

.btn-modal-primary {
  flex: 1;
  height: 42px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-modal-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.32);
}

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

.btn-modal-secondary {
  height: 48px;
  padding: 0 20px;
  background: rgba(241, 245, 249, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #475569;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
}

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

/* ==========================================================
   TOMBOL LOAD MORE (FROSTED GLASS INTERACTIVE)
   ========================================================== */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  margin-bottom: 24px;
  padding: 0 4px;
}

.btn-load-more {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-load-more:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
}

.btn-load-more:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.7);
}

.btn-load-more-konsultan {
  border-color: rgba(253, 230, 138, 0.8);
  background: rgba(255, 251, 235, 0.8);
  color: #92400e;
}

.btn-load-more-konsultan:hover {
  background: rgba(254, 243, 199, 0.95);
}

.btn-load-more-konsultan:active {
  background: rgba(254, 243, 199, 0.75);
}

.btn-load-more-auditor {
  border-color: rgba(191, 219, 254, 0.8);
  background: rgba(239, 246, 255, 0.8);
  color: #1e40af;
}

.btn-load-more-auditor:hover {
  background: rgba(219, 234, 254, 0.95);
}

.btn-load-more-auditor:active {
  background: rgba(219, 234, 254, 0.75);
}

.btn-load-more-finance {
  border-color: rgba(187, 247, 208, 0.8);
  background: rgba(240, 253, 244, 0.8);
  color: #166534;
}

.btn-load-more-finance:hover {
  background: rgba(220, 252, 231, 0.95);
}

.btn-load-more-finance:active {
  background: rgba(220, 252, 231, 0.75);
}

/* ==========================================================
   ENTRANCE / SPLASH SCREEN ANIMATION (BRANDED MINIMALIST)
   ========================================================== */
.app-splash-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  z-index: 9999;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  user-select: none;
  touch-action: none;
}

.app-splash-screen.splash-fade-out {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  transform: translateY(-8px);
}

.splash-brand {
  opacity: 0;
  animation: splashTextFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  margin-bottom: 24px;
}

.splash-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.15;
}

.splash-title-highlight {
  color: #1d4ed8;
}

.splash-subtitle {
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.25px;
}

.splash-loader-bar {
  width: 140px;
  height: 4px;
  background-color: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  animation: splashLoaderFade 0.35s ease-out 0.2s forwards;
}

.splash-loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1d4ed8, #38bdf8);
  border-radius: 999px;
  animation: splashProgress 0.85s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

@keyframes splashTextFade {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashLoaderFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes splashProgress {
  0% {
    width: 0%;
  }
  40% {
    width: 55%;
  }
  80% {
    width: 88%;
  }
  100% {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-brand,
  .splash-loader-bar,
  .splash-loader-progress,
  .app-splash-screen {
    animation: none !important;
    transition: none !important;
  }
}




