.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(43,37,32,0.5);
  backdrop-filter: blur(3px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: popupFadeIn 0.3s ease;
}

.popup-overlay.open {
  display: flex;
}

@keyframes popupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup-card {
  background: #fff;
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(43,37,32,0.18);
  overflow: hidden;
  animation: popupSlideUp 0.35s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}

@keyframes popupSlideUp {
  from { transform: translateY(32px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.popup-accent {
  height: 5px;
  background: linear-gradient(90deg, #78a08c, #4a8c70);
}

.popup-body {
  padding: 28px 28px 24px;
}

.popup-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.popup-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 5px;
  background: #6b6f73;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.popup-logo-text-main {
  font-size: 14px;
  font-weight: 700;
  color: #2b2722;
}

.popup-logo-text-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #837b70;
}

.popup-greeting {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #78a08c;
  margin-bottom: 8px;
}

.popup-title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #2b2722;
}

.popup-options {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.popup-option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fdfbf8;
  border: 1.5px solid #ece6dc;
  border-radius: 10px;
  padding: 14px 16px;
}

.popup-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.popup-option-icon.green {
  background: #e6f2ec;
}

.popup-option-icon.grey {
  background: #eef0f1;
}

.popup-option-title {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #2b2722;
}

.popup-option-desc {
  font-size: 12px;
  color: #837b70;
  line-height: 1.45;
}

.popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.popup-action-primary,
.popup-action-secondary {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 5px;
  padding: 12px 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.popup-action-primary {
  background: #78a08c;
  color: #fff;
  border: 1.5px solid #78a08c;
}

.popup-action-primary:hover {
  background: #5e8c78;
  border-color: #5e8c78;
}

.popup-action-secondary {
  background: transparent;
  color: #6b6f73;
  border: 1.5px solid #ece6dc;
}

.popup-action-secondary:hover {
  background: #eef0f1;
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef0f1;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #837b70;
  transition: background 0.15s, color 0.15s;
}

.popup-close:hover {
  background: #ece6dc;
  color: #2b2722;
}

.popup-dismiss {
  text-align: center;
  font-size: 11.5px;
  color: #837b70;
  cursor: pointer;
  transition: color 0.15s;
}

.popup-dismiss:hover {
  color: #2b2722;
}

.popup-timer {
  height: 2px;
  background: #ece6dc;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.popup-timer-fill {
  height: 100%;
  background: #78a08c;
  width: 100%;
  animation: popupTimerShrink 6s linear forwards;
}

@keyframes popupTimerShrink {
  from { width: 100%; }
  to { width: 0%; }
}

@media (max-width: 480px) {
  .popup-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .popup-card {
    border-radius: 18px 18px 0 0;
    max-width: 100%;
  }

  .popup-body {
    padding: 22px 20px 20px;
  }

  .popup-actions {
    grid-template-columns: 1fr;
  }

  .popup-title {
    font-size: 18px;
  }
}
