/* AntiTipu.com / PastikanAman - Premium Mobile App Style CSS v1.4 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #f4f7fa;
  --app-max-width: 480px;
  --primary-teal: #0d9488;
  --primary-teal-light: #2dd4bf;
  --primary-teal-bg: #ccfbf1;
  --accent-gold: #f59e0b;
  --accent-gold-bg: #fffbeb;
  --accent-blue: #0284c7;
  --accent-purple: #7c3aed;
  --accent-danger: #ef4444;
  --accent-danger-bg: #fee2e2;
  --accent-warning: #f59e0b;
  --accent-warning-bg: #fef3c7;
  --dark-hero-bg: #0b1329;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #090d16;
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* App Container Framing */
.app-container {
  width: 100%;
  max-width: var(--app-max-width);
  min-height: 100vh;
  background-color: var(--bg-main);
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  padding-bottom: 80px; /* Space so footer content isn't covered by fixed nav */
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .app-container {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Header & Top Bar */
.top-bar {
  background: var(--dark-hero-bg);
  padding: 16px 20px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  text-decoration: none;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-danger);
  border-radius: 50%;
  border: 2px solid var(--dark-hero-bg);
}

/* Hero Section */
.hero-section {
  background: var(--dark-hero-bg) url('../images/hero_bg.jpg') center/cover no-repeat;
  position: relative;
  padding: 10px 20px 24px 20px;
  color: #ffffff;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 19, 41, 0.6) 0%, rgba(11, 19, 41, 0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Search Bar Box */
.search-box-wrap {
  position: relative;
  margin-bottom: 20px;
}

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

.search-input-group input {
  width: 100%;
  padding: 14px 44px 14px 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  outline: none;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.search-input-group input:focus {
  background: #ffffff;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.25);
}

.search-input-group .search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 18px;
  pointer-events: none;
}

.search-input-group .clear-search-btn {
  position: absolute;
  right: 14px;
  background: #e2e8f0;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 12px;
}

/* Hero Greeting Text & CTA */
.hero-headline {
  margin-top: 10px;
  margin-bottom: 16px;
}

.hero-subheading {
  font-size: 0.9rem;
  color: var(--primary-teal-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-top: 4px;
}

.btn-cta-teal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #ffffff;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cta-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.5);
}

.hero-trust-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 16px;
}

.hero-trust-tag svg {
  color: var(--primary-teal-light);
}

/* Content Area */
.main-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Category Grid Buttons */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.category-card {
  background: #ffffff;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.category-card:hover, .category-card.active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-teal);
}

.cat-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.cat-icon-phone { background: #e0f2fe; color: #0284c7; }
.cat-icon-bank { background: #fef3c7; color: #b45309; font-weight:800; font-size:0.85rem; }
.cat-icon-sosmed { background: #fce7f3; color: #e11d48; }

.cat-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.cat-info p {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Recent Search / Result Section */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.section-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.result-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.result-main-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-color);
  gap: 10px;
}

.account-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bank-badge-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #0056b3;
}

.account-details h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.account-details p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Threat Badge Indicator */
.threat-badge-danger {
  background: var(--accent-danger-bg);
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 8px 12px;
  border-radius: 14px;
  text-align: right;
  min-width: 125px;
}

.threat-badge-danger .lbl {
  font-size: 0.7rem;
  font-weight: 600;
  display: block;
}

.threat-badge-danger .val {
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.threat-badge-safe {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
  padding: 8px 12px;
  border-radius: 14px;
  text-align: right;
}

/* Linked Data Accordion (Vertical Stacked Rows) */
.linked-data-section {
  margin-top: 14px;
}

.linked-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.linked-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.linked-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.linked-box:hover {
  background: #f1f5f9;
  border-color: var(--primary-teal);
}

.linked-box-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.linked-box-head .icon {
  font-size: 18px;
}

.linked-box-head .name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.linked-box-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.linked-expand-panel {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 14px;
  margin-top: 6px;
  display: none;
  font-size: 0.82rem;
}

.linked-expand-panel.active {
  display: block;
}

.linked-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.linked-item-row:last-child {
  border-bottom: none;
}

/* Banner Lapor Bukti */
.lapor-banner {
  background: linear-gradient(135deg, #fff5f5, #fed7d7);
  border: 1px solid #feb2b2;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lapor-banner-text h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #9b2c2c;
  margin-bottom: 2px;
}

.lapor-banner-text p {
  font-size: 0.78rem;
  color: #742a2a;
  line-height: 1.3;
}

.btn-upload-red {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

/* Statistics Footer Banner */
.stats-banner {
  background: var(--dark-hero-bg) url('../images/map_stats.jpg') center/cover no-repeat;
  position: relative;
  border-radius: 20px;
  padding: 20px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stats-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 19, 41, 0.85), rgba(15, 23, 42, 0.92));
}

.stats-content {
  position: relative;
  z-index: 2;
}

.stats-sub {
  font-size: 0.8rem;
  color: var(--primary-teal-light);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.stat-num-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-teal-light);
}

.stat-num-box p {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.2;
}

.stats-footer-note {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 14px;
  text-align: right;
}

/* Legal Footer Links */
.footer-legal-links {
  padding: 16px 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  margin-top: 10px;
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-links-row a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}

.footer-links-row a:hover {
  color: var(--primary-teal);
}

.copyright-text {
  font-size: 0.72rem;
  color: var(--text-light);
}

/* Bottom Navigation Bar (Sticky Fixed at Screen Bottom with ZERO GAP v1.4) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-width); /* Exactly 480px width */
  height: 68px;
  background: #ffffff;
  border-top: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding: 0 10px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  width: 60px;
  transition: all 0.2s ease;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: all 0.2s ease;
}

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

.nav-item.active svg {
  transform: translateY(-2px);
}

/* Special center plus button for Lapor */
.nav-item-add {
  position: relative;
  top: -12px;
}

.nav-item-add .add-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.4);
  border: 3px solid #ffffff;
}

/* VIP Badge & Lock Overlay Styling */
.badge-vip {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.vip-locked-card {
  position: relative;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  overflow: hidden;
  margin-top: 10px;
}

.vip-blur-content {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.4;
}

.vip-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  padding: 16px;
  z-index: 10;
}

.btn-vip-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-vip-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.5);
}

/* Forms & Cards Styling for Pages */
.card-page {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-teal);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

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

.checkbox-legal-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f1f5f9;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.checkbox-legal-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-teal);
  margin-top: 2px;
}

.btn-primary-block {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
}

/* Alert Boxes */
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.alert-danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.alert-info { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }

/* Status Badges */
.badge-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-pending { background: #fef3c7; color: #b45309; }
.badge-approved { background: #dcfce7; color: #15803d; }
.badge-rejected { background: #fee2e2; color: #b91c1c; }

/* Image Proof Lightbox Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 20px;
  max-height: 90vh;
  overflow-y: auto;
}
