/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CASA ALESSANDRA — CMS & PANEL DE ADMINISTRACIÓN TOTAL
   Estética Glassmorphism, Dark Luxury y Acentos Dorados
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

:root {
    --admin-gold: #c4a47c;
    --admin-gold-hover: #dfc299;
    --admin-gold-glow: rgba(196, 164, 124, 0.25);
    --admin-bg-dark: #0b1522;
    --admin-card-bg: #132235;
    --admin-border: rgba(196, 164, 124, 0.25);
    --admin-border-subtle: rgba(255, 255, 255, 0.1);
    --admin-text-main: #f0f4f8;
    --admin-text-muted: #94a3b8;
    --admin-danger: #ef4444;
    --admin-success: #10b981;
}

/* Botón Admin en Navegación Superior */
.btn-admin-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(196, 164, 124, 0.12);
    border: 1px solid rgba(196, 164, 124, 0.4);
    color: var(--admin-gold);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-admin-nav:hover {
    background: var(--admin-gold);
    color: #0b1522;
    box-shadow: 0 0 15px var(--admin-gold-glow);
    transform: translateY(-1px);
}

/* Enlace Admin en Footer */
.footer-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.2s ease;
}

.footer-admin-link:hover {
    color: var(--admin-gold);
}

/* Modal Overlay Principal */
.casa-admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 11, 19, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.casa-admin-overlay.active {
    display: flex;
    opacity: 1;
}

/* Diálogo Flotante */
.casa-admin-dialog {
    background: var(--admin-bg-dark);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    width: 100%;
    max-width: 1050px;
    height: 92vh;
    max-height: 92vh;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 30px rgba(196, 164, 124, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--admin-text-main);
    font-family: 'Montserrat', sans-serif;
    transform: scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.casa-admin-overlay.active .casa-admin-dialog {
    transform: scale(1);
}

/* Header del Modal */
.casa-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(19, 34, 53, 0.75);
    border-bottom: 1px solid var(--admin-border-subtle);
    flex-shrink: 0;
}

.casa-admin-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.casa-admin-icon {
    font-size: 1.5rem;
    background: rgba(196, 164, 124, 0.15);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--admin-border);
}

.casa-admin-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.casa-admin-subtitle {
    margin: 2px 0 0;
    font-size: 0.72rem;
    color: var(--admin-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.casa-admin-close-btn {
    background: none;
    border: none;
    color: var(--admin-text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.casa-admin-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Vista 1: Formulario de Login / PIN */
.casa-admin-login-view {
    padding: 60px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.casa-admin-lock-badge {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(196, 164, 124, 0.12);
    border: 2px solid var(--admin-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    box-shadow: 0 0 25px var(--admin-gold-glow);
}

.casa-admin-login-title {
    font-size: 1.45rem;
    margin: 0 0 8px;
    color: #ffffff;
}

.casa-admin-login-desc {
    font-size: 0.88rem;
    color: var(--admin-text-muted);
    max-width: 500px;
    margin: 0 0 25px;
    line-height: 1.6;
}

.casa-admin-pin-group {
    display: flex;
    width: 100%;
    max-width: 420px;
    gap: 10px;
    margin-bottom: 12px;
}

.casa-admin-pin-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    color: #ffffff;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    text-align: center;
    letter-spacing: 2px;
}

.casa-admin-pin-input:focus {
    border-color: var(--admin-gold);
    box-shadow: 0 0 10px var(--admin-gold-glow);
}

.casa-admin-btn-login {
    background: var(--admin-gold);
    color: #0b1522;
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.casa-admin-btn-login:hover {
    background: var(--admin-gold-hover);
    box-shadow: 0 0 15px var(--admin-gold-glow);
    transform: translateY(-1px);
}

.casa-admin-error-msg {
    color: var(--admin-danger);
    font-size: 0.84rem;
    margin-top: 8px;
    display: none;
}

/* Vista 2: Panel de Administración Unificado */
.casa-admin-panel-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    overflow: hidden;
}

/* Barra de Pestañas y Acciones de Sesión */
.casa-admin-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    background: rgba(15, 28, 43, 0.85);
    border-bottom: 1px solid var(--admin-border-subtle);
    gap: 15px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.casa-admin-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.casa-admin-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--admin-text-muted);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.casa-admin-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.casa-admin-tab-btn.active {
    background: rgba(196, 164, 124, 0.16);
    border-color: var(--admin-border);
    color: var(--admin-gold);
}

.casa-admin-session-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.casa-admin-session-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--admin-success);
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.25);
    white-space: nowrap;
}

.casa-admin-btn-logout {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--admin-border-subtle);
    color: var(--admin-text-muted);
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
}

