.feedback-widget { position: fixed; left: 22px; bottom: 22px; z-index: 1050; font-family: Inter, sans-serif; }
.feedback-trigger { display: flex; align-items: center; gap: 11px; max-width: 290px; padding: 12px 15px; border: 1px solid rgba(108,92,231,.2); border-radius: 17px; background: #fff; color: #242033; box-shadow: 0 10px 32px rgba(35,25,90,.16); cursor: pointer; text-align: left; transition: transform .2s, box-shadow .2s; }
.feedback-trigger:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(35,25,90,.22); }
.feedback-trigger > svg { width: 25px; height: 25px; padding: 9px; box-sizing: content-box; border-radius: 13px; color: #fff; background: linear-gradient(135deg,#6c5ce7,#8b5cf6); flex: none; }
.feedback-trigger-copy { display: flex; flex-direction: column; gap: 2px; }
.feedback-trigger-copy strong { font-size: 13px; line-height: 1.25; }
.feedback-trigger-copy small { color: #6b7280; font-size: 11px; line-height: 1.35; }
.feedback-modal[hidden] { display: none; }
.feedback-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; }
.feedback-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); cursor: default; }
.feedback-panel { position: relative; width: min(100%, 480px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 30px; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.3); }
.feedback-close { position: absolute; right: 15px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f5f9; color: #64748b; font-size: 25px; cursor: pointer; }
.feedback-panel-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(135deg,#6c5ce7,#8b5cf6); margin-bottom: 15px; }
.feedback-panel-icon svg { width: 24px; height: 24px; }
.feedback-panel h2 { margin: 0 42px 7px 0; color: #0f172a; font-size: 21px; }
.feedback-panel > p { margin: 0 0 21px; color: #64748b; font-size: 14px; line-height: 1.6; }
#feedback-form { display: flex; flex-direction: column; }
#feedback-form label { margin: 0 0 7px; color: #334155; font-size: 13px; font-weight: 700; }
#feedback-form select, #feedback-form textarea { width: 100%; border: 1px solid #dbe2ea; border-radius: 12px; background: #f8fafc; color: #0f172a; font: inherit; font-size: 14px; outline: none; box-sizing: border-box; }
#feedback-form select { padding: 11px 13px; margin-bottom: 15px; }
#feedback-form textarea { padding: 13px; resize: vertical; min-height: 120px; }
#feedback-form select:focus, #feedback-form textarea:focus { border-color: #6c5ce7; box-shadow: 0 0 0 3px rgba(108,92,231,.12); background: #fff; }
.feedback-form-meta { display: flex; justify-content: space-between; margin: 6px 2px 12px; color: #94a3b8; font-size: 11px; }
.feedback-form-status { display: none; margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.4; }
.feedback-form-status.error { display: block; color: #b91c1c; background: #fef2f2; }
.feedback-form-status.success { display: block; color: #047857; background: #ecfdf5; }
.feedback-submit { border: 0; border-radius: 12px; padding: 12px 18px; color: #fff; background: linear-gradient(135deg,#6c5ce7,#7c3aed); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.feedback-submit:disabled { opacity: .6; cursor: wait; }
.feedback-login-required { display: flex; flex-direction: column; gap: 10px; padding: 17px; border-radius: 14px; background: #f8fafc; color: #475569; font-size: 13px; line-height: 1.5; }
.feedback-login-required strong { color: #0f172a; font-size: 14px; }
.feedback-login-required a { align-self: flex-start; padding: 10px 18px; border-radius: 10px; background: #6c5ce7; color: #fff; font-weight: 700; text-decoration: none; }
body.feedback-modal-open { overflow: hidden; }
@media (max-width: 768px) {
    .feedback-widget { left: 12px; bottom: 78px; }
    .feedback-trigger { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 15px; }
    .feedback-trigger > svg { width: 22px; height: 22px; padding: 0; background: transparent; color: #6c5ce7; }
    .feedback-trigger-copy { display: none; }
    .feedback-modal { padding: 12px; align-items: end; }
    .feedback-panel { width: 100%; max-height: calc(100vh - 24px); padding: 24px 20px; border-radius: 22px 22px 14px 14px; }
}
