.feedback-overlay {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(4, 6, 10, 0.82);
    backdrop-filter: blur(8px);
}

.feedback-overlay.active {
    display: flex;
}

.feedback-popup {
    position: relative;
    width: min(650px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.09);
    border-top: 3px solid #f0c419;
    border-radius: 18px;
    background: linear-gradient(180deg,#181818,#101010);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.feedback-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    cursor: pointer;
}

.feedback-head {
    margin-bottom: 20px;
    padding-right: 45px;
}

.feedback-kicker {
    color: #f0c419;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.feedback-head h2 {
    margin: 5px 0 6px;
    color: #fff;
    font-size: 26px;
}

.feedback-head p {
    margin: 0;
    color: #9aa0aa;
    font-size: 12px;
}

.feedback-categories {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.feedback-categories button {
    min-height: 46px;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: #202020;
    color: #d8d8d8;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.feedback-categories button:hover {
    border-color: rgba(240,196,25,0.4);
}

.feedback-categories button.active {
    border-color: #f0c419;
    background: rgba(240,196,25,0.12);
    color: #ffd630;
    box-shadow: inset 0 0 0 1px rgba(240,196,25,0.12);
}

.feedback-label {
    display: block;
    margin: 14px 0 7px;
    color: #f0c419;
    font-size: 11px;
    font-weight: 900;
}

.feedback-input,
.feedback-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    outline: none;
    background: #202020;
    color: #fff;
}

.feedback-input {
    height: 44px;
    padding: 0 13px;
}

.feedback-textarea {
    min-height: 145px;
    resize: vertical;
    padding: 12px 13px;
    font-family: inherit;
}

.feedback-input:focus,
.feedback-textarea:focus {
    border-color: rgba(240,196,25,0.55);
}

.feedback-status {
    min-height: 18px;
    margin-top: 9px;
    color: #9da3ad;
    font-size: 11px;
}

.feedback-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg,#e7b900,#ffd640);
    color: #111;
    font-weight: 900;
    cursor: pointer;
}

.feedback-submit:disabled {
    opacity: 0.55;
    cursor: wait;
}

@media (max-width: 650px) {
    .feedback-categories {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .feedback-popup {
        padding: 22px 16px;
    }
}

.csi-feedback-float {
    position: fixed; left: 22px; bottom: 22px; z-index: 99998;
    width: min(285px, calc(100vw - 28px)); min-height: 68px;
    padding: 10px 13px; display: grid; grid-template-columns: 42px 1fr 22px;
    align-items: center; gap: 10px; border: 1px solid rgba(255,62,74,.34);
    border-radius: 17px;
    background: linear-gradient(145deg,rgba(28,17,20,.98),rgba(12,9,11,.98));
    box-shadow: 0 18px 55px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.04);
    backdrop-filter: blur(16px); color: #fff; font-family: inherit;
    text-align: left; cursor: pointer; transition: .18s ease;
}
.csi-feedback-float:hover { border-color: rgba(255,62,74,.72); transform: translateY(-1px); }
.csi-feedback-float-icon {
    width:42px;height:42px;border-radius:13px;display:grid;place-items:center;
    background:linear-gradient(145deg,rgba(239,38,52,.25),rgba(145,12,24,.13));
    color:#ff4653;font-size:18px;
}
.csi-feedback-float-info { min-width:0;display:flex;flex-direction:column;gap:3px; }
.csi-feedback-float-info strong { color:#fff;font-size:12px;font-weight:900;letter-spacing:.35px; }
.csi-feedback-float-info small { color:#a7abb4;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.csi-feedback-float-chevron { color:#858b96;font-size:11px;text-align:center; }
.feedback-popup { border-top-color:#ef2634; }
.feedback-kicker,.feedback-label { color:#ff4653; }
.feedback-categories button:hover { border-color:rgba(239,38,52,.45); }
.feedback-categories button.active {
    border-color:#ef2634;background:rgba(239,38,52,.13);color:#ff5964;
    box-shadow:inset 0 0 0 1px rgba(239,38,52,.13);
}
.feedback-input:focus,.feedback-textarea:focus { border-color:rgba(239,38,52,.62); }
.feedback-submit { background:linear-gradient(90deg,#c91423,#f22f3d);color:#fff; }
@media (max-width:650px) {
    .csi-feedback-float { left:14px;bottom:14px;width:min(245px,calc(100vw - 28px)); }
}
