/**
 * KejaMarket Mobile Layout - Complete User Journey (16 Screens)
 * Implements 100% of Poster 1: Browse • Request • Communicate • Pay • Unlock • Move In
 * Fast • Secure • Reliable PWA & Mobile Chrome experience
 */

/* ========================================
   BASE & RESET FOR MOBILE PWA
   ======================================== */
html.mobile-view,
body.mobile-layout {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #1e293b;
  background: #f8fafc;
  margin: 0;
  padding: 0;
  padding-bottom: 74px; /* Space for bottom nav */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Hide desktop-only layout when mobile is active */
body.mobile-layout .site-header,
body.mobile-layout .header-container,
body.mobile-layout .category-pills-bar,
body.mobile-layout .desktop-sidebar,
body.mobile-layout .footer-wrapper,
body.mobile-layout .desktop-nav,
body.mobile-layout > .main-content > .hero-banner,
body.mobile-layout > .main-content > .filters-section,
body.mobile-layout > .main-content > .properties-container,
body.mobile-layout > .main-content > #property-grid,
body.mobile-layout > .main-content > #services-section,
body.mobile-layout > .main-content > #marketplace-section,
body.mobile-layout > .main-content > #recently-added-section {
  display: none !important;
}

#mobile-app {
  display: block;
  min-height: 100vh;
  position: relative;
  background: #f8fafc;
}

/* Top App Bar */
.km-top-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.km-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.km-brand-logo .logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #00b53f;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
}

.km-brand-logo .logo-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.km-brand-logo .logo-text .keja { color: #00b53f; }
.km-brand-logo .logo-text .market { color: #ef4444; }

.km-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.km-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  position: relative;
}
.km-icon-btn .badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid white;
}

/* Screen Header Bar (Back button, Title, Action) */
.km-screen-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 1000;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.km-screen-header .back-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #1e293b;
  cursor: pointer;
  border: none;
  background: transparent;
}
.km-screen-header .screen-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.km-screen-header .header-action {
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 700;
  color: #00b53f;
  cursor: pointer;
  background: transparent;
  border: none;
}

/* Bottom Navigation Bar (5 tabs) */
.km-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 6px;
  z-index: 1000;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.05);
}
.km-nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 2px;
  cursor: pointer;
  border: none;
  background: transparent;
  position: relative;
  color: #94a3b8;
  transition: all 0.15s ease;
}
.km-nav-tab .tab-icon {
  font-size: 18px;
}
.km-nav-tab .tab-label {
  font-size: 10.5px;
  font-weight: 600;
}
.km-nav-tab.active {
  color: #00b53f;
}
.km-nav-tab .nav-badge {
  position: absolute;
  top: 4px;
  right: 50%;
  transform: translateX(12px);
  background: #ef4444;
  color: white;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ========================================
   SCREEN 1: HOME SCREEN
   ======================================== */
.km-home-search-bar {
  padding: 12px 16px 8px;
  background: #ffffff;
}
.km-search-box {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 24px;
  padding: 0 6px 0 16px;
  height: 44px;
  border: 1px solid #e2e8f0;
}
.km-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: #0f172a;
  outline: none;
}
.km-search-box .btn-search {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #00b53f;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
}
.km-location-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 4px 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: #15803d;
  cursor: pointer;
}

/* Category Grid - 8 items */
.km-category-grid-section {
  padding: 14px 16px;
  background: #ffffff;
  margin-bottom: 8px;
}
.km-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
}
.km-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}
.km-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f0fdf4;
  border: 1.5px solid #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #00b53f;
  transition: transform 0.15s;
}
.km-cat-item:active .km-cat-icon {
  transform: scale(0.93);
}
.km-cat-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #334155;
  line-height: 1.2;
}

/* Featured Listings Section */
.km-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 8px;
}
.km-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.km-section-link {
  font-size: 12px;
  font-weight: 700;
  color: #00b53f;
  text-decoration: none;
  cursor: pointer;
}

/* 2-Column Property Card Grid */
.km-property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 14px 20px;
}
.km-property-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}
.km-property-card:active {
  transform: scale(0.98);
}
.km-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 124px;
  background: #e2e8f0;
  overflow: hidden;
}
.km-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.km-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: white;
  background: #00b53f;
}
.km-card-badge.sale { background: #0284c7; }
.km-card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
}
.km-card-fav-btn.active { color: #ef4444; }

.km-card-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.km-card-price {
  font-size: 14px;
  font-weight: 900;
  color: #00b53f;
  margin-bottom: 2px;
}
.km-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.km-card-specs {
  font-size: 10.5px;
  color: #64748b;
  margin-top: auto;
}

/* ========================================
   SCREEN 2: BROWSE / SEARCH RESULTS
   ======================================== */
.km-browse-bar {
  background: #ffffff;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}
.km-browse-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border-radius: 20px;
  padding: 0 12px;
  height: 38px;
}
.km-browse-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  outline: none;
}
.km-filter-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

