::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--surface-light);
    border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--surface-glass);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--surface-light) transparent;
}

#resultsLoader {
    position: absolute;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 16px;
}

#resultsLoader.hidden {
    display: none;
}

/* Dot Loader */
.dots-loader {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.dots-loader span {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    animation: bounce 0.6s infinite alternate;
}

.dots-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.dots-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

#resultsLoader p {
    font-size: 15px;
    opacity: 0.85;
    color: var(--text-primary);
}

.heading {
    font-size: 24px;
    color: var(--primary-color);
    text-align: center;
    padding-top: 50px;
    display: block;
}

.para {
    color: var(--text-secondary);
    text-align: start;
    margin-top: 30px;
}

/* Universal Close Button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1.4rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: rotate(90deg);
  transition: all 0.25s ease;
  z-index: 1;
}

.close-btn:hover {
  background: var(--border-primary);
  color: var(--primary-color);
  transform: rotate(180deg);
}

.btn-loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-group.error {
  animation: shake 0.35s ease;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.autofilled {
  animation: highlight 1.4s ease;
}

@keyframes highlight {
  0% { background-color: #fff3cd; }
  100% { background-color: transparent; }
}

.update-banner {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  opacity: 0;
  width: calc(100% - 32px);
  max-width: 960px;
  z-index: 9999;
  pointer-events: none;
}

/* ENTER */
.update-banner.show {
  animation: bannerIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: auto;
}

/* EXIT */
.update-banner.exit {
  animation: bannerOut 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes bannerIn {
  from {
    transform: translateX(-50%) translateY(150%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes bannerOut {
  from {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  to {
    transform: translateX(-50%) translateY(150%);
    opacity: 0;
  }
}

.update-content {
  background: linear-gradient(135deg, #020617, #0f172a);
  border-radius: 50px;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
}

.update-text {
  display: flex;
  gap: 14px;
  align-items: center;
}

.update-text p {
  margin: 0;
  font-size: 16px;
  color: #e5e7eb;
}

.update-badge {
  background: linear-gradient(135deg, #f97316, #fb7185);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
}

.update-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.update-btn {
  background: linear-gradient(135deg, #f97316, #fb7185);
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.update-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(249,115,22,.5);
}

.update-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 18px;
  transition: transform .3s ease, color .3s ease;
}

.update-close:hover {
  transform: rotate(90deg);
  color: #fff;
}

/* ===== Floating Pill ===== */
.update-pill {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #f97316, #fb7185);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(249,115,22,.45);
  transform: scale(0);
  opacity: 0;
  transition: all .4s cubic-bezier(.22,1,.36,1);
  z-index: 9999;
}

.update-pill.show {
  transform: scale(1);
  opacity: 1;
}

.update-pill:hover {
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .update-text p {
  font-size: 10px;
}
.update-badge {
  background: linear-gradient(135deg, #f97316, #fb7185);
  font-size: 8px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
}
.update-content {
  padding: 10px 15px;
}
.update-btn{
  font-size: 9px;
  font-weight: 600;
  padding: 7px 10px;
}
.update-text{
  max-width: 65%;
}
}
