/* =========================================
   STYLE.CSS - MASTER FINAL
   (Incluye App, Auth, Encuestas y Dashboard Admin)
   ========================================= */

/* 1. IMPORTAR FUENTE POPPINS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* --- PALETA CROMÁTICA OFICIAL --- */
    --color-violeta: #8818EA;        /* Principal */
    --color-vino: #621896;           /* Hover / Secundario */
    --color-uva: #7046DE;            /* Focus / Bordes activos */
    --color-violeta-oscuro: #452584; /* Textos */
    --color-blanco: #FFFFFF;
    
    /* --- COLOR ACCIÓN (ENCUESTA) --- */
    --color-naranja: #FF9F1C;        
    
    /* --- ESTADOS --- */
    --danger-color: #EF4444;
    --danger-bg: #FEF2F2;
    --success-color: #10B981;
    --warning-bg: #FEF3C7;
    --warning-text: #D97706;
    
    /* --- UI BACKGROUNDS --- */
    --bg-page: #F3F4F6;              
    --bg-card: #FFFFFF;              
    --bg-input: #F9FAFB;             
    --border-input: #E5E7EB;         
    --text-muted: #6B7280;
    
    /* --- GEOMETRÍA --- */
    --radius-card: 28px;             
    --radius-pill: 50px;             
    --radius-input: 16px;            
    --bottom-nav-height: 70px;
    
    /* --- SOMBRAS PRO --- */
    --shadow-pro: 0 10px 40px -10px rgba(136, 24, 234, 0.1), 0 0 0 1px rgba(0,0,0,0.02);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-family: 'Poppins', sans-serif;

    /* Icono Flecha SVG para Selects */
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* --- RESET & BASICS --- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-family);
    margin: 0;
    background-color: var(--bg-page);
    background-image: radial-gradient(circle at 50% 0%, #E9D5FF 0%, transparent 60%);
    color: var(--color-violeta-oscuro);
    line-height: 1.6;
    padding-bottom: calc(var(--bottom-nav-height) + 20px);
    min-height: 100vh;
}

/* FORZAR FUENTE EN TODO */
input, button, select, textarea, h1, h2, h3, h4, h5, h6, p, a, span, label, table, th, td {
    font-family: var(--font-family);
}

/* --- ANIMACIONES KEYFRAMES --- */
@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modalPop {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes floatLogo {
    0% { transform: translateY(0px); } 50% { transform: translateY(-5px); } 100% { transform: translateY(0px); }
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- TIPOGRAFÍA GENERAL --- */
h1, h2, h3, h4 { color: var(--color-violeta-oscuro); margin-top: 0; font-weight: 700; letter-spacing: -0.5px; }
h1 { font-size: 1.8rem; text-align: center; margin-bottom: 0.5em; }
p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.5; font-weight: 400; }

/* =========================================
   1. LOGIN / AUTH LAYOUT
   ========================================= */
#auth-container {
    width: 100%; max-width: 460px; margin: 0 auto;
    display: flex; flex-direction: column; justify-content: center;
    min-height: 90vh; padding: 1rem;
}

.auth-card {
    background-color: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-pro);
    text-align: center;
    position: relative;
    border-top: 8px solid var(--color-violeta);
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.logo-container {
    display: block; width: 160px; height: 70px;
    margin: -10px auto 1.5rem auto;
    background-size: contain; background-repeat: no-repeat; background-position: center;
    animation: floatLogo 4s ease-in-out infinite;
}

.auth-toggle-link { margin-top: 2rem; font-size: 0.95rem; color: var(--text-muted); }
.auth-toggle-link a { color: var(--color-violeta); font-weight: 700; text-decoration: none; transition: color 0.2s; }
.auth-toggle-link a:hover { color: var(--color-vino); text-decoration: underline; }

