/* ── Loading Survey ── */
.loading-survey {
    display: none;
    margin-top: 1.2rem;
    padding: 1.2rem 1rem;
    background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
    border: 1.5px solid #6366f1;
    border-radius: 0.6rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}
.loading-survey.visible {
    display: block;
    animation: surveySlideIn 0.35s ease-out;
}
@keyframes surveySlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.loading-survey .survey-title {
    font-size: 0.9rem;
    color: #c4b5fd;
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.loading-survey .survey-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.loading-survey .pill {
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid #333;
    border-radius: 2rem;
    color: #aaa;
    font-size: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.loading-survey .pill:hover {
    border-color: #555;
}
.loading-survey .pill.selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
}
.loading-survey .survey-text-row {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.loading-survey .survey-text-row input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 0.4rem;
    color: #fafafa;
    font-size: 0.75rem;
    font-family: inherit;
}
.loading-survey .survey-text-row input:focus {
    outline: none;
    border-color: #6366f1;
}
.loading-survey .survey-text-row button {
    padding: 0.4rem 0.8rem;
    background: #6366f1;
    border: none;
    border-radius: 0.4rem;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
}
.loading-survey .survey-text-row button:hover {
    background: #5558e6;
}
.loading-survey .survey-thanks {
    display: none;
    font-size: 0.8rem;
    color: #6366f1;
    padding: 0.5rem 0;
}

/* ── Post-Generation Rating ── */
.design-rating {
    display: none;
    margin-top: 0.75rem;
    text-align: center;
}
.design-rating.visible {
    display: block;
}
.design-rating .rating-buttons {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}
.design-rating .rating-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1.5px solid #333;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.1s;
}
.design-rating .rating-btn:hover {
    border-color: #555;
    background: #161616;
}
.design-rating .rating-btn.selected {
    transform: scale(1.1);
}
.design-rating .rating-btn.selected[data-rating="dislike"] {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}
.design-rating .rating-btn.selected[data-rating="like"] {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}
.design-rating .rating-btn.selected[data-rating="superlike"] {
    border-color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
}
.design-rating .rating-comment {
    display: none;
    margin-top: 0.5rem;
}
.design-rating .rating-comment.visible {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}
.design-rating .rating-comment input {
    flex: 1;
    max-width: 280px;
    padding: 0.4rem 0.6rem;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 0.4rem;
    color: #fafafa;
    font-size: 0.75rem;
    font-family: inherit;
}
.design-rating .rating-comment input:focus {
    outline: none;
    border-color: #6366f1;
}
.design-rating .rating-comment button {
    padding: 0.4rem 0.8rem;
    background: #6366f1;
    border: none;
    border-radius: 0.4rem;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
}
.design-rating .rating-comment button:hover {
    background: #5558e6;
}
.design-rating .rating-thanks {
    display: none;
    font-size: 0.8rem;
    color: #6366f1;
    margin-top: 0.3rem;
}