.casa-admin-btn-logout:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Área de Contenido con Scroll */
.casa-admin-tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    box-sizing: border-box;
}

/* Toolbars */
.casa-admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
    position: sticky;
    top: -24px;
    background: rgba(11, 21, 34, 0.95);
    backdrop-filter: blur(8px);
    padding: 12px 0;
    z-index: 10;
    border-bottom: 1px solid var(--admin-border-subtle);
}

.casa-admin-status-indicator {
    font-size: 0.88rem;
    color: var(--admin-text-muted);
}

.casa-admin-status-indicator strong {
    color: #ffffff;
}

.casa-admin-actions-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-admin-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    border: none;
}

.btn-admin-gold {
    background: var(--admin-gold);
    color: #0b1522;
}

.btn-admin-gold:hover {
    background: var(--admin-gold-hover);
    box-shadow: 0 0 15px var(--admin-gold-glow);
    transform: translateY(-1px);
}

.btn-admin-outline {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--admin-border-subtle);
    color: #ffffff;
}

.btn-admin-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECCIÓN: EDITOR DE TEXTOS Y CONTENIDO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cms-section-card {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border-subtle);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.cms-section-card:hover {
    border-color: rgba(196, 164, 124, 0.3);
}

.cms-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--admin-border-subtle);
}

.cms-section-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--admin-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cms-section-body {
    padding: 20px;
}

.cms-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .cms-grid-2 {
        grid-template-columns: 1fr;
    }
}

.cms-card-item {
    background: rgba(11, 21, 34, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECCIÓN: GESTOR DE GALERÍA Y CATEGORÍAS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.gallery-manager-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Grid de Categorías de la Galería */
.categories-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.category-edit-card {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border-subtle);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}

.category-edit-card:hover {
    border-color: var(--admin-gold);
    transform: translateY(-2px);
}

.category-preview-wrap {
    position: relative;
    width: 100%;
    height: 140px;
    background: #000;
    overflow: hidden;
}

.category-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

.category-change-cover-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(11, 21, 34, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid var(--admin-gold);
    color: var(--admin-gold);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.category-change-cover-btn:hover {
    background: var(--admin-gold);
    color: #0b1522;
}

.category-edit-content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.category-delete-btn {
    background: none;
    border: none;
    color: var(--admin-danger);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 0;
    align-self: flex-start;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.category-delete-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Área de Subida de Fotos (Upload Zone) */
.gallery-upload-box {
    background: rgba(196, 164, 124, 0.05);
    border: 2px dashed var(--admin-border);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-upload-box:hover, .gallery-upload-box.dragover {
    background: rgba(196, 164, 124, 0.12);
    border-color: var(--admin-gold);
}

.gallery-upload-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: inline-block;
}

.gallery-upload-text {
    font-size: 0.92rem;
    color: #ffffff;
    font-weight: 600;
    margin: 0 0 6px;
}

.gallery-upload-sub {
    font-size: 0.78rem;
    color: var(--admin-text-muted);
    margin: 0;
}

/* Grid de Imágenes de la Galería (Lightbox / Carrusel) */
.gallery-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.gallery-thumb-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #000;
    border: 1px solid var(--admin-border-subtle);
    group: hover;
}

.gallery-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumb-card:hover .gallery-thumb-img {
    transform: scale(1.08);
}

.gallery-thumb-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(239, 68, 68, 0.85);
    color: #ffffff;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.gallery-thumb-card:hover .gallery-thumb-delete {
    opacity: 1;
}

.gallery-thumb-delete:hover {
    background: var(--admin-danger);
    transform: scale(1.15);
}

/* Modal Selector de Foto para Portada de Categoría */
.image-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100005;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.image-picker-modal.active {
    display: flex;
}

.image-picker-dialog {
    background: var(--admin-bg-dark);
    border: 1px solid var(--admin-gold);
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.image-picker-header {
    padding: 14px 20px;
    background: rgba(19, 34, 53, 0.9);
    border-bottom: 1px solid var(--admin-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.image-picker-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.picker-thumb {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.picker-thumb:hover {
    border-color: var(--admin-gold);
    transform: scale(1.04);
}

.picker-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Campos de Formulario General */
.admin-form-group {
    margin-bottom: 14px;
}

.admin-form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--admin-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.admin-form-input, .admin-form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--admin-border-subtle);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: #ffffff;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.admin-form-input:focus, .admin-form-textarea:focus {
    outline: none;
    border-color: var(--admin-gold);
    background: rgba(255, 255, 255, 0.06);
}

.admin-form-textarea {
    min-height: 95px;
    resize: vertical;
    line-height: 1.5;
}

/* Área de respuesta de Dru en Memoria - mucho más amplia y cómoda */
.casa-topic-body .admin-form-textarea,
#newTopicResponse {
    min-height: 200px;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 12px 14px;
    background: rgba(10, 20, 32, 0.75);
    border: 1px solid rgba(196, 164, 124, 0.3);
}

.casa-topic-body .admin-form-textarea:focus,
#newTopicResponse:focus {
    border-color: var(--admin-gold);
    box-shadow: 0 0 12px rgba(196, 164, 124, 0.25);
}

/* Tarjetas de Temas (Acordeón de Dru) */
.casa-topic-item {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border-subtle);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.casa-topic-item:hover {
    border-color: rgba(196, 164, 124, 0.35);
}

.casa-topic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    user-select: none;
}

