/* JANUS Landing — Auth modal styles */
.janus-auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
    padding: 20px;
}

.janus-auth-overlay.janus-auth-open {
    opacity: 1;
    pointer-events: auto;
}

.janus-auth-card {
    background: var(--white, #fff);
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    padding: 36px 32px 28px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(12px);
    transition: transform 0.25s ease;
    text-align: center;
}

.janus-auth-overlay.janus-auth-open .janus-auth-card {
    transform: translateY(0);
}

.janus-auth-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gray-400, #9ca3af);
    cursor: pointer;
    line-height: 1;
}

.janus-auth-close:hover {
    color: var(--gray-700, #374151);
}

.janus-auth-logo {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: 2px;
    color: var(--gold-primary, #d4a853);
    margin-bottom: 6px;
}

.janus-auth-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 20px;
    color: var(--gray-900, #111827);
    margin-bottom: 6px;
}

.janus-auth-sub {
    font-size: 13px;
    color: var(--gray-500, #6b7280);
    margin-bottom: 22px;
    line-height: 1.5;
}

.janus-auth-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-body, 'Inter', sans-serif);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.janus-auth-google {
    background: #fff;
    border-color: var(--gray-200, #e5e7eb);
    color: var(--gray-800, #1f2937);
}

.janus-auth-google:hover {
    background: var(--gray-50, #f9fafb);
    border-color: var(--gray-300, #d1d5db);
}

.janus-auth-gicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-weight: 700;
    color: #4285F4;
    font-size: 16px;
}

.janus-auth-primary {
    background: var(--gold-primary, #d4a853);
    color: #fff;
    margin-top: 4px;
}

.janus-auth-primary:hover {
    background: var(--gold-dark, #b8860b);
}

.janus-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
    color: var(--gray-400, #9ca3af);
    font-size: 12px;
}

.janus-auth-divider::before,
.janus-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200, #e5e7eb);
}

.janus-auth-divider span {
    padding: 0 12px;
}

.janus-auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.janus-auth-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--gray-200, #e5e7eb);
    font-size: 14px;
    font-family: var(--font-body, 'Inter', sans-serif);
    color: var(--gray-800, #1f2937);
    outline: none;
    transition: border-color 0.15s ease;
}

.janus-auth-input:focus {
    border-color: var(--gold-primary, #d4a853);
}

.janus-auth-toggle {
    background: none;
    border: none;
    color: var(--gold-dark, #b8860b);
    font-size: 12.5px;
    margin-top: 14px;
    cursor: pointer;
    text-decoration: underline;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.janus-auth-msg {
    font-size: 13px;
    color: var(--gray-600, #4b5563);
    margin-top: 14px;
    min-height: 18px;
    line-height: 1.4;
}

.janus-auth-msg-error {
    color: #dc2626;
}

.janus-auth-foot {
    font-size: 11px;
    color: var(--gray-400, #9ca3af);
    margin-top: 16px;
}

/* ---------- Nav: chip de usuario ---------- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.janus-nav-user {
    position: relative;
}

.janus-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 5px;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 999px;
    background: var(--white, #fff);
    cursor: pointer;
    font-family: var(--font-body, 'Inter', sans-serif);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.janus-user-chip:hover {
    border-color: var(--gold-primary, #d4a853);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
}

.janus-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.janus-user-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-primary, #d4a853), var(--gold-light, #f0c040));
    color: var(--gray-900, #111827);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.janus-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800, #1f2937);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.janus-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 12px;
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
    min-width: 180px;
    padding: 6px;
    display: none;
    z-index: 1001;
}

.janus-user-menu.open {
    display: block;
}

.janus-user-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border: none;
    background: none;
    font-size: 14px;
    font-family: var(--font-body, 'Inter', sans-serif);
    color: var(--gray-700, #374151);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.janus-user-menu-item:hover {
    background: var(--gray-50, #f9fafb);
    color: var(--gray-900, #111827);
}

.janus-user-menu-item.danger {
    color: #dc2626;
}

.janus-user-menu-item.danger:hover {
    background: #fef2f2;
}

/* ---------- Modal de perfil ---------- */
.janus-profile-card {
    max-width: 420px;
}

.janus-profile-section {
    text-align: left;
    margin-bottom: 18px;
}

.janus-profile-label {
    display: block;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500, #6b7280);
    margin-bottom: 8px;
}

.janus-profile-row {
    display: flex;
    gap: 8px;
}

.janus-profile-row .janus-auth-input {
    flex: 1;
    min-width: 0;
}

.janus-profile-save {
    width: auto;
    padding: 11px 18px;
    margin-top: 0;
    flex-shrink: 0;
}

.janus-profile-note {
    font-size: 11.5px;
    color: var(--gray-400, #9ca3af);
    margin-top: 6px;
    text-align: left;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .janus-user-name {
        display: none;
    }

    .janus-user-chip {
        padding: 5px;
    }
}
