.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 46, 34, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: modalFadeIn 0.2s ease;
}

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

.modal-card {
    background: var(--card-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    margin: 1rem;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 20px 50px rgba(26, 46, 34, 0.25);
    text-align: center;
    position: relative;
    animation: modalPopIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* .modal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, var(--green-300), var(--green-400), var(--green-300));
} */

@keyframes modalPopIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-icon-tile {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-300), var(--green-400));
    color: #fff;
}

.modal-icon-tile-danger {
    background: linear-gradient(135deg, #e08074, var(--error));
}

.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.modal-message {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.modal-btn-ghost,
.modal-btn-primary {
    flex: 1;
    padding: 0.72rem 1rem;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.modal-btn-ghost {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
}

.modal-btn-ghost:hover {
    border-color: var(--green-400);
    color: var(--text-primary);
}

.modal-btn-primary {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, var(--green-400), var(--green-500));
}

.modal-btn-primary:hover {
    transform: translateY(-1px);
}

.modal-btn-danger {
    background: linear-gradient(135deg, #d9564a, var(--error));
}

.modal-error-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-align: left;
    background: var(--error-bg);
    border-left: 3px solid var(--error);
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    margin: 0 0 1.25rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--error);
}

.modal-error-badge {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--error);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-card-info-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-second-third-message-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.modal-image-src {
  width: 50px;
  height: 33px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  padding-right: 0.5rem;
}

.modal-second-message {
  font-size: 0.92rem;
  color: var(--text-primary);
  margin: 0;
}

.modal-third-message {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}