.casa-topic-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.casa-topic-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.casa-topic-toggle-icon {
    font-size: 0.8rem;
    color: var(--admin-gold);
    transition: transform 0.2s ease;
}

.casa-topic-item.expanded .casa-topic-toggle-icon {
    transform: rotate(90deg);
}

.casa-topic-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.casa-topic-item-id {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--admin-text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.casa-topic-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-delete-topic {
    background: none;
    border: none;
    color: rgba(239, 68, 68, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-delete-topic:hover {
    color: var(--admin-danger);
    background: rgba(239, 68, 68, 0.15);
}

.casa-topic-body {
    padding: 18px;
    border-top: 1px solid var(--admin-border-subtle);
    background: rgba(11, 21, 34, 0.4);
    display: none;
}

.casa-topic-item.expanded .casa-topic-body {
    display: block;
}

.casa-new-topic-card {
    background: rgba(196, 164, 124, 0.08);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    display: none;
    animation: fadeInAdmin 0.3s ease;
}

.casa-new-topic-card.open {
    display: block;
}

@keyframes fadeInAdmin {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tour Studio Card */
.casa-tour-studio-card {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    padding: 45px 30px;
    text-align: center;
    max-width: 650px;
    margin: 30px auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.casa-tour-studio-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: inline-block;
    filter: drop-shadow(0 0 15px var(--admin-gold-glow));
}

.casa-tour-studio-title {
    font-size: 1.4rem;
    margin: 0 0 12px;
    color: #ffffff;
}

.casa-tour-studio-desc {
    font-size: 0.92rem;
    color: var(--admin-text-muted);
    line-height: 1.6;
    margin: 0 0 30px;
}

.btn-open-tour-studio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--admin-gold);
    color: #0b1522;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.5px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-open-tour-studio:hover {
    background: var(--admin-gold-hover);
    box-shadow: 0 0 25px var(--admin-gold-glow);
    transform: translateY(-2px);
}

/* Toast Notificaciones Flotantes */
.casa-admin-toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #10b981;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 100010;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.casa-admin-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.casa-admin-toast.error {
    background: var(--admin-danger);
}

/* ── Modo Aprendizaje y Feedbacks de Dru ── */
.casa-admin-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--admin-border-subtle);
    color: var(--admin-text-muted);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.casa-admin-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.casa-admin-filter-btn.active {
    background: rgba(196, 164, 124, 0.2);
    border-color: var(--admin-gold);
    color: var(--admin-gold);
    font-weight: 600;
}

.casa-feedback-card {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border-subtle);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 14px;
    transition: all 0.25s ease;
}

.casa-feedback-card:hover {
    border-color: var(--admin-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.casa-feedback-card.status-bad {
    border-left: 4px solid var(--admin-danger);
}

.casa-feedback-card.status-good {
    border-left: 4px solid var(--admin-success);
}

.casa-feedback-card.status-applied {
    border-left: 4px solid #3b82f6;
}

.casa-fb-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.casa-fb-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.casa-fb-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.casa-fb-badge.bad {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.casa-fb-badge.good {
    background: rgba(16, 185, 129, 0.15);
    color: #86efac;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.casa-fb-badge.applied {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.casa-fb-card-date {
    font-size: 0.75rem;
    color: var(--admin-text-muted);
}

.casa-fb-chat-preview {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
}

.casa-fb-user-bubble {
    color: #e2e8f0;
}

.casa-fb-dru-bubble {
    color: var(--admin-gold);
    line-height: 1.4;
}

.casa-fb-critique {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.casa-fb-critique-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fca5a5;
    margin-bottom: 4px;
}

.casa-fb-critique-comment {
    font-size: 0.86rem;
    color: #ffffff;
    line-height: 1.4;
}

.casa-fb-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

