/* ==========================================================================
   BHUMI-GO BATCH 2 STYLESHEET
   - Exact "After Login" Header (Avatar + Good morning + Name + Bell + '+')
   - Search Bar + Dark Green Filter Square Button
   - 60fps Name & Mobile Number Auth Modal (with Math CAPTCHA & DPDP Consent)
   - Notification Center & Logged-In Profile Dashboard
   ========================================================================== */

/* ==========================================================================
   1. AFTER-LOGIN PERSONALIZED HEADER (MATCHES RIGHT SCREENSHOT)
   ========================================================================== */
.after-login-header {
  height: 58px;
  min-height: 58px;
  padding: 4px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-app);
  z-index: 20;
  animation: headerFadeIn60fps 0.28s var(--ease-60fps) forwards;
}

@keyframes headerFadeIn60fps {
  from {
    opacity: 0;
    transform: translate3d(0, -6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.user-greeting-left {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
}

.user-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B5E3A 0%, #2E8555 100%);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #FFFFFF;
  box-shadow: 0 3px 10px rgba(27, 94, 58, 0.20);
}

.user-greeting-texts {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.greeting-time-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
}

.greeting-user-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 195px;
}

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

/* Notification Bell Button with Green Unread Dot */
.notif-bell-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-search);
  transition: transform 0.18s var(--ease-60fps), background-color 0.18s ease;
}

.notif-bell-btn:active {
  transform: scale(0.92);
  background: var(--bg-sage-soft);
}

.notif-green-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: #16A34A;
  border: 1.5px solid #FFFFFF;
}

/* ==========================================================================
   2. AFTER-LOGIN SEARCH ROW + DARK GREEN FILTER SQUARE BOX
   ========================================================================== */
.search-row-flex {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
}

.search-row-flex .pill-search-box {
  flex: 1;
  min-width: 0;
}

.search-row-flex.after-mode .pill-search-box {
  border-radius: 14px;
}

.after-green-filter-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--green-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(27, 94, 58, 0.24);
  transition: transform 0.18s var(--ease-60fps), background-color 0.2s ease;
  will-change: transform;
}

.after-green-filter-btn:active {
  transform: scale(0.93);
  background: var(--green-dark);
}

/* "See All" Text Link in After-Login Featured Properties Header */
.see-all-green-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-primary);
  padding: 4px 6px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.see-all-green-link:active {
  background: var(--bg-sage-soft);
}

/* ==========================================================================
   3. NAME & MOBILE NUMBER AUTH FORM (60FPS BOTTOM SHEET)
   ========================================================================== */
.auth-sheet-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.auth-shield-badge {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--bg-sage-soft);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-sheet-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.auth-sheet-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.auth-form-group {
  margin-bottom: 12px;
}

.auth-field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.auth-input-box {
  height: 44px;
  width: 100%;
  background: var(--bg-app);
  border: 1.5px solid var(--border-pill);
  border-radius: 13px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.auth-input-box:focus-within {
  border-color: var(--green-primary);
  background: #FFFFFF;
}

.country-prefix-tag {
  font-size: 13px;
  font-weight: 800;
  color: var(--green-primary);
  padding-right: 8px;
  border-right: 1px solid var(--border-pill);
}

.auth-text-input {
  flex: 1;
  width: 100%;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.auth-text-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Role Quick Pills (Both Seeker & Owner Enabled by Default) */
.role-choice-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.role-chip-btn {
  height: 36px;
  border-radius: 11px;
  background: var(--bg-app);
  border: 1.5px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.18s var(--ease-60fps);
}

.role-chip-btn.active {
  background: var(--bg-sage-soft);
  border-color: var(--green-primary);
  color: var(--green-primary);
}

/* Math CAPTCHA Security Row */
.captcha-security-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.captcha-question-pill {
  height: 44px;
  padding: 0 14px;
  border-radius: 13px;
  background: var(--bg-sage-soft);
  border: 1px solid var(--border-pill);
  color: var(--green-primary);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* DPDP Consent Checkbox */
.dpdp-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 14px;
  cursor: pointer;
}

.dpdp-consent-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--green-primary);
  cursor: pointer;
}

.dpdp-consent-text {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.38;
}

.auth-error-banner {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 11px;
  margin-bottom: 11px;
}

/* ==========================================================================
   4. DUAL SEGMENT SWITCHER (MY LISTINGS VS SAVED) & LOGGED-IN PROFILE
   ========================================================================== */
.dual-segment-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-sage-soft);
  padding: 4px;
  border-radius: 13px;
  margin-bottom: 14px;
}

.segment-btn {
  height: 34px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.segment-btn.active {
  background: #FFFFFF;
  color: var(--green-primary);
  box-shadow: 0 2px 6px rgba(19, 34, 27, 0.06);
}

/* Logged-In Profile Dashboard Card */
.logged-profile-hero {
  background: linear-gradient(135deg, #1B5E3A 0%, #13452A 100%);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: 0 8px 24px rgba(27, 94, 58, 0.22);
}

.hero-avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.65);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-user-info h3 {
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 2px;
}

.hero-user-info p {
  font-size: 12px;
  opacity: 0.88;
}

.hero-verified-chip {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  padding: 2.5px 9px;
  border-radius: var(--radius-pill);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}

.p-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  padding: 12px 8px;
  text-align: center;
}

.p-stat-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--green-primary);
}

.p-stat-lbl {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
}

.profile-menu-list {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
}

.profile-menu-item {
  width: 100%;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:active {
  background: var(--bg-sage-soft);
}

.logout-danger-btn {
  width: 100%;
  height: 42px;
  border-radius: var(--radius-pill);
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================================================
   5. NOTIFICATION DRAWER ITEMS
   ========================================================================== */
.notif-item-card {
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  margin-bottom: 9px;
  display: flex;
  gap: 10px;
}

.notif-item-card.unread {
  background: var(--bg-sage-soft);
  border-color: var(--border-pill);
}

.notif-icon-dot {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--green-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
}

.notif-item-body h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.notif-item-body p {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.notif-time-stamp {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}