.auth-footer { margin-top: 3rem; text-align: center; font-size: 0.85rem; color: #9CA3AF; }
.auth-footer a { color: var(--color-uva); text-decoration: none; }

/* =========================================
   2. INPUTS Y FORMULARIOS (GLOBAL)
   ========================================= */
.field { display: flex; flex-direction: column; margin-bottom: 1.5rem; text-align: left; position: relative; }

label {
    color: var(--color-violeta-oscuro);
    font-weight: 600; font-size: 0.9rem;
    margin-bottom: 0.5rem; margin-left: 8px;
}

input[type="text"], 
input[type="email"], 
input[type="password"],
select,
textarea {
    width: 100%; padding: 1rem 1.2rem;
    background-color: var(--bg-input);
    border: 2px solid var(--border-input);
    border-radius: var(--radius-input);
    font-size: 1rem; color: var(--color-violeta-oscuro);
    font-family: inherit; transition: var(--transition);
    font-weight: 400;
}

input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--color-uva); background-color: #FFFFFF;
    box-shadow: 0 0 0 5px rgba(112, 70, 222, 0.1); transform: translateY(-2px);
}

textarea { resize: vertical; min-height: 120px; }
select {
    appearance: none;
    background-image: var(--select-arrow);
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em; cursor: pointer;
}

/* Ocultar contraseña (Ojo) */
.password-input-wrapper { position: relative; width: 100%; }
.password-toggle-btn {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #9CA3AF;
    padding: 8px; border-radius: 50%; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.password-toggle-btn:hover { background-color: #F3F0FF; color: var(--color-violeta); }

/* Link Olvidaste Contraseña */
.forgot-password-link {
    text-align: right; font-size: 0.85rem;
    color: var(--color-uva); font-weight: 600;
    text-decoration: none; margin-top: 0.5rem;
    display: inline-block; align-self: flex-end;
}
.forgot-password-link:hover { color: var(--color-violeta); text-decoration: underline; }

/* =========================================
   3. BOTONES (ESTILO PILL PRO)
   ========================================= */
.cta-button {
    width: 100%; padding: 1rem; margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--color-violeta) 0%, #7C3AED 100%);
    color: white; border: none; border-radius: var(--radius-pill);
    font-size: 1rem; font-weight: 600; cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(136, 24, 234, 0.4);
    transition: var(--transition);
    display: flex; justify-content: center; align-items: center; gap: 0.8rem;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(136, 24, 234, 0.5);
    background: linear-gradient(135deg, #7C3AED 0%, var(--color-violeta) 100%);
}
.cta-button:active { transform: scale(0.98); }
.cta-button:disabled { opacity: 0.6; cursor: not-allowed; }

/* Icono dentro del botón */
.cta-button svg { width: 22px; height: 22px; }

/* Botón Secundario */
.cta-button.secondary {
    background: transparent; color: var(--text-muted);
    border: 2px solid var(--border-input); box-shadow: none; margin-top: 0;
}
.cta-button.secondary:hover {
    border-color: var(--color-violeta); color: var(--color-violeta);
    background-color: #FDF9FF; transform: translateY(-2px); box-shadow: none;
}
.cta-button.danger { background: var(--danger-color); color: white; }

/* =========================================
   4. APP PRINCIPAL (HEADER & LAYOUT)
   ========================================= */
#app-container { display: none; }

.app-header {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 100; padding: 0.8rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.app-header nav {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.header-logo {
    width: 110px; height: 45px;
    background-size: contain; background-repeat: no-repeat;
    transition: transform 0.2s;
}
.header-logo:hover { transform: scale(1.05); }

/* BOTÓN SALIR HEADER */
.header-logout-btn {
    background-color: transparent;
    border: 2px solid transparent;
    color: var(--danger-color);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-family);
}

.header-logout-btn:hover {
    background-color: var(--danger-bg);
    border-color: #FECACA;
    transform: translateY(-1px);
}

main.page-content {
    max-width: 1000px; margin: 2rem auto; padding: 0 1.5rem;
}

.page-header { text-align: center; margin-bottom: 3rem; animation: slideUpFade 0.6s ease-out; }

/* Tarjetas Globales App */
.global-coherence, .receta-editor, .settings-card, .history-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-card); padding: 2.5rem;
    box-shadow: var(--shadow-pro); margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.6);
    transition: var(--transition); animation: slideUpFade 0.6s ease-out backwards;
}
.global-coherence:hover { transform: translateY(-3px); }

