/* Home welcome-back dashboard styles */
.welcome-back-section {
  background: #fdfdfd;
  padding: 34px 0;
}

.welcome-title {
  color: #002e6e;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
}

.welcome-back-section .dashboard-grid {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

.welcome-back-section .dash-card {
  border: 1px solid #eee;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.welcome-back-section .dash-card:hover {
  transform: translateY(-5px);
}

.welcome-back-section .card-blue-light {
  background: #f0f7ff;
}

.welcome-back-section .card-blue-gradient {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.welcome-back-section .card-blue-dark {
  background: #002e6e;
  color: #fff;
}

.welcome-back-section .card-green-light {
  background: #e8f5e9;
}

.welcome-back-section .dash-card-content {
  flex: 1;
  margin-top: 0px;
}

.home-bank-trigger .loan-bank-logo,
.home-bank-option .loan-bank-logo {
  flex: 0 0 36px;
  height: 36px;
  padding: 6px;
  width: 36px;
}

.loan-bank-card .bank-logo-wrap {
  flex: 0 0 48px;
}

.home-bank-trigger .loan-bank-logo img,
.home-bank-option .loan-bank-logo img,
.loan-bank-card .bank-logo-wrap img {
  height: 26px;
  max-height: 26px;
  max-width: 26px;
  object-fit: contain;
  width: 26px;
}

@media (max-width: 640px) {
  .home-bank-trigger,
  .home-bank-option {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .loan-bank-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .loan-bank-card .loan-apply-link {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }
}

.welcome-back-section .card-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
  padding: 0;
  text-align: center;
}

.welcome-back-section .card-header h4,
.welcome-back-section .card-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.welcome-back-section .recommendation-stack {
  height: auto;
}

.welcome-back-section .rec-image-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 8px;
}

.welcome-back-section .rec-image-card img {
  aspect-ratio: 16 / 8.5;
  border-radius: 6px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.welcome-back-section .rec-info {
  padding: 9px 4px 2px;
}

.welcome-back-section .rec-title,
.welcome-back-section .rec-price {
  margin: 0;
}

.welcome-back-section .rec-title {
  font-size: 0.86rem;
  font-weight: 700;
}

.welcome-back-section .rec-price {
  color: #002e6e;
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 4px;
}

.welcome-back-section .compare-visual {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 14px 0;
}

.welcome-back-section .compare-box {
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  height: 64px;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  width: 82px;
}

.welcome-back-section .compare-info h5,
.welcome-back-section .compare-info h3,
.welcome-back-section .compare-info p {
  margin: 0;
}

.welcome-back-section .compare-info p {
  color: #27384c;
  font-size: 0.86rem;
  line-height: 1.45;
  margin-top: 5px;
}

.welcome-back-section .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.welcome-back-section .tag-row span {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  color: #002e6e;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
}

.welcome-back-section .compare-box img {
  border-radius: 6px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.welcome-back-section .vs-circle {
  align-items: center;
  background: #2d2d2d;
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex: 0 0 38px;
  font-size: 12px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.welcome-back-section .search-bubble {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 220, 0, 0.28);
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 8px;
  justify-content: center;
  padding: 10px 12px;
  text-align: center;
}

.welcome-back-section .ready-tag {
  background: #fff3cd;
  border-radius: 999px;
  color: #7a4a00;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
}

.welcome-back-section .add-loc-text {
  color: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0;
  padding: 9px 0 !important;
}

.welcome-back-section .locality-chips {
  display: grid;
  gap: 7px;
  margin-top: 0;
}

.welcome-back-section .locality-chips a {
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 220, 0, 0.22);
  border-radius: 10px;
  color: #fff;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  padding: 8px 10px;
  text-decoration: none;
  text-align: left;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.welcome-back-section .locality-chips a:hover,
.welcome-back-section .locality-chips a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 220, 0, 0.75);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  outline: none;
  transform: translateY(-3px);
}

.welcome-back-section .locality-chips strong,
.welcome-back-section .locality-chips small,
.welcome-back-section .locality-chips em {
  display: block;
}

.welcome-back-section .locality-chips strong {
  font-size: 0.9rem;
}

.welcome-back-section .locality-chips small {
  color: #ffdc00;
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 2px;
}

.welcome-back-section .locality-chips em {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  margin-top: 2px;
  display: none;
}

.welcome-back-section .locality-chips i {
  color: #ffdc00;
  justify-self: center;
  transition: transform 0.25s ease;
}

.welcome-back-section .locality-chips a:hover i,
.welcome-back-section .locality-chips a:focus-visible i {
  transform: translateX(4px);
}

.welcome-back-section .recent-list {
  display: grid;
  gap: 10px;
}

.welcome-back-section .recent-item {
  align-items: center;
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  padding: 10px;
  text-align: center;
}

.welcome-back-section .recent-item img {
  border-radius: 7px;
  flex: 0 0 68px;
  height: 68px;
  object-fit: cover;
  width: 68px;
}

.welcome-back-section .recent-details {
  min-width: 0;
  text-align: center;
}

.welcome-back-section .recent-details h6,
.welcome-back-section .recent-details h3,
.welcome-back-section .recent-details p,
.welcome-back-section .recent-details strong {
  display: block;
  margin: 0;
}

.welcome-back-section .recent-details h6,
.welcome-back-section .recent-details h3 {
  color: #1f2937;
  font-size: 0.85rem;
  font-weight: 800;
}

.welcome-back-section .recent-details p {
  color: #607086;
  font-size: 0.76rem;
  margin-top: 2px;
}

.welcome-back-section .recent-details strong {
  color: #002e6e;
  font-size: 0.78rem;
  margin-top: 4px;
}

.welcome-back-section .recent-details a {
  color: #8a5200;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  margin-top: 5px;
  padding: 0 !important;
}

.welcome-back-section .recent-empty-state {
  align-items: center;
  background: #fff;
  border: 1px dashed rgba(0, 46, 110, 0.22);
  border-radius: 10px;
  color: #526174;
  display: flex;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 10px;
  min-height: 82px;
  padding: 16px;
}

.welcome-back-section .recent-empty-state i {
  color: #f39c12;
}

.welcome-back-section .card-footer-link {
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: #002e6e;
  display: flex;
  font-size: 0.85rem;
  font-weight: 700;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  text-decoration: none;
  text-align: center;
}
.welcome-back-section .card-blue-dark .card-footer-link {
  border-top-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

@media (max-width: 1100px) {
  .welcome-back-section .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .welcome-back-section {
    padding: 32px 0;
  }
  .welcome-back-section .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
