.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}
.feedback-modal[hidden] { display: none; }
.feedback-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.feedback-dialog {
    position: relative;
    width: min(100%, 460px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 32px;
    border: 1px solid rgba(215, 122, 45, 0.28);
    border-radius: 16px;
    background: #141210;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: translateY(12px) scale(0.985);
    transition: opacity 180ms ease, transform 180ms ease;
}
.feedback-modal.open .feedback-dialog { opacity: 1; transform: translateY(0) scale(1); }
.feedback-dialog h2 { margin: 0 48px 8px 0; font-size: 1.5rem; }
.feedback-dialog-intro { margin-bottom: 24px; color: var(--text-gray); line-height: 1.6; }
.feedback-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--card-border);
    border-radius: 50%;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
    font-size: 1.3rem;
    cursor: pointer;
}
.feedback-rating { padding: 0; margin: 0 0 22px; border: 0; }
.feedback-rating legend,
.feedback-message-label { margin-bottom: 10px; color: var(--text-white); font-size: 0.9rem; font-weight: 700; }
.feedback-stars { display: flex; gap: 8px; }
.feedback-star { position: relative; cursor: pointer; }
.feedback-star input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.feedback-star span[aria-hidden="true"] {
    display: block;
    color: var(--text-muted);
    font-size: 2.2rem;
    line-height: 1;
    transition: color 140ms ease, transform 140ms ease;
}
.feedback-star.selected span[aria-hidden="true"],
.feedback-star:hover span[aria-hidden="true"] { color: var(--pumpkin-soft); }
.feedback-star:hover span[aria-hidden="true"] { transform: translateY(-2px); }
.feedback-star input:focus-visible + span[aria-hidden="true"] { outline: 2px solid var(--pumpkin-soft); outline-offset: 3px; }
.feedback-message-label { display: block; }
.feedback-message {
    display: block;
    width: 100%;
    min-height: 112px;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
    font: 0.9rem 'Inter', sans-serif;
    line-height: 1.5;
    resize: vertical;
}
.feedback-message:focus-visible { outline: 2px solid var(--pumpkin-soft); outline-offset: 2px; }
.feedback-privacy,
.feedback-status { margin-top: 12px; color: var(--text-muted); font-size: 0.78rem; line-height: 1.5; }
.feedback-status { min-height: 1.2em; color: var(--pumpkin-soft); }
.feedback-no-show { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--text-gray); font-size: 0.82rem; cursor: pointer; }
.feedback-no-show input { accent-color: var(--accent); }
.feedback-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.feedback-cancel {
    padding: 12px 18px;
    border: 1px solid var(--card-border);
    border-radius: 100px;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
    cursor: pointer;
}
.feedback-actions .card-btn { padding: 12px 18px; }
.feedback-actions .card-btn:disabled { cursor: wait; opacity: 0.6; }
.feedback-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
    .feedback-modal, .feedback-dialog, .feedback-star span[aria-hidden="true"] { transition: none; }
}