/* Filas de formulario */
.form-row { display: flex; flex-direction: column; gap: 0; }
@media(min-width: 768px) {
    .form-row { flex-direction: row; gap: 1.5rem; }
    .form-row .field { flex: 1; }
}
.form-buttons-row { display: flex; gap: 1rem; margin-top: 2rem; }

/* =========================================
   5. COMPONENTES INTERNOS APP
   ========================================= */

/* Acordeón Productos */
.custom-select-accordion {
    border: 1px solid var(--border-input);
    border-radius: 20px;
    background-color: #FAFAFA; overflow: hidden;
}
.category-header {
    width: 100%; padding: 1rem 1.5rem;
    background-color: var(--bg-card);
    border: none; border-bottom: 1px solid var(--border-input);
    text-align: left; font-weight: 600; color: var(--color-violeta-oscuro);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    transition: all 0.2s; font-family: inherit;
}
.category-header:hover { background-color: #F3F0FF; color: var(--color-violeta); }
.category-group.open .category-header {
    background-color: var(--color-violeta); color: white; border-bottom-color: transparent;
}
.category-group.open .category-header svg { color: white; }

.product-list {
    background-color: var(--bg-card); max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.category-group.open .product-list { max-height: 400px; overflow-y: auto; }

.product-item {
    padding: 0.9rem 1.5rem; cursor: pointer;
    border-top: 1px solid #F3F4F6; color: var(--text-muted); font-size: 0.95rem;
    transition: all 0.2s;
}
.product-item:hover { background-color: #F3F0FF; color: var(--color-violeta); padding-left: 1.8rem; }
.product-item.selected { background-color: var(--color-violeta); color: white; font-weight: 600; }

.selected-product-display {
    margin-top: 1rem; padding: 1rem;
    background-color: #FDF9FF; border: 2px dashed var(--color-violeta);
    border-radius: var(--radius-input); color: var(--color-violeta);
    font-weight: 700; display: none; text-align: center;
}
.selected-product-display.has-selection { display: block; animation: slideUpFade 0.3s; }

/* Editor Recetas */
.receta-editor { border-left: 6px solid var(--color-violeta); }
.receta-header input { font-size: 1.4rem; font-weight: 800; border: none; background: transparent; padding: 0; }
.ingredients-container {
    display: flex; flex-wrap: wrap; gap: 10px; padding: 1rem;
    background-color: #F9FAFB; border-radius: 20px;
    min-height: 100px; border: 1px solid var(--border-input);
}
.ingredient-tag {
    background-color: white; color: var(--color-violeta-oscuro);
    padding: 0.5rem 1rem; border-radius: 50px;
    border: 1px solid var(--border-input); font-size: 0.9em;
    cursor: pointer; user-select: none; transition: all 0.2s; font-weight: 500;
}
.ingredient-tag:hover { 
    border-color: var(--color-violeta); color: white; background-color: var(--color-violeta); transform: scale(1.05);
}

/* Historial */
.history-card.accordion-card { padding: 0; overflow: hidden; }
.history-card-header.accordion-trigger {
    width: 100%; padding: 1.5rem; background: white; border: none;
    text-align: left; font-size: 1.1rem; font-weight: 700; color: var(--color-violeta-oscuro);
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.history-card-header.accordion-trigger:hover { background-color: #F9FAFB; color: var(--color-violeta); }
.history-card-body {
    padding: 0 1.5rem; max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease; border-top: 1px solid transparent;
}
.history-card.open .history-card-body { padding-bottom: 1.5rem; max-height: 2000px; border-top-color: var(--border-input); }

/* PAGINACIÓN PRO */
.pagination-controls { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.pagination-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: #FFFFFF; border: 1px solid #E5E7EB;
    color: var(--text-muted); font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.pagination-btn:hover:not(:disabled) { border-color: var(--color-violeta); color: var(--color-violeta); transform: translateY(-2px); }
.pagination-btn.active { background: var(--color-violeta); color: white; border-color: var(--color-violeta); box-shadow: 0 4px 10px rgba(136, 24, 234, 0.3); }
.pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Toggle Switch */
.toggle-switch { position: relative; width: 54px; height: 30px; display: inline-block; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #E5E7EB; transition: .4s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: ""; height: 22px; width: 22px; left: 4px; bottom: 4px;
    background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
input:checked + .slider { background-color: var(--color-violeta); }
input:checked + .slider:before { transform: translateX(24px); }

/* =========================================
   6. NAVEGACIÓN Y MODALES
   ========================================= */

/* Bottom Nav (Móvil) */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; height: var(--bottom-nav-height);
    background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255,255,255,0.5); box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    display: flex; justify-content: space-around; align-items: center; z-index: 1000;
}
.bottom-nav .nav-link {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: #9CA3AF; font-size: 0.7rem; gap: 4px;
    font-weight: 500; transition: all 0.3s;
}
.bottom-nav .nav-link svg { width: 24px; height: 24px; stroke: currentColor; transition: transform 0.3s; }
.bottom-nav .nav-link.active { color: var(--color-violeta); font-weight: 700; }
.bottom-nav .nav-link.active svg { transform: translateY(-3px); stroke-width: 2.5px; }

/* Desktop Nav */
.main-nav { display: none; }
@media (min-width: 768px) {
    .bottom-nav { display: none; }
    .main-nav { display: flex; list-style: none; gap: 1rem; margin: 0; padding: 0; }
    .main-nav .nav-link {
        text-decoration: none; color: #6B7280; font-weight: 600;
        display: flex; align-items: center; gap: 0.5rem;
        padding: 0.6rem 1.2rem; border-radius: 50px; transition: all 0.3s;
    }
    .main-nav .nav-link:hover { background-color: #F3F4F6; color: var(--color-violeta-oscuro); }
    .main-nav .nav-link.active { background-color: #F3F0FF; color: var(--color-violeta); }
    .main-nav .nav-link svg { width: 20px; height: 20px; stroke: currentColor; }
    
    .app-footer {
        padding: 2rem; text-align: center; color: #9CA3AF;
        border-top: 1px solid var(--border-input); margin-top: 4rem;
        display: block !important;
    }
}

/* --- MODAL BASE --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(69, 37, 132, 0.4); 
    backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal-content {
    background: white; padding: 2.5rem 3rem;
    border-radius: 30px; 
    width: 90%; max-width: 450px; text-align: center;
    box-shadow: 0 25px 60px -10px rgba(0,0,0,0.3);
    transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.show .modal-content { transform: scale(1); animation: modalPop 0.4s; }

.modal-content h2, .modal-content h3 { font-size: 1.8rem; color: var(--color-violeta); margin-bottom: 0.5rem; font-weight: 700; }
.modal-content p { font-size: 1.1rem; color: #9CA3AF; margin-bottom: 2.5rem; }

/* Acciones del Modal */
.modal-actions { display: flex; gap: 1rem; justify-content: center; width: 100%; }
.modal-btn { 
    border: none; padding: 1rem 2rem; border-radius: 50px; 
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: 0.2s; 
    font-family: var(--font-family); min-width: 140px;
}
.modal-btn.primary { background: var(--color-violeta); color: white; box-shadow: 0 4px 15px rgba(136, 24, 234, 0.3); }
.modal-btn.primary:hover { background: var(--color-vino); transform: translateY(-2px); }
.modal-btn.secondary { background: #F3F4F6; color: #6B7280; }
.modal-btn.secondary:hover { background: #E5E7EB; color: #374151; }

/* Utilities Ocultas */
.toast-notification {
    position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
    background-color: var(--color-violeta-oscuro); color: white;
    padding: 1rem 2rem; border-radius: 50px; font-weight: 600;
    box-shadow: 0 10px 30px rgba(69, 37, 132, 0.3);
    opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 3000;
}
.toast-notification.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.loading-spinner {
    border: 4px solid rgba(136, 24, 234, 0.1); border-top: 4px solid var(--color-violeta);
    border-radius: 50%; width: 50px; height: 50px;
    animation: spin 1s linear infinite; margin: 3rem auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.theme-switcher-wrapper { display: none !important; }

/* =========================================
   7. ESTILOS DE ENCUESTA Y BOTONES INTEGRADOS
   ========================================= */

/* Botón Valorar (Estilo Naranja) */
.survey-trigger-btn {
    background: var(--color-naranja);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px -5px rgba(255, 159, 28, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.survey-trigger-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -5px rgba(255, 159, 28, 0.5);
    background: #FF9200;
}

.survey-trigger-btn svg { width: 24px; height: 24px; }

/* Modal de Encuesta (Con SCROLL) */
.survey-modal-content {
    background: #F3F4F6;
    text-align: left;
    width: 90%;
    max-width: 650px;
    padding: 2.5rem;
    color: #1F2937;
    
    /* --- SCROLL FIX --- */
    max-height: 85vh; 
    overflow-y: auto; 
    border-radius: 20px;
    position: relative;
}

/* Scrollbar Bonito para el Modal */
.survey-modal-content::-webkit-scrollbar { width: 8px; }
.survey-modal-content::-webkit-scrollbar-track { background: #E5E7EB; border-radius: 10px; }
.survey-modal-content::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 10px; }
.survey-modal-content::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

.survey-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; border-bottom: 1px solid #E5E7EB; padding-bottom: 1rem;
}
.survey-header h2 { color: #111827; margin: 0; font-size: 1.6rem; }

.close-survey {
    background: none; border: none; font-size: 2rem; cursor: pointer; color: #9CA3AF; line-height: 1;
}
.close-survey:hover { color: #1F2937; }

/* Preguntas y Estrellas */
.survey-question { margin-bottom: 2rem; }
.survey-label {
    display: block; font-size: 0.9rem; font-weight: 700;
    text-transform: uppercase; color: #374151; margin-bottom: 0.8rem; letter-spacing: 0.5px;
}

.star-rating { display: flex; gap: 8px; font-size: 2.5rem; cursor: pointer; }
.star { color: #D1D5DB; transition: color 0.2s, transform 0.1s; }
.star.active, .star:hover { color: var(--color-naranja); transform: scale(1.1); }

/* Inputs texto encuesta */
.survey-input {
    width: 100%; padding: 1.2rem; border: 1px solid #D1D5DB;
    border-radius: 12px; background: white; font-family: inherit; font-size: 1rem;
    resize: vertical; transition: border-color 0.2s;
}
.survey-input:focus { border-color: var(--color-naranja); box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.1); }

/* =========================================
   8. ESTILOS DASHBOARD ADMIN (NUEVO)
   ========================================= */
.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.admin-table th { 
    background-color: #F3F4F6; padding: 1rem; text-align: left; 
    font-weight: 700; color: var(--color-violeta-oscuro); font-size: 0.9rem;
}
.admin-table td { 
    padding: 1rem; border-bottom: 1px solid #E5E7EB; 
    font-size: 0.9rem; vertical-align: top; color: #374151;
}
.admin-table tr:hover { background-color: #F9FAFB; }

.rating-badge {
    background-color: var(--warning-bg); color: var(--warning-text);
    padding: 4px 10px; border-radius: 6px; font-weight: 700;
    font-size: 0.85rem; display: inline-block; cursor: pointer;
    border: 1px solid #FCD34D; transition: transform 0.2s;
}
.rating-badge:hover { transform: scale(1.05); background-color: #FDE68A; }
.rating-badge.high { background-color: #D1FAE5; color: #059669; border-color: #6EE7B7; }
.rating-badge.high:hover { background-color: #A7F3D0; }