/* ==========================================================================
   FAREGRAM TRAVELLER PLATFORM INTERACTION OVERLAYS & SHEETS
   ========================================================================== */

/* Notification Centre Panel */
.fg-notification-centre-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  box-shadow: -4px 0 24px rgba(7, 31, 51, 0.15);
  z-index: 2050;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}

.fg-notification-centre-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.fg-notif-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #EBF0F5;
}

.fg-notif-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.fg-notif-item {
  padding: 14px 20px;
  border-bottom: 1px solid #F0F4F8;
  display: flex;
  gap: 12px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.fg-notif-item:hover {
  background: #F8FAFC;
}

.fg-notif-item.unread {
  background: #F0F7FF;
  border-left: 3px solid var(--fg-blue, #0878F9);
}

.fg-notif-icon-col {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #EBF4FF;
  color: var(--fg-blue, #0878F9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fg-notif-item.priority-critical .fg-notif-icon-col {
  background: #FEE2E2;
  color: #DC2626;
}

.fg-notif-item.priority-action .fg-notif-icon-col {
  background: #FEF3C7;
  color: #D97706;
}

.fg-notif-content-col {
  flex: 1;
}

.fg-notif-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #071F33;
  margin-bottom: 2px;
}

.fg-notif-message {
  font-size: 12px;
  color: #5A6D80;
  line-height: 1.4;
  margin-bottom: 4px;
}

.fg-notif-meta {
  font-size: 11px;
  color: #8C9CAE;
}

/* Backdrops */
.fg-notif-backdrop,
.fg-profile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 31, 51, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 2040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.fg-notif-backdrop.is-open,
.fg-profile-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Profile Menu Bottom Sheet & Desktop Popover */
.fg-profile-menu-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 30px rgba(7, 31, 51, 0.18);
  z-index: 2050;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
  padding-bottom: env(safe-area-inset-bottom, 12px);
}

.fg-profile-menu-panel.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 992px) {
  .fg-profile-menu-panel {
    top: 70px;
    right: 24px;
    left: auto;
    bottom: auto;
    width: 320px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(7, 31, 51, 0.15);
    border: 1px solid #EBF0F5;
    transform: translateY(-10px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .fg-profile-menu-panel.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
}

.fg-profile-avatar-large {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fg-midnight, #071F33);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.fg-menu-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8C9CAE;
  margin-bottom: 6px;
}

.fg-profile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #1A2E40;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.fg-profile-link:hover {
  background: #F4F7FB;
  color: var(--fg-blue, #0878F9);
}

.fg-sheet-handle {
  width: 40px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 999px;
  margin: 10px auto 4px auto;
}


/* ==========================================================================
   FAREGRAM TRAVELLER TRIPS PAGE - SYMMETRICAL & RESPONSIVE POLISH
   ========================================================================== */

.fg-trips-page-main {
  padding: 16px 16px 100px 16px !important;
  background-color: #F8FAFC;
}

.fg-trips-container {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

/* Page Header Row */
.fg-trips-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.fg-trips-header-text {
  flex: 1;
  min-width: 0;
}

.fg-trips-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #071F33;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.fg-trips-subtitle {
  font-size: 0.85rem;
  color: #64748B;
  margin-bottom: 0;
  line-height: 1.4;
}

.fg-trips-header-action {
  flex-shrink: 0;
}

.fg-trips-plan-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0070F3;
  color: #FFFFFF !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 112, 243, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fg-trips-plan-btn:hover {
  background: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 112, 243, 0.35);
  transform: translateY(-1px);
}

/* Segmented Category Filter Tabs */
.fg-trips-tabs-wrapper {
  margin-bottom: 20px;
  width: 100%;
}

.fg-trips-segmented-nav {
  display: flex;
  align-items: center;
  background: #EEF2F6;
  padding: 4px;
  border-radius: 9999px;
  gap: 4px;
  width: 100%;
}

.fg-trips-tab {
  flex: 1;
  text-align: center;
  background: transparent;
  border: none;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fg-trips-tab:hover {
  color: #071F33;
}

.fg-trips-tab.active {
  background: #0070F3;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(0, 112, 243, 0.24);
}

/* Symmetrical Empty State Card */
.fg-trips-empty-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(7, 31, 51, 0.04);
  border: 1px solid #E2E8F0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fg-trips-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #F0F7FF;
  color: #0070F3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.fg-trips-empty-icon svg {
  width: 36px;
  height: 36px;
}

.fg-trips-empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #071F33;
  margin-bottom: 6px;
}

.fg-trips-empty-desc {
  font-size: 0.88rem;
  color: #64748B;
  max-width: 380px;
  margin: 0 auto 24px auto;
  line-height: 1.5;
}

/* Symmetrical Action Buttons */
.fg-trips-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 440px;
}

.fg-btn-primary-pill,
.fg-btn-secondary-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fg-btn-primary-pill {
  background: #0070F3;
  color: #FFFFFF !important;
  border: 1px solid #0070F3;
  box-shadow: 0 2px 8px rgba(0, 112, 243, 0.2);
}

.fg-btn-primary-pill:hover {
  background: #0056b3;
  border-color: #0056b3;
}

.fg-btn-secondary-pill {
  background: #FFFFFF;
  color: #334155 !important;
  border: 1.5px solid #CBD5E1;
}

.fg-btn-secondary-pill:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #071F33 !important;
}

/* Small Screen Responsive Adjustments */
@media (max-width: 480px) {
  .fg-trips-page-main {
    padding: 14px 14px 96px 14px !important;
  }
  
  .fg-trips-title {
    font-size: 1.2rem;
  }
  
  .fg-trips-subtitle {
    font-size: 0.8rem;
  }
  
  .fg-trips-plan-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
  
  .fg-trips-tab {
    font-size: 0.8rem;
    padding: 7px 8px;
  }

  .fg-trips-empty-card {
    padding: 32px 16px;
  }

  .fg-trips-empty-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .fg-btn-primary-pill,
  .fg-btn-secondary-pill {
    width: 100%;
    flex: none;
    height: 42px;
  }
}

/* Brand Logo Harmonization matching Homepage */
.fg-header-logo-brand, .fg-brand-logo {
  color: #0878F9 !important;
}
.fg-header-logo-brand span, .fg-brand-logo span {
  color: #071F33 !important;
}