/* Horizontal Category Chips */
.km-chips-scroll {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: #ffffff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid #e2e8f0;
}
.km-chips-scroll::-webkit-scrollbar { display: none; }
.km-chip {
  padding: 6px 14px;
  border-radius: 18px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.km-chip.active {
  background: #00b53f;
  color: #ffffff;
}

.km-results-counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 6px;
  font-size: 12px;
  color: #64748b;
}

/* ========================================
   SCREEN 3: PROPERTY DETAILS
   ======================================== */
.km-detail-screen {
  background: #ffffff;
  min-height: 100vh;
  padding-bottom: 84px;
}
.km-detail-carousel {
  position: relative;
  width: 100%;
  height: 270px;
  background: #0f172a;
}
.km-detail-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.km-carousel-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(15,23,42,0.75);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 12px;
}
.km-detail-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  border-bottom: 1px solid #f1f5f9;
}
.km-detail-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid transparent;
  cursor: pointer;
}
.km-detail-thumb.active { border-color: #00b53f; }

.km-detail-content {
  padding: 16px;
}
.km-detail-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
}
.km-detail-price {
  font-size: 24px;
  font-weight: 900;
  color: #00b53f;
  margin-bottom: 4px;
}
.km-detail-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.3;
}
.km-detail-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 14px;
}
.km-specs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.km-spec-pill {
  padding: 7px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.km-detail-description {
  margin-bottom: 18px;
}
.km-detail-description h4 {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #0f172a;
}
.km-detail-description p {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* Landlord profile card */
.km-landlord-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 18px;
}
.km-landlord-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.km-landlord-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #00b53f;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

/* Detail Sticky Bottom Action Bar */
.km-detail-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 10px 16px;
  display: flex;
  gap: 10px;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
}
.km-btn-request-viewing {
  flex: 1;
  background: #00b53f;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.km-btn-save-fav {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: white;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
}

/* ========================================
   SCREEN 4: FILTERS (FULL SCREEN)
   ======================================== */
.km-filters-screen {
  background: #ffffff;
  min-height: 100vh;
  padding: 16px;
  padding-bottom: 80px;
}
.km-filter-group {
  margin-bottom: 22px;
}
.km-filter-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}
.km-filter-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.km-fchip {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: white;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}
.km-fchip.active {
  background: #00b53f;
  border-color: #00b53f;
  color: white;
}
.km-range-inputs {
  display: flex;
  gap: 10px;
  align-items: center;
}
.km-range-input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}
.km-filter-select {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  background: white;
}
.km-filter-apply-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #e2e8f0;
  z-index: 1000;
}
.km-btn-apply {
  width: 100%;
  padding: 14px;
  background: #00b53f;
  color: white;
  font-size: 14.5px;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* ========================================
   SCREEN 5: REQUEST A VIEWING
   ======================================== */
.km-request-screen {
  padding: 16px;
  background: #ffffff;
  min-height: 100vh;
  padding-bottom: 84px;
}
.km-mini-property-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 20px;
}
.km-mini-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}
.km-time-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.km-time-chip {
  padding: 10px 4px;
  text-align: center;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}
.km-time-chip.active {
  background: #00b53f;
  border-color: #00b53f;
  color: white;
}
.km-request-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  resize: none;
}

/* ========================================
   SCREEN 6: VIEWING REQUEST STATUS / MY REQUESTS
   SCREEN 15: MY BOOKINGS
   ======================================== */
.km-tab-bar-pill {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  margin: 12px 14px;
}
.km-tab-pill-btn {
  flex: 1;
  padding: 8px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}
.km-tab-pill-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.km-request-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin: 0 14px 10px;
  display: flex;
  gap: 12px;
}
.km-req-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}
.km-badge-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 800;
}
.km-badge-status.pending { background: #fef3c7; color: #b45309; }
.km-badge-status.confirmed { background: #dcfce7; color: #15803d; }
.km-badge-status.completed { background: #f1f5f9; color: #475569; }

/* ========================================
   SCREEN 8: MESSAGES & CHAT THREAD
   ======================================== */
.km-threads-list {
  padding: 8px 14px;
}
.km-thread-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
}
.km-thread-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00b53f;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  position: relative;
}
.km-chat-window {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 54px - 64px);
  background: #f8fafc;
}
.km-chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.km-chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}
.km-chat-bubble.out {
  align-self: flex-end;
  background: #00b53f;
  color: white;
  border-bottom-right-radius: 4px;
}
.km-chat-bubble.in {
  align-self: flex-start;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}
