/* Mini-chat soporte en páginas de acceso */
#auth-support-widget {
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    right: max(16px, env(safe-area-inset-right, 16px));
    z-index: 1060;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

#auth-support-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #e8d5a3, #c9a962);
    color: #0a0a0a;
    font-size: 1.35rem;
    box-shadow: 0 6px 20px rgba(201, 169, 98, 0.5);
    cursor: pointer;
    transition: transform 0.2s;
}

#auth-support-toggle:hover {
    transform: scale(1.06);
}

#auth-support-panel {
    display: none;
    position: absolute;
    bottom: 64px;
    right: 0;
    width: min(340px, calc(100vw - 32px));
    max-height: min(480px, 70vh);
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid #e8e8e6;
    flex-direction: column;
    overflow: hidden;
}

#auth-support-panel.open {
    display: flex;
}

#auth-support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #0a0a0a;
    color: #e8d5a3;
    font-weight: 600;
    font-size: 0.9rem;
}

#auth-support-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}

#auth-support-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 200px;
    max-height: 280px;
    background: #fafaf8;
}

.auth-support-msg {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 92%;
    font-size: 0.88rem;
    line-height: 1.45;
}

.auth-support-msg.bot {
    background: #fff;
    border: 1px solid #e8e8e6;
    margin-right: auto;
}

.auth-support-msg.user {
    background: #0a0a0a;
    color: #e8d5a3;
    margin-left: auto;
}

#auth-support-input {
    padding: 10px 12px;
    border-top: 1px solid #eee;
    background: #fff;
}

.auth-support-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-auth-support-opt {
    text-align: left;
    border: 1px solid #e0e0de;
    background: #fff;
    color: #0a0a0a;
    font-size: 0.82rem;
    padding: 0.5rem 0.75rem;
}

.btn-auth-support-opt:hover {
    border-color: #c9a962;
    background: #faf6ec;
}

.btn-auth-support-gold {
    background: linear-gradient(145deg, #e8d5a3, #c9a962);
    border: none;
    color: #0a0a0a;
    font-weight: 600;
}

.auth-support-form .form-control {
    font-size: 0.85rem;
}

.auth-support-banner {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 0.75rem;
    background: #faf6ec;
    border: 1px solid rgba(201, 169, 98, 0.35);
    font-size: 0.88rem;
}

.auth-support-banner strong {
    color: #0a0a0a;
}

.btn-auth-support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid #0a0a0a;
    background: transparent;
    color: #0a0a0a;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-auth-support-link:hover {
    background: #0a0a0a;
    color: #e8d5a3;
}
