/* ===== Email Auto-Suggestion Dropdown ===== */

.email-suggest-wrap {
  position: relative;
}

.email-suggest-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(180deg, #1a2238 0%, #151929 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 149, 255, 0.08);
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  -webkit-overflow-scrolling: touch;
}

.email-suggest-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.email-suggest-dropdown::-webkit-scrollbar {
  width: 5px;
}

.email-suggest-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.email-suggest-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.email-suggest-head svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.email-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #e2e8f0;
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.email-suggest-item:hover,
.email-suggest-item.active {
  background: rgba(0, 149, 255, 0.12);
}

.email-suggest-item:active {
  transform: scale(0.98);
}

.email-suggest-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  color: #fff;
}

.email-suggest-icon.gmail { background: linear-gradient(135deg, #ea4335, #fbbc04); }
.email-suggest-icon.outlook { background: linear-gradient(135deg, #0078d4, #50a0ff); }
.email-suggest-icon.hotmail { background: linear-gradient(135deg, #0072c6, #00a4ef); }
.email-suggest-icon.yahoo { background: linear-gradient(135deg, #6001d2, #9b59ff); }
.email-suggest-icon.icloud { background: linear-gradient(135deg, #555, #999); }
.email-suggest-icon.proton { background: linear-gradient(135deg, #6d4aff, #9b8cff); }
.email-suggest-icon.live { background: linear-gradient(135deg, #0078d4, #28a8ea); }
.email-suggest-icon.mail { background: linear-gradient(135deg, #0066cc, #3399ff); }
.email-suggest-icon.default { background: linear-gradient(135deg, #6366f1, #06b6d4); }

.email-suggest-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-suggest-text .local {
  color: #fff;
  font-weight: 600;
}

.email-suggest-text .domain {
  color: #94a3b8;
  font-weight: 500;
}

.email-suggest-wrap .form-input:focus {
  border-color: var(--border-focus);
}

@media (max-width: 480px) {
  .email-suggest-dropdown {
    max-height: 220px;
  }

  .email-suggest-item {
    padding: 12px 10px;
    font-size: 13px;
  }
}
