/* ================= FLOATING FEEDBACK BUTTON ================= */
.feedback-float-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    background: linear-gradient(135deg, #f43f6e, #c8204a);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(244, 63, 110, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, sans-serif;
    max-width: 160px;
    white-space: nowrap;
}

.feedback-float-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(244, 63, 110, 0.5);
}

.feedback-float-btn .emoji {
    font-size: 18px;
    animation: pulse-emoji 2s ease-in-out infinite;
}

@keyframes pulse-emoji {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.feedback-float-btn .text {
    position: relative;
}

.feedback-float-btn .text .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    margin-left: 4px;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ================= FEEDBACK MODAL ================= */
.feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.feedback-modal {
    background: white;
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.dark-mode .feedback-modal {
    background: #1e293b;
}

/* Modal Header */
.feedback-modal-header {
    background: linear-gradient(135deg, #f43f6e, #c8204a);
    padding: 28px 28px 20px;
    text-align: center;
    border-radius: 24px 24px 0 0;
    color: white;
    position: relative;
}

.feedback-modal-header .close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-modal-header .close-btn:hover {
    background: rgba(255,255,255,0.3);
}

.feedback-modal-header .icon {
    font-size: 36px;
    display: block;
    margin-bottom: 6px;
}

.feedback-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.feedback-modal-header p {
    opacity: 0.85;
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(255,255,255,0.95);
}

/* Modal Body */
.feedback-modal-body {
    padding: 24px 28px 28px;
}

/* Rating Stars */
.feedback-rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.feedback-rating .star {
    font-size: 34px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #d1d5db;
    user-select: none;
}

.feedback-rating .star:hover {
    transform: scale(1.2);
    color: #fbbf24;
}

.feedback-rating .star.active {
    color: #fbbf24;
    animation: star-pop 0.3s ease;
}

@keyframes star-pop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Form Fields */
.feedback-form-group {
    margin-bottom: 16px;
}

.feedback-form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #334155;
    margin-bottom: 5px;
}

.dark-mode .feedback-form-group label {
    color: #e2e8f0;
}

.feedback-form-group input,
.feedback-form-group textarea,
.feedback-form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
    color: #1e293b;
    box-sizing: border-box;
}

.dark-mode .feedback-form-group input,
.dark-mode .feedback-form-group textarea,
.dark-mode .feedback-form-group select {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

.feedback-form-group input:focus,
.feedback-form-group textarea:focus,
.feedback-form-group select:focus {
    outline: none;
    border-color: #f43f6e;
    box-shadow: 0 0 0 3px rgba(244, 63, 110, 0.15);
}

.feedback-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Submit Button */
.feedback-submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #f43f6e, #c8204a);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 63, 110, 0.35);
}

.feedback-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.feedback-success {
    text-align: center;
    padding: 20px 0;
    display: none;
}

.feedback-success.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.feedback-success .icon {
    font-size: 50px;
    display: block;
    margin-bottom: 10px;
}

.feedback-success h3 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 4px;
}

.dark-mode .feedback-success h3 {
    color: #f1f5f9;
}

.feedback-success p {
    color: #64748b;
    font-size: 13px;
}

.dark-mode .feedback-success p {
    color: #94a3b8;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {
    .feedback-float-btn {
        bottom: 20px;
        left: 20px;
        padding: 10px 14px;
        font-size: 12px;
        max-width: 130px;
        gap: 6px;
    }
    
    .feedback-float-btn .text .dot {
        display: none;
    }
    
    .feedback-float-btn .text span {
        display: inline;
    }
    
    .feedback-modal-body {
        padding: 18px 18px 22px;
    }
    
    .feedback-modal {
        max-width: 95%;
        border-radius: 20px;
    }
    
    .feedback-modal-header {
        padding: 22px 18px 16px;
    }
    
    .feedback-modal-header .icon {
        font-size: 30px;
    }
    
    .feedback-modal-header h2 {
        font-size: 18px;
    }
    
    .feedback-rating .star {
        font-size: 28px;
        gap: 6px;
    }
    
    .feedback-form-group input,
    .feedback-form-group textarea,
    .feedback-form-group select {
        padding: 9px 12px;
        font-size: 13px;
    }
    
    .feedback-submit-btn {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .feedback-float-btn {
        bottom: 16px;
        left: 16px;
        padding: 8px 12px;
        font-size: 11px;
        max-width: 110px;
    }
    
    .feedback-float-btn .emoji {
        font-size: 14px;
    }
    
    .feedback-modal {
        max-width: 98%;
        border-radius: 16px;
    }
    
    .feedback-modal-body {
        padding: 14px 14px 18px;
    }
    
    .feedback-rating .star {
        font-size: 24px;
    }
    
    .feedback-modal-header h2 {
        font-size: 16px;
    }
    
    .feedback-modal-header p {
        font-size: 12px;
    }
}