.km-chat-input-bar {
  padding: 10px 14px;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.km-chat-input-bar input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  outline: none;
  font-size: 13px;
}
.km-chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #00b53f;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ========================================
   SCREEN 9 & 14: CONFIRMATION & SUCCESS
   ======================================== */
.km-success-screen {
  text-align: center;
  padding: 36px 20px 80px;
  background: #ffffff;
  min-height: 100vh;
}
.km-big-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dcfce7;
  color: #00b53f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 16px;
}
.km-success-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}
.km-success-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 24px;
}
.km-benefit-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  margin-bottom: 24px;
}

/* ========================================
   SCREEN 10: SHOWING COUNTDOWN
   ======================================== */
.km-countdown-screen {
  padding: 24px 18px 80px;
  text-align: center;
  background: #ffffff;
  min-height: 100vh;
}
.km-timer-circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 5px solid #00b53f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  box-shadow: 0 4px 18px rgba(0,181,63,0.15);
}
.km-timer-digits {
  font-size: 26px;
  font-weight: 900;
  color: #00b53f;
  letter-spacing: 1px;
}
.km-timer-unit {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
}

/* ========================================
   SCREEN 11: 72HRS SMARTHUNT
   ======================================== */
.km-smarthunt-screen {
  padding: 18px;
  background: #ffffff;
  min-height: 100vh;
  padding-bottom: 80px;
}
.km-smarthunt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #f0fdf4;
  color: #15803d;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 12px;
}

/* ========================================
   SCREEN 12: M-PESA PAYMENT
   ======================================== */
.km-payment-screen {
  padding: 20px 16px 80px;
  background: #ffffff;
  min-height: 100vh;
}
.km-mpesa-banner {
  background: linear-gradient(135deg, #00b53f, #047857);
  border-radius: 14px;
  padding: 20px;
  color: white;
  text-align: center;
  margin-bottom: 22px;
}
.km-mpesa-banner .fee-amount {
  font-size: 32px;
  font-weight: 900;
  margin: 6px 0 2px 0;
}

/* ========================================
   SCREEN 16: ADMIN DASHBOARD (MOBILE VIEW)
   ======================================== */
.km-admin-mobile-screen {
  padding: 16px 14px 80px;
  background: #f8fafc;
  min-height: 100vh;
}
.km-admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.km-admin-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}
.km-kpi-num {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}
.km-kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-top: 2px;
}
/* ========================================
   PROFILE SCREEN
   ======================================== */
.km-profile-screen {
  background: #f8fafc;
  min-height: 100vh;
  padding-bottom: 80px;
}
.km-profile-header {
  background: linear-gradient(135deg, #00b53f 0%, #047857 100%);
  padding: 24px 18px 28px;
  color: white;
}
.km-profile-user-section {
  display: flex;
  align-items: center;
  gap: 14px;
}
.km-profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 2.5px solid rgba(255,255,255,0.6);
  color: white;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.km-profile-name {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 2px;
}
.km-profile-email {
  font-size: 12px;
  opacity: 0.85;
}
.km-profile-menu {
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.km-profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.km-profile-menu-item:active {
  background: #f0fdf4;
}
.km-profile-menu-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f0fdf4;
  color: #00b53f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.km-profile-menu-text {
  flex: 1;
  min-width: 0;
}
.km-profile-menu-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}
.km-profile-menu-subtitle {
  font-size: 11.5px;
  color: #64748b;
}
.km-profile-menu-arrow {
  color: #cbd5e1;
  font-size: 13px;
}
.km-profile-menu-badge {
  background: #00b53f;
  color: white;
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 800;
  min-width: 22px;
  text-align: center;
}
.km-profile-footer {
  padding: 16px 18px;
  text-align: center;
  border-top: 1px solid #f1f5f9;
  margin: 8px 14px 0;
}

/* ========================================
   DESKTOP PREVIEW CONTAINER FOR ?view=mobile
   ======================================== */
@media screen and (min-width: 769px) {
  body.mobile-layout {
    background: #0f172a;
    display: flex;
    justify-content: center;
    padding-bottom: 0;
  }
  body.mobile-layout #mobile-app {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    position: relative;
    background: #f8fafc;
    overflow-x: hidden;
  }
  body.mobile-layout .km-top-bar,
  body.mobile-layout .km-screen-header {
    max-width: 440px;
    margin: 0 auto;
  }
  body.mobile-layout .km-bottom-nav {
    max-width: 440px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
  }